source: roaraudio/roard/Makefile @ 4438:cd8f86bcbadc

Last change on this file since 4438:cd8f86bcbadc was 4438:cd8f86bcbadc, checked in by phi, 8 years ago

use vars from configure, implement support for uname

File size: 2.1 KB
Line 
1TARGETS=roard
2
3OBJ=roard.o driver.o mixer.o output.o signals.o loop.o clients.o streams.o network.o commands.o req.o sources.o sample.o meta.o codecfilter.o lib.o ssynth.o container_framework.o plugins.o memlock.o hwmixer.o
4SUBSYS=midi.o light.o raw.o rdtcs.o waveform.o beep.o
5DRV=driver_esd.o driver_ao.o driver_roar.o driver_raw.o driver_oss.o driver_shout.o driver_sndio.o driver_dmx.o driver_pwmled.o driver_sysclock.o driver_wmm.o driver_dstr.o driver_alsa.o driver_rsound.o driver_portaudio.o driver_pulsesimple.o
6CF_CODEC=codecfilter_cmd.o codecfilter_vorbis.o codecfilter_celt.o codecfilter_speex.o codecfilter_alaw.o codecfilter_mulaw.o codecfilter_sndfile.o codecfilter_fishsound.o
7CF_CONTAINER=codecfilter_wave.o codecfilter_raum.o codecfilter_au.o
8EMUL=emul_esd.o emul_simple.o emul_rsound.o emul_rplay.o
9HWMIXER=hwmixer_dstr.o hwmixer_oss.o
10
11CF=${CF_CONTAINER} ${CF_CODEC}
12
13include ../Makefile.conf
14include ../Makefile.inc
15
16#DEFINES        = -DDEBUG
17#DEFINES        = -DMONITOR_LATENCY
18PKGDEFINES= -DPACKAGE_VERSION="\"$(VERSION)\"" -DDEVICE_VENDOR_ID=$(DEV_VENDOR) -DDEVICE_VENDOR_NAME="\"$(DEV_VENDOR_NAME)\"" -DDEVICE_VENDOR_STRING="\"$(DEV_VENDOR_STRING)\""
19INCLUDE   = -I../include -I./include
20CFLAGS   += -g -Wall -O2 $(DEFINES) $(PKGDEFINES) $(INCLUDE) $(INCPATH)
21LDFLAGS   = -g -rdynamic -L../lib/ $(LDPATH)
22DRVLIBS   = $(lib_esd) $(lib_ossaudio) $(lib_ao) $(lib_shout) $(lib_sndio) $(lib_rsound) $(lib_portaudio) $(lib_pablio) $(lib_asound) $(lib_winmm) $(lib_pulse_simple)
23CODEC_CELT= $(lib_celt) $(lib_celt0)
24CODECLIBS = $(lib_vorbisfile) $(lib_vorbisenc) $(lib_vorbis) $(lib_fishsound) $(lib_speex) $(lib_speexdsp) $(CODEC_CELT)
25CONTLIBS  = $(lib_oggz) $(lib_sndfile) $(lib_ogg) $(lib_raum)
26OWNLIBS   = $(LIBROAREIO) $(LIBROARLIGHT) $(LIBROARMIDI) $(LIBROARDSP) $(LIBROAR)
27LIBS      = $(DRVLIBS) $(CODECLIBS) $(CONTLIBS) $(OWNLIBS)
28
29all: ${TARGETS}
30        rm -f ../lib/${TARGETS} 2> /dev/null || true
31        cp $(cp_v) ${TARGETS} ../lib/
32clean:
33        rm -f ${TARGETS} *.o
34new: clean all
35
36roard: ${OBJ} ${SUBSYS} ${DRV} ${CF} ${EMUL} ${HWMIXER}
37        ${CC} ${LDFLAGS} -o roard ${OBJ} ${SUBSYS} ${DRV} ${CF} ${EMUL} ${HWMIXER} ${LIBS}
Note: See TracBrowser for help on using the repository browser.