################################################################################ # vls Makefile.opts # (c)1999-2001 VideoLAN ################################################################################ # Common options for the VideoLAN Server's Makefiles ################################################################################ # Configuration ################################################################################ # # Installation control # exec_prefix = ${prefix} prefix = bindir = ${exec_prefix}/bin datadir = ${prefix}/share libdir = ${exec_prefix}/lib includedir = ${prefix}/include sysconfdir = ${prefix}/etc INSTALL = /usr/bin/install -c -o root -g wheel # # Main sources # NEEDSRC_core = 1 NEEDSRC_server = 1 NEEDSRC_daemon = 1 NEEDSRC_mpegbase = 1 NEEDSRC_mpegmux = 1 NEEDSRC_getopt = 0 # # Modules # BUILTINS = filechannel netchannel filereader ts2ts ps2ts localinput videoinput PLUGINS = dvdreader # # Build control # DEBUG=0 PROFILING=0 SYSLOG=1 #BUILD=BASE_RELEASE #BUILD=OPTIM_RELASE ################################################################################ # Environnement specific settings ################################################################################ CC=cc CXX=c++ RANLIB=ranlib AR=ar EXEEXT= # # Common flags # CCFLAGS= DCFLAGS= LCFLAGS= DCFLAGS+=-Wall DCFLAGS+=-MM CCFLAGS+=-Wall CCFLAGS+=-D_REENTRANT CCFLAGS+=-D_FILE_OFFSET_BITS=64 LCFLAGS+=-D_REENTRANT # # Specific flags # CCFLAGS+=-DCONFIG_PATH='"$(sysconfdir)/videolan/vls"' VLS_LCFLAGS = VLS_LIB = -ldl -lcrypt -lpthread -ldvbpsi MODULE_LCFLAGS = DVDREADER_LIB = -ldvdread -L/lib DVBINPUT_LIB = DVBINPUT_CCFLAGS = DVBINPUT_DCFLAGS = DVBINPUT_LCFLAGS = BUILTINS_LIB = $(patsubst %,$$%_LIB,$(shell echo ${BUILTINS} | tr '[a-z]' '[A-Z]')) VLS_LIB += $(BUILTINS_LIB) # # Common options # CCFLAGS+=-DBUGGY_VLC -DYY_NO_UNPUT ################################################################################ # Build control ################################################################################ # # Debug mode # ifeq ($(DEBUG), 1) CCFLAGS+=-DDEBUG CCFLAGS+=-g #LIB+=-ldmalloc #LIB+=-lefence #LC:=purify -log-File=purify.log $(LC) #LC:=purify $(LC) endif # # Profiling mode # ifeq ($(PROFILING), 1) CCFLAGS+=-pg endif # # System Logging # ifeq ($(SYSLOG), 1) CCFLAGS+=-DSYSLOG endif # # Standard release mode # ifeq ($(BUILD), BASE_RELEASE) CCFLAGS+=-O endif # # Optimsed release mode # ifeq ($(BUILD), OPTIM_RELEASE) CCFLAGS+=-O6 endif