2021-11-17 08:31:01 +00:00
|
|
|
CFLAGS = -O3 -ggdb3 -fsanitize=address
|
2021-08-05 11:21:07 +00:00
|
|
|
CPPFLAGS = -std=c11 -I.
|
2021-11-17 08:31:01 +00:00
|
|
|
LDFLAGS = -lm -fsanitize=address
|
2018-10-18 07:42:43 +00:00
|
|
|
|
2018-12-24 12:22:26 +00:00
|
|
|
TARGETS = gen_ft8 decode_ft8 test
|
2018-11-01 14:21:40 +00:00
|
|
|
|
2018-12-22 14:09:43 +00:00
|
|
|
.PHONY: run_tests all clean
|
|
|
|
|
|
|
|
all: $(TARGETS)
|
2018-11-01 14:21:40 +00:00
|
|
|
|
|
|
|
run_tests: test
|
|
|
|
@./test
|
|
|
|
|
2021-08-12 10:43:25 +00:00
|
|
|
gen_ft8: gen_ft8.o ft8/constants.o ft8/text.o ft8/pack.o ft8/encode.o ft8/crc.o common/wave.o
|
2018-11-07 13:50:55 +00:00
|
|
|
$(CXX) $(LDFLAGS) -o $@ $^
|
|
|
|
|
2021-12-18 06:30:26 +00:00
|
|
|
test: test.o ft8/pack.o ft8/encode.o ft8/crc.o ft8/text.o ft8/constants.o fft/kiss_fftr.o fft/kiss_fft.o
|
2018-12-24 12:22:26 +00:00
|
|
|
$(CXX) $(LDFLAGS) -o $@ $^
|
2018-11-07 13:50:55 +00:00
|
|
|
|
2021-08-12 10:43:25 +00:00
|
|
|
decode_ft8: decode_ft8.o fft/kiss_fftr.o fft/kiss_fft.o ft8/decode.o ft8/encode.o ft8/crc.o ft8/ldpc.o ft8/unpack.o ft8/text.o ft8/constants.o common/wave.o
|
2018-12-24 12:22:26 +00:00
|
|
|
$(CXX) $(LDFLAGS) -o $@ $^
|
2018-12-22 14:09:43 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o ft8/*.o common/*.o fft/*.o $(TARGETS)
|
2021-01-13 09:44:19 +00:00
|
|
|
install:
|
2021-12-18 06:30:26 +00:00
|
|
|
$(AR) rc libft8.a ft8/constants.o ft8/encode.o ft8/pack.o ft8/text.o common/wave.o
|
2021-01-13 09:44:19 +00:00
|
|
|
install libft8.a /usr/lib/libft8.a
|