source: roaraudio/libroarsndio/Makefile @ 2381:4d9b6f1e72d4

Last change on this file since 2381:4d9b6f1e72d4 was 2352:3cfa07f21ad8, checked in by phi, 15 years ago

added midi.c

File size: 677 bytes
Line 
1include ../Makefile.conf
2
3SLIB=libroarsndio$(SHARED_SUFFIX)
4
5TARGETS=$(SLIB) libroarsndio.a
6OBJS=libroarsndio.o para.o stream.o events.o volume.o midi.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
21$(SLIB): ${OBJS}
22        ${CC} ${LDFLAGS} -o $(SLIB) ${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.