summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFreeArtMan <=>2015-09-19 14:36:47 +0100
committerFreeArtMan <=>2015-09-19 14:36:47 +0100
commitf8b84cf48099fb020b1174c8cc6195dde42308c3 (patch)
tree56a2ecbb7456c047d404c2b88c57e3d3be057ec7 /Makefile
downloadr820t-f8b84cf48099fb020b1174c8cc6195dde42308c3.tar.gz
r820t-f8b84cf48099fb020b1174c8cc6195dde42308c3.zip
Initial
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile41
1 files changed, 41 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..2388da1
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,41 @@
+PROJECT=r820t
+CC=gcc
+CFLAGS=
+INCLUDE=-I./include
+INCLUDE+=`pkg-config --cflags libusb`
+LDFLAGS=
+LDFLAGS+=`pkg-config --libs libusb`
+
+SOURCES=
+SRC_LIB=
+OBJ_LIB=
+SRC_UTILS=
+OBJ_UTILS=
+
+BUILD_DIR=build/
+
+include src/make.mk
+include utils/make.mk
+
+OBJECTS=$(SOURCES:.c=.o)
+
+lib: src-lib
+
+utils: $(DIR)-pre $(OBJ_UTILS)
+
+all: $(OBJECTS)
+
+make: $(OBJECTS)
+ echo $(OBJECTS)
+
+
+%.o: %.c
+ $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $(BUILD_DIR)$@
+
+clean:
+ rm -f *.a
+ rm -f *.so
+ rm -f *.so.1
+ rm -f build/src/*.o
+ rm -f build/utils/rtl_*
+ rm -f build/utils/convenience/*.o