freebsd-ports/benchmarks/netperf/files/patch-makefile
Joseph Koshy 3cd8f9089f Turn off -DHISTOGRAM as it introduces considerable overhead. Bump portrevision.
Noticed by:	rwatson
Approved by:	sumikawa [MAINTAINER]
2005-10-14 03:33:07 +00:00

23 lines
828 B
Text

--- makefile.orig Fri Feb 14 23:32:44 2003
+++ makefile Sat Feb 22 08:21:09 2003
@@ -15,8 +15,8 @@
# for the rest of the world, it is probably better to put the binaries
# in /usr/local/netperf or /opt/netperf
#
-#NETPERF_HOME = /usr/local/netperf
-NETPERF_HOME = /opt/netperf
+NETPERF_HOME = ${PREFIX}/netperf
+#NETPERF_HOME = /opt/netperf
# The compiler on your system might be somewhere else, and/or have
# a different name.
@@ -95,7 +95,8 @@
# the makefile for your platform
LOG_FILE=DEBUG_LOG_FILE="\"/tmp/netperf.debug\""
-CFLAGS = -O -D$(LOG_FILE) -DNEED_MAKEFILE_EDIT
+CFLAGS = %CFLAGS% -D$(LOG_FILE) -DDO_FIRST_BURST
+CFLAGS+= -DDO_UNIX -DDO_1644 -DDO_IPV6
# Some platforms, and some options, require additional libraries.
# you can add to the "LIBS =" line to accomplish this. if you find