aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 9e16cfd..58dce34 100644
--- a/Makefile
+++ b/Makefile
@@ -20,8 +20,6 @@ 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) $(CPPFLAGS) $(shell pkg-config --cflags cmocka)
-TLIBS := $(LIBS) $(shell pkg-config --libs cmocka)
VERSION != git describe --dirty --always --tags 2> /dev/null || echo v3.0.0
@@ -43,6 +41,9 @@ ifeq ($(BACKEND_LIBRSVG),yes)
LIBS += $(shell pkg-config --libs librsvg-2.0)
endif
+TFLAGS ?= -g $(CFLAGS) $(CPPFLAGS) $(shell pkg-config --cflags cmocka)
+TLIBS := $(LIBS) $(shell pkg-config --libs cmocka)
+
imv: $(TARGET)
$(TARGET): $(OBJECTS)