diff options
Diffstat (limited to 'tools/rbspeex/Makefile')
-rw-r--r-- | tools/rbspeex/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/rbspeex/Makefile b/tools/rbspeex/Makefile index 2e8a692c3d..f6e70def96 100644 --- a/tools/rbspeex/Makefile +++ b/tools/rbspeex/Makefile | |||
@@ -26,14 +26,14 @@ 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 | 29 | SOURCES = $(SRC:%.c=$(SPEEXSRC)/%.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 = |
33 | 33 | ||
34 | .PHONY : all | 34 | .PHONY : all |
35 | 35 | ||
36 | all: ../rbspeexenc | 36 | all: ../rbspeexenc ../rbspeexdec |
37 | 37 | ||
38 | $(DEPFILE): $(SOURCES) | 38 | $(DEPFILE): $(SOURCES) |
39 | $(SILENT)rm -f $(DEPFILE) | 39 | $(SILENT)rm -f $(DEPFILE) |
@@ -57,6 +57,10 @@ libspeex.a: $(OBJS) $(DEPFILE) | |||
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 libspeex.a -lm |
59 | 59 | ||
60 | ../rbspeexdec: $(OBJS) libspeex.a rbspeexdec.o | ||
61 | @echo Linking ../rbspeexdec | ||
62 | $(SILENT)$(CC) $(CFLAGS) -o ../rbspeexdec rbspeexdec.o libspeex.a -lm | ||
63 | |||
60 | %.o: | 64 | %.o: |
61 | @echo CC $< | 65 | @echo CC $< |
62 | $(SILENT)$(CC) $(CFLAGS) -c $< -o $@ | 66 | $(SILENT)$(CC) $(CFLAGS) -c $< -o $@ |