summaryrefslogtreecommitdiffstats
path: root/dns/host/files/patch-Makefile
blob: 3bd8f73f691aff025f9866f9a87311cd35b9f58a (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84

$FreeBSD$

--- Makefile.orig	Wed Mar 15 23:51:39 2000
+++ Makefile	Fri Jun 29 13:42:36 2001
@@ -5,10 +5,10 @@
 # ----------------------------------------------------------------------
 
 # This is where the host executable will go.
-DESTBIN = /usr/local/bin
+DESTBIN = $(PREFIX)/bin
 
 # This is where the host manual page will go.
-DESTMAN = /usr/local/man
+DESTMAN = $(PREFIX)/man
 
 BINDIR = $(DESTBIN)
 MANDIR = $(DESTMAN)/man1
@@ -82,16 +82,16 @@
 
 COPTS =
 COPTS = -O -DDEBUG
-COPTS = -O
+COPTS =
 
-CFLAGS = $(COPTS) $(DEFS)
+#CFLAGS = $(COPTS) $(DEFS)
 
 # Select your favorite compiler.
-CC = /usr/ucb/cc			#if defined(solaris) && BSD
-CC = /bin/cc -arch m68k -arch i386	#if defined(next)
-CC = /bin/cc -Olimit 1000		#if defined(ultrix)
-CC = /bin/cc
-CC = cc
+CC ?= /usr/ucb/cc			#if defined(solaris) && BSD
+CC ?= /bin/cc -arch m68k -arch i386	#if defined(next)
+CC ?= /bin/cc -Olimit 1000		#if defined(ultrix)
+CC ?= /bin/cc
+CC ?= cc
 
 # ----------------------------------------------------------------------
 # Linking definitions.
@@ -109,8 +109,8 @@
 
 RES = -lsocket				#if defined(SCO) && default
 RES =
-RES = ../../res/libresolv.a
-RES = -lresolv
+#RES = ../../res/libresolv.a
+#RES = -lresolv
 
 COMPLIB = ../../compat/lib/lib44bsd.a
 COMPLIB = -lnet
@@ -130,13 +130,13 @@
 # redefined by bind
 CDEBUG = $(COPTS) $(CONFIGDEFS)
 CDEFS = $(SYSDEFS) $(INCLUDES)
-CFLAGS = $(CDEBUG) $(CDEFS)
+CFLAGS += $(CDEBUG) $(CDEFS)
 
 # ----------------------------------------------------------------------
 # Miscellaneous definitions.
 # ----------------------------------------------------------------------
 
-MAKE = make $(MFLAGS)
+MAKE += $(MFLAGS)
 
 # This assumes the BSD install.
 INSTALL = install -c
@@ -183,11 +183,9 @@
 $(PROG): $(OBJS)
 	$(CC) $(LDFLAGS) -o $(PROG) $(OBJS) $(LIBRARIES)
 
-install: $(PROG)
-	$(INSTALL) -m $(MODE) -o $(OWNER) -g $(GROUP) $(STRIP) $(PROG) $(BINDIR)
-
-man: $(MANS)
-	$(INSTALL) -m 444 host.1 $(MANDIR)
+install: $(PROG) $(MANS)
+	$(BSD_INSTALL_PROGRAM) $(PROG) $(BINDIR)
+	$(BSD_INSTALL_MAN) host.1 $(MANDIR)
 
 clean:
 	rm -f $(CLEANUP) *.o a.out core
OpenPOWER on IntegriCloud