Skip to content

Commit

Permalink
Merge pull request sargon#23 from flocke/master
Browse files Browse the repository at this point in the history
Set the pkg-config command as variable during make
  • Loading branch information
sargon committed Apr 20, 2015
2 parents 55dd62c + a3b9042 commit fcb92d6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ endif
endif

CC ?= gcc
LIBS = $(shell pkg-config --libs gtk+-2.0 gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0 x11)
INCS = $(shell pkg-config --cflags gtk+-2.0 gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0 x11)
PKG_CONFIG ?= pkg-config

LIBS = $(shell $(PKG_CONFIG) --libs gtk+-2.0 gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0 x11)
INCS = $(shell $(PKG_CONFIG) --cflags gtk+-2.0 gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0 x11)
CFLAGS ?= -O2 -Wall
ifneq (,$(DEVEL))
CFLAGS ?= -g -Wall
Expand Down

0 comments on commit fcb92d6

Please sign in to comment.