forked from baogaitou/spx2wav
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (24 loc) · 635 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Convert speex to wav
# By ly9@qq.com
CC = gcc
CXX = g++
CFLAGS = -g
CPPFLAGS =
INCLUDE=./speex
LNK_OPT = -lspeex
all: spx2wav
spx2wav: SpeexDecode.o TRSpeex.o fifo.o
$(CC) $(CFLAGS) -o $@ $^ -I$(INCLUDE) $(LNK_OPT)
SpeexDecode.o:./SpeexDecode.c
$(CC) $(CFLAGS) -c -o $@ $< -I$(INCLUDE) $(LNK_OPT)
TRSpeex.o:./TRSpeex.c
$(CC) $(CFLAGS) -c -o $@ $< -I$(INCLUDE) $(LNK_OPT)
fifo.o:./fifo.c
$(CC) $(CFLAGS) -c -o $@ $< -I$(INCLUDE) $(LNK_OPT)
clean:
rm *.o
rm spx2wav
.c.o:
$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< -fPIC -g -O0 -I$(INCLUDE) -v
.cc.o:
$(CXX) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< -fPIC -I$(INCLUDE) -v