blob: f584afdcd45b8beeaf75e5189b217eb0bc7807de (
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
|
$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
|