summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
new file mode 100644
index 0000000..0f08378
--- /dev/null
+++ b/src/Makefile
@@ -0,0 +1,10 @@
+LDFLAGS=`pkg-config --libs libusb-1.0`
+CFLAGS=-Wall -O2 `pkg-config --cflags libusb-1.0`
+
+all: rtl-sdr
+
+rtl-sdr: main.o tuner_e4000.o tuner_fc0013.c
+ $(CC) -o $@ $^ $(LDFLAGS)
+
+clean:
+ @rm -f rtl.sdr *.o