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