summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorFreeArtMan <=>2015-09-22 20:16:47 +0100
committerFreeArtMan <=>2015-09-22 20:16:47 +0100
commitfa74c1448e236995a34d767a6e76c3055698fb60 (patch)
tree0ec6553d3c73112e0ea458c22c614ed10f5b2246 /test
parent8adda9187304d8f06f907bfebc93e47207fa4796 (diff)
downloadradiola-fa74c1448e236995a34d767a6e76c3055698fb60.tar.gz
radiola-fa74c1448e236995a34d767a6e76c3055698fb60.zip
Wrapped rtlsdr to hw
Diffstat (limited to 'test')
-rw-r--r--test/Makefile19
1 files changed, 12 insertions, 7 deletions
diff --git a/test/Makefile b/test/Makefile
index 8e36d37..5ee5a91 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -1,15 +1,20 @@
CC=gcc
-CFLAGS=-I../../r820t/include
-LDFLAGS= `pkg-config --libs libusb` -L../../../r820t -lr820t -Wl,-rpath=../../../r820t
-
-SOURCE += $(wildcard *.c)
+CFLAGS=
+#LDFLAGS= `pkg-config --libs libusb` -L../../../r820t -lr820t -Wl,-rpath=../../../r820t
+LDFLAGS=`pkg-config --libs libusb` -lrtlsdr
+SOURCE = $(wildcard *.c)
+OBJECTS =
BIN = $(SOURCE:.c=)
-make: $(BIN)
- @echo $<
%: %.c
- $(CC) $(LDFLAGS) $(CFLAGS) $< -o $@
+ $(CC) $(LDFLAGS) $(CFLAGS) $< -o $@
+
+%.o: %.c
+ $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $(BUILD_DIR)$@
+
+make: $(BIN)
+
clean:
rm -f $(BIN) \ No newline at end of file