Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #
  2. # Makefile for LPC-10 speech coder library (unix)
  3. #
  4. # default C compiler
  5. CC?= gcc
  6. #
  7. # These definitions for CFLAGS and LIB_TARGET_DIR are used when one
  8. # runs make in the lpc10 directory, without environment variables that
  9. # override them. When make is run in this directory from a makefile
  10. # for an application that uses the LPC10 coder, there are environment
  11. # variables set for CFLAGS and LIB_TARGET_DIR that override these
  12. # definitions.
  13. #
  14. LIB_TARGET_DIR = .
  15. #
  16. # -I$(LIB_TARGET_DIR) option needed so that #include "machine.h"
  17. # directives can find the machine.h file.
  18. #
  19. CFLAGS+= -fPIC -Wno-comment
  20. # The code here generates lots of warnings, so compiling with -Werror
  21. # fails miserably. Remove it for the time being.
  22. _ASTCFLAGS:=$(_ASTCFLAGS:-Werror=)
  23. LIB = $(LIB_TARGET_DIR)/liblpc10.a
  24. .PHONY: all clean
  25. include $(ASTTOPDIR)/Makefile.rules
  26. all: $(LIB)
  27. OBJ=f2clib.o analys.o bsynz.o chanwr.o dcbias.o decode.o \
  28. deemp.o difmag.o dyptrk.o encode.o energy.o ham84.o \
  29. hp100.o invert.o irc2pc.o ivfilt.o lpcdec.o lpcenc.o \
  30. lpcini.o lpfilt.o median.o mload.o onset.o pitsyn.o \
  31. placea.o placev.o preemp.o prepro.o random.o rcchk.o \
  32. synths.o tbdm.o voicin.o vparms.o
  33. $(LIB): $(OBJ)
  34. $(ECHO_PREFIX) echo " [AR] $^ -> $@"
  35. $(CMD_PREFIX) $(AR) cr $@ $^
  36. $(CMD_PREFIX) $(RANLIB) $@
  37. clean:
  38. rm -f *.o $(LIB) .*.d
  39. rm -f *.s *.i