aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/nbench/files/patch-Makefile
blob: c1a98bd1826e386f4c1c57aee5d45a5bfd9a3929 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- Makefile.orig	2004-12-30 02:23:30 UTC
+++ Makefile
@@ -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