blob: 0815a07610c9194a223b9a3f9babbc200afbe322 (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
Index: Makefile
diff -u Makefile.orig Makefile
--- Makefile.orig Thu Jun 15 21:02:13 2000
+++ Makefile Tue Jun 27 00:34:00 2000
@@ -1,15 +1,15 @@
# Makefile for GKrellM volume plugin
# Linux
-GTK_CONFIG = gtk-config
-SYSLIB = -lpthread
+#GTK_CONFIG = gtk-config
+#SYSLIB = -lpthread
# FreeBSD
#GTK_CONFIG = gtk12-config
#SYSLIB =
-PLUGIN_DIR = /usr/share/gkrellm/plugins
-GKRELLM_INCLUDE = -I/usr/local/include
+PLUGIN_DIR = $(PREFIX)/libexec/gkrellm/plugins
+GKRELLM_INCLUDE = -I$(PREFIX)/include
GTK_INCLUDE = `$(GTK_CONFIG) --cflags`
GTK_LIB = `$(GTK_CONFIG) --libs`
@@ -17,12 +17,10 @@
IMLIB_INCLUDE = `imlib-config --cflags-gdk`
IMLIB_LIB = `imlib-config --libs-gdk`
-FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE) $(GKRELLM_INCLUDE)
+CFLAGS += -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE) $(GKRELLM_INCLUDE)
LIBS = $(GTK_LIB) $(IMLIB_LIB) $(SYSLIB)
LFLAGS = -shared
-CC = gcc $(CFLAGS) $(FLAGS)
-
INSTALL = install -c
INSTALL_PROGRAM = $(INSTALL) -s
@@ -34,12 +32,13 @@
make GTK_CONFIG=gtk12-config SYSLIB= all
volume.so: $(OBJS)
- $(CC) $(OBJS) -o volume.so $(LIBS) $(LFLAGS)
+ $(CC) $(CFLAGS) $(OBJS) -o volume.so $(LFLAGS) $(LIBS)
clean:
rm -f *.o core *.so* *.bak *~
install:
+ mkdir -p $(PLUGIN_DIR)
$(INSTALL_PROGRAM) volume.so $(PLUGIN_DIR)
volume.c.o: volume.c
|