summaryrefslogtreecommitdiff
path: root/benchmarks/nbench/files/patch-Makefile
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2014-07-28 14:17:02 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2014-07-28 14:17:02 +0000
commitbd660e17d775189dad03bdfa3b8d093babab10e1 (patch)
tree09c6d075cf1f65caf45985df6ee6faa66f38b428 /benchmarks/nbench/files/patch-Makefile
parentRename audio/ patch-xy patches to reflect the files they modify. (diff)
Rename benchmark/ patch-xy patches to reflect the files they modify.
Diffstat (limited to 'benchmarks/nbench/files/patch-Makefile')
-rw-r--r--benchmarks/nbench/files/patch-Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/benchmarks/nbench/files/patch-Makefile b/benchmarks/nbench/files/patch-Makefile
new file mode 100644
index 000000000000..3617df942f52
--- /dev/null
+++ b/benchmarks/nbench/files/patch-Makefile
@@ -0,0 +1,24 @@
+--- Makefile.orig Mon Oct 18 00:07:05 2004
++++ Makefile Mon Oct 18 00:07:51 2004
+@@ -19,10 +19,10 @@ default: nbench
+ # You should leave -static in the CFLAGS so that your sysinfo can be
+ # compiled into the executable.
+
+-CC = gcc
++CC ?= gcc
+
+ # generic options for gcc
+-CFLAGS = -s -static -Wall -O3
++CFLAGS += -static -DDATADIR=\"${PREFIX}/share/nbench/\"
+
+ # if your gcc lets you do it, then try this one
+ #CFLAGS = -s -static -Wall -O3 -fomit-frame-pointer -funroll-loops
+@@ -126,7 +126,7 @@ pointer.h: pointer Makefile
+ if [ "4" = `./pointer` ] ; then touch pointer.h ;\
+ else echo "#define LONG64" >pointer.h ; fi
+
+-misc.o: misc.h misc.c Makefile
++misc.o: misc.h misc.c nmglobal.h pointer.h Makefile
+ $(CC) $(MACHINE) $(DEFINES) $(CFLAGS)\
+ -c misc.c
+