libtinycrc/Makefile

19 lines
263 B
Makefile
Raw Normal View History

2023-12-19 02:01:07 +00:00
.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 $@ $<