1 diff -urbB asterisk-1.0.9.org/channels/h323/Makefile asterisk-1.0.9/channels/h323/Makefile
2 --- asterisk-1.0.9.org/channels/h323/Makefile 2004-11-15 03:35:35.000000000 +0100
3 +++ asterisk-1.0.9/channels/h323/Makefile 2005-10-09 11:49:52.396650250 +0200
5 # This needs to be updated to deal with more than just little endian machines
7 OSARCH=$(shell uname -s)
8 -ifneq (${OSARCH},FreeBSD)
9 -ifneq (${OSARCH},NetBSD)
10 -CFLAGS += -march=$(shell uname -m)
13 CFLAGS += -DPBYTE_ORDER=PLITTLE_ENDIAN
15 ifeq (${OSARCH},Linux)
16 Tylko w asterisk-1.0.9/channels/h323: Makefile~
17 diff -urbB asterisk-1.0.9.org/codecs/gsm/Makefile asterisk-1.0.9/codecs/gsm/Makefile
18 --- asterisk-1.0.9.org/codecs/gsm/Makefile 2005-06-21 16:27:28.000000000 +0200
19 +++ asterisk-1.0.9/codecs/gsm/Makefile 2005-10-09 11:50:18.350272250 +0200
21 ######### ppro's, etc, as well as the AMD K6 and K7. The compile will
22 ######### probably require gcc.
24 -ifneq (${OSARCH},Darwin)
25 -ifneq (${PROC},x86_64)
26 -ifneq (${PROC},ultrasparc)
27 -ifneq ($(shell uname -m),ppc)
28 -ifneq ($(shell uname -m),alpha)
29 -ifneq ($(shell uname -m),armv4l)
30 -ifneq (${PROC},sparc64)
32 -ifneq (${PROC},ppc64)
33 -OPTIMIZE+=-march=$(PROC)
44 #The problem with sparc is the best stuff is in newer versions of gcc (post 3.0) only.
45 #This works for even old (2.96) versions of gcc and provides a small boost either way.
46 #A ultrasparc cpu is really v9 but the stock debian stable 3.0 gcc doesn't support it.
47 #So we go lowest common available by gcc and go a step down, still a step up from
48 #the default as we now have a better instruction set to work with. - Belgarath
49 -ifeq (${PROC},ultrasparc)
50 -OPTIMIZE+=-mcpu=v8 -mtune=$(PROC) -O3 -fomit-frame-pointer
55 Tylko w asterisk-1.0.9/codecs/gsm: Makefile~
56 diff -urbB asterisk-1.0.9.org/codecs/lpc10/Makefile asterisk-1.0.9/codecs/lpc10/Makefile
57 --- asterisk-1.0.9.org/codecs/lpc10/Makefile 2004-08-31 18:33:00.000000000 +0200
58 +++ asterisk-1.0.9/codecs/lpc10/Makefile 2005-10-09 11:50:32.795175000 +0200
60 CFLAGS += $(OPTIMIZE) -I$(LIB_TARGET_DIR) $(WARNINGS) -fPIC
61 #CFLAGS+= $(shell if uname -m | grep -q 86; then echo "-mpentium" ; fi)
63 -#fix for PPC processors and ALPHA, And UltraSparc too
64 -ifneq ($(OSARCH),Darwin)
65 -ifneq ($(findstring BSD,${OSARCH}),BSD)
67 -ifneq ($(PROC),x86_64)
68 -ifneq ($(PROC),alpha)
69 -#The problem with sparc is the best stuff is in newer versions of gcc (post 3.0) only.
70 -#This works for even old (2.96) versions of gcc and provides a small boost either way.
71 -#A ultrasparc cpu is really v9 but the stock debian stable 3.0 gcc doesn.t support it.
72 -#So we go lowest common available by gcc and go a step down, still a step up from
73 -#the default as we now have a better instruction set to work with. - Belgarath
74 -ifeq ($(PROC),ultrasparc)
75 - CFLAGS+= -mtune=$(PROC) -mcpu=v8 -O3 -fomit-frame-pointer
77 - CFLAGS+= -march=$(PROC)
85 LIB = $(LIB_TARGET_DIR)/liblpc10.a
88 Tylko w asterisk-1.0.9/codecs/lpc10: Makefile~
89 diff -urbB asterisk-1.0.9.org/Makefile asterisk-1.0.9/Makefile
90 --- asterisk-1.0.9.org/Makefile 2005-04-26 16:30:23.000000000 +0200
91 +++ asterisk-1.0.9/Makefile 2005-10-09 11:49:39.263829500 +0200
93 CFLAGS=-pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations $(DEBUG) $(INCLUDE) -D_REENTRANT -D_GNU_SOURCE #-DMAKE_VALGRIND_HAPPY
96 -ifneq ($(PROC),ultrasparc)
97 -CFLAGS+=$(shell if $(CC) -march=$(PROC) -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=$(PROC)"; fi)
100 CFLAGS+=$(shell if uname -m | grep -q ppc; then echo "-fsigned-char"; fi)
101 CFLAGS+=$(shell if [ -f /usr/include/osp/osp.h ]; then echo "-DOSP_SUPPORT -I/usr/include/osp" ; fi)