Lines 37-64
Link Here
|
37 |
######### ppro's, etc, as well as the AMD K6 and K7. The compile will |
37 |
######### ppro's, etc, as well as the AMD K6 and K7. The compile will |
38 |
######### probably require gcc. |
38 |
######### probably require gcc. |
39 |
|
39 |
|
40 |
ifeq (, $(findstring $(OSARCH) , Darwin SunOS )) |
|
|
41 |
ifeq (, $(findstring $(PROC) , x86_64 amd64 ultrasparc sparc64 arm armv5b armeb ppc powerpc ppc64 ia64 s390 bfin mipsel mips)) |
42 |
ifeq (, $(findstring $(shell uname -m) , ppc ppc64 alpha armv4l s390 )) |
43 |
ifeq ($(shell /usr/bin/sw_vers -productVersion | cut -c1-4),10.6) |
44 |
# Wow... Snow Leopard is BROKEN! |
45 |
OPTIMIZE+=-mtune=native |
46 |
else |
47 |
OPTIMIZE+=-march=$(PROC) |
48 |
endif |
49 |
endif |
50 |
endif |
51 |
endif |
52 |
|
53 |
#The problem with sparc is the best stuff is in newer versions of gcc (post 3.0) only. |
54 |
#This works for even old (2.96) versions of gcc and provides a small boost either way. |
55 |
#A ultrasparc cpu is really v9 but the stock debian stable 3.0 gcc doesn't support it. |
56 |
#So we go lowest common available by gcc and go a step down, still a step up from |
57 |
#the default as we now have a better instruction set to work with. - Belgarath |
58 |
ifeq ($(PROC),ultrasparc) |
59 |
OPTIMIZE+=-mcpu=v8 -mtune=$(PROC) -O3 |
60 |
endif |
61 |
|
62 |
PG = |
40 |
PG = |
63 |
#PG = -g -pg |
41 |
#PG = -g -pg |
64 |
######### Profiling flags. If you don't know what that means, leave it blank. |
42 |
######### Profiling flags. If you don't know what that means, leave it blank. |
Lines 213-224
Link Here
|
213 |
# XXX Keep a space after each findstring argument |
191 |
# XXX Keep a space after each findstring argument |
214 |
# XXX should merge with GSM_OBJECTS |
192 |
# XXX should merge with GSM_OBJECTS |
215 |
ifeq ($(OSARCH),linux-gnu) |
193 |
ifeq ($(OSARCH),linux-gnu) |
216 |
ifeq (,$(findstring $(shell uname -m) , x86_64 amd64 ppc ppc64 alpha armv4l sparc64 parisc s390 )) |
194 |
ifneq ($(K6OPT),) |
217 |
ifeq (,$(findstring $(PROC) , arm armv5b armeb powerpc ia64 s390 bfin mipsel mips )) |
|
|
218 |
GSM_SOURCES+= $(SRC)/k6opt.s |
195 |
GSM_SOURCES+= $(SRC)/k6opt.s |
219 |
endif |
196 |
endif |
220 |
endif |
197 |
endif |
221 |
endif |
|
|
222 |
|
198 |
|
223 |
TOAST_SOURCES = $(SRC)/toast.c \ |
199 |
TOAST_SOURCES = $(SRC)/toast.c \ |
224 |
$(SRC)/toast_lin.c \ |
200 |
$(SRC)/toast_lin.c \ |
Lines 265-276
Link Here
|
265 |
$(SRC)/table.o |
241 |
$(SRC)/table.o |
266 |
|
242 |
|
267 |
ifeq ($(OSARCH),linux-gnu) |
243 |
ifeq ($(OSARCH),linux-gnu) |
268 |
ifeq (,$(findstring $(shell uname -m) , x86_64 amd64 ppc ppc64 alpha armv4l sparc64 parisc )) |
244 |
ifneq ($(K6OPT),) |
269 |
ifeq (,$(findstring $(PROC) , arm armv5b armeb powerpc ia64 bfin mipsel mips )) |
|
|
270 |
GSM_OBJECTS+= $(SRC)/k6opt.o |
245 |
GSM_OBJECTS+= $(SRC)/k6opt.o |
271 |
endif |
246 |
endif |
272 |
endif |
247 |
endif |
273 |
endif |
|
|
274 |
|
248 |
|
275 |
TOAST_OBJECTS = $(SRC)/toast.o \ |
249 |
TOAST_OBJECTS = $(SRC)/toast.o \ |
276 |
$(SRC)/toast_lin.o \ |
250 |
$(SRC)/toast_lin.o \ |