diff options
Diffstat (limited to 'tools/rbspeex/Makefile')
-rw-r--r-- | tools/rbspeex/Makefile | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/tools/rbspeex/Makefile b/tools/rbspeex/Makefile index f6e70def96..a2b6725f5d 100644 --- a/tools/rbspeex/Makefile +++ b/tools/rbspeex/Makefile | |||
@@ -26,7 +26,7 @@ endif | |||
26 | # This sets up 'SRC' based on the files mentioned in SOURCES | 26 | # This sets up 'SRC' based on the files mentioned in SOURCES |
27 | SRC := $(shell cat $(SPEEXSRC)/SOURCES | $(CC) $(CFLAGS) -E -P - | grep -v "^\#") | 27 | SRC := $(shell cat $(SPEEXSRC)/SOURCES | $(CC) $(CFLAGS) -E -P - | grep -v "^\#") |
28 | 28 | ||
29 | SOURCES = $(SRC:%.c=$(SPEEXSRC)/%.c) rbspeexenc.c rbspeexdec.c | 29 | SOURCES = $(SRC:%.c=$(SPEEXSRC)/%.c) rbspeex.c rbspeexenc.c rbspeexdec.c |
30 | OBJS := $(SRC:%.c=%.o) | 30 | OBJS := $(SRC:%.c=%.o) |
31 | DEPFILE = dep-speex | 31 | DEPFILE = dep-speex |
32 | DIRS = | 32 | DIRS = |
@@ -49,23 +49,24 @@ $(DEPFILE): $(SOURCES) | |||
49 | done > $(DEPFILE); \ | 49 | done > $(DEPFILE); \ |
50 | echo "oo" > /dev/null ) | 50 | echo "oo" > /dev/null ) |
51 | 51 | ||
52 | libspeex.a: $(OBJS) $(DEPFILE) | 52 | librbspeex.a: $(OBJS) $(DEPFILE) rbspeex.o |
53 | @echo AR libspeex.a | 53 | @echo AR librbspeex.a |
54 | $(SILENT)$(AR) ruv $@ $+ > /dev/null 2>&1 | 54 | $(AR) ruv $@ $+ > /dev/null 2>&1 |
55 | 55 | ||
56 | ../rbspeexenc: $(OBJS) libspeex.a rbspeexenc.o | 56 | ../rbspeexenc: $(OBJS) rbspeexenc.o librbspeex.a |
57 | @echo Linking ../rbspeexenc | 57 | @echo Linking ../rbspeexenc |
58 | $(SILENT)$(CC) $(CFLAGS) -o ../rbspeexenc rbspeexenc.o libspeex.a -lm | 58 | $(SILENT)$(CC) $(CFLAGS) -o ../rbspeexenc rbspeexenc.o librbspeex.a -lm |
59 | 59 | ||
60 | ../rbspeexdec: $(OBJS) libspeex.a rbspeexdec.o | 60 | ../rbspeexdec: $(OBJS) librbspeex.a rbspeexdec.o |
61 | @echo Linking ../rbspeexdec | 61 | @echo Linking ../rbspeexdec |
62 | $(SILENT)$(CC) $(CFLAGS) -o ../rbspeexdec rbspeexdec.o libspeex.a -lm | 62 | $(SILENT)$(CC) $(CFLAGS) -o ../rbspeexdec rbspeexdec.o librbspeex.a -lm |
63 | 63 | ||
64 | %.o: | 64 | %.o: |
65 | @echo CC $< | 65 | @echo CC $< |
66 | $(SILENT)$(CC) $(CFLAGS) -c $< -o $@ | 66 | $(SILENT)$(CC) $(CFLAGS) -c $< -o $@ |
67 | 67 | ||
68 | |||
68 | clean: | 69 | clean: |
69 | rm -f $(OBJS) libspeex.a rbspeexenc.o ../rbspeexenc dep-speex | 70 | rm -f $(OBJS) libspeex.a librbspeex.a rbspeexenc.o ../rbspeexenc dep-speex |
70 | 71 | ||
71 | -include $(DEPFILE) | 72 | -include $(DEPFILE) |