forked from TLeconte/acarsdec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
28 lines (22 loc) · 881 Bytes
/
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
# See README for compiler options
CFLAGS= -Ofast -pthread -D WITH_RTL -D WITH_ALSA -D WITH_SNDFILE
LDLIBS= -lm -pthread -lrtlsdr -lasound -lsndfile
# Airspy conf
# CFLAGS= -Ofast -pthread -D WITH_AIR -I. `pkg-config --cflags libairspy`
# LDLIBS= -lm -pthread `pkg-config --libs libairspy` -lusb-1.0
# RTL only conf
#CFLAGS= -Ofast -pthread -D WITH_RTL -I.
#LDLIBS= -lm -pthread -lrtlsdr
acarsdec: acarsdec.o acars.o msk.o rtl.o air.o output.o alsa.o soundfile.o
$(CC) acarsdec.o acars.o msk.o rtl.o air.o output.o alsa.o soundfile.o -o $@ $(LDLIBS)
acarsserv: acarsserv.o dbmgn.o
$(CC) -Ofast acarsserv.o dbmgn.o -o $@ -lsqlite3
acarsdec.o: acarsdec.c acarsdec.h
acars.o: acars.c acarsdec.h syndrom.h
msk.o: msk.c acarsdec.h
output.o: output.c acarsdec.h
rtl.o: rtl.c acarsdec.h
acarsserv.o: acarsserv.h
dbmgm.o: acarsserv.h
clean:
@\rm -f *.o acarsdec acarsserv