19 lines
263 B
Makefile
19 lines
263 B
Makefile
|
|
||
|
.PHONY: all
|
||
|
all: tinycrc.a crctest
|
||
|
|
||
|
.PHONY: clean
|
||
|
clean:
|
||
|
rm -f crctest.cpp.o tinycrc.a
|
||
|
$(MAKE) -C src clean
|
||
|
|
||
|
crctest: crctest.cpp.o tinycrc.a
|
||
|
gcc -g -o $@ $< tinycrc.a
|
||
|
|
||
|
tinycrc.a:
|
||
|
$(MAKE) -C src tinycrc.a
|
||
|
cp src/tinycrc.a .
|
||
|
|
||
|
%.cpp.o: %.cpp
|
||
|
gcc -c -o $@ $<
|