From eecf3e90c638af886226ba652132d679db8a43fd Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Fri, 20 Jun 2014 19:19:06 +0300 Subject: [PATCH] unix: Group CFLAGS related stuff together. --- unix/Makefile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/unix/Makefile b/unix/Makefile index 2f30f92c0b..80495315fb 100644 --- a/unix/Makefile +++ b/unix/Makefile @@ -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 \