2021-12-16 00:24:21 +01:00
|
|
|
all: .depends test
|
2021-12-15 22:40:03 +01:00
|
|
|
|
|
|
|
CXX=clang++
|
|
|
|
CXXFLAGS=-Wall
|
|
|
|
LDFLAGS=-lliquid
|
|
|
|
|
|
|
|
.depends: *.cpp
|
2021-12-15 23:24:42 +01:00
|
|
|
$(CXX) -M *.cpp > .depends
|
2021-12-15 22:40:03 +01:00
|
|
|
|
|
|
|
%.o : %.cpp
|
|
|
|
$(CXX) $(CFLAGS) -c $< -o $@
|
|
|
|
|
2021-12-16 00:24:21 +01:00
|
|
|
test: test.o costas-beacon-sync.o fft-beacon-finder.o
|
2021-12-28 16:13:04 +01:00
|
|
|
$(CXX) $(LDFLAGS) -o $@ $+
|
2021-12-16 00:24:21 +01:00
|
|
|
|
2021-12-15 23:24:42 +01:00
|
|
|
clean:
|
|
|
|
rm *.o
|
|
|
|
|
2021-12-15 23:43:41 +01:00
|
|
|
format:
|
|
|
|
clang-format -i *.h *.cpp
|
|
|
|
|
|
|
|
|
2021-12-15 22:40:03 +01:00
|
|
|
include .depends
|
2021-12-15 23:43:41 +01:00
|
|
|
|
|
|
|
.PHONY: clean fmt
|