diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2021-07-22 22:35:08 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2021-07-22 22:35:08 +0200 |
commit | fe2b369bcbf94eccf7c0a1af9ec8e50d93838e50 (patch) | |
tree | c5118071644071b715ad95ab7bfea996aad4be92 | |
parent | 0b1b9353b680bcece43c253cb19fc9bbbc8ce030 (diff) | |
download | polecat-fe2b369bcbf94eccf7c0a1af9ec8e50d93838e50.tar.gz polecat-fe2b369bcbf94eccf7c0a1af9ec8e50d93838e50.zip |
invoke shell once to get c and lib flags
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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}\" |