Skip to content

Commit

Permalink
Don't hard-code pkg-config
Browse files Browse the repository at this point in the history
  • Loading branch information
a3a3el authored and voyageur committed Mar 30, 2023
1 parent d893fe9 commit 00a005f
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/Makefile
@@ -1,18 +1,20 @@
# CFLAGS = -g #-DMONDEBUG

PKG_CONFIG ?= pkg-config

#
# undefine HI_INTS if not on x86 SMP or alpha
#
CFLAGS += -W -Wall -pedantic -DHI_INTS \
$(shell pkg-config dockapp --cflags) \
$(shell pkg-config x11 --cflags) \
$(shell pkg-config xext --cflags) \
$(shell pkg-config xpm --cflags)

LIBS += $(shell pkg-config dockapp --libs) \
$(shell pkg-config x11 --libs) \
$(shell pkg-config xext --libs) \
$(shell pkg-config xpm --libs) \
$(shell $(PKG_CONFIG) dockapp --cflags) \
$(shell $(PKG_CONFIG) x11 --cflags) \
$(shell $(PKG_CONFIG) xext --cflags) \
$(shell $(PKG_CONFIG) xpm --cflags)

LIBS += $(shell $(PKG_CONFIG) dockapp --libs) \
$(shell $(PKG_CONFIG) x11 --libs) \
$(shell $(PKG_CONFIG) xext --libs) \
$(shell $(PKG_CONFIG) xpm --libs) \
-lm

PREFIX = /usr
Expand Down

0 comments on commit 00a005f

Please sign in to comment.