summaryrefslogtreecommitdiff
path: root/net/icsi-finger/patches/patch-ac
blob: baedae675795a1de4efd632459a3da00039f566d (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
$NetBSD: patch-ac,v 1.2 2006/06/08 14:29:26 joerg Exp $

--- Makefile.orig	1998-04-04 19:27:42.000000000 +0000
+++ Makefile
@@ -44,22 +44,8 @@ DEFINES = -DSVR4
 DEFINES = 
 #endif
 
-#ifdef NeXT
-CC = cc -bsd
-CPP = $(CC) -traditional -E 
-#elifdef sun
-CC = gcc -g $(DEFINES)
-CPP = $(CC) -traditional -E
-#elifdef sgi
-CC = cc -g3 $(DEFINES)
-CPP = $(CC) -E -cckr
-#elifdef bsdi
 CC = cc
-CPP = $(CC) -traditional -E 
-#else
-CC = cc $(DEFINES)
-CPP = $(CC) -E
-#endif
+CPP = cpp -traditional
 
 DIRNAME = /tmp/dirname
 EXCLUDE = /tmp/exclude
@@ -82,7 +68,7 @@ CPP_DEFINES = -DHAVE_GCC -DHAVE_FIXED_IN
 #MAKE = make
 
 CPPFLAGS = $(SYSTEM) $(CPP_DEFINES)
-CPP_ARGS = -DCPP_CC="$(CC)" -DIncludes=$(INCLUDES)
+CPP_ARGS = -DCPP_CC=${CC:Q} -DIncludes=$(INCLUDES)
 
 all:	$(SRC)$(MKFILE)
 #	(cd $(SRC); $(MAKE) -f $(MKFILE) depend)
@@ -98,7 +84,7 @@ dirs:	FRC
 $(SRC)$(MKFILE): support/cpp-Makefile Makefile config.h
 	cp $(SUPPORT)cpp-Makefile $(SRC)tmp-Makefile.c
 	(cd $(SRC); $(CPP) $(CPP_ARGS) tmp-Makefile.c \
-	| sed 's@[ 	]*$$@@' | uniq >$(MKFILE))
+	| sed -e 's@[ 	]*$$@@' -e 's@^         *@	@' | uniq >$(MKFILE))
 	rm -f $(SRC)tmp-Makefile.c
 
 # Subsequent lines contain targets that are correctly handled by an