59 lines
1.5 KiB
Text
59 lines
1.5 KiB
Text
|
$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
|