aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDmitrij D. Czarkoff <czarkoff@gmail.com>2015-12-25 15:27:00 +0100
committerDmitrij D. Czarkoff <czarkoff@gmail.com>2015-12-25 15:27:00 +0100
commit6de6b358e81251bcf9c978b04452d2390d46a388 (patch)
tree9c4249da2b6e021fdb7f51232b71f3c8647a16a8 /Makefile
parent57d83b7b376a71726c148d9b82a43285c70fe0b8 (diff)
downloadimv-6de6b358e81251bcf9c978b04452d2390d46a388.tar.gz
Use "shell" macro in CFLAGS
When CFLAGS contain "`cmd`" construct, the "cmd" command is executed every time when make issues shell command with expanded CFLAGS. Using "$(shell cmd)" instead forces make to expand output of "cmd" into CFLAGS.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a0614fe..f002847 100644
--- a/Makefile
+++ b/Makefile
@@ -3,8 +3,8 @@
PREFIX ?= /usr
CFLAGS ?= -W -Wall -Wpedantic
-CFLAGS += -std=gnu11 `sdl2-config --cflags`
-LDFLAGS += `sdl2-config --libs` -lfreeimage -lSDL2_ttf -lfontconfig -lpthread
+CFLAGS += -std=gnu11 $(shell sdl2-config --cflags)
+LDFLAGS += $(shell sdl2-config --libs) -lfreeimage -lSDL2_ttf -lfontconfig -lpthread
TARGET = imv
BUILDDIR = build