source: roaraudio/libroardsp/Makefile @ 5546:faff3e9677c4

Last change on this file since 5546:faff3e9677c4 was 5546:faff3e9677c4, checked in by phi, 7 years ago

Started DTMF library

File size: 1.2 KB
Line 
1include ../Makefile.conf
2include ../Makefile.inc
3
4SLIB=libroardsp$(SHARED_SUFFIX)
5
6TARGETS=$(SLIB) libroardsp.a
7OBJS=libroardsp.o convert.o midside.o poly.o filter.o filterchain.o remove.o transcode.o vio_transcode.o rms.o fader.o mixer.o amp.o interleave.o channels.o resampler_poly3.o float.o dtmf.o
8OLDROAR=midi.o
9FILTER=filter_lowp.o filter_highp.o filter_amp.o filter_quantify.o filter_add.o filter_clip.o filter_downmix.o filter_dcblock.o filter_swap.o filter_agc.o filter_speex_prep.o filter_responsecurve.o
10MIDI=synth.o
11CODECS=alaw.o mulaw.o
12TRANSCODERS=transcode_mualaw.o transcode_celt.o transcode_speex.o
13
14ALLOBJS=$(OBJS) $(FILTER) $(TRANSCODERS) $(OLDROAR) $(MIDI) $(CODECS)
15
16#DEFINES        = -DDEBUG
17INCLUDE = -I../include -I../include/libroardsp
18CFLAGS += -g -Wall $(OPTI_O) $(DEFINES) $(INCLUDE) $(INCPATH) $(SHARED_CF) $(fPIC)
19LDFLAGS+= -g -Wall $(SHARED) -L../lib/ $(LDPATH)
20
21LIBS      = $(LIBROARDSP_NS)
22
23all: ${TARGETS}
24        rm -f ../lib/${SLIB} 2> /dev/null || true
25        cp $(cp_v) ${TARGETS} ../lib/
26clean:
27        rm -f ${TARGETS} *.o
28new: clean all
29
30$(SLIB): $(ALLOBJS)
31        ${CC} ${LDFLAGS} -Wl,-soname,$(SLIB).$(LIBROARDSP_V) -o $(SLIB) $(ALLOBJS) $(LIBS)
32libroardsp.a: $(ALLOBJS)
33        ${AR} cru libroardsp.a $(ALLOBJS)
34        ${RANLIB} libroardsp.a
Note: See TracBrowser for help on using the repository browser.