2015-03-10 21:49:14 +08:00
|
|
|
CFLAGS?=-O2 -g -Wall -W $(shell pkg-config --cflags librtlsdr)
|
|
|
|
LDLIBS+=$(shell pkg-config --libs librtlsdr) -lpthread -lm
|
2015-03-04 22:16:43 +08:00
|
|
|
CC?=gcc
|
2013-01-06 02:57:09 +08:00
|
|
|
PROGNAME=dump1090
|
2013-01-05 20:52:25 +08:00
|
|
|
|
2013-01-06 02:57:09 +08:00
|
|
|
all: dump1090
|
2013-01-05 20:52:25 +08:00
|
|
|
|
2013-01-11 03:58:13 +08:00
|
|
|
%.o: %.c
|
|
|
|
$(CC) $(CFLAGS) -c $<
|
2013-01-05 20:52:25 +08:00
|
|
|
|
2013-01-11 03:58:13 +08:00
|
|
|
dump1090: dump1090.o anet.o
|
2015-03-10 21:49:14 +08:00
|
|
|
$(CC) -g -o dump1090 dump1090.o anet.o $(LDFLAGS) $(LDLIBS)
|
2013-01-05 20:52:25 +08:00
|
|
|
|
|
|
|
clean:
|
2013-01-06 02:57:09 +08:00
|
|
|
rm -f *.o dump1090
|