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
|
|
|
|
PROGNAME=mode1090
|
|
|
|
|
|
|
|
all: mode1090
|
|
|
|
|
|
|
|
mode1090.o: mode1090.c
|
2013-01-06 02:55:15 +08:00
|
|
|
$(CC) $(CFLAGS) mode1090.c -c -o mode1090.o
|
2013-01-05 20:52:25 +08:00
|
|
|
|
|
|
|
mode1090: mode1090.o
|
2013-01-06 02:55:15 +08:00
|
|
|
$(CC) -g -o mode1090 mode1090.o $(LIBS)
|
2013-01-05 20:52:25 +08:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o mode1090
|