2013-01-06 02:55:15 +08:00
|
|
|
CFLAGS=-O2 -g -Wall -W `pkg-config --cflags librtlsdr`
|
|
|
|
LIBS=`pkg-config --libs librtlsdr` -lpthread -lm
|
2013-01-05 20:52:25 +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
|
|
|
|
$(CC) -g -o dump1090 dump1090.o anet.o $(LIBS)
|
2013-01-05 20:52:25 +08:00
|
|
|
|
|
|
|
clean:
|
2013-01-06 02:57:09 +08:00
|
|
|
rm -f *.o dump1090
|