summaryrefslogtreecommitdiff
path: root/net/dynipclient/patches/patch-ab
blob: 6da00a582028c6df9815d507a4e5c14ce3694618 (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
$NetBSD: patch-ab,v 1.1.1.1 2001/08/28 13:10:46 tv Exp $

--- Makefile.X.orig	Tue Aug 28 08:52:40 2001
+++ Makefile.X	Tue Aug 28 08:54:08 2001
@@ -4,8 +4,8 @@
 # instead!							#
 #								#
 #################################################################
-CFLAGS=%cflags%
-LIBS=%libs%
+CFLAGS+=%cflags%
+LIBS=%libs% ${LDFLAGS}
 MANPATH=%manpath%
 OSTYPE=-DDYNIP_OSTYPE=%ostype%
 BINDIR=%bindir%
@@ -15,27 +15,25 @@
 all: 	dynipclient dynipadmin
 
 dynipclient.o: dynipclient.c dynipclient.h dynipgbl.h
-	cc -O ${CFLAGS} ${CFGDIRDEF} -c dynipclient.c
+	${CC} ${CFLAGS} ${CFGDIRDEF} -c dynipclient.c
 
 dynipclient: dynipclient.o prof.o opt.o log.o
-	cc -o dynipclient dynipclient.o prof.o opt.o log.o ${LIBS}
-	strip dynipclient
+	${CC} -o dynipclient dynipclient.o prof.o opt.o log.o ${LIBS}
 
 dynipadmin.o: dynipadmin.c dynipadmin.h prof.h dynipgbl.h opt.c opt.h
-	cc -O ${OSTYPE} ${CFLAGS} ${CFGDIRDEF} -c dynipadmin.c
+	${CC} ${OSTYPE} ${CFLAGS} ${CFGDIRDEF} -c dynipadmin.c
 
 dynipadmin: dynipadmin.o prof.o opt.o
-	cc -o dynipadmin dynipadmin.o opt.o prof.o ${LIBS}
-	strip dynipadmin
+	${CC} -o dynipadmin dynipadmin.o opt.o prof.o ${LIBS}
 
 prof.o: prof.c prof.h
-	cc -O -c prof.c
+	${CC} ${CFLAGS} -c prof.c
 
 opt.o: opt.c opt.h
-	cc -O -c opt.c
+	${CC} ${CFLAGS} -c opt.c
 
 log.o: log.c log.h
-	cc -O -c log.c
+	${CC} ${CFLAGS} -c log.c
 
 # Copy the MAN pages for the dynipclient and dynipadmin program.
 # Must run with ROOT in order to save in the man directory