source: roaraudio/libroarpulse/Makefile @ 4960:60cdebcb83ef

Last change on this file since 4960:60cdebcb83ef was 4748:d7be1c18ccb5, checked in by phi, 9 years ago

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

File size: 1.1 KB
Line 
1LIB_PREFIX=libroarpulse
2LIB_STDAPI=$(LIB_PREFIX)$(SHARED_SUFFIX)
3LIB_SIMPLE=$(LIB_PREFIX)-simple$(SHARED_SUFFIX)
4
5TARGETS=$(LIB_STDAPI) $(LIB_SIMPLE) libroarpulseinfo
6OBJS_ROAR   = libroarpulse.o
7OBJS_STD    = util.o error.o timeval.o context.o xmalloc.o version.o operation.o introspect.o sample.o channelmap.o stream.o volume.o mainloop.o mainloop-signal.o utf8.o x11.o
8OBJS_SIMPLE = simple.o
9OBJS_STDAPI = $(OBJS_ROAR) $(OBJS_STD)
10
11include ../Makefile.conf
12include ../Makefile.inc
13
14#DEFINES        = -DDEBUG
15INCLUDE = -I../include -I../include/libroarpulse
16CFLAGS += -g -Wall $(OPTI_O) $(DEFINES) $(INCLUDE) $(INCPATH) $(SHARED_CF) $(fPIC)
17LDFLAGS+= -g $(LDPATH) -L../lib/ -L.
18LIBS    = $(LIBROAR)
19
20all: ${TARGETS}
21        cp $(cp_v) ${TARGETS} ../lib/
22clean:
23        rm -f ${TARGETS} *.o
24new: clean all
25
26$(LIB_STDAPI): ${OBJS_STDAPI}
27        ${CC} ${LDFLAGS} $(SHARED) -Wl,-soname,$(LIB_STDAPI).$(COMMON_SOVERSION) -o $(LIB_STDAPI) ${OBJS_STDAPI} ${LIBS}
28
29$(LIB_SIMPLE): ${OBJS_SIMPLE} $(LIB_STDAPI)
30        ${CC} ${LDFLAGS} $(SHARED) -Wl,-soname,$(LIB_SIMPLE).$(COMMON_SOVERSION) -o $(LIB_SIMPLE) ${OBJS_SIMPLE} ${LIBS} -lroarpulse
31
32
33libroarpulseinfo: libroarpulseinfo.o
Note: See TracBrowser for help on using the repository browser.