Merge pull request #111 from vapier/pkg-config

support standard $PKG_CONFIG build setting
This commit is contained in:
PaulCombal 2021-12-25 21:06:35 +00:00 committed by GitHub
commit dda0177fae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,8 +4,9 @@ LIBDIR?=lib
PREFIX=/usr
HFILES:=$(shell find src/ -type f -iname *.h -print)
CXXFILES:=$(shell find src/ -type f -iname *.cpp -print)
GTKFLAGS:=$(shell pkg-config gtkmm-3.0 --cflags)
GTKLIBS:=$(shell pkg-config gtkmm-3.0 --libs)
PKG_CONFIG?=pkg-config
GTKFLAGS:=$(shell $(PKG_CONFIG) gtkmm-3.0 --cflags)
GTKLIBS:=$(shell $(PKG_CONFIG) gtkmm-3.0 --libs)
# For now, leave it to the distro to provide preferred extra flags
CXXFLAGS+=$(GTKFLAGS) -Wall
LDLIBS+=$(GTKLIBS) -lsteam_api -lcurl -lyajl -ldl