source: roaraudio/libroarpulse/Makefile @ 4748:d7be1c18ccb5

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

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

File size: 1.1 KB
RevLine 
[3511]1LIB_PREFIX=libroarpulse
2LIB_STDAPI=$(LIB_PREFIX)$(SHARED_SUFFIX)
3LIB_SIMPLE=$(LIB_PREFIX)-simple$(SHARED_SUFFIX)
4
5TARGETS=$(LIB_STDAPI) $(LIB_SIMPLE) libroarpulseinfo
[3399]6OBJS_ROAR   = libroarpulse.o
[3485]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
[3399]8OBJS_SIMPLE = simple.o
[3847]9OBJS_STDAPI = $(OBJS_ROAR) $(OBJS_STD)
[399]10
[694]11include ../Makefile.conf
[2382]12include ../Makefile.inc
[694]13
[1734]14#DEFINES        = -DDEBUG
[399]15INCLUDE = -I../include -I../include/libroarpulse
[4748]16CFLAGS += -g -Wall $(OPTI_O) $(DEFINES) $(INCLUDE) $(INCPATH) $(SHARED_CF) $(fPIC)
17LDFLAGS+= -g $(LDPATH) -L../lib/ -L.
[2382]18LIBS    = $(LIBROAR)
[399]19
20all: ${TARGETS}
[475]21        cp $(cp_v) ${TARGETS} ../lib/
[399]22clean:
23        rm -f ${TARGETS} *.o
24new: clean all
25
[3511]26$(LIB_STDAPI): ${OBJS_STDAPI}
[4559]27        ${CC} ${LDFLAGS} $(SHARED) -Wl,-soname,$(LIB_STDAPI).$(COMMON_SOVERSION) -o $(LIB_STDAPI) ${OBJS_STDAPI} ${LIBS}
[3511]28
[3513]29$(LIB_SIMPLE): ${OBJS_SIMPLE} $(LIB_STDAPI)
[4559]30        ${CC} ${LDFLAGS} $(SHARED) -Wl,-soname,$(LIB_SIMPLE).$(COMMON_SOVERSION) -o $(LIB_SIMPLE) ${OBJS_SIMPLE} ${LIBS} -lroarpulse
[3511]31
[401]32
33libroarpulseinfo: libroarpulseinfo.o
Note: See TracBrowser for help on using the repository browser.