Makefile 635 B

1234567891011121314151617181920212223242526272829303132333435
  1. # Convert speex to wav
  2. # By ly9@qq.com
  3. CC = gcc
  4. CXX = g++
  5. CFLAGS = -g
  6. CPPFLAGS =
  7. INCLUDE=./speex
  8. LNK_OPT = -lspeex
  9. all: spx2wav
  10. spx2wav: SpeexDecode.o TRSpeex.o fifo.o
  11. $(CC) $(CFLAGS) -o $@ $^ -I$(INCLUDE) $(LNK_OPT)
  12. SpeexDecode.o:./SpeexDecode.c
  13. $(CC) $(CFLAGS) -c -o $@ $< -I$(INCLUDE) $(LNK_OPT)
  14. TRSpeex.o:./TRSpeex.c
  15. $(CC) $(CFLAGS) -c -o $@ $< -I$(INCLUDE) $(LNK_OPT)
  16. fifo.o:./fifo.c
  17. $(CC) $(CFLAGS) -c -o $@ $< -I$(INCLUDE) $(LNK_OPT)
  18. clean:
  19. rm *.o
  20. rm spx2wav
  21. .c.o:
  22. $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< -fPIC -g -O0 -I$(INCLUDE) -v
  23. .cc.o:
  24. $(CXX) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< -fPIC -I$(INCLUDE) -v