fpccfg.inc 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. {$ifdef Delphi}
  2. const DefaultConfig : array[0..27] of string[240]=(
  3. {$else Delphi}
  4. const DefaultConfig : array[0..27,1..240] of char=(
  5. {$endif Delphi}
  6. '#'#010+
  7. '# Config file generated by fpcmkcfg on %BUILDDATE% - %BUILDTIME%'#010+
  8. '# Example fpc.cfg for Free Pascal Compiler'#010+
  9. '#'#010+
  10. #010+
  11. '# ----------------------'#010+
  12. '# Defines (preprocessor)'#010+
  13. '# ----------------------'#010+
  14. #010+
  15. '#'#010+
  16. '# nested #IFNDEF, #IFDEF, #ENDIF, #ELSE, #DEFINE,',' #UNDEF are allowed'+
  17. #010+
  18. '#'#010+
  19. '# -d is the same as #DEFINE'#010+
  20. '# -u is the same as #UNDEF'#010+
  21. '#'#010+
  22. #010+
  23. '#'#010+
  24. '# Some examples (for switches see below, and the -? helppages)'#010+
  25. '#'#010+
  26. '# Try compiling with the -dRELEASE or -dDEBUG on the commandline'#010+
  27. '#'#010+
  28. #010+
  29. '# For a release compile w','ith optimizes and strip debuginfo'#010+
  30. '#IFDEF RELEASE'#010+
  31. ' -O2'#010+
  32. ' -Xs'#010+
  33. ' #WRITE Compiling Release Version'#010+
  34. '#ENDIF'#010+
  35. #010+
  36. '# For a debug version compile with debuginfo and all codegeneration ch'+
  37. 'ecks on'#010+
  38. '#IFDEF DEBUG'#010+
  39. ' -gl'#010+
  40. ' -Crtoi'#010+
  41. ' #WRITE Compiling Debug Versi','on'#010+
  42. '#ENDIF'#010+
  43. #010+
  44. '# assembling'#010+
  45. '#ifdef darwin'#010+
  46. '# use pipes instead of temporary files for assembling'#010+
  47. '-ap'#010+
  48. '# path to Xcode 4.3+ utilities (no problem if it doesn'#039't exist)'#010+
  49. '-FD/Applications/Xcode.app/Contents/Developer/usr/bin'#010+
  50. '#endif'#010+
  51. #010+
  52. '# ----------------',#010+
  53. '# Parsing switches'#010+
  54. '# ----------------'#010+
  55. #010+
  56. '# Pascal language mode'#010+
  57. '# -Mfpc free pascal dialect (default)'#010+
  58. '# -Mobjfpc switch some Delphi 2 extensions on'#010+
  59. '# -Mdelphi tries to be Delphi compatible'#010+
  60. '# -Mtp tries to b','e TP/BP 7.0 compatible'#010+
  61. '# -Mgpc tries to be gpc compatible'#010+
  62. '# -Mmacpas tries to be compatible to the macintosh pascal diale'+
  63. 'cts'#010+
  64. '#'#010+
  65. '# Turn on Object Pascal extensions by default'#010+
  66. '#-Mobjfpc'#010+
  67. #010+
  68. '# Assembler reader mode'#010+
  69. '# -Rdefaul','t use default assembler'#010+
  70. '# -Ratt read AT&T style assembler'#010+
  71. '# -Rintel read Intel style assembler'#010+
  72. '#'#010+
  73. '# All assembler blocks are AT&T styled by default'#010+
  74. '#-Ratt'#010+
  75. #010+
  76. '# Semantic checking'#010+
  77. '# -S2 same as -Mobjfpc'#010+
  78. '# -Sc ',' supports operators like C (*=,+=,/= and -=)'#010+
  79. '# -Sa include assertion code.'#010+
  80. '# -Sd same as -Mdelphi'#010+
  81. '# -Se<x> error options. <x> is a combination of the following'+
  82. ':'#010+
  83. '# <n> : compiler stops after <n>',' errors (default is 1)'#010+
  84. '# w : compiler stops also after warnings'#010+
  85. '# n : compiler stops also after notes'#010+
  86. '# h : compiler stops also after hints'#010+
  87. '# -Sg allow LABEL and GOTO'#010+
  88. '# -Sh Use ansistrin','gs'#010+
  89. '# -Si support C++ styled INLINE'#010+
  90. '# -Sk load fpcylix unit'#010+
  91. '# -SI<x> set interface style to <x>'#010+
  92. '# -SIcom COM compatible interface (default)'#010+
  93. '# -SIcorba CORBA compatible interface'#010+
  94. '# -Sm',' support macros like C (global)'#010+
  95. '# -So same as -Mtp'#010+
  96. '# -Sp same as -Mgpc'#010+
  97. '# -Ss constructor name must be init (destructor must be do'+
  98. 'ne)'#010+
  99. '# -Sx enable exception keywords (default in Delphi/O','bjFP'+
  100. 'C modes)'#010+
  101. '#'#010+
  102. '# Allow goto, inline, C-operators, C-vars'#010+
  103. '-Sgic'#010+
  104. #010+
  105. '# ---------------'#010+
  106. '# Code generation'#010+
  107. '# ---------------'#010+
  108. #010+
  109. '# Uncomment the next line if you always want static/dynamic units by d'+
  110. 'efault'#010+
  111. '# (can be overruled with -CD, -CS at the com','mandline)'#010+
  112. '#-CS'#010+
  113. '#-CD'#010+
  114. #010+
  115. '# Set the default heapsize to 8Mb'#010+
  116. '#-Ch8000000'#010+
  117. #010+
  118. '# Set default codegeneration checks (iocheck, overflow, range, stack)'#010+
  119. '#-Ci'#010+
  120. '#-Co'#010+
  121. '#-Cr'#010+
  122. '#-Ct'#010+
  123. #010+
  124. '# Optimizer switches'#010+
  125. '# -Os generate smaller code'#010+
  126. '# -Oa=N set alignmen','t to N'#010+
  127. '# -O1 level 1 optimizations (quick optimizations, debuggable)'#010+
  128. '# -O2 level 2 optimizations (-O1 + optimizations which make deb'+
  129. 'ugging more difficult)'#010+
  130. '# -O3 level 3 optimizations (-O2 + optimizations which also may'+
  131. ' ','make the program slower rather than faster)'#010+
  132. '# -Oo<x> switch on optimalization x. See fpc -i for possible value'+
  133. 's'#010+
  134. '# -OoNO<x> switch off optimalization x. See fpc -i for possible valu'+
  135. 'es'#010+
  136. '# -Op<x> set target cpu for optimizing, see fpc',' -i for possible '+
  137. 'values'#010+
  138. #010+
  139. '#ifdef darwin'#010+
  140. '#ifdef cpui386'#010+
  141. '-Cppentiumm'#010+
  142. '-Oppentiumm'#010+
  143. '#endif'#010+
  144. '#endif'#010+
  145. #010+
  146. '# -----------------------'#010+
  147. '# Set Filenames and Paths'#010+
  148. '# -----------------------'#010+
  149. #010+
  150. '# Both slashes and backslashes are allowed in paths'#010+
  151. #010+
  152. '# path to the m','essagefile, not necessary anymore but can be used to '+
  153. 'override'#010+
  154. '# the default language'#010+
  155. '#-Fr%basepath%/msg/errore.msg'#010+
  156. '#-Fr%basepath%/msg/errorn.msg'#010+
  157. '#-Fr%basepath%/msg/errores.msg'#010+
  158. '#-Fr%basepath%/msg/errord.msg'#010+
  159. '#-Fr%basepath%/msg/errorr.msg'#010+
  160. #010+
  161. '# s','earchpath for units and other system dependent things'#010+
  162. '-Fu%basepath%/units/$fpctarget'#010+
  163. '-Fu%basepath%/units/$fpctarget/*'#010+
  164. '-Fu%basepath%/units/$fpctarget/rtl'#010+
  165. #010+
  166. '#IFDEF FPCAPACHE_1_3'#010+
  167. '-Fu%basepath%/units/$fpctarget/httpd13/'#010+
  168. '#ELSE'#010+
  169. '#IFDEF FPCAPACHE_2_','0'#010+
  170. '-Fu%basepath%/units/$fpctarget/httpd20'#010+
  171. '#ELSE'#010+
  172. '-Fu%basepath%/units/$fpctarget/httpd22'#010+
  173. '#ENDIF'#010+
  174. '#ENDIF'#010+
  175. #010+
  176. '# searchpath for fppkg user-specific packages'#010+
  177. '-Fu%localbasepath%/units/$FPCTARGET/*'#010+
  178. #010+
  179. '# path to the gcclib'#010+
  180. '%gcclibpath%'#010+
  181. #010+
  182. '# searchpath for li','braries'#010+
  183. '#-Fl%basepath%/lib'#010+
  184. '#-Fl/lib;/usr/lib'#010+
  185. '-Fl%basepath%/lib/$FPCTARGET'#010+
  186. #010+
  187. '# searchpath for tools'#010+
  188. '-FD%basepath%/bin/$FPCTARGET'#010+
  189. #010+
  190. '%NEEDCROSSBINUTILSIFDEF%'#010+
  191. #010+
  192. '# never need cross-prefix when targeting the JVM'#010+
  193. '# (no native compiler, always cross-c','ompiling)'#010+
  194. '#ifdef cpujvm'#010+
  195. '#undef NEEDCROSSBINUTILS'#010+
  196. '#endif'#010+
  197. #010+
  198. '# binutils prefix for cross compiling'#010+
  199. '#IFDEF FPC_CROSSCOMPILING'#010+
  200. '#IFDEF NEEDCROSSBINUTILS'#010+
  201. ' -XP$FPCTARGET-'#010+
  202. '#ENDIF'#010+
  203. '#ENDIF'#010+
  204. #010+
  205. #010+
  206. '# -------------'#010+
  207. '# Linking'#010+
  208. '# -------------'#010+
  209. #010+
  210. '# generate always ','debugging information for GDB (slows down the comp'+
  211. 'iling'#010+
  212. '# process)'#010+
  213. '# -gc generate checks for pointers'#010+
  214. '# -gd use dbx'#010+
  215. '# -gg use gsym'#010+
  216. '# -gh use heap trace unit (for memory leak debugging)'#010+
  217. '# ','-gl use line info unit to show more info for backtrace'+
  218. 's'#010+
  219. '# -gv generates programs tracable with valgrind'#010+
  220. '# -gw generate dwarf debugging info'#010+
  221. '#'#010+
  222. '# Enable debuginfo and use the line info unit by default'#010+
  223. '#-gl'#010+
  224. #010+
  225. '# al','ways pass an option to the linker'#010+
  226. '#-k-s'#010+
  227. #010+
  228. '# Always strip debuginfo from the executable'#010+
  229. '-Xs'#010+
  230. #010+
  231. #010+
  232. '# -------------'#010+
  233. '# Miscellaneous'#010+
  234. '# -------------'#010+
  235. #010+
  236. '# Write always a nice FPC logo ;)'#010+
  237. '-l'#010+
  238. #010+
  239. '# Verbosity'#010+
  240. '# e : Show errors (default) d : Show d','ebug info'#010+
  241. '# w : Show warnings u : Show unit info'#010+
  242. '# n : Show notes t : Show tried/used files'#010+
  243. '# h : Show hints s : Show time stamps'#010+
  244. '# i : Show general info q : Show',' message numbers'#010+
  245. '# l : Show linenumbers c : Show conditionals'#010+
  246. '# a : Show everything 0 : Show nothing (except errors'+
  247. ')'#010+
  248. '# b : Write file names messages r : Rhide/GCC compatibility mod'+
  249. 'e'#010+
  250. '# with fu','ll path x : Executable info (Win32 on'+
  251. 'ly)'#010+
  252. '# v : write fpcdebug.txt with p : Write tree.log with parse t'+
  253. 'ree'#010+
  254. '# lots of debugging info'#010+
  255. '#'#010+
  256. '# Display Info, Warnings and Notes'#010+
  257. '-viwn'#010+
  258. '# If you don'#039't want so much verbosi','ty use'#010+
  259. '#-vw'#010
  260. );