source: roaraudio/libroarsndio/Makefile @ 5878:3b92b0d6ef9b

Last change on this file since 5878:3b92b0d6ef9b was 5851:735e3e6b9d59, checked in by phi, 11 years ago

make more use out of $(DEBUG_g) and $(Wall)

File size: 758 bytes
Line 
1include ../Makefile.conf
2include ../Makefile.inc
3
4SLIB=libroarsndio$(SHARED_SUFFIX)
5
6TARGETS=$(SLIB) libroarsndio.a
7OBJS=libroarsndio.o para.o stream.o events.o volume.o midi.o
8
9#DEFINES        = -DDEBUG
10INCLUDE = -I../include -I../include/libroarsndio
11CFLAGS += $(DEBUG_g) $(Wall) $(Wextra) $(OPTI_O) $(DEFINES) $(INCLUDE) $(INCPATH) $(SHARED_CF) $(fPIC)
12LDFLAGS+= $(DEBUG_g) $(Wall) $(SHARED) -L../lib/ $(LDPATH)
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}
24libroarsndio.a: ${OBJS}
25        ${AR} cru libroarsndio.a ${OBJS}
26        ${RANLIB} libroarsndio.a
Note: See TracBrowser for help on using the repository browser.