diff options
author | dianshi <dos21h@gmail.com> | 2023-01-06 19:54:37 +0000 |
---|---|---|
committer | dianshi <dos21h@gmail.com> | 2023-01-06 19:54:37 +0000 |
commit | 8bb49fdcdafc4aa955257c7f2cd78e13183b67c1 (patch) | |
tree | f3a04911f782b832d82cbabb870ba4cd22b9b5af | |
parent | e82d475b7bbb2e3ba0388cad069eedf46f4ae363 (diff) | |
download | r820t-utils-8bb49fdcdafc4aa955257c7f2cd78e13183b67c1.tar.gz r820t-utils-8bb49fdcdafc4aa955257c7f2cd78e13183b67c1.zip |
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | build/src/convenience/.empty | 0 | ||||
-rw-r--r-- | src/make.mk | 4 |
3 files changed, 4 insertions, 3 deletions
@@ -1,6 +1,6 @@ CC=gcc CFLAGS= -INCLUDE=-I./include +#INCLUDE=-I./include INCLUDE+=-I../librusb/src LDFLAGS= LDFLAGS+=-Lrusb @@ -32,3 +32,4 @@ make: $(OBJECTS) clean: rm -rf build/src/rtl_* + rm -rf build/src/convenience/*.o diff --git a/build/src/convenience/.empty b/build/src/convenience/.empty new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/build/src/convenience/.empty diff --git a/src/make.mk b/src/make.mk index 0d5e4f8..8737aaf 100644 --- a/src/make.mk +++ b/src/make.mk @@ -4,7 +4,7 @@ SRC_UTILS += $(wildcard $(DIR)/*.c) SRC_UTILS_PRE += $(wildcard $(DIR)/convenience/*.c) OBJ_UTILS += $(SRC_UTILS:.c=) OBJ_UTILS_PRE += $(SRC_UTILS_PRE:.c=.o) -LDFLAGS_UTILS = -pthread -lr820t -lrusb -lm -L. +LDFLAGS_UTILS = -pthread -lr820t -lm -L. $(DIR)-pre: $(OBJ_UTILS_PRE) $(OBJ_UTILS) @@ -12,4 +12,4 @@ $(DIR)/convenience/%.o: $(DIR)/convenience/%.c $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $(BUILD_DIR)$@ $(DIR)/%: $(DIR)/%.c - $(CC) $(CFLAGS) $(INCLUDE) -Wl,-rpath=. $(BUILD_DIR)$(OBJ_UTILS_PRE) $< -o $(BUILD_DIR)$@ $(LDFLAGS_UTILS) + $(CC) $< -o $(BUILD_DIR)$@ $(CFLAGS) $(INCLUDE) $(BUILD_DIR)$(OBJ_UTILS_PRE) -Wl,-rpath=. $(LDFLAGS_UTILS) |