From e82d475b7bbb2e3ba0388cad069eedf46f4ae363 Mon Sep 17 00:00:00 2001 From: ZoRo Date: Sat, 19 Feb 2022 21:51:49 +0000 Subject: Initial --- Makefile | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..365a902 --- /dev/null +++ b/Makefile @@ -0,0 +1,34 @@ +CC=gcc +CFLAGS= +INCLUDE=-I./include +INCLUDE+=-I../librusb/src +LDFLAGS= +LDFLAGS+=-Lrusb + +SOURCES= +SRC_LIB= +OBJ_LIB= +SRC_UTILS= +OBJ_UTILS= + +BUILD_DIR=build/ + +include src/make.mk + + +OBJECTS=$(SOURCES:.c=.o) + +utils: $(DIR)-pre $(OBJ_UTILS) + +all: $(OBJECTS) + +make: $(OBJECTS) + echo $(OBJECTS) + echo $(SRC_LIB) + + +%.o: %.c + $(CC) $(CFLAGS) $(INCLUDE) -Wl,-rpath=. -c $< -o $(BUILD_DIR)$@ + +clean: + rm -rf build/src/rtl_* -- cgit v1.2.3