diff options
author | Dmitrij D. Czarkoff <czarkoff@gmail.com> | 2016-02-21 15:07:13 +0100 |
---|---|---|
committer | Dmitrij D. Czarkoff <czarkoff@gmail.com> | 2016-02-21 15:07:13 +0100 |
commit | 1efd760b8d7593f05d700f122fe8c3f61c370bde (patch) | |
tree | f31b3d04c1bfb5a82da4e7e2169fb0331b2e84d8 /Makefile | |
parent | bc90a0adcc5b22d2bf0158333eb6dfb34c402d48 (diff) | |
download | imv-1efd760b8d7593f05d700f122fe8c3f61c370bde.tar.gz |
Force "-g" flag for tests
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -19,6 +19,7 @@ TARGET := $(BUILDDIR)/imv SOURCES := $(wildcard src/*.c) OBJECTS := $(patsubst src/%.c,$(BUILDDIR)/%.o,$(SOURCES)) TESTS := $(patsubst test/%.c,$(BUILDDIR)/test_%,$(wildcard test/*.c)) +TFLAGS ?= -g ${CFLAGS} VERSION = "v2.0.0" @@ -44,7 +45,7 @@ $(BUILDDIR)/%.o: src/%.c $(BUILDDIR)/test_%: test/%.c src/%.c @echo "BUILDING $@" - $(MUTE)$(CC) -o $@ -Isrc -W -Wall $(CFLAGS) $(LDFLAGS) -std=gnu11 -lcmocka $^ + $(MUTE)$(CC) -o $@ -Isrc -g $(TFLAGS) $(LDFLAGS) -std=gnu11 -lcmocka $^ check: $(BUILDDIR) $(TESTS) @echo "RUNNING TESTS" |