40 lines
827 B
Text
40 lines
827 B
Text
$NetBSD: patch-aa,v 1.4 2003/11/25 22:42:30 dmcmahill Exp $
|
|
|
|
--- Makefile.orig Mon Dec 18 10:17:20 2000
|
|
+++ Makefile
|
|
@@ -108,13 +108,13 @@
|
|
#DBG= -Wall -g
|
|
#INC=
|
|
|
|
-# For FreeBSD
|
|
-ARCH= -DFreeBSD
|
|
-LIB=
|
|
-OPT= -O2
|
|
-CC= cc
|
|
-DBG=
|
|
-INC=
|
|
+## For FreeBSD
|
|
+#ARCH= -DFreeBSD
|
|
+#LIB=
|
|
+#OPT= -O2
|
|
+#CC= cc
|
|
+#DBG=
|
|
+#INC=
|
|
|
|
## For SGI IRIX 5.3, 6.2 (cc or gcc)
|
|
#ARCH=
|
|
@@ -151,9 +151,12 @@ INC=
|
|
VERSION= 1.47
|
|
#prefix= /usr/local/dist/DIR/nttcp-$(VERSION)
|
|
#prefix= /usr/local
|
|
-prefix= /usr/local/opt/nttcp-$(VERSION)
|
|
-CFLAGS = $(ARCH) $(DBG) $(DEF) $(INC) $(OPT) -DVERSION=\"$(VERSION)\"
|
|
+#prefix= /usr/local/opt/nttcp-$(VERSION)
|
|
+prefix= ${PREFIX}
|
|
+CFLAGS = $(DBG) $(DEF) $(INC) $(OPT) -DVERSION=\"$(VERSION)\"
|
|
LFLAGS = $(DBG)
|
|
+
|
|
+all: nttcp
|
|
|
|
nttcp: nttcp.o support.o
|
|
$(CC) $(LFLAGS) nttcp.o -o nttcp support.o $(LIB)
|