2013-01-05 19:55:15 +01:00
|
|
|
CFLAGS=-O2 -g -Wall -W `pkg-config --cflags librtlsdr`
|
|
|
|
LIBS=`pkg-config --libs librtlsdr` -lpthread -lm
|
2013-01-05 13:52:25 +01:00
|
|
|
CC=gcc
|
2013-01-05 19:57:09 +01:00
|
|
|
PROGNAME=dump1090
|
2013-01-05 13:52:25 +01:00
|
|
|
|
2013-01-05 19:57:09 +01:00
|
|
|
all: dump1090
|
2013-01-05 13:52:25 +01:00
|
|
|
|
2013-01-05 19:57:09 +01:00
|
|
|
dump1090.o: dump1090.c
|
|
|
|
$(CC) $(CFLAGS) dump1090.c -c -o dump1090.o
|
2013-01-05 13:52:25 +01:00
|
|
|
|
2013-01-05 19:57:09 +01:00
|
|
|
dump1090: dump1090.o
|
|
|
|
$(CC) -g -o dump1090 dump1090.o $(LIBS)
|
2013-01-05 13:52:25 +01:00
|
|
|
|
|
|
|
clean:
|
2013-01-05 19:57:09 +01:00
|
|
|
rm -f *.o dump1090
|