diff options
| author | J08nY | 2017-07-20 00:10:19 +0200 |
|---|---|---|
| committer | J08nY | 2017-07-20 00:10:19 +0200 |
| commit | 44533df2e14370f3206098b161b98ee113c69562 (patch) | |
| tree | 608143875750259ed5d0f94353dbcf6183f21d0f /src/Makefile | |
| parent | c209bd1d11fa8813fb44270bea328a3bc33c0a58 (diff) | |
| download | ecgen-44533df2e14370f3206098b161b98ee113c69562.tar.gz ecgen-44533df2e14370f3206098b161b98ee113c69562.tar.zst ecgen-44533df2e14370f3206098b161b98ee113c69562.zip | |
Fix some Makefile variables.
Diffstat (limited to 'src/Makefile')
| -rw-r--r-- | src/Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Makefile b/src/Makefile index 8d62612..34be0ac 100644 --- a/src/Makefile +++ b/src/Makefile @@ -9,13 +9,13 @@ CC ?= gcc CFLAGS = -Wall DEBUG ?= 0 +TEST ?= 0 ifeq ($(DEBUG), 1) CFLAGS += -DDEBUG -g -Werror -pedantic +else ifeq ($(TEST), 1) + CFLAGS += --coverage -g -O0 else - CFLAGS += -DNDEBUG -O3 -endif -ifeq ($(TEST), 1) - CFLAGS += --coverage + CFLAGS += -DNDEBUG -O3 endif LDFLAGS = -L../lib/parson -L../lib/sha1 -L../lib/pari |
