From a40206f6f9b04d22ec51dd069e99a951e7705eaf Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Fri, 18 Nov 2022 16:10:20 +0100 Subject: [PATCH] updated SRC path in Makefile --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 6891e42..83a2989 100644 --- a/Makefile +++ b/Makefile @@ -3,8 +3,8 @@ CC=cc CFLAGS=-Wall -Wextra -Werror -Wcomment -Wformat -Wformat-security -Wmain -Wnonnull -Wunused -std=c11 # Source Code -SRC=./src/lib/*.c -SRC_APP=./src/app/*.c +SRC_CORE=./src/core/lib/*.c +SRC_CORE_APP=./src/core/app/*.c INCLUDE_DIR=./include INCLUDE=$(INCLUDE_DIR)/*.h TEST=./src/lib/test/main.c @@ -34,7 +34,7 @@ installHeader: ln -sf $(INSTALL_INCLUDE)/$(PROJECT_NAME)/$(PROJECT_NAME).h $(INSTALL_INCLUDE)/$(PROJECT_NAME).h buildLib: - $(CC) $(CFLAGS) -fPIC -c $(SRC) + $(CC) $(CFLAGS) -fPIC -c $(SRC_CORE) $(CC) $(CFLAGS) -shared -o lib$(PROJECT_NAME).so *.o $(LIBS) installLib: buildLib @@ -47,7 +47,7 @@ test: $(CC) $(CFLAGS) -g $(TEST) -o $(OUTPUT_TEST) -l$(PROJECT_NAME) app: - $(CC) $(CFLAGS) $(SRC_APP) -o $(OUTPUT_APP) -l$(PROJECT_NAME) + $(CC) $(CFLAGS) $(SRC_CORE_APP) -o $(OUTPUT_APP) -l$(PROJECT_NAME) clean: rm -rf $(OUTPUT)/* *.o *.so