forked from mutability/dump978
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
33 lines (23 loc) · 1.13 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
VERSION ?= $(shell git rev-parse --short HEAD)
ifneq ($(VERSION),)
CPPFLAGS+=-DVERSION=\"$(VERSION)\"
endif
CC ?= gcc
CFLAGS += -Wall -Werror -O2 -g -Ilibs
CXX ?= g++
CXXFLAGS += -std=c++11 -Wall -Wno-psabi -Werror -O2 -g -Ilibs
LIBS=-lboost_system -lboost_program_options -lboost_regex -lboost_filesystem -lpthread
LIBS_SDR=-lSoapySDR
all: dump978-fa skyaware978
dump978-fa: dump978_main.o socket_output.o message_dispatch.o fec.o libs/fec/init_rs_char.o libs/fec/decode_rs_char.o sample_source.o soapy_source.o convert.o demodulator.o uat_message.o stratux_serial.o
$(CXX) $(CXXFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS) $(LIBS_SDR)
faup978: faup978_main.o socket_input.o uat_message.o track.o faup978_reporter.o
$(CXX) $(CXXFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
skyaware978: skyaware978_main.o socket_input.o uat_message.o track.o skyaware_writer.o
$(CXX) $(CXXFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
fec_tests: fec_tests.o libs/fec/init_rs_char.o libs/fec/decode_rs_char.o libs/fec/encode_rs_char.o
$(CXX) $(CXXFLAGS) $(LDFLAGS) $^ -o $@
format:
clang-format -style=file -i *.cc *.h
clean:
rm -f *.o libs/fec/*.o dump978-fa faup978 skyaware978 fec_tests