makefile
上传用户:luckfish
上传日期:2021-12-16
资源大小:77k
文件大小:2k
源码类别:

语音压缩

开发平台:

Visual C++

  1. #------------------------------------------------------------------------------
  2. #
  3. #   Commands:  
  4. #      make OSTYPE=xxx  [opt]         Create optimized executable melp
  5. #      make OSTYPE=xxx  debug         Create debugging executable melp
  6. #      make clean                Remove existing object files
  7. #------------------------------------------------------------------------------
  8. #   Turn on dependency tracking (for include files).
  9. #------------------------------------------------------------------------------
  10. .KEEP_STATE:
  11. #------------------------------------------------------------------------------
  12. #   Specify names of source files and executable.
  13. #------------------------------------------------------------------------------
  14. OBJS   = melp.o melp_ana.o melp_syn.o melp_chn.o coeff.o
  15. fsvq_cb.o msvq_cb.o fec_code.o dsp_sub.o melp_sub.o
  16. mat_lib.o lpc_lib.o vq_lib.o fs_lib.o pit_lib.o
  17. EXE     =       melp
  18. #------------------------------------------------------------------------------
  19. #   Specify options for compiling, linking, and archiving.  
  20. #------------------------------------------------------------------------------
  21. CC         = gcc 
  22. CFLAGS     = -O3 -D$(OSTYPE) -Wall
  23. LIBS    = -lm
  24. COMPILE.c  = $(CC) $(CFLAGS) -c
  25. LINK.c     = $(CC) $(CFLAGS) 
  26. #------------------------------------------------------------------------------
  27. #   Specify conditional settings.
  28. #------------------------------------------------------------------------------
  29. debug  := CFLAGS = -g -D$(OSTYPE) -Wall
  30. #------------------------------------------------------------------------------
  31. #   Compile and link command.
  32. #------------------------------------------------------------------------------
  33. opt debug         :  $(OBJS)
  34. $(LINK.c) -o $(EXE) $(OBJS) $(LIBS)
  35. #
  36. # purify
  37. #
  38. purify          :  $(OBJS)
  39. purify $(LINK.c) -o $(EXE) $(OBJS) $(LIBS)
  40. #------------------------------------------------------------------------------
  41. #   Define clean (remove temporary files).
  42. #------------------------------------------------------------------------------
  43. clean:
  44. /bin/rm $(OBJS) 
  45. #------------------------------------------------------------------------------
  46. #   End of Makefile.
  47. #------------------------------------------------------------------------------