blob: aa35e565e508ca579c5545c5d0a226835e03b8eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
Respect user's pkg-config, don't call gcc directly
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,9 @@
PKGNAME = gkrellweather
VERSION = 2.0.8
-CFLAGS = -O2 -std=gnu99 -Wall -fPIC `pkg-config gtk+-2.0 --cflags`
-LIBS = `pkg-config gtk+-2.0 --libs`
+PKG_CONFIG ?= pkg-config
+GTK_INCLUDE = $(shell ${PKG_CONFIG} gtk+-2.0 --cflags)
+CFLAGS = -std=gnu99 -fPIC $(GTK_INCLUDE)
+LIBS = $(shell ${PKG_CONFIG} gtk+-2.0 --libs)
LFLAGS = -shared
PREFIX = /usr/local
@@ -16,7 +18,7 @@ endif
CFLAGS += -DPACKAGE="\"$(PKGNAME)\""
export PKGNAME LOCALEDIR
-CC = gcc
+CC = $(CC)
OBJS = gkrellweather.o
|