source: roaraudio/libroareio/Makefile @ 5270:e25346c13638

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

fixed some gcc -Wextra warnings

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 $(Wextra) $(OPTI_O) $(DEFINES) $(INCLUDE) $(INCPATH) $(SHARED_CF) $(fPIC)
14LDFLAGS+= -g -Wall $(Wextra) $(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.