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

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

correct usage of COMMON_SOVERSION

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