summaryrefslogtreecommitdiff
path: root/benchmarks/nettest/patches/patch-aa
blob: c5fc0d174debfed91d834ba4c6186323de175256 (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
$NetBSD: patch-aa,v 1.1.1.1 2003/04/11 17:07:23 cjep Exp $

--- Makefile.orig	1992-11-05 22:03:14.000000000 +0000
+++ Makefile
@@ -3,10 +3,8 @@ MAKE=make
 FILES=README Makefile nettest.h nettest.c nettestd.c nettest.8
 
 all:
-	@if [ -f /bin/hostname -o -f /usr/bin/hostname ]; then \
-		$(MAKE) `hostname`; \
-	elif [ -f /bin/uname ]; then \
-		$(MAKE) `uname -n`; \
+	@if [ -f /bin/uname -o -f /usr/bin/uname ]; then \
+		$(MAKE) `uname -s`; \
 	else \
 		echo You must specify what machine you are on,;\
 		echo e.g. \"make sun\", \"make cray2\", \"make pyramid\", \"make xmp\";\
@@ -33,6 +31,12 @@ unicos60 unicos61:
 		DEFINES="-DWAIT3CODE -DNO_ISO" \
 		LIBS="" OPT="-O"
 
+NetBSD:
+	$(MAKE) objs \
+		INCLUDE="" \
+		DEFINES="-DWAIT3CODE -DBSD44 -DNAMEDPIPES -DNO_ISO -DNONVOID_SETPGRP" \
+		OPT="-O" LIBS="-lcompat"
+
 4.4alpha:
 	$(MAKE) objs \
 		INCLUDE="" \