From c30c7d37c2d29e04fd76ec54139b89c760e74dfe Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Fri, 18 Feb 2022 20:42:41 +0000 Subject: Update compilation files --- src/make.mk | 2 +- 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) -- cgit v1.2.3