summaryrefslogtreecommitdiff
path: root/mbone/vat/patches/patch-ak
blob: 5c38ce71eb10799b9ab79312006512e534c9bce9 (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
49
$NetBSD: patch-ak,v 1.2 2000/03/13 13:17:16 bouyer Exp $

--- Makefile.in.orig	Thu Apr 25 15:20:32 1996
+++ Makefile.in	Mon Mar 13 14:11:24 2000
@@ -48,6 +48,7 @@
 C++ = @CXX@
 TABCC = @V_TABCC@
 CCOPT = @V_CCOPT@
+CPPFLAGS= @CPPFLAGS@
 
 INCLUDE_TK = @V_INCLUDE_TK@
 INCLUDE_TCL = @V_INCLUDE_TCL@
@@ -175,7 +176,7 @@
 	$(TABCC) $(RFLAG) -c $*.c
 
 $(SRC3): mktab.c
-	$(CC) $(CFLAGS) -o mktab mktab.c $(LIB) $(STATIC)
+	$(CC) $(CFLAGS) $(LDFLAGS) -o mktab mktab.c $(LIB) $(STATIC)
 	rm -f $(SRC3)
 	./mktab -mulaw > tabmulaw.c
 	./mktab -sum > tabmix.c
@@ -184,7 +185,7 @@
 	rm -f mktab
 
 vat-gsm.o: vat-gsm.c
-	rm -f $@; $(CC) -o $@ -c $(INCLUDE_GSM) $(CFLAGS) $*.c
+	rm -f $@; $(CC) -o $@ -c $(CPPFLAGS) $(CFLAGS) $*.c
 
 tar: force
 	tar=vatbin-`cat VERSION`-@V_TAR_TARGET@.tar.gz ; \
@@ -209,16 +210,10 @@
 	     rm ../$$name; chmod 444 $$tar
 
 install: force
-	 cp vat @prefix@/bin/vat; \
-	 chown bin @prefix@/bin/vat; \
-	 chgrp bin @prefix@/bin/vat; \
-	 chmod 555 @prefix@/bin/vat
+	${BSD_INSTALL_PROGRAM} vat @prefix@/bin
 
 install-man: force
-	cp vat.1 @prefix@/man/man1/vat.1
-	chown bin @prefix@/man/man1/vat.1
-	chgrp bin @prefix@/man/man1/vat.1
-	chmod 444 @prefix@/man/man1/vat.1
+	${BSD_INSTALL_MAN} vat.1 @prefix@/man/man1
 
 CLEAN = vat core core.vat tcl2c++ config.log config.cache
 clean: