created buildChatClient rule

This commit is contained in:
Václav Šmejkal 2023-02-09 09:13:57 +01:00
parent 6348fab4d9
commit fc74bac727
Signed by: ENGO150
GPG Key ID: F6D6DF86242C5A59

View File

@ -29,11 +29,14 @@ OUTPUT_APP_CORE=$(OUTPUT)/$(PROJECT_NAME)-core-app
OUTPUT_TEST_LOGGER=$(OUTPUT)/$(PROJECT_NAME)-logger-test OUTPUT_TEST_LOGGER=$(OUTPUT)/$(PROJECT_NAME)-logger-test
OUTPUT_APP_LOGGER=$(OUTPUT)/$(PROJECT_NAME)-logger-app OUTPUT_APP_LOGGER=$(OUTPUT)/$(PROJECT_NAME)-logger-app
OUTPUT_CHAT_CLIENT=$(OUTPUT)/$(PROJECT_NAME)-chat-client
# Source Code # Source Code
SRC_CORE=./src/core/lib/*.c ./src/core/lib/utils/*.c SRC_CORE=./src/core/lib/*.c ./src/core/lib/utils/*.c
SRC_CORE_APP=./src/core/app/*.c SRC_CORE_APP=./src/core/app/*.c
SRC_LOGGER=./src/logger/lib/*.c SRC_LOGGER=./src/logger/lib/*.c
SRC_LOGGER_APP=./src/logger/app/*.c SRC_LOGGER_APP=./src/logger/app/*.c
SRC_CHAT_CLIENT=./src/chat/client/*.c
INCLUDE_DIR=./include INCLUDE_DIR=./include
INCLUDE_CORE=$(INCLUDE_DIR)/*.h INCLUDE_CORE=$(INCLUDE_DIR)/*.h
@ -77,6 +80,9 @@ buildLibLogger:
$(CC) $(CFLAGS) -fPIC -c $(SRC_LOGGER) $(CC) $(CFLAGS) -fPIC -c $(SRC_LOGGER)
$(CC) $(CFLAGS) -shared -o lib$(PROJECT_NAME)-logger.so *.o $(LIBS_LOGGER) $(CC) $(CFLAGS) -shared -o lib$(PROJECT_NAME)-logger.so *.o $(LIBS_LOGGER)
buildChatClient:
$(CC) $(CFLAGS) $(SRC_CHAT_CLIENT) -o $(OUTPUT_CHAT_CLIENT) $(LIB_CORE)
installLibCore: buildLibCore installLibCore: buildLibCore
install -m 755 ./lib$(PROJECT_NAME).so $(INSTALL_LIBRARY)/lib$(PROJECT_NAME).so install -m 755 ./lib$(PROJECT_NAME).so $(INSTALL_LIBRARY)/lib$(PROJECT_NAME).so