Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 259976
Collapse All | Expand All

(-)a/Makefile (-33 / +13 lines)
Lines 39-44 Link Here
39
39
40
SHELL = /bin/sh
40
SHELL = /bin/sh
41
41
42
PKG_CONFIG     ?= pkg-config
43
42
# GRAPHICS TESTS: Uncomment the definition of "GRAPHIC_TESTS" to enable
44
# GRAPHICS TESTS: Uncomment the definition of "GRAPHIC_TESTS" to enable
43
# the building of the graphics benchmarks.  This will require the
45
# the building of the graphics benchmarks.  This will require the
44
# X11 libraries on your system.
46
# X11 libraries on your system.
Lines 47-84 SHELL = /bin/sh Link Here
47
# GRAPHIC_TESTS = defined
49
# GRAPHIC_TESTS = defined
48
50
49
# Set "GL_LIBS" to the libraries needed to link a GL program.
51
# Set "GL_LIBS" to the libraries needed to link a GL program.
50
GL_LIBS = -lGL -lXext -lX11
52
ifdef GRAPHIC_TESTS
51
53
GL_CFLAGS     = $(shell $(PKG_CONFIG) --cflags gl)
52
54
GL_LIBS       = $(shell $(PKG_CONFIG) --libs gl)
53
# COMPILER CONFIGURATION: Set "CC" to the name of the compiler to use
55
else
54
# to build the binary benchmarks.  You should also set "$cCompiler" in the
56
GL_CFLAGS =
55
# Run script to the name of the compiler you want to test.
57
GL_LIBS =
56
CC=gcc
58
endif
57
58
# OPTIMISATION SETTINGS:
59
60
## Very generic
61
#OPTON = -O
62
63
## For Linux 486/Pentium, GCC 2.7.x and 2.8.x
64
#OPTON = -O2 -fomit-frame-pointer -fforce-addr -fforce-mem -ffast-math \
65
#	-m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2
66
67
## For Linux, GCC previous to 2.7.0
68
#OPTON = -O2 -fomit-frame-pointer -fforce-addr -fforce-mem -ffast-math -m486
69
70
#OPTON = -O2 -fomit-frame-pointer -fforce-addr -fforce-mem -ffast-math \
71
#	-m386 -malign-loops=1 -malign-jumps=1 -malign-functions=1
72
73
## For Solaris 2, or general-purpose GCC 2.7.x
74
OPTON = -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall
75
76
## For Digital Unix v4.x, with DEC cc v5.x
77
#OPTON = -O4
78
#CFLAGS = -DTIME -std1 -verbose -w0
79
59
80
## generic gcc CFLAGS.  -DTIME must be included.
60
OPTON = -DTIME -Wall -pedantic -ansi
81
CFLAGS = -DTIME -Wall -pedantic -ansi
82
61
83
62
84
##############################################################################
63
##############################################################################
Lines 116-122 BINS = $(PROGDIR)/arithoh $(PROGDIR)/reg Link Here
116
	$(PROGDIR)/hanoi $(PROGDIR)/syscall $(PROGDIR)/context1 \
95
	$(PROGDIR)/hanoi $(PROGDIR)/syscall $(PROGDIR)/context1 \
117
	$(PROGDIR)/pipe $(PROGDIR)/spawn $(PROGDIR)/execl \
96
	$(PROGDIR)/pipe $(PROGDIR)/spawn $(PROGDIR)/execl \
118
	$(PROGDIR)/dhry2 $(PROGDIR)/dhry2reg  $(PROGDIR)/looper \
97
	$(PROGDIR)/dhry2 $(PROGDIR)/dhry2reg  $(PROGDIR)/looper \
119
	$(PROGDIR)/fstime $(PROGDIR)/whetstone-double $(GRAPHIC_BINS)
98
	$(PROGDIR)/fstime $(PROGDIR)/whetstone-double $(GRAPHIC_BINS) \
99
	$(PROGDIR)/poll $(PROGDIR)/select
120
## These compile only on some platforms...
100
## These compile only on some platforms...
121
# $(PROGDIR)/poll $(PROGDIR)/poll2 $(PROGDIR)/select
101
# $(PROGDIR)/poll $(PROGDIR)/poll2 $(PROGDIR)/select
122
102
Lines 238-244 $(PROGDIR)/looper: $(SRCDIR)/looper.c Link Here
238
	$(CC) -o $(PROGDIR)/looper ${CFLAGS} ${OPTON} $(SRCDIR)/looper.c
218
	$(CC) -o $(PROGDIR)/looper ${CFLAGS} ${OPTON} $(SRCDIR)/looper.c
239
219
240
$(PROGDIR)/ubgears: $(SRCDIR)/ubgears.c
220
$(PROGDIR)/ubgears: $(SRCDIR)/ubgears.c
241
	$(CC) -o $(PROGDIR)/ubgears ${CFLAGS} ${OPTON} $(SRCDIR)/ubgears.c $(GL_LIBS)
221
	$(CC) -o $(PROGDIR)/ubgears ${CFLAGS} ${GL_CFLAGS} ${OPTON} $(SRCDIR)/ubgears.c $(GL_LIBS) -lm
242
222
243
# Run the benchmarks and create the reports
223
# Run the benchmarks and create the reports
244
run:
224
run:

Return to bug 259976