summaryrefslogtreecommitdiff
path: root/audio/rplay/patches/patch-al
blob: eec81268add23df3bab6626cfb192760c97ac086 (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
$NetBSD: patch-al,v 1.1 2000/01/26 22:11:37 jlam Exp $

--- rplayd/Makefile.in.orig	Wed Jun  9 02:27:43 1999
+++ rplayd/Makefile.in	Wed Jan 26 17:03:44 2000
@@ -24,8 +24,8 @@
 .c.o:
 		$(CC) -c $(CPPFLAGS) $(CFLAGS) $<
 
-LDFLAGS=	$(LD_OPTIONS) -L../librplay -lrplay -L../lib -lrp \
-		-L../adpcm -ladpcm @GSM_LIBS@ -L../rx -lrx @LDFLAGS@ @LIBS@ -lm
+LDFLAGS=	$(LD_OPTIONS) ../librplay/$(LIBRPLAY_NAME) ../lib/librp.a \
+		../adpcm/libadpcm.a @GSM_LIBS@ @RX_LIBS@ @LDFLAGS@ @LIBS@ -lm
 
 TARGET=		rplayd
 
@@ -40,7 +40,7 @@
 all:		$(TARGET)
 
 $(TARGET):	$(OBJS) ../librplay/$(LIBRPLAY_NAME) ../lib/librp.a ../adpcm/libadpcm.a
-		$(CC) -o $@ $(OBJS) $(LDFLAGS)
+		$(LIBTOOL) $(CC) -o $@ $(OBJS) $(LDFLAGS)
 
 ../librplay/$(LIBRPLAY_NAME):
 		(cd ../librplay; $(MAKE) $(MFLAGS))
@@ -53,14 +53,13 @@
 
 install:	all
 		$(MKINSTALLDIRS) $(sbindir)
-		$(INSTALL_PROGRAM) $(TARGET) $(sbindir)/$(TARGET)
-		@test -x $(bindir)/$(TARGET) && echo "" && echo "    Note: Consider removing $(bindir)/$(TARGET)" && echo ""
+		$(LIBTOOL) $(INSTALL_PROGRAM) $(TARGET) $(sbindir)/$(TARGET)
 
 uninstall:
-		$(RM) $(bindir)/$(TARGET)
+		$(LIBTOOL) $(RM) $(bindir)/$(TARGET)
 
 clean:
-		$(RM) $(OBJS) $(TARGET) a.out core *~ *.bak *.orig TAGS
+		$(LIBTOOL) $(RM) $(OBJS) $(TARGET) a.out core *~ *.bak *.orig TAGS
 		cd audio; $(RM) *~ *.bak *.orig
 
 distclean:	clean