diff options
Diffstat (limited to 'tools/rbspeex/Makefile')
-rw-r--r-- | tools/rbspeex/Makefile | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tools/rbspeex/Makefile b/tools/rbspeex/Makefile index a82e80e017..41bf775d38 100644 --- a/tools/rbspeex/Makefile +++ b/tools/rbspeex/Makefile | |||
@@ -35,7 +35,7 @@ endif | |||
35 | # This sets up 'SRC' based on the files mentioned in SOURCES | 35 | # This sets up 'SRC' based on the files mentioned in SOURCES |
36 | SRC := $(shell cat $(SPEEXSRC)/SOURCES | $(CC) $(CFLAGS) -E -P - | grep -v "^\#" | grep -v "^$$") | 36 | SRC := $(shell cat $(SPEEXSRC)/SOURCES | $(CC) $(CFLAGS) -E -P - | grep -v "^\#" | grep -v "^$$") |
37 | 37 | ||
38 | OUT = build$(RBARCH) | 38 | OUT = $(TARGET_DIR)build$(RBARCH) |
39 | SOURCES = $(SRC:%.c=$(SPEEXSRC)/%.c) rbspeex.c rbspeexenc.c rbspeexdec.c | 39 | SOURCES = $(SRC:%.c=$(SPEEXSRC)/%.c) rbspeex.c rbspeexenc.c rbspeexdec.c |
40 | OBJS = $(addprefix $(OUT)/,$(SRC:%.c=%.o)) | 40 | OBJS = $(addprefix $(OUT)/,$(SRC:%.c=%.o)) |
41 | DEPFILE = $(OUT)/dep-speex | 41 | DEPFILE = $(OUT)/dep-speex |
@@ -46,8 +46,8 @@ DIRS = | |||
46 | all: ../rbspeexenc ../rbspeexdec | 46 | all: ../rbspeexenc ../rbspeexdec |
47 | 47 | ||
48 | $(DEPFILE): $(SOURCES) | 48 | $(DEPFILE): $(SOURCES) |
49 | @echo MKDIR build$(RBARCH) | 49 | @echo MKDIR $(OUT) |
50 | $(SILENT)mkdir -p build$(RBARCH) | 50 | $(SILENT)mkdir -p $(OUT) |
51 | @echo Creating dependencies | 51 | @echo Creating dependencies |
52 | $(SILENT)rm -f $(DEPFILE) | 52 | $(SILENT)rm -f $(DEPFILE) |
53 | $(SILENT)(for each in $(SOURCES) x; do \ | 53 | $(SILENT)(for each in $(SOURCES) x; do \ |
@@ -69,7 +69,7 @@ $(OUT)/librbspeex.a: $(OBJS) $(DEPFILE) $(OUT)/rbspeex.o | |||
69 | $(SILENT)$(AR) ruv $@ $+ > /dev/null 2>&1 | 69 | $(SILENT)$(AR) ruv $@ $+ > /dev/null 2>&1 |
70 | 70 | ||
71 | librbspeex$(RBARCH).a: $(OUT)/librbspeex.a | 71 | librbspeex$(RBARCH).a: $(OUT)/librbspeex.a |
72 | $(SILENT)cp $(OUT)/librbspeex.a librbspeex$(RBARCH).a | 72 | $(SILENT)cp $(OUT)/librbspeex.a $(TARGET_DIR)librbspeex$(RBARCH).a |
73 | 73 | ||
74 | ../rbspeexenc: $(OBJS) $(OUT)/rbspeexenc.o librbspeex$(RBARCH).a | 74 | ../rbspeexenc: $(OBJS) $(OUT)/rbspeexenc.o librbspeex$(RBARCH).a |
75 | @echo Linking ../rbspeexenc | 75 | @echo Linking ../rbspeexenc |
@@ -86,22 +86,22 @@ librbspeex$(RBARCH).a: $(OUT)/librbspeex.a | |||
86 | # some trickery to build ppc and i386 from a single call | 86 | # some trickery to build ppc and i386 from a single call |
87 | ifeq ($(RBARCH),) | 87 | ifeq ($(RBARCH),) |
88 | librbspeexi386.a: | 88 | librbspeexi386.a: |
89 | make RBARCH=i386 librbspeexi386.a | 89 | make RBARCH=i386 TARGET_DIR=$(TARGET_DIR) librbspeexi386.a |
90 | 90 | ||
91 | librbspeexppc.a: | 91 | librbspeexppc.a: |
92 | make RBARCH=ppc librbspeexppc.a | 92 | make RBARCH=ppc TARGET_DIR=$(TARGET_DIR) librbspeexppc.a |
93 | endif | 93 | endif |
94 | 94 | ||
95 | librbspeex-universal: librbspeexi386.a librbspeexppc.a | 95 | librbspeex-universal: librbspeexi386.a librbspeexppc.a |
96 | @echo lipo librbspeex.a | 96 | @echo lipo librbspeex.a |
97 | $(SILENT) rm -f librbspeex.a | 97 | $(SILENT) rm -f $(TARGET_DIR)librbspeex.a |
98 | lipo -create librbspeexppc.a librbspeexi386.a -output librbspeex.a | 98 | lipo -create $(TARGET_DIR)librbspeexppc.a $(TARGET_DIR)librbspeexi386.a -output $(TARGET_DIR)librbspeex.a |
99 | 99 | ||
100 | clean: | 100 | clean: |
101 | rm -f $(OBJS) librbspeex* ../rbspeexenc ../rbspeexdec dep-speex | 101 | rm -f $(OBJS) $(TARGET_DIR)librbspeex* ../rbspeexenc ../rbspeexdec $(TARGET_DIR)dep-speex |
102 | rm -rf build* | 102 | rm -rf build* |
103 | 103 | ||
104 | build$(RBARCH): | 104 | $(OUT): |
105 | @echo MKDIR build$(RBARCH) | 105 | @echo MKDIR $(OUT) |
106 | $(SILENT)mkdir build$(RBARCH) | 106 | $(SILENT)mkdir $(OUT) |
107 | 107 | ||