added debug flag to CFLAGS
This commit is contained in:
parent
5fd017c6fb
commit
d01dc9dc47
6
Makefile
6
Makefile
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
# Compiler Settings
|
# Compiler Settings
|
||||||
CC=cc
|
CC=cc
|
||||||
CFLAGS=-Wall -Wextra -Werror -Wcomment -Wformat -Wformat-security -Wmain -Wnonnull -Wunused -std=gnu11 -O2
|
CFLAGS=-Wall -Wextra -Werror -Wcomment -Wformat -Wformat-security -Wmain -Wnonnull -Wunused -std=gnu11 -O2 -g # Remove the '-g' flag if you want the smallest possible lib size
|
||||||
|
|
||||||
# Output Files
|
# Output Files
|
||||||
PROJECT_NAME=why2
|
PROJECT_NAME=why2
|
||||||
@ -85,10 +85,10 @@ installLibLogger: buildLibLogger
|
|||||||
install -m 755 ./lib$(PROJECT_NAME)-logger.so $(INSTALL_LIBRARY)/lib$(PROJECT_NAME)-logger.so
|
install -m 755 ./lib$(PROJECT_NAME)-logger.so $(INSTALL_LIBRARY)/lib$(PROJECT_NAME)-logger.so
|
||||||
|
|
||||||
testCore:
|
testCore:
|
||||||
$(CC) $(CFLAGS) -g $(TEST_CORE) -o $(OUTPUT_TEST_CORE) $(LIB_CORE)
|
$(CC) $(CFLAGS) $(TEST_CORE) -o $(OUTPUT_TEST_CORE) $(LIB_CORE)
|
||||||
|
|
||||||
testLogger:
|
testLogger:
|
||||||
$(CC) $(CFLAGS) -g $(TEST_LOGGER) -o $(OUTPUT_TEST_LOGGER) $(LIB_CORE) $(LIB_LOGGER)
|
$(CC) $(CFLAGS) $(TEST_LOGGER) -o $(OUTPUT_TEST_LOGGER) $(LIB_CORE) $(LIB_LOGGER)
|
||||||
|
|
||||||
app:
|
app:
|
||||||
$(CC) $(CFLAGS) $(SRC_CORE_APP) -o $(OUTPUT_APP) $(LIB_CORE)
|
$(CC) $(CFLAGS) $(SRC_CORE_APP) -o $(OUTPUT_APP) $(LIB_CORE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user