diff options
author | FreeArtMan <dos21h@gmail.com> | 2022-02-18 20:42:41 +0000 |
---|---|---|
committer | FreeArtMan <dos21h@gmail.com> | 2022-02-18 20:42:41 +0000 |
commit | c30c7d37c2d29e04fd76ec54139b89c760e74dfe (patch) | |
tree | a8e83e229f6d19443fc612daa583fee64e5b4dc4 | |
parent | d696ea3a6d640cd96a1ba2ac39bdc51d7f884e1d (diff) | |
download | r820t-c30c7d37c2d29e04fd76ec54139b89c760e74dfe.tar.gz r820t-c30c7d37c2d29e04fd76ec54139b89c760e74dfe.zip |
Update compilation files
-rw-r--r-- | src/make.mk | 2 | ||||
-rw-r--r-- | utils/make.mk | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/make.mk b/src/make.mk index 57e1dbf..33d9033 100644 --- a/src/make.mk +++ b/src/make.mk @@ -6,7 +6,7 @@ LDFLAGS_LIB=`pkg-config --libs libusb` -lc $(DIR_SRC)-lib-o: $(OBJ_LIB) $(DIR_SRC)-lib: $(DIR_SRC)-lib-o - gcc -shared -Wl,-soname,lib$(PROJECT).so.1 -o lib$(PROJECT).so.1 $(subst $(DIR_SRC)/,$(BUILD_DIR)$(DIR_SRC)/,$(OBJ_LIB)) $(LDFLAGS_LIB) + gcc -shared -Wl,-soname,lib$(PROJECT).so -o lib$(PROJECT).so $(subst $(DIR_SRC)/,$(BUILD_DIR)$(DIR_SRC)/,$(OBJ_LIB)) $(LDFLAGS_LIB) ar rcv lib$(PROJECT).a $(subst $(DIR_SRC)/,$(BUILD_DIR)$(DIR_SRC)/,$(OBJ_LIB)) $(DIR_SRC)/%.o: $(DIR_SRC)/%.c diff --git a/utils/make.mk b/utils/make.mk index 645ee7a..aef23d6 100644 --- a/utils/make.mk +++ b/utils/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 -L/tmp -lr820t -lm +LDFLAGS_UTILS = -pthread -lr820t -lm -L. $(DIR)-pre: $(OBJ_UTILS_PRE) @@ -12,4 +12,4 @@ $(DIR)/convenience/%.o: $(DIR)/convenience/%.c $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $(BUILD_DIR)$@ $(DIR)/%: $(DIR)/%.c - $(CC) $(CFLAGS) $(INCLUDE) $(BUILD_DIR)$(OBJ_UTILS_PRE) $< -o $(BUILD_DIR)$@ $(LDFLAGS_UTILS)
\ No newline at end of file + $(CC) $(CFLAGS) $(INCLUDE) $(BUILD_DIR)$(OBJ_UTILS_PRE) $< -o $(BUILD_DIR)$@ $(LDFLAGS_UTILS) |