summaryrefslogtreecommitdiff
path: root/tools/rbspeex/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/rbspeex/Makefile')
-rw-r--r--tools/rbspeex/Makefile8
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
27SRC := $(shell cat $(SPEEXSRC)/SOURCES | $(CC) $(CFLAGS) -E -P - | grep -v "^\#") 27SRC := $(shell cat $(SPEEXSRC)/SOURCES | $(CC) $(CFLAGS) -E -P - | grep -v "^\#")
28 28
29SOURCES = $(SRC:%.c=$(SPEEXSRC)/%.c) rbspeexenc.c 29SOURCES = $(SRC:%.c=$(SPEEXSRC)/%.c) rbspeexenc.c rbspeexdec.c
30OBJS := $(SRC:%.c=%.o) 30OBJS := $(SRC:%.c=%.o)
31DEPFILE = dep-speex 31DEPFILE = dep-speex
32DIRS = 32DIRS =
33 33
34.PHONY : all 34.PHONY : all
35 35
36all: ../rbspeexenc 36all: ../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 $@