source: roaraudio/libroaross/Makefile @ 3171:d99199cb5daf

Last change on this file since 3171:d99199cb5daf was 3144:f8cd1e36b390, checked in by phi, 14 years ago

open stream, fixed a lot things

File size: 650 bytes
Line 
1include ../Makefile.conf
2include ../Makefile.inc
3
4SLIB=libroaross$(SHARED_SUFFIX)
5
6TARGETS=$(SLIB) libroaross.a
7OBJS=libroaross.o
8
9DEFINES        = -DDEBUG
10INCLUDE = -I../include -I../include/libroar
11CFLAGS += -g -Wall -O2 $(DEFINES) $(INCLUDE) $(INCPATH) $(SHARED_CF) $(fPIC)
12LDFLAGS = -g $(SHARED) $(LDPATH)
13LIBS    = $(LIBROAR) -ldl
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_V_MAJOR) -o $(SLIB) ${OBJS} ${LIBS}
24libroaross.a: ${OBJS}
25        ${AR} cru libroaross.a ${OBJS}
26        ${RANLIB} libroaross.a
Note: See TracBrowser for help on using the repository browser.