48 lines
1.6 KiB
Text
48 lines
1.6 KiB
Text
$NetBSD: patch-aa,v 1.11 2009/07/08 14:03:26 joerg Exp $
|
|
|
|
--- Makefile.orig 1997-05-21 01:57:17.000000000 +0200
|
|
+++ Makefile 2006-06-24 10:36:24.000000000 +0200
|
|
@@ -5,7 +5,6 @@
|
|
# Wed May 21 01:51:37 MET DST 1997
|
|
#
|
|
|
|
-PREFIX=/usr/local
|
|
BINDIR=$(PREFIX)/bin
|
|
MANDIR=$(PREFIX)/man
|
|
SECTION=1
|
|
@@ -16,7 +15,7 @@ SECTION=1
|
|
###### ######
|
|
###################################################
|
|
|
|
-CFLAGS=-O2 -Wall -ansi
|
|
+# CFLAGS=-O2 -Wall -ansi
|
|
# CFLAGS=-g -Wall -ansi -pedantic
|
|
|
|
all: tosha pcmplay pcmfade
|
|
@@ -28,21 +27,17 @@ pcmplay.o: pcmplay.c utils.h getlopt.h
|
|
pcmfade.o: pcmfade.c utils.h
|
|
|
|
tosha: tosha.o utils.o getlopt.o
|
|
- $(CC) $(CFLAGS) -o tosha -lscsi tosha.o utils.o getlopt.o
|
|
+ $(CC) $(CFLAGS) -o tosha tosha.o utils.o getlopt.o ${LDFLAGS} -lscsi -lutil
|
|
|
|
pcmplay: pcmplay.o utils.o getlopt.o
|
|
- $(CC) $(CFLAGS) -o pcmplay pcmplay.o utils.o getlopt.o
|
|
+ $(CC) $(CFLAGS) -o pcmplay pcmplay.o utils.o getlopt.o ${LDFLAGS} ${LIBOSSAUDIO}
|
|
|
|
pcmfade: pcmfade.o utils.o
|
|
- $(CC) $(CFLAGS) -o pcmfade pcmfade.o utils.o
|
|
+ $(CC) $(CFLAGS) -o pcmfade pcmfade.o utils.o ${LDFLAGS}
|
|
|
|
install: tosha pcmplay pcmfade
|
|
- install -s -g bin -o bin -m 755 tosha pcmplay pcmfade $(BINDIR)
|
|
- install -c -g bin -o bin -m 644 tosha.1 pcmplay.1 pcmfade.1 \
|
|
- $(MANDIR)/man$(SECTION)
|
|
- gzip -f -9 $(MANDIR)/man$(SECTION)/tosha.1 \
|
|
- $(MANDIR)/man$(SECTION)/pcmplay.1 \
|
|
- $(MANDIR)/man$(SECTION)/pcmfade.1
|
|
+ ${BSD_INSTALL_PROGRAM} tosha pcmplay pcmfade ${DESTDIR}$(BINDIR)
|
|
+ ${BSD_INSTALL_MAN} tosha.1 pcmplay.1 pcmfade.1 ${DESTDIR}$(MANDIR)/man$(SECTION)
|
|
|
|
clean:
|
|
rm -f *.o *~ *core tosha pcmplay pcmfade
|