blob: fd242a0acab89503f9d2a5f0dd0b25415ec8a9ff (
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
|
$NetBSD: patch-aa,v 1.4 2002/09/21 01:46:52 jlam Exp $
--- Makefile.orig Sat Jan 20 06:20:49 2001
+++ Makefile
@@ -1,12 +1,12 @@
# Change paths & OPT if necessary
-CC = gcc
-OPT = -m486 -O2
+#CC = gcc
+#OPT = -m486 -O2
#OPT = -mpentium -O6
#OPT = -mcpu=k6 -march=k6 -O6
-CFLAGS = $(OPT) -Wall -fPIC `gtk-config --cflags gthread`
-LFLAGS = -shared -fPIC -L/usr/local/lib
-OBJ = dspectogram.o
+CFLAGS+= $(OPT) -Wall -fPIC `gtk-config --cflags gthread`
+#LFLAGS = -shared -fPIC -L/usr/local/lib
+OBJ = dspectogram.lo
INSTALL-DIR=`xmms-config --visualization-plugin-dir`
XMMS_DATADIR=`xmms-config --data-dir`
#INSTALL-DIR=$(HOME)/.xmms/Plugins
@@ -14,21 +14,24 @@ XMMS_DATADIR=`xmms-config --data-dir`
THEME_SUBDIR=dspectogram_themes
XMMS_DATADIR_FLAGS=-DTHEMEDIR=\"$(XMMS_DATADIR)/$(THEME_SUBDIR)/\"
-all: libdspectogram.so
+.SUFFIXES: .c .lo
-libdspectogram.so: $(OBJ)
- $(CC) -o libdspectogram.so $(OBJ) $(LFLAGS)
+all: libdspectogram.la
-.c.o:
- $(CC) $(CFLAGS) $(XMMS_DATADIR_FLAGS) -c $<
+libdspectogram.la: $(OBJ)
+ ${LIBTOOL} $(CC) -o libdspectogram.la $(OBJ) $(LFLAGS) -rpath ${INSTALL-DIR} -module -avoid-version
+
+.c.lo:
+ ${LIBTOOL} $(CC) $(CFLAGS) $(XMMS_DATADIR_FLAGS) -c $<
clean:
- rm -f *.o core *.so*
+ rm -f *.o core *.so* *.la *.lo
+ rm -fr .libs
distclean:
rm -f *.o core *~
install:
- install libdspectogram.so $(INSTALL-DIR)
- mkdir -p $(XMMS_DATADIR)/$(THEME_SUBDIR)
- install bg_*.xpm $(XMMS_DATADIR)/$(THEME_SUBDIR)
+ ${LIBTOOL} ${INSTALL} libdspectogram.la $(INSTALL-DIR)
+ ${BSD_INSTALL_DATA_DIR} $(XMMS_DATADIR)/$(THEME_SUBDIR)
+ ${BSD_INSTALL_DATA} bg_*.xpm $(XMMS_DATADIR)/$(THEME_SUBDIR)
|