Lines 1-16
Link Here
|
1 |
--- Makefile.orig Tue Jul 31 19:27:40 2001 |
1 |
--- Makefile.orig Sat Sep 15 14:52:10 2001 |
2 |
+++ Makefile Wed Aug 29 13:13:18 2001 |
2 |
+++ Makefile Sat Sep 15 14:52:45 2001 |
3 |
@@ -9,10 +9,9 @@ |
3 |
@@ -12,10 +12,9 @@ |
4 |
# To facilitate packaging- leave blank for normal installation |
4 |
# This should point to the GKrellM headers |
5 |
DESTDIR = |
5 |
GKRELLM_HDRS = /usr/include/gkrellm |
6 |
|
6 |
|
7 |
-CC := gcc |
7 |
-CC := gcc |
8 |
-GTKFLAGS := $(shell gtk-config --cflags) |
8 |
-GTKFLAGS := $(shell gtk-config --cflags) |
9 |
-IMLIBFLAGS := $(shell imlib-config --cflags-gdk) |
9 |
-IMLIBFLAGS := $(shell imlib-config --cflags-gdk) |
10 |
-CFLAGS := $(CFLAGS) -fPIC -Wall $(GTKFLAGS) $(IMLIBFLAGS) |
10 |
-CFLAGS := $(CFLAGS) -fPIC -Wall $(GTKFLAGS) $(IMLIBFLAGS) -I$(GKRELLM_HDRS) |
11 |
+GTKFLAGS = `${GTK_CONFIG} --cflags` |
11 |
+GTKFLAGS = `${GTK_CONFIG} --cflags` |
12 |
+IMLIBFLAGS = `${IMLIB_CONFIG} --cflags-gdk` |
12 |
+IMLIBFLAGS = `${IMLIB_CONFIG} --cflags-gdk` |
13 |
+CFLAGS += -fPIC -Wall $(GTKFLAGS) $(IMLIBFLAGS) |
13 |
+CFLAGS += -fPIC -Wall $(GTKFLAGS) $(IMLIBFLAGS) -I${X11BASE}/include/gkrellm |
14 |
LDFLAGS := -shared -Wl |
14 |
LDFLAGS := -shared -Wl |
15 |
INST_DIR := $(DESTDIR)/usr/lib/gkrellm/plugins |
15 |
INST_DIR := $(DESTDIR)/usr/lib/gkrellm/plugins |
16 |
USER_INST_DIR := $(DESTDIR)$(HOME)/.gkrellm/plugins |
16 |
USER_INST_DIR := $(DESTDIR)$(HOME)/.gkrellm/plugins |
|
|
17 |
@@ -27,7 +26,7 @@ |
18 |
all: $(TARGET).so |
19 |
|
20 |
%.so: %.o |
21 |
- $(CC) $(LDFLAGS) -o $@ $< |
22 |
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< |
23 |
|
24 |
clean: |
25 |
-rm -f $(TARGET).so $(TARGET).o |