source: roaraudio/libroardsp/Makefile @ 4748:d7be1c18ccb5

Last change on this file since 4748:d7be1c18ccb5 was 4748:d7be1c18ccb5, checked in by phi, 13 years ago

updated configure script to honor LDFLAGS and added --opti to set optimizer level (Closes: #27)

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