unix: Group CFLAGS related stuff together.

This commit is contained in:
Paul Sokolovsky 2014-06-20 19:19:06 +03:00
parent 2099b6897f
commit eecf3e90c6
1 changed files with 8 additions and 8 deletions

View File

@ -18,6 +18,14 @@ INC += -I$(BUILD)
CWARN = -Wall -Werror
CFLAGS = $(INC) $(CWARN) -ansi -std=gnu99 -DUNIX $(CFLAGS_MOD) $(COPT)
# Debugging/Optimization
ifdef DEBUG
CFLAGS += -g
COPT = -O0
else
COPT = -Os #-DNDEBUG
endif
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
LDFLAGS = $(LDFLAGS_MOD) -lm -Wl,-map,$@.map,-order_file,$(BUILD)/order.def
@ -57,14 +65,6 @@ SRC_MOD += modffi.c
endif
# Debugging/Optimization
ifdef DEBUG
CFLAGS += -g
COPT = -O0
else
COPT = -Os #-DNDEBUG
endif
# source files
SRC_C = \
main.c \