updated SRC path in Makefile
This commit is contained in:
parent
1bfe7a4108
commit
a40206f6f9
8
Makefile
8
Makefile
@ -3,8 +3,8 @@ CC=cc
|
|||||||
CFLAGS=-Wall -Wextra -Werror -Wcomment -Wformat -Wformat-security -Wmain -Wnonnull -Wunused -std=c11
|
CFLAGS=-Wall -Wextra -Werror -Wcomment -Wformat -Wformat-security -Wmain -Wnonnull -Wunused -std=c11
|
||||||
|
|
||||||
# Source Code
|
# Source Code
|
||||||
SRC=./src/lib/*.c
|
SRC_CORE=./src/core/lib/*.c
|
||||||
SRC_APP=./src/app/*.c
|
SRC_CORE_APP=./src/core/app/*.c
|
||||||
INCLUDE_DIR=./include
|
INCLUDE_DIR=./include
|
||||||
INCLUDE=$(INCLUDE_DIR)/*.h
|
INCLUDE=$(INCLUDE_DIR)/*.h
|
||||||
TEST=./src/lib/test/main.c
|
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
|
ln -sf $(INSTALL_INCLUDE)/$(PROJECT_NAME)/$(PROJECT_NAME).h $(INSTALL_INCLUDE)/$(PROJECT_NAME).h
|
||||||
|
|
||||||
buildLib:
|
buildLib:
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(SRC)
|
$(CC) $(CFLAGS) -fPIC -c $(SRC_CORE)
|
||||||
$(CC) $(CFLAGS) -shared -o lib$(PROJECT_NAME).so *.o $(LIBS)
|
$(CC) $(CFLAGS) -shared -o lib$(PROJECT_NAME).so *.o $(LIBS)
|
||||||
|
|
||||||
installLib: buildLib
|
installLib: buildLib
|
||||||
@ -47,7 +47,7 @@ test:
|
|||||||
$(CC) $(CFLAGS) -g $(TEST) -o $(OUTPUT_TEST) -l$(PROJECT_NAME)
|
$(CC) $(CFLAGS) -g $(TEST) -o $(OUTPUT_TEST) -l$(PROJECT_NAME)
|
||||||
|
|
||||||
app:
|
app:
|
||||||
$(CC) $(CFLAGS) $(SRC_APP) -o $(OUTPUT_APP) -l$(PROJECT_NAME)
|
$(CC) $(CFLAGS) $(SRC_CORE_APP) -o $(OUTPUT_APP) -l$(PROJECT_NAME)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(OUTPUT)/* *.o *.so
|
rm -rf $(OUTPUT)/* *.o *.so
|
||||||
|
Loading…
x
Reference in New Issue
Block a user