blob: 696b81def444e77806694c0175e648452e0bd381 (
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
49
50
51
52
53
54
55
56
57
58
|
$NetBSD: patch-aa,v 1.3 2001/08/16 04:30:12 zuntum Exp $
--- Makefile.orig Sat Jun 9 23:37:36 2001
+++ Makefile
@@ -1,35 +1,36 @@
# Change paths if necessary
-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
-OBJ = dflowers.o
-INSTALL-DIR=`xmms-config --visualization-plugin-dir`
-XMMS_DATADIR=`xmms-config --data-dir`
+CFLAGS+= $(OPT) -Wall -fPIC `${GTK_CONFIG} --cflags gthread`
+OBJ = dflowers.lo
+INSTALL-DIR=`$(XMMS_CONFIG) --visualization-plugin-dir`
+XMMS_DATADIR=`$(XMMS_CONFIG) --data-dir`
#INSTALL-DIR=$(HOME)/.xmms/Plugins
#XMMS_DATADIR=$(HOME)/.xmms
THEME_SUBDIR=dflowers_themes
XMMS_DATADIR_FLAGS=-DTHEMEDIR=\"$(XMMS_DATADIR)/$(THEME_SUBDIR)/\"
-all: libdflowers.so
+.SUFFIXES: .c .lo
-libdflowers.so: $(OBJ)
- $(CC) -o libdflowers.so $(OBJ) $(LFLAGS)
+all: libdflowers.la
+
+libdflowers.la: $(OBJ)
+ ${LIBTOOL} --mode=link $(CC) -o libdflowers.la -module -avoid-version $(OBJ) $(LFLAGS) -rpath ${INSTALL-DIR}
+
+.c.lo:
+ ${LIBTOOL} $(CC) $(CFLAGS) $(CONF) $(XMMS_DATADIR_FLAGS) -c $<
-.c.o:
- $(CC) $(CFLAGS) $(XMMS_DATADIR_FLAGS) -c $<
clean:
- rm -f *.o core *.so*
+ rm -f *.o core *.so* *.la *.so *.lo
+ rm -fr .libs
distclean:
rm -f *.o core *~
-install:
- install libdflowers.so $(INSTALL-DIR)
+install: libdflowers.la
+ ${LIBTOOL} install libdflowers.la $(INSTALL-DIR)
mkdir -p $(XMMS_DATADIR)/$(THEME_SUBDIR)
- install bg_*.xpm $(XMMS_DATADIR)/$(THEME_SUBDIR)
+ $(BSD_INSTALL_DATA) bg_*.xpm $(XMMS_DATADIR)/$(THEME_SUBDIR)
+
|