summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..c60abc3
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
+CFLAGS=-O2 -g -Wall -W `pkg-config --cflags librtlsdr`
+LIBS=`pkg-config --libs librtlsdr` -lpthread -lm
+CC=gcc
+PROGNAME=dumposcag
+
+all: dumpocsag
+
+%.o: %.c
+ $(CC) $(CFLAGS) -c $<
+
+dump1090: dumpocsag.o
+ $(CC) -g -o dumpocsag dumpocsag.o $(LIBS)
+
+clean:
+ rm -f *.o dumpocsag