From f8b84cf48099fb020b1174c8cc6195dde42308c3 Mon Sep 17 00:00:00 2001 From: FreeArtMan <=> Date: Sat, 19 Sep 2015 14:36:47 +0100 Subject: Initial --- Makefile | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3