source: roaraudio/libroarsndio/Makefile @ 4559:4660942db9dc

Last change on this file since 4559:4660942db9dc was 4559:4660942db9dc, checked in by phi, 13 years ago

correct usage of COMMON_SOVERSION

File size: 726 bytes
RevLine 
[1557]1include ../Makefile.conf
[2382]2include ../Makefile.inc
[1557]3
[2050]4SLIB=libroarsndio$(SHARED_SUFFIX)
[1758]5
6TARGETS=$(SLIB) libroarsndio.a
[2352]7OBJS=libroarsndio.o para.o stream.o events.o volume.o midi.o
[1557]8
9#DEFINES        = -DDEBUG
10INCLUDE = -I../include -I../include/libroarsndio
[3752]11CFLAGS += -g -Wall $(Wextra) -O2 $(DEFINES) $(INCLUDE) $(INCPATH) $(SHARED_CF) $(fPIC)
[1733]12LDFLAGS = -g $(SHARED) $(LDPATH) -L../lib/
[2382]13LIBS    = $(LIBROAR)
[1557]14
15all: ${TARGETS}
[1758]16        rm -f ../lib/${SLIB} 2> /dev/null || true
[1557]17        cp $(cp_v) ${TARGETS} ../lib/
18clean:
19        rm -f ${TARGETS} *.o
20new: clean all
21
[2050]22$(SLIB): ${OBJS}
[4559]23        ${CC} ${LDFLAGS} -Wl,-soname,$(SLIB).$(COMMON_SOVERSION) -o $(SLIB) ${OBJS} ${LIBS}
[1758]24libroarsndio.a: ${OBJS}
[1759]25        ${AR} cru libroarsndio.a ${OBJS}
[1773]26        ${RANLIB} libroarsndio.a
Note: See TracBrowser for help on using the repository browser.