-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (25 loc) · 1.02 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
# See README
CC=gcc-mp-5
CFLAGS= -Ofast -msse2 -funroll-loops -pthread -DWITH_PORTAUDIO -I/opt/local/include
#CFLAGS= -Ofast -mfpu=vfpv4 -funroll-loops -pthread -D WITH_RTL -I.
#CFLAGS= -Ofast -mfpu=neon-vfpv4 -funroll-loops -pthread -D WITH_RTL -I. `pkg-config --cflags libairspy`
LDLIBS= -lm -pthread -lportaudio
#LDLIBS= -lm -pthread `pkg-config --libs libairspy` -lusb-1.0
LDFLAGS=-L/opt/local/lib
acarsdec: acarsdec.o acars.o msk.o rtl.o air.o output.o alsa.o portaudio.o explain.o
$(CC) acarsdec.o acars.o msk.o rtl.o air.o output.o alsa.o portaudio.o explain.o -o $@ $(LDFLAGS) $(LDLIBS)
acarsserv: acarsserv.o dbmgn.o
$(CC) -Ofast acarsserv.o dbmgn.o -o $@ -lsqlite3
pa_devs: pa_devs.c
$(CC) -o $@ pa_devs.c $(LDFLAGS) $(LDLIBS)
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
alsa.o: alsa.c acarsdec.h
portaudio.o: portaudio.c acarsdec.h
clean:
@rm *.o acarsdec acarsserv