1# 2# Makefile for LPC-10 speech coder library (unix) 3# 4 5# default C compiler 6CC= gcc 7 8# 9# These definitions for CFLAGS and LIB_TARGET_DIR are used when one 10# runs make in the lpc10 directory, without environment variables that 11# override them. When make is run in this directory from a makefile 12# for an application that uses the LPC10 coder, there are environment 13# variables set for CFLAGS and LIB_TARGET_DIR that override these 14# definitions. 15# 16 17LIB_TARGET_DIR = .. 18 19# 20# -I$(LIB_TARGET_DIR) option needed so that #include "machine.h" 21# directives can find the machine.h file. 22# 23 24WARNINGS = -Wall 25CFLAGS = -O3 -I$(LIB_TARGET_DIR) $(WARNINGS) 26 27LIB = $(LIB_TARGET_DIR)/liblpc10.a 28 29.PHONY: all clean 30 31all: $(LIB) 32 ranlib $(LIB) 33 34$(LIB): $(LIB)(f2clib.o) \ 35 $(LIB)(analys.o) \ 36 $(LIB)(bsynz.o) \ 37 $(LIB)(chanwr.o) \ 38 $(LIB)(dcbias.o) \ 39 $(LIB)(decode.o) \ 40 $(LIB)(deemp.o) \ 41 $(LIB)(difmag.o) \ 42 $(LIB)(dyptrk.o) \ 43 $(LIB)(encode.o) \ 44 $(LIB)(energy.o) \ 45 $(LIB)(ham84.o) \ 46 $(LIB)(hp100.o) \ 47 $(LIB)(invert.o) \ 48 $(LIB)(irc2pc.o) \ 49 $(LIB)(ivfilt.o) \ 50 $(LIB)(lpcdec.o) \ 51 $(LIB)(lpcenc.o) \ 52 $(LIB)(lpcini.o) \ 53 $(LIB)(lpfilt.o) \ 54 $(LIB)(median.o) \ 55 $(LIB)(mload.o) \ 56 $(LIB)(onset.o) \ 57 $(LIB)(pitsyn.o) \ 58 $(LIB)(placea.o) \ 59 $(LIB)(placev.o) \ 60 $(LIB)(preemp.o) \ 61 $(LIB)(prepro.o) \ 62 $(LIB)(random.o) \ 63 $(LIB)(rcchk.o) \ 64 $(LIB)(synths.o) \ 65 $(LIB)(tbdm.o) \ 66 $(LIB)(voicin.o) \ 67 $(LIB)(vparms.o) 68 69clean: 70 -rm -f *.o 71