add KERNEL variable
[openwrt.git] / openwrt / package / asterisk / patches / asterisk-1.0.9-Makefile-codecs-gsm.patch
1 diff -ruN asterisk-1.0.9-old/codecs/gsm/Makefile asterisk-1.0.9-new/codecs/gsm/Makefile
2 --- asterisk-1.0.9-old/codecs/gsm/Makefile 2005-06-21 16:27:28.000000000 +0200
3 +++ asterisk-1.0.9-new/codecs/gsm/Makefile 2005-07-11 13:36:12.000000000 +0200
4 @@ -40,12 +40,12 @@
5 ifneq (${OSARCH},Darwin)
6 ifneq (${PROC},x86_64)
7 ifneq (${PROC},ultrasparc)
8 -ifneq ($(shell uname -m),ppc)
9 -ifneq ($(shell uname -m),alpha)
10 -ifneq ($(shell uname -m),armv4l)
11 +ifneq (${PROC},alpha)
12 +ifneq (${PROC},armv4l)
13 ifneq (${PROC},sparc64)
14 ifneq (${PROC},ppc)
15 ifneq (${PROC},ppc64)
16 +ifneq (${PROC},mipsel)
17 OPTIMIZE+=-march=$(PROC)
18 endif
19 endif
20 @@ -84,7 +84,7 @@
21 # CCFLAGS = -c -O
22
23 CC ?= gcc
24 -CCFLAGS += -c -DNeedFunctionPrototypes=1 -funroll-loops -fPIC $(OPTIMIZE) -fomit-frame-pointer
25 +CCFLAGS += -c -DNeedFunctionPrototypes=1 -fPIC $(OPTIMIZE)
26
27 LD = $(CC)
28
29 @@ -219,11 +219,12 @@
30 $(SRC)/short_term.c \
31 $(SRC)/table.c
32 ifeq (${OSARCH},Linux)
33 -ifneq ($(shell uname -m),x86_64)
34 -ifneq ($(shell uname -m),ppc)
35 -ifneq ($(shell uname -m),alpha)
36 -ifneq ($(shell uname -m),armv4l)
37 -ifneq ($(shell uname -m),sparc64)
38 +ifneq (${PROC},x86_64)
39 +ifneq (${PROC},ppc)
40 +ifneq (${PROC},alpha)
41 +ifneq (${PROC},armv4l)
42 +ifneq (${PROC},sparc64)
43 +ifneq ($(PROC),mipsel)
44 GSM_SOURCES+= $(SRC)/k6opt.s
45 endif
46 endif
47 @@ -231,6 +232,7 @@
48 endif
49 endif
50 endif
51 +endif
52
53 TOAST_SOURCES = $(SRC)/toast.c \
54 $(SRC)/toast_lin.c \
55 @@ -277,11 +279,12 @@
56 $(SRC)/table.o
57
58 ifeq (${OSARCH},Linux)
59 -ifneq ($(shell uname -m), x86_64)
60 -ifneq ($(shell uname -m), ppc)
61 -ifneq ($(shell uname -m), alpha)
62 -ifneq ($(shell uname -m), armv4l)
63 -ifneq ($(shell uname -m), sparc64)
64 +ifneq (${PROC}, x86_64)
65 +ifneq (${PROC}, ppc)
66 +ifneq (${PROC}, alpha)
67 +ifneq (${PROC}, armv4l)
68 +ifneq (${PROC}, sparc64)
69 +ifneq ($(PROC), mipsel)
70 GSM_OBJECTS+= $(SRC)/k6opt.o
71 endif
72 endif
73 @@ -289,6 +292,7 @@
74 endif
75 endif
76 endif
77 +endif
78
79 TOAST_OBJECTS = $(SRC)/toast.o \
80 $(SRC)/toast_lin.o \
This page took 0.0431859999999999 seconds and 5 git commands to generate.