blob: 1f46bde726e18a53a2ea7a7c5fd4c75fa1b76b1f (
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-aj,v 1.1 2000/01/26 22:11:37 jlam Exp $
--- librplay/Makefile.in.orig Mon Mar 22 21:38:38 1999
+++ librplay/Makefile.in Tue Jan 18 16:15:33 2000
@@ -9,28 +9,25 @@
MKINSTALLDIRS= @srcdir@/../mkinstalldirs
CPPFLAGS= $(CC_OPTIONS) -I. -I../include -I@srcdir@/../include @DEFS@
-LDFLAGS= $(LD_OPTIONS) -shared @LDFLAGS@
-
-.c.o:
- $(CC) -c $(CPPFLAGS) $(CFLAGS) $<
+LDFLAGS= $(LD_OPTIONS) @LDFLAGS@
.SUFFIXES: .lo
.c.lo:
- $(CC) -c -fPIC $(CPPFLAGS) $(CFLAGS) -o $@ $<
+ $(LIBTOOL) $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
TARGET= $(LIBRPLAY_NAME)
SRCS= rplay.c rptp.c async.c
OBJS= rplay.o rptp.o async.o
SHAREDOBJS= rplay.lo rptp.lo async.lo
-all: $(TARGET) librplay.so
+all: $(TARGET)
#
# Use the following for SunOS 4.1.x, Solaris 2.x, Linux, NetBSD
#
-$(TARGET): $(OBJS)
- $(AR) rcv $@ $?
- $(RANLIB) $@
+$(TARGET): $(SHAREDOBJS)
+ $(LIBTOOL) $(CC) $(LDFLAGS) -o $@ $? \
+ -rpath $(libdir) -version-info 0:0
librplay.so: $(SHAREDOBJS)
$(CC) -o $@ $(SHAREDOBJS) $(LDFLAGS)
@@ -49,15 +46,13 @@
install: all
$(MKINSTALLDIRS) $(libdir)
- $(INSTALL_DATA) $(TARGET) $(libdir)
- $(INSTALL_DATA) librplay.so $(libdir)
+ $(LIBTOOL) $(INSTALL_DATA) $(TARGET) $(libdir)
uninstall:
- $(RM) $(libdir)/$(TARGET)
- $(RM) $(libdir)/librplay.so
+ $(LIBTOOL) $(RM) $(libdir)/$(TARGET)
clean:
- $(RM) $(OBJS) $(SHAREDOBJS) $(TARGET) librplay.so a.out core *~ *.bak *.orig TAGS
+ $(LIBTOOL) $(RM) $(OBJS) $(SHAREDOBJS) $(TARGET) librplay.so a.out core *~ *.bak *.orig TAGS
distclean: clean
$(RM) Makefile
|