summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFreeArtMan <=>2015-09-22 20:16:47 +0100
committerFreeArtMan <=>2015-09-22 20:16:47 +0100
commitfa74c1448e236995a34d767a6e76c3055698fb60 (patch)
tree0ec6553d3c73112e0ea458c22c614ed10f5b2246 /Makefile
parent8adda9187304d8f06f907bfebc93e47207fa4796 (diff)
downloadradiola-fa74c1448e236995a34d767a6e76c3055698fb60.tar.gz
radiola-fa74c1448e236995a34d767a6e76c3055698fb60.zip
Wrapped rtlsdr to hw
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 17 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7f7d3b4..0a6c6e0 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,21 @@ CC=gcc
CFLAGS=
LDFLAGS=
+BUILD_DIR=build/
-make:
- $(CC) radiola.c -o $(PROJECT)
+SOURCES=
+OBJECTS=
+OBJECTS_FINAL=
+
+
+
+include hw/make.mk
+
+make: $(OBJECTS)
+ $(CC) $(OBJECTS_FINAL) $(PROJECT).c -o $(PROJECT) $(LDFLAGS)
+
+%.o: %.c
+ $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $(BUILD_DIR)$@
+
+clean:
+ rm -f $(PROJECT)