58 lines
1.6 KiB
Text
58 lines
1.6 KiB
Text
$NetBSD: patch-aj,v 1.2 2009/10/06 17:27:51 joerg 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) --mode=compile $(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) --mode=link $(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) --mode=install $(INSTALL_DATA) $(TARGET) $(libdir)
|
|
|
|
uninstall:
|
|
- $(RM) $(libdir)/$(TARGET)
|
|
- $(RM) $(libdir)/librplay.so
|
|
+ $(LIBTOOL) --mode=uninstall $(RM) $(libdir)/$(TARGET)
|
|
|
|
clean:
|
|
- $(RM) $(OBJS) $(SHAREDOBJS) $(TARGET) librplay.so a.out core *~ *.bak *.orig TAGS
|
|
+ $(LIBTOOL) --mode=clean $(RM) $(OBJS) $(SHAREDOBJS) $(TARGET) librplay.so a.out core *~ *.bak *.orig TAGS
|
|
|
|
distclean: clean
|
|
$(RM) Makefile
|