blob: 3e49438ab2de80fefa2f0eec07403957577c9d12 (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
$NetBSD: patch-aa,v 1.2 2001/08/16 03:20:45 hubertf Exp $
--- Makefile.orig Thu Dec 30 01:40:03 1999
+++ Makefile
@@ -1,25 +1,28 @@
# Change paths if necessary
-CC = gcc
-OPT = -m486 -O2
+#CC = gcc
+#OPT = -m486 -O2
#OPT = -mpentium -O6
#OPT = -mcpu=k6 -march=k6 -O6
-CONF= -DNO_WIN_DECORATIONS
-CFLAGS = $(OPT) -Wall -fPIC `gtk-config --cflags gthread`
-LFLAGS = -shared -fPIC -L/usr/local/lib -ldl
-OBJ = dflowers.o
-PREFIX = `which xmms | rev | cut -c10- | rev`
+#CONF= -DNO_WIN_DECORATIONS
+CFLAGS+= $(OPT) -Wall -fPIC `${GTK_CONFIG} --cflags gthread`
+#LFLAGS = -shared -fPIC -L/usr/local/lib -ldl
+OBJ = dflowers.lo
+VPREFIX = `xmms-config --visualization-plugin-dir`
-all: libdflowers.so
+.SUFFIXES: .c .lo
-libdflowers.so: $(OBJ)
- $(CC) -o libdflowers.so $(OBJ) $(LFLAGS)
+all: libdflowers.la
-.c.o:
- $(CC) $(CFLAGS) $(CONF) -c $<
+libdflowers.la: $(OBJ)
+ ${LIBTOOL} --mode=link $(CC) -o libdflowers.la -module -avoid-version $(OBJ) $(LFLAGS) -rpath ${VPREFIX}
+
+.c.lo:
+ ${LIBTOOL} $(CC) $(CFLAGS) $(CONF) -c $<
clean:
- rm -f *.o core *.so*
+ rm -f *.o core *.so* *.la *.so *.lo
+ rm -fr .libs
-install: libdflowers.so
- install libdflowers.so $(PREFIX)/lib/xmms/Visualization
+install: libdflowers.la
+ ${LIBTOOL} install libdflowers.la $(VPREFIX)
|