source: roaraudio/libroardsp/Makefile @ 5849:beb4bacada1d

Last change on this file since 5849:beb4bacada1d was 5849:beb4bacada1d, checked in by phi, 11 years ago

updated build system a bit to prepare for --out-implib support

File size: 1.3 KB
Line 
1include ../Makefile.conf
2include ../Makefile.inc
3
4BASENAME=libroardsp
5SLIB=$(BASENAME)$(SHARED_SUFFIX)
6ALIB=$(BASENAME).a
7
8TARGETS=$(SLIB) $(ALIB) $(IMPLIB)
9OBJS=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
10OLDROAR=midi.o
11FILTER=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 filter_goertzel.o
12MIDI=synth.o
13CODECS=alaw.o mulaw.o
14TRANSCODERS=transcode_mualaw.o transcode_celt.o transcode_speex.o
15
16ALLOBJS=$(OBJS) $(FILTER) $(TRANSCODERS) $(OLDROAR) $(MIDI) $(CODECS)
17
18#DEFINES        = -DDEBUG
19INCLUDE = -I../include -I../include/libroardsp
20CFLAGS += $(DEBUG_g) $(Wall) $(OPTI_O) $(DEFINES) $(INCLUDE) $(INCPATH) $(SHARED_CF) $(fPIC)
21LDFLAGS+= $(DEBUG_g) $(Wall) $(SHARED) -L../lib/ $(LDPATH)
22
23LIBS      = $(LIBROARDSP_NS)
24
25all: ${TARGETS}
26        rm -f ../lib/${SLIB} 2> /dev/null || true
27        cp $(cp_v) ${TARGETS} ../lib/
28clean:
29        rm -f ${TARGETS} *.o
30new: clean all
31
32$(SLIB): $(ALLOBJS)
33        ${CC} ${LDFLAGS} -Wl,-soname,$(SLIB).$(LIBROARDSP_V) -o $(SLIB) $(ALLOBJS) $(LIBS)
34$(ALIB): $(ALLOBJS)
35        ${AR} cru $(ALIB) $(ALLOBJS)
36        ${RANLIB} $(ALIB)
Note: See TracBrowser for help on using the repository browser.