local.cnf.in
上传用户:xiejiait
上传日期:2007-01-06
资源大小:881k
文件大小:6k
- # @(#)local.cnf.in 1.2 99/12/19 Copyright 1998,1999 Heiko Eissfeldt */
- #
- # Makefile for cdda2wav, a sampling utility.
- #
- # ############ interface
- # choose one of the following interfacing and device types.
- # generic_scsi is for scsi cdrom devices.
- # uncomment one INTERFACE and one DEF_DEVICE line
- # (for details consult the README)
- INTERFACE='"generic_scsi"'
- #INTERFACE='"cooked_ioctl"'
- # set the default cdrom device
- SUN_OS_DEFAULT_DEV= '"0,6,0"'
- YOUR_DEFAULT_DEV= '"yourSCSI_Bus,yourSCSI_ID,yourSCSI_LUN"'
- _DEF_DEVICE= $(_UNIQ)$(HAVE_SUN_OS)
- __DEF_DEVICE= $(_DEF_DEVICE:$(_UNIQ)=$(YOUR_DEFAULT_DEV))
- DEF_DEVICE= $(__DEF_DEVICE:$(_UNIQ)$(HAVE_SUN_OS)=$(SUN_OS_DEFAULT_DEV))
- # optional matching device used for a MULTISESSION ioctl
- LINUX_AUX_DEV= '"/dev/cdrom"'
- _AUX_DEVICE= $(_UNIQ)$(HAVE_LINUX)
- __AUX_DEVICE= $(_AUX_DEVICE:$(_UNIQ)='""')
- AUX_DEVICE= $(__AUX_DEVICE:$(_UNIQ)$(HAVE_LINUX)=$(LINUX_AUX_DEV))
- # number of sectors to request
- # under BSD better use < 128 K of shared memory
- SECTORS=75
- BSD_SECTORS=27
- _SECTORS= $(_UNIQ)$(HAVE_BSD_OS)
- __SECTORS= $(_SECTORS:$(_UNIQ)=$(SECTORS))
- NSECTORS= $(__SECTORS:$(_UNIQ)$(HAVE_BSD_OS)=$(BSD_SECTORS))
- # some architectures can use the ioctl() interface cooked_ioctl
- HAVE_SUN_IOCTL= @HAVE_SUN_IOCTL@
- _HAVE_IOCTL= $(_UNIQ)$(HAVE_BSD_OS)$(HAVE_SUN_IOCTL)$(HAVE_LINUX)
- __HAVE_IOCTL= $(_HAVE_IOCTL:$(_UNIQ)=)
- HAVE_IOCTL= $(__HAVE_IOCTL:$(_UNIQ)$(HAVE_BSD_OS)$(HAVE_SUN_IOCTL)$(HAVE_LINUX)=-DHAVE_IOCTL_INTERFACE)
- ############# Sound device support
- #to disable sound support comment out the corresponding line with HAVE_SOUND
- OSS_SOUND_DEV= '"/dev/dsp"'
- SUN_SOUND_DEV= '"/dev/audio"'
- HAVE_OSS= @HAVE_OSS@
- HAVE_SUNSOUND= @HAVE_SUNSOUND@
- _HAVE_SOUND= $(_UNIQ)$(HAVE_OSS)$(HAVE_SUNSOUND)
- #_HAVE_SOUND= $(_UNIQ)$(HAVE_OSS)$(HAVE_SUNSOUND)$(HAVE_CYGWIN)
- __HAVE_SOUND= $(_HAVE_SOUND:$(_UNIQ)=)
- HAVE_SOUND= $(__HAVE_SOUND:$(_UNIQ)$(HAVE_OSS)$(HAVE_SUNSOUND)=-DECHO_TO_SOUNDCARD)
- #HAVE_SOUND= $(__HAVE_SOUND:$(_UNIQ)$(HAVE_OSS)$(HAVE_SUNSOUND)$(HAVE_CYGWIN)=-DECHO_TO_SOUNDCARD)
- _SOUND_DEVICE= $(_UNIQ)$(HAVE_OSS)$(HAVE_SOUND)$(HAVE_SUNSOUND)
- __SOUND_DEVICE= $(_SOUND_DEVICE:$(_UNIQ)='""')
- ___SOUND_DEVICE= $(__SOUND_DEVICE:$(_UNIQ)$(HAVE_OSS)$(HAVE_SOUND)=$(OSS_SOUND_DEV))
- ____SOUND_DEVICE= $(___SOUND_DEVICE:$(_UNIQ)$(HAVE_OSS)$(HAVE_SOUND)$(HAVE_SUNSOUND)=$(OSS_SOUND_DEV))
- SOUND_DEVICE= $(____SOUND_DEVICE:$(_UNIQ)$(HAVE_SOUND)$(HAVE_SUNSOUND)=$(SUN_SOUND_DEV))
- _EXTRALIB= $(_UNIQ)$(HAVE_CYGWIN)
- __EXTRALIB= $(_EXTRALIB:$(_UNIQ)=)
- EXTRALIB= $(__EXTRALIB:$(_UNIQ)$(HAVE_CYGWIN)=-lwinmm)
- ############# sound file defaults
- # Defaults for wav/au/cdr output file formats
- # default divider for 44.1 KHz
- DEF_UNDERSAMPLING=1
- # 16, 12 or 8 bits per sample
- DEF_BITS=16
- # 1 = mono, 2 = stereo
- DEF_CHANNELS=2
- DEF_TIME=0 # number of seconds to record
- DEF_SPEED=0 # default reading speed
- #DEF_SPEED=0xFFFF # default reading speed
- ############## output file types: wav, aiff, aifc, sun au or cdr ###########
- # enable one DEF_TYPE and one DEF_FILE
- # first are for wav sound files, second are for sun au pcm sound files,
- # third are for headerless sound files (raw samples in bigendian format)
- # default audio file type
- _DEF_TYPE= $(_UNIQ)$(HAVE_SUN_OS)
- __DEF_TYPE= $(_DEF_TYPE:$(_UNIQ)='"wav"')
- DEF_TYPE= $(__DEF_TYPE:$(_UNIQ)$(HAVE_SUN_OS)='"au"')
- #DEF_TYPE= "wav"
- #DEF_TYPE= "au"
- #DEF_TYPE= "cdr"
- #DEF_TYPE= "aiff"
- #DEF_TYPE= "aifc"
- # default file name for sound file
- DEF_FILE='"audio"'
- ############## enable/disable info files ####################################
- # Info files contain date/time, track, recording time, ISRC, optional MD5
- # signature and more, each item in one line. These files are generated one
- # per track.
- # Comment out if you don't want this.
- WANT_INFOFILES=-DINFOFILES
- ############## enable/disable MD5 signatures in info files ##################
- # Comment out if you don't want this.
- WANT_MD5=-DMD5_SIGNATURES
- MD5OBJECTS=md5c.o
- # CDINDEX server support
- # Comment out if you don't want a disk description file for the cdindex server
- WANT_CDINDEX_SUPPORT=-DCDINDEX_SUPPORT
- # CDDB server support (not yet implemented)
- # Comment out if you don't want a network access to the cddb server
- WANT_CDDB_SUPPORT=-DCDDB_SUPPORT
- CDDB_SITES_SERVER=cddb.cddb.com
- CDDB_SITES_SERVERPORT=8880
- # end of tunable parameters
- #
- CDDA2WAVDEFS=-DCD_DEVICE=$(DEF_DEVICE) -DFILENAME=$(DEF_FILE)
- -DUNDERSAMPLING=$(DEF_UNDERSAMPLING) -DVERSION=$(CUR_VERSION)
- -DBITS_P_S=$(DEF_BITS) -DCHANNELS=$(DEF_CHANNELS) -DAUDIOTYPE=$(DEF_TYPE)
- -DDURATION=$(DEF_TIME) -DDEF_INTERFACE=$(INTERFACE)
- -DDEFAULT_SPEED=$(DEF_SPEED) $(WANT_CDINDEX_SUPPORT) $(WANT_CDDB_SUPPORT)
- $(HAVE_IOCTL)
- $(HAVE_SOUND) -DSOUND_DEV=$(SOUND_DEVICE) -DNSECTORS=$(NSECTORS)
- $(WANT_INFOFILES) $(WANT_MD5) -DAUX_DEVICE=$(AUX_DEVICE)
- LIBS += @LIBS@
- VERSION_OS=@CDRTOOLS_VERSION@_$(O_ARCH)_$(OSREL)_$(K_ARCH)_$(P_ARCH)
- CUR_VERSION='"$(VERSION_OS)"'
- GNU_CC_WARNINGS=-W -Wall -Wtraditional -Wshadow -Wpointer-arith -Wcast-qual
- -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wnested-externs -Wbad-function-cast
- -Winline -Wno-unused #-Wmissing-declarations -Wmissing-prototypes -Wconversion #-pedantic -Wredundant-decls -ansi
- #
- #AIX_C_WARNINGS=-qcheck=all -qextchk -qsrcmsg -qproto
- #GNU_CC_OPTIONS= -O2 -fomit-frame-pointer -finline-functions -fcaller-saves
- # -funroll-loops
- #AIX_C_OPTIONS=-O
- #HPUX_C_OPTIONS=-Ae -O
- #OPTIONS= -v
- ##ifdef DO_NOT_USE_GCC
- #WARNINGS=$(GNU_CC_WARNINGS)
- #OPTIONS=$(GNU_CC_OPTIONS)
- ##else
- #WARNINGS=
- #OPTIONS=-O
- ##ifdef HAVE_AIX
- #WARNINGS=$(AIX_C_WARNINGS)
- #OPTIONS=$(AIX_C_OPTIONS)
- ##endif
- ##ifdef HAVE_HPUX
- #WARNINGS=
- #OPTIONS=$(HPUX_C_OPTIONS)
- ##endif
- ##endif