local.cnf.in
上传用户:xiejiait
上传日期:2007-01-06
资源大小:881k
文件大小:6k
源码类别:

SCSI/ASPI

开发平台:

MultiPlatform

  1. # @(#)local.cnf.in 1.2 99/12/19 Copyright 1998,1999 Heiko Eissfeldt */
  2. #
  3. # Makefile for cdda2wav, a sampling utility.
  4. #
  5. # ############ interface
  6. # choose one of the following interfacing and device types.
  7. # generic_scsi is for scsi cdrom devices.
  8. # uncomment one INTERFACE and one DEF_DEVICE line
  9. # (for details consult the README)
  10. INTERFACE='"generic_scsi"'
  11. #INTERFACE='"cooked_ioctl"'
  12. # set the default cdrom device
  13. SUN_OS_DEFAULT_DEV= '"0,6,0"'
  14. YOUR_DEFAULT_DEV= '"yourSCSI_Bus,yourSCSI_ID,yourSCSI_LUN"'
  15. _DEF_DEVICE= $(_UNIQ)$(HAVE_SUN_OS)
  16. __DEF_DEVICE= $(_DEF_DEVICE:$(_UNIQ)=$(YOUR_DEFAULT_DEV))
  17. DEF_DEVICE= $(__DEF_DEVICE:$(_UNIQ)$(HAVE_SUN_OS)=$(SUN_OS_DEFAULT_DEV))
  18. # optional matching device used for a MULTISESSION ioctl
  19. LINUX_AUX_DEV= '"/dev/cdrom"'
  20. _AUX_DEVICE= $(_UNIQ)$(HAVE_LINUX)
  21. __AUX_DEVICE= $(_AUX_DEVICE:$(_UNIQ)='""')
  22. AUX_DEVICE= $(__AUX_DEVICE:$(_UNIQ)$(HAVE_LINUX)=$(LINUX_AUX_DEV))
  23. # number of sectors to request
  24. # under BSD better use < 128 K of shared memory
  25. SECTORS=75
  26. BSD_SECTORS=27
  27. _SECTORS= $(_UNIQ)$(HAVE_BSD_OS)
  28. __SECTORS= $(_SECTORS:$(_UNIQ)=$(SECTORS))
  29. NSECTORS= $(__SECTORS:$(_UNIQ)$(HAVE_BSD_OS)=$(BSD_SECTORS))
  30. # some architectures can use the ioctl() interface cooked_ioctl
  31. HAVE_SUN_IOCTL= @HAVE_SUN_IOCTL@
  32. _HAVE_IOCTL= $(_UNIQ)$(HAVE_BSD_OS)$(HAVE_SUN_IOCTL)$(HAVE_LINUX)
  33. __HAVE_IOCTL= $(_HAVE_IOCTL:$(_UNIQ)=)
  34. HAVE_IOCTL= $(__HAVE_IOCTL:$(_UNIQ)$(HAVE_BSD_OS)$(HAVE_SUN_IOCTL)$(HAVE_LINUX)=-DHAVE_IOCTL_INTERFACE)
  35. ############# Sound device support
  36. #to disable sound support comment out the corresponding line with HAVE_SOUND
  37. OSS_SOUND_DEV= '"/dev/dsp"'
  38. SUN_SOUND_DEV= '"/dev/audio"'
  39. HAVE_OSS= @HAVE_OSS@
  40. HAVE_SUNSOUND= @HAVE_SUNSOUND@
  41. _HAVE_SOUND= $(_UNIQ)$(HAVE_OSS)$(HAVE_SUNSOUND)
  42. #_HAVE_SOUND= $(_UNIQ)$(HAVE_OSS)$(HAVE_SUNSOUND)$(HAVE_CYGWIN)
  43. __HAVE_SOUND= $(_HAVE_SOUND:$(_UNIQ)=)
  44. HAVE_SOUND= $(__HAVE_SOUND:$(_UNIQ)$(HAVE_OSS)$(HAVE_SUNSOUND)=-DECHO_TO_SOUNDCARD)
  45. #HAVE_SOUND= $(__HAVE_SOUND:$(_UNIQ)$(HAVE_OSS)$(HAVE_SUNSOUND)$(HAVE_CYGWIN)=-DECHO_TO_SOUNDCARD)
  46. _SOUND_DEVICE= $(_UNIQ)$(HAVE_OSS)$(HAVE_SOUND)$(HAVE_SUNSOUND)
  47. __SOUND_DEVICE= $(_SOUND_DEVICE:$(_UNIQ)='""')
  48. ___SOUND_DEVICE= $(__SOUND_DEVICE:$(_UNIQ)$(HAVE_OSS)$(HAVE_SOUND)=$(OSS_SOUND_DEV))
  49. ____SOUND_DEVICE= $(___SOUND_DEVICE:$(_UNIQ)$(HAVE_OSS)$(HAVE_SOUND)$(HAVE_SUNSOUND)=$(OSS_SOUND_DEV))
  50. SOUND_DEVICE= $(____SOUND_DEVICE:$(_UNIQ)$(HAVE_SOUND)$(HAVE_SUNSOUND)=$(SUN_SOUND_DEV))
  51. _EXTRALIB= $(_UNIQ)$(HAVE_CYGWIN)
  52. __EXTRALIB= $(_EXTRALIB:$(_UNIQ)=)
  53. EXTRALIB= $(__EXTRALIB:$(_UNIQ)$(HAVE_CYGWIN)=-lwinmm)
  54. ############# sound file defaults
  55. # Defaults for wav/au/cdr output file formats
  56. # default divider for 44.1 KHz
  57. DEF_UNDERSAMPLING=1
  58. # 16, 12 or 8 bits per sample
  59. DEF_BITS=16
  60. # 1 = mono, 2 = stereo
  61. DEF_CHANNELS=2
  62. DEF_TIME=0                      # number of seconds to record
  63. DEF_SPEED=0 # default reading speed
  64. #DEF_SPEED=0xFFFF # default reading speed
  65. ############## output file types: wav, aiff, aifc, sun au or cdr ###########
  66. # enable one DEF_TYPE and one DEF_FILE
  67. # first are for wav sound files, second are for sun au pcm sound files,
  68. # third are for headerless sound files (raw samples in bigendian format)
  69. # default audio file type
  70. _DEF_TYPE= $(_UNIQ)$(HAVE_SUN_OS)
  71. __DEF_TYPE= $(_DEF_TYPE:$(_UNIQ)='"wav"')
  72. DEF_TYPE= $(__DEF_TYPE:$(_UNIQ)$(HAVE_SUN_OS)='"au"')
  73. #DEF_TYPE= "wav"
  74. #DEF_TYPE= "au"
  75. #DEF_TYPE= "cdr"
  76. #DEF_TYPE= "aiff"
  77. #DEF_TYPE= "aifc"
  78. # default file name for sound file
  79. DEF_FILE='"audio"'
  80. ############## enable/disable info files ####################################
  81. # Info files contain date/time, track, recording time, ISRC, optional MD5 
  82. # signature and more, each item in one line. These files are generated one
  83. # per track.
  84. # Comment out if you don't want this.
  85. WANT_INFOFILES=-DINFOFILES
  86. ############## enable/disable MD5 signatures in info files ##################
  87. # Comment out if you don't want this.
  88. WANT_MD5=-DMD5_SIGNATURES
  89. MD5OBJECTS=md5c.o
  90. # CDINDEX server support
  91. # Comment out if you don't want a disk description file for the cdindex server
  92. WANT_CDINDEX_SUPPORT=-DCDINDEX_SUPPORT
  93. # CDDB server support (not yet implemented)
  94. # Comment out if you don't want a network access to the cddb server
  95. WANT_CDDB_SUPPORT=-DCDDB_SUPPORT
  96. CDDB_SITES_SERVER=cddb.cddb.com
  97. CDDB_SITES_SERVERPORT=8880
  98. # end of tunable parameters
  99. #
  100. CDDA2WAVDEFS=-DCD_DEVICE=$(DEF_DEVICE) -DFILENAME=$(DEF_FILE) 
  101. -DUNDERSAMPLING=$(DEF_UNDERSAMPLING) -DVERSION=$(CUR_VERSION) 
  102. -DBITS_P_S=$(DEF_BITS) -DCHANNELS=$(DEF_CHANNELS) -DAUDIOTYPE=$(DEF_TYPE) 
  103. -DDURATION=$(DEF_TIME) -DDEF_INTERFACE=$(INTERFACE) 
  104. -DDEFAULT_SPEED=$(DEF_SPEED) $(WANT_CDINDEX_SUPPORT) $(WANT_CDDB_SUPPORT) 
  105. $(HAVE_IOCTL) 
  106. $(HAVE_SOUND) -DSOUND_DEV=$(SOUND_DEVICE) -DNSECTORS=$(NSECTORS) 
  107. $(WANT_INFOFILES) $(WANT_MD5) -DAUX_DEVICE=$(AUX_DEVICE)
  108. LIBS += @LIBS@
  109. VERSION_OS=@CDRTOOLS_VERSION@_$(O_ARCH)_$(OSREL)_$(K_ARCH)_$(P_ARCH)
  110. CUR_VERSION='"$(VERSION_OS)"'
  111. GNU_CC_WARNINGS=-W -Wall -Wtraditional -Wshadow -Wpointer-arith -Wcast-qual 
  112. -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wnested-externs -Wbad-function-cast 
  113. -Winline -Wno-unused #-Wmissing-declarations -Wmissing-prototypes -Wconversion #-pedantic -Wredundant-decls -ansi
  114. #
  115. #AIX_C_WARNINGS=-qcheck=all -qextchk -qsrcmsg -qproto
  116. #GNU_CC_OPTIONS= -O2 -fomit-frame-pointer -finline-functions -fcaller-saves 
  117. #       -funroll-loops
  118. #AIX_C_OPTIONS=-O
  119. #HPUX_C_OPTIONS=-Ae -O
  120. #OPTIONS= -v
  121. ##ifdef DO_NOT_USE_GCC
  122. #WARNINGS=$(GNU_CC_WARNINGS)
  123. #OPTIONS=$(GNU_CC_OPTIONS)
  124. ##else
  125. #WARNINGS=
  126. #OPTIONS=-O
  127. ##ifdef HAVE_AIX
  128. #WARNINGS=$(AIX_C_WARNINGS)
  129. #OPTIONS=$(AIX_C_OPTIONS)
  130. ##endif
  131. ##ifdef HAVE_HPUX
  132. #WARNINGS=
  133. #OPTIONS=$(HPUX_C_OPTIONS)
  134. ##endif
  135. ##endif