diff options
Diffstat (limited to 'lib/Makefile')
| -rw-r--r-- | lib/Makefile | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/Makefile b/lib/Makefile index ff4ddd5..10a06a1 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -1,21 +1,20 @@ CC ?= gcc -CFLAGS = -Wall DEBUG ?= 0 TEST ?= 0 FAST ?= 0 ifeq ($(DEBUG), 1) - CFLAGS += -DDEBUG -g -Og -Werror -pedantic + ECGEN_CFLAGS = -DDEBUG -g -Og -Werror -pedantic else ifeq ($(TEST), 1) - CFLAGS += -DNDEBUG --coverage -g -O0 + ECGEN_CFLAGS = -DNDEBUG --coverage -g -O0 else ifeq ($(FAST), 1) ifeq ($(CC), gcc) - CFLAGS += -DNDEBUG -O3 -march=native -pipe + ECGEN_CFLAGS = -DNDEBUG -O3 -march=native -pipe else - CFLAGS += -DNDEBUG -O3 + ECGEN_CFLAGS = -DNDEBUG -O3 endif else - CFLAGS += -DNDEBUG -O2 + ECGEN_CFLAGS = -DNDEBUG -O2 endif export @@ -25,4 +24,4 @@ all: clean: $(MAKE) -C parson clean - $(MAKE) -C sha1 clean
\ No newline at end of file + $(MAKE) -C sha1 clean |
