created LIBS_CHAT variable
This commit is contained in:
parent
a68a11d371
commit
d124fe27c2
6
Makefile
6
Makefile
@ -52,6 +52,8 @@ TEST_LOGGER=./src/logger/lib/test/main.c
|
|||||||
LIBS_LOGGER=$(LIB_CORE)
|
LIBS_LOGGER=$(LIB_CORE)
|
||||||
LIB_LOGGER=-l$(PROJECT_NAME)-logger
|
LIB_LOGGER=-l$(PROJECT_NAME)-logger
|
||||||
|
|
||||||
|
LIBS_CHAT=$(LIB_CORE) -lpthread
|
||||||
|
|
||||||
# Install Files
|
# Install Files
|
||||||
INSTALL_INCLUDE=/usr/include
|
INSTALL_INCLUDE=/usr/include
|
||||||
INSTALL_LIBRARY=/usr/lib
|
INSTALL_LIBRARY=/usr/lib
|
||||||
@ -83,10 +85,10 @@ buildLibLogger:
|
|||||||
$(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:
|
buildChatClient:
|
||||||
$(CC) $(CFLAGS) $(SRC_CHAT_CLIENT) -o $(OUTPUT_CHAT_CLIENT) $(LIB_CORE)
|
$(CC) $(CFLAGS) $(SRC_CHAT_CLIENT) -o $(OUTPUT_CHAT_CLIENT) $(LIBS_CHAT)
|
||||||
|
|
||||||
buildChatServer:
|
buildChatServer:
|
||||||
$(CC) $(CFLAGS) $(SRC_CHAT_SERVER) -o $(OUTPUT_CHAT_SERVER) $(LIB_CORE)
|
$(CC) $(CFLAGS) $(SRC_CHAT_SERVER) -o $(OUTPUT_CHAT_SERVER) $(LIBS_CHAT)
|
||||||
|
|
||||||
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user