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-ae,v 1.3 2003/04/30 04:08:27 grant Exp $
--- Makefile.orig Wed Mar 20 14:16:06 1996
+++ Makefile
@@ -9,12 +9,10 @@
# pick gcc if you'd rather , and/or do -g instead of -O if debugging
# debugging
# DFLAGS = -DTEST -DDEBUG
-CFLAGS = -O
XFLAGS = # xtra cflags, set by systype targets
XLIBS = # xtra libs if necessary?
# -Bstatic for sunos, -static for gcc, etc. You want this, trust me.
STATIC =
-CC = cc $(CFLAGS)
LD = $(CC) -s # linker; defaults to stripped executables
o = o # object extension
@@ -28,7 +26,7 @@ bogus:
### HARD TARGETS
nc: netcat.c
- $(LD) $(DFLAGS) $(XFLAGS) $(STATIC) -o nc netcat.c $(XLIBS)
+ $(LD) $(CFLAGS) $(DFLAGS) $(XFLAGS) $(STATIC) -o nc netcat.c $(XLIBS)
nc-dos:
@echo "DOS?! Maybe someday, but not now"
@@ -56,12 +54,12 @@ sunos:
# Kludged for gcc, which many regard as the only thing available.
solaris-static:
make -e $(ALL) $(MFLAGS) XFLAGS='-DSYSV=4 -D__svr4__ -DSOLARIS' \
- CC=gcc STATIC=-static XLIBS='-lnsl -lsocket -lresolv'
+ STATIC=-static XLIBS='-lnsl -lsocket -lresolv'
# the more usual shared-lib version...
solaris:
make -e $(ALL) $(MFLAGS) XFLAGS='-DSYSV=4 -D__svr4__ -DSOLARIS' \
- CC=gcc STATIC= XLIBS='-lnsl -lsocket -lresolv'
+ STATIC= XLIBS='-lnsl -lsocket -lresolv'
aix:
make -e $(ALL) $(MFLAGS) XFLAGS='-DAIX'
@@ -103,7 +101,7 @@ unixware:
# from Declan Rieb at sandia, for a/ux 3.1.1 [also suggests using gcc]:
aux:
- make -e $(ALL) $(MFLAGS) XFLAGS='-DAUX' STATIC=-static CC=gcc
+ make -e $(ALL) $(MFLAGS) XFLAGS='-DAUX' STATIC=-static
# Nexstep from mudge: NeXT cc is really old gcc
next:
|