cake
/
p7utils
Archived
1
0
Fork 0

The very essence of oopsie - corrected cross-platform thingies.

This commit is contained in:
Thomas Touhey 2017-01-11 15:51:32 +01:00
parent 504503cafe
commit e300f092fa
1 changed files with 2 additions and 2 deletions

View File

@ -114,9 +114,9 @@ define get-binary-sources
-printf "%P\n" | sort))
# get the flags
CFLAGS_$1 := $(CFLAGS) $(shell pkg-config $(LIBS_$1) --cflags 2>/dev/null) \
CFLAGS_$1 := $(CFLAGS) $(shell $(PKGCONFIG) $(LIBS_$1) --cflags 2>/dev/null) \
-D BIN="$1$(if $(FOR_WINDOWS),.exe)"
LDFLAGS_$1 := $(LDFLAGS) $(shell pkg-config $(LIBS_$1) --libs 2>/dev/null)
LDFLAGS_$1 := $(LDFLAGS) $(shell $(PKGCONFIG) $(LIBS_$1) --libs 2>/dev/null)
endef
$(foreach bin,$(BINARIES), \
$(eval $(call get-binary-libs,$(bin))))