Added GCC options for removing unused functions/dead code. I don't have to split out all the functions from their files!

This commit is contained in:
skarg
2007-10-15 12:26:47 +00:00
parent 947756fa0d
commit cbefb47a05
4 changed files with 17 additions and 9 deletions
+2 -2
View File
@@ -24,8 +24,8 @@ BACNET_LIB_TARGET = $(BACNET_LIB_DIR)/lib$(BACNET_LIB_NAME).a
# Compiler Setup
INCLUDES = -I$(BACNET_INCLUDE) -I$(BACNET_PORT)
LIBRARIES=-lc,-lgcc,-lm,-L=$(BACNET_LIB_DIR),-l$(BACNET_LIB_NAME)
CFLAGS = -Wall -g $(INCLUDES) $(DEFINES)
LFLAGS = -Wl,-Map=$(TARGET).map,$(LIBRARIES)
CFLAGS = -Wall -g $(INCLUDES) $(DEFINES) -fdata-sections -ffunction-sections
LFLAGS = -Wl,-Map=$(TARGET).map,$(LIBRARIES),--gc-sections,-static
SRCS = main.c