aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2021-07-22 22:35:08 +0200
committerJan200101 <sentrycraft123@gmail.com>2021-07-22 22:35:08 +0200
commitfe2b369bcbf94eccf7c0a1af9ec8e50d93838e50 (patch)
treec5118071644071b715ad95ab7bfea996aad4be92
parent0b1b9353b680bcece43c253cb19fc9bbbc8ce030 (diff)
downloadpolecat-fe2b369bcbf94eccf7c0a1af9ec8e50d93838e50.tar.gz
polecat-fe2b369bcbf94eccf7c0a1af9ec8e50d93838e50.zip
invoke shell once to get c and lib flags
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d27e837..3a785b2 100644
--- a/Makefile
+++ b/Makefile
@@ -64,9 +64,9 @@ ifneq ($(DEBUG), 1)
else
COMMONFLAGS += -ggdb3 -Og
endif
-CFLAGS := $(COMMONFLAGS) `$(PKGCONFIG) --cflags json-c` `$(PKGCONFIG) --cflags libarchive` `$(PKGCONFIG) --cflags libcurl`
+CFLAGS := $(COMMONFLAGS) $(shell $(PKGCONFIG) --cflags json-c) $(shell $(PKGCONFIG) --cflags libarchive) $(shell $(PKGCONFIG) --cflags libcurl)
WARNFLAGS := -Wall -Wextra -pedantic -Wconversion -Wshadow -Wstrict-aliasing -Winit-self -Wcast-align -Wpointer-arith -Wmissing-declarations -Wmissing-include-dirs -Wno-unused-parameter -Wuninitialized
-LIBS := `$(PKGCONFIG) --libs json-c` `$(PKGCONFIG) --libs libarchive` `$(PKGCONFIG) --libs libcurl`
+LIBS := $(shell $(PKGCONFIG) --libs json-c) $(shell $(PKGCONFIG) --libs libarchive) $(shell $(PKGCONFIG) --libs libcurl)
BINFLAGS := $(LIBS)
INCLUDEFLAGS :=
DEFINES := -DNAME=\"${NAME}\" -DVERSION=\"${VERSION}\"