• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1*** unixbench-4.1.0/Makefile	Wed Jul 28 15:05:02 1999
2--- unixbench-4.1.0.patch/Makefile	Fri Jan 21 10:56:32 2011
3***************
4*** 32,50 ****
5  SHELL = /bin/sh
6  #HZ = ????  	   #(read from environment)
7  CFLAGS = -DTIME
8! CC=gcc
9
10  ## For Linux 486/Pentium, GCC 2.7.x and 2.8.x
11! #OPTON = -O2 -fomit-frame-pointer -fforce-addr -fforce-mem -ffast-math \
12  #	-m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2
13  ## For Linux, GCC previous to 2.7.0
14! #OPTON = -O2 -fomit-frame-pointer -fforce-addr -fforce-mem -ffast-math -m486
15
16! #OPTON = -O2 -fomit-frame-pointer -fforce-addr -fforce-mem -ffast-math \
17  #	-m386 -malign-loops=1 -malign-jumps=1 -malign-functions=1
18
19  ## For Solaris 2, or general-purpose GCC 2.7.x
20! OPTON = -O2 -fomit-frame-pointer -fforce-addr -fforce-mem -ffast-math -Wall
21
22  ## Very generic
23  #OPTON = -O
24--- 32,51 ----
25  SHELL = /bin/sh
26  #HZ = ????  	   #(read from environment)
27  CFLAGS = -DTIME
28! CC?=gcc
29
30  ## For Linux 486/Pentium, GCC 2.7.x and 2.8.x
31! # -O2 already turned -fforce-mem
32! OPTON = -O2 -fomit-frame-pointer -fforce-addr -ffast-math \
33  #	-m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2
34  ## For Linux, GCC previous to 2.7.0
35! #OPTON = -O2 -fomit-frame-pointer -fforce-addr -ffast-math -m486
36
37! #OPTON = -O2 -fomit-frame-pointer -fforce-addr -ffast-math \
38  #	-m386 -malign-loops=1 -malign-jumps=1 -malign-functions=1
39
40  ## For Solaris 2, or general-purpose GCC 2.7.x
41! #OPTON = -O2 -fomit-frame-pointer -fforce-addr -fforce-mem -ffast-math -Wall
42
43  ## Very generic
44  #OPTON = -O
45***************
46*** 203,212 ****
47  	$(CC) -o $(PROGDIR)/dhry2 ${CFLAGS} ${OPTON} $(SRCDIR)/dhry_1.o $(SRCDIR)/dhry_2.o
48  	cd $(SRCDIR); rm -f dhry_1.o dhry_2.o
49  $(PROGDIR)/dhry2reg: $(SRCDIR)/dhry_1.c $(SRCDIR)/dhry_2.c $(SRCDIR)/dhry.h
50! 	cd $(SRCDIR); $(CC) -c ${CFLAGS} -DREG=register -DHZ=${HZ} ${OPTON} dhry_1.c
51! 	cd $(SRCDIR); $(CC) -c ${CFLAGS} -DREG=register -DHZ=${HZ} ${OPTON} dhry_2.c
52! 	$(CC) -o $(PROGDIR)/dhry2reg ${CFLAGS} ${OPTON} $(SRCDIR)/dhry_1.o $(SRCDIR)/dhry_2.o
53! 	cd $(SRCDIR); rm -f dhry_1.o dhry_2.o
54
55
56  dhry2reg: $(SRCDIR)/dhry_1.c $(SRCDIR)/dhry_2.c $(SRCDIR)/dhry.h
57--- 204,213 ----
58  	$(CC) -o $(PROGDIR)/dhry2 ${CFLAGS} ${OPTON} $(SRCDIR)/dhry_1.o $(SRCDIR)/dhry_2.o
59  	cd $(SRCDIR); rm -f dhry_1.o dhry_2.o
60  $(PROGDIR)/dhry2reg: $(SRCDIR)/dhry_1.c $(SRCDIR)/dhry_2.c $(SRCDIR)/dhry.h
61! 	cd $(SRCDIR); $(CC) -c ${CFLAGS} -DREG=register -DHZ=${HZ} ${OPTON} dhry_1.c -o dhry_1_reg.o
62! 	cd $(SRCDIR); $(CC) -c ${CFLAGS} -DREG=register -DHZ=${HZ} ${OPTON} dhry_2.c -o dhry_2_reg.o
63! 	$(CC) -o $(PROGDIR)/dhry2reg ${CFLAGS} ${OPTON} $(SRCDIR)/dhry_1_reg.o $(SRCDIR)/dhry_2_reg.o
64! 	cd $(SRCDIR); rm -f dhry_1_reg.o dhry_2_reg.o
65
66
67  dhry2reg: $(SRCDIR)/dhry_1.c $(SRCDIR)/dhry_2.c $(SRCDIR)/dhry.h
68