You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

243 lines
6.6 KiB

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