source: roaraudio/libroarsndio/Makefile @ 1773:05c54c83cdec

Last change on this file since 1773:05c54c83cdec was 1773:05c54c83cdec, checked in by phi, 15 years ago

use ranlib

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