blob: 7c9e04268ebd921228499ae7ed48bc49e6c0524d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
--- Makefile.orig Sat Sep 15 14:52:10 2001
+++ Makefile Sat Sep 15 14:52:45 2001
@@ -12,10 +12,9 @@
# This should point to the GKrellM headers
GKRELLM_HDRS = /usr/include/gkrellm
-CC := gcc
-GTKFLAGS := $(shell gtk-config --cflags)
-IMLIBFLAGS := $(shell imlib-config --cflags-gdk)
-CFLAGS := $(CFLAGS) -fPIC -Wall $(GTKFLAGS) $(IMLIBFLAGS) -I$(GKRELLM_HDRS)
+GTKFLAGS = `${GTK_CONFIG} --cflags`
+IMLIBFLAGS = `${IMLIB_CONFIG} --cflags-gdk`
+CFLAGS += -fPIC -Wall $(GTKFLAGS) $(IMLIBFLAGS) -I${LOCALBASE}/include/gkrellm
LDFLAGS := -shared -Wl
INST_DIR := $(DESTDIR)/usr/lib/gkrellm/plugins
USER_INST_DIR := $(DESTDIR)$(HOME)/.gkrellm/plugins
@@ -27,7 +26,7 @@
all: $(TARGET).so
%.so: %.o
- $(CC) $(LDFLAGS) -o $@ $<
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
clean:
-rm -f $(TARGET).so $(TARGET).o
|