Tweak benchmarks/nbench version 2.2.3
[dports.git] / benchmarks / nbench / files / patch-ad
1 --- Makefile.orig       Mon Oct 18 00:07:05 2004
2 +++ Makefile    Mon Oct 18 00:07:51 2004
3 @@ -19,10 +19,10 @@ default: nbench
4  # You should leave -static in the CFLAGS so that your sysinfo can be
5  # compiled into the executable.
6  
7 -CC = gcc
8 +CC ?= gcc
9  
10  # generic options for gcc
11 -CFLAGS = -s -static -Wall -O3
12 +CFLAGS += -static -DDATADIR=\"${PREFIX}/share/nbench/\"
13  
14  # if your gcc lets you do it, then try this one
15  #CFLAGS = -s -static -Wall -O3 -fomit-frame-pointer -funroll-loops
16 @@ -126,7 +126,7 @@ pointer.h: pointer Makefile
17         if [ "4" = `./pointer` ] ; then touch pointer.h ;\
18         else echo "#define LONG64" >pointer.h ; fi
19  
20 -misc.o: misc.h misc.c Makefile
21 +misc.o: misc.h misc.c nmglobal.h pointer.h Makefile
22         $(CC) $(MACHINE) $(DEFINES) $(CFLAGS)\
23                 -c misc.c
24