diff options
author | Dmitrij D. Czarkoff <czarkoff@gmail.com> | 2015-12-25 15:27:00 +0100 |
---|---|---|
committer | Dmitrij D. Czarkoff <czarkoff@gmail.com> | 2015-12-25 15:27:00 +0100 |
commit | 6de6b358e81251bcf9c978b04452d2390d46a388 (patch) | |
tree | 9c4249da2b6e021fdb7f51232b71f3c8647a16a8 /Makefile | |
parent | 57d83b7b376a71726c148d9b82a43285c70fe0b8 (diff) | |
download | imv-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-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |