source: roaraudio/libroaresd/Makefile @ 4748:d7be1c18ccb5

Last change on this file since 4748:d7be1c18ccb5 was 4748:d7be1c18ccb5, checked in by phi, 11 years ago

updated configure script to honor LDFLAGS and added --opti to set optimizer level (Closes: #27)

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