source: roaraudio/libroareio/Makefile @ 3851:a8c828f5b759

Last change on this file since 3851:a8c828f5b759 was 3851:a8c828f5b759, checked in by phi, 12 years ago

added roar cdriver

File size: 1.1 KB
Line 
1include ../Makefile.conf
2include ../Makefile.inc
3
4SLIB=libroareio$(SHARED_SUFFIX)
5
6TARGETS=$(SLIB) libroareio.a
7DRIVER=driver.o driver_oss.o driver_roar.o esdfw.a
8FF=ff_ssdp.o
9OBJS=libroareio.o $(DRIVER) $(FF) httpd.o
10
11#DEFINES        = -DDEBUG
12INCLUDE = -I../include -I../include/libroareio
13CFLAGS += -g -Wall -O2 $(DEFINES) $(INCLUDE) $(INCPATH) $(SHARED_CF) $(fPIC)
14LDFLAGS = -g $(SHARED) -L../lib/ $(LDPATH)
15LIBS    = $(LIBROAREIO_NS)
16
17all: ${TARGETS}
18        rm -f ../lib/${SLIB} 2> /dev/null || true
19        cp $(cp_v) ${TARGETS} ../lib/
20clean:
21        rm -f ${TARGETS} autodetected.h esdfw.a *.o
22new: clean all
23
24esdfw.a:
25        if [ "`ls esdfw_*.o`" != '' ]; then ${AR} cru esdfw.a esdfw_*.o; else ${AR} cru esdfw.a; fi
26        ${RANLIB} esdfw.a
27
28$(SLIB): ${OBJS}
29        ${CC} ${LDFLAGS} -Wl,-soname,$(SLIB).$(LIBROAREIO_V) -o $(SLIB) $(OBJS) $(LIBS)
30libroareio.a: ${OBJS}
31        ${AR} cru libroareio.a ${OBJS}
32        ${RANLIB} libroareio.a
33
34driver.c: autodetected.h
35autodetected.h:
36        echo "/* *** */" > autodetected.h
37        [ -f driver_esdfw.h -a -f driver_esdfw.c ] && echo '#define ROAR_HAVE_AD_ESDFW' >> autodetected.h || true
38        echo "/* *** */" >> autodetected.h
Note: See TracBrowser for help on using the repository browser.