ft8_lib/Makefile

27 lines
749 B
Makefile
Raw Normal View History

2018-11-02 20:03:28 +08:00
CXXFLAGS = -std=c++14 -I.
2018-10-18 15:42:43 +08:00
LDFLAGS = -lm
2018-12-24 20:22:26 +08:00
TARGETS = gen_ft8 decode_ft8 test
2018-11-01 22:21:40 +08:00
2018-12-22 22:09:43 +08:00
.PHONY: run_tests all clean
all: $(TARGETS)
2018-11-01 22:21:40 +08:00
run_tests: test
@./test
gen_ft8: gen_ft8.o ft8/constants.o ft8/text.o ft8/pack.o ft8/encode.o common/wave.o
$(CXX) $(LDFLAGS) -o $@ $^
test: test.o ft8/pack.o ft8/encode.o ft8/text.o ft8/constants.o fft/kiss_fftr.o fft/kiss_fft.o
2018-12-24 20:22:26 +08:00
$(CXX) $(LDFLAGS) -o $@ $^
decode_ft8: decode_ft8.o fft/kiss_fftr.o fft/kiss_fft.o ft8/decode.o ft8/encode.o ft8/ldpc.o ft8/unpack.o ft8/text.o ft8/constants.o common/wave.o
2018-12-24 20:22:26 +08:00
$(CXX) $(LDFLAGS) -o $@ $^
2018-12-22 22:09:43 +08:00
clean:
rm -f *.o ft8/*.o common/*.o fft/*.o $(TARGETS)
2021-01-13 17:44:19 +08:00
install:
$(AR) rc libft8.a ft8/constants.o ft8/encode.o ft8/pack.o ft8/text.o common/wave.o
install libft8.a /usr/lib/libft8.a