home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 4 / AACD04.ISO / AACD / Programming / PMM / Doku / DemoConfig_ENG / Pmm.Cfg < prev    next >
Encoding:
Text File  |  1999-11-15  |  5.8 KB  |  241 lines

  1. ; Things that every time used
  2. ; ---------------------------
  3. ; CPU-meanigs: 1 = 68000
  4. ;              2 = 68010
  5. ;              3 = 68020 / 68881
  6. ;              4 = 68030 / 68882
  7. ;              5 = 68040 / FPU 040
  8. ;              6 = 68060 / FPU 060
  9. ;              7 = PPC / PowerUP (ELF)
  10. ;              8 = PPC / WarpOS  (ELH)
  11. ;
  12. ; $C = CPU/FPU for compiler
  13. ; $D = CPU/FPU defines for using in source. If not set
  14. ; $E = path to special machine includes
  15. ; $F = path to the link libs (machine)
  16. ; Note: This is the original Pmm/vbcc-script that will be used
  17. ;       to create gateway-5, gateway-library, Pmm and all linkable .LIB
  18. ;       
  19. ; <-- ( ; EQ comment )
  20. # <-- ( # EQ comment ) for all make-fan's
  21. ;
  22.  
  23.  
  24.  
  25. ; Empty lines are ignored and allowed
  26. ; -----------------------------------
  27.  
  28. $C=-cpu=68000
  29. $D=-DCPU="68000" -DFPU="N/A"
  30.  
  31. $E=vinclude
  32. $F=vlib
  33. ;
  34. 2%$C=-cpu=68010
  35. 2%$D=-DCPU="68010" -DFPU="N/A"
  36. ;
  37. 3%$C=-cpu=68020 -fpu=68881
  38. 3%$D=-DCPU="68020" -DFPU="68881"
  39. ;
  40. 4%$C=-cpu=68030 -fpu=68882
  41. 4%$D=-DCPU="68030" -DFPU="68882"
  42. ;
  43. 5%$C=-cpu=68040 -fpu=68040
  44. 5%$D=-DCPU="68040" -DFPU="FPU040"
  45. ;
  46. 6%$C=-cpu=68060 -fpu=68060
  47. 6%$D=-DCPU="68060" -DFPU="FPU060"
  48. ;
  49. 7%$C=-cpu=ppc
  50. 7%$D=-DCPU="PPC" -DFPU="PowerUP"
  51.  
  52. 7%$E=vincludeppc
  53. 7%$F=vlibppc
  54. ;
  55. 8%$C=-cpu=wos
  56. 8%$D=-DCPU="PPC" -DFPU="WarpOS"
  57.  
  58. 8%$E=vincludewos
  59. 8%$F=vlibwos
  60.  
  61. $0=000
  62. 2%$0=010
  63. 3%$0=020
  64. 4%$0=030
  65. 5%$0=040
  66. 6%$0=060
  67. 7%$0=PPC
  68. 8%$0=WOS
  69. ;
  70. $7=$F:mieee.lib
  71. 2%$7=$F:mieee.lib
  72. 3%$7=$F:m881.lib
  73. 4%$7=$F:m881.lib
  74. 5%$7=$F:m040.lib
  75. 6%$7=$F:m040.lib
  76. 7%$7=-lm
  77. 8%$7=-lm
  78. ;
  79. $8=.lib
  80. 7%$8=.a
  81. ;
  82. $9=$8
  83. 5%$9=_$0$8
  84. 6%$9=_040$8
  85. 7%$9=_$0$8
  86. 8%$9=_$0$8
  87. ;
  88. ;   1%, 2% etc. look document
  89. ;
  90.  
  91. ;
  92. ; Presetvalues that used when the project not set own values.
  93. ; ------------ DANGER! Set optimizer to maximum can be a problem (BETA) !!!
  94. ;              I find not real problems in the optimizer from V0.6e
  95. ; Older versions: ">>> VAR <name> is used bevor defined":
  96. ; Don't use Optimizer higher than -O1. Or you create aa program that crash
  97. ; if the function with the warning start. If you don't habe a minimum of
  98. ; 16 MB free ram you can very quick get problem's with memory wenn high
  99. ; optimizefunctions set.
  100. ; $1, $2 ... $0 variables, no internal definition or use. for free useage.
  101. ;
  102. ; Next lines:
  103. ;   $1 is set WITHOUT cpu-rule, so it will work from 1 upto 0.
  104. ; 7%$1 set own value for CPU 7       If line over these line not changed
  105. ; 8%$1 also set own value for CPU 8  the CPU-7 & 8 are PPC-versions
  106. ;
  107. $1=-no-preprocessor
  108. 7%$1=-no-preprocessor -elf -no-regnames -no-multiple-ccs
  109. 8%$1=-no-preprocessor -amiga-align -poweropen -sc -no-multiple-ccs -use-lmw -peephole
  110.  
  111. ; CHANGE IF YOU GUT PROBLEMS WITH OPTIMIZER OR RAM
  112.  
  113. $2=-O=991 -maxoptpasses=50
  114.  
  115. $o=T:PmmObjFileList
  116.  
  117. ;
  118. ; Default's:
  119. ;
  120.  
  121. $2=-O=991 -maxoptpasses=50
  122. $o=T:ObjLinkList
  123. ;
  124. ; for linkerdefinitions: CPU-typ will checked
  125. ;
  126. $3=$F:startup.o
  127. 8%$3=$F:warpup.o
  128. ;
  129. $4=$7 $F:vc$8 $F:amiga$8 $F:extra$8
  130. 7%$4=$7 -lamiga -lextra -lvc -lpowerup
  131. 8%$4=$7 -lamiga -lextra -lvc $F:x.o
  132. ;
  133. ; Includes: -I$I = source-directory from project 
  134. ; --------- Set here all Include-Dir's for compiling. Depend
  135. ;           use own definitions.
  136. ;
  137. $5=-I$E: -I$I
  138. ;
  139. ; start preprocessor's
  140. ;
  141. P=vcpp_wos $5 -D__STDC__=1 -+ $D $&.c $&.i
  142. 7%P=vcpp_wos $5 -D__STDC__=1 -+ $D $&.c $&.i
  143. 8%P=vcpp_wos $5 -D__STDC__=1 -D__VBCC__=1 -D__PPC__=1 -+ $D $&.c $&.i
  144. ;
  145. ; start compiler
  146. ;
  147. C=vbccm68k_wos $&.i -o= $&.a -quiet $C $1 $2
  148. 7%C=vbccppc_wos $&.i -o= $&.a -quiet $C $1 $2
  149. 8%C=vbccppc_wos $&.i -o= $&.a -quiet $C $1 $2
  150. ;
  151. ; start scheduler (only WarpOS work correct)
  152. ;
  153. S=
  154. 7%S=vscppc_wos -quiet $&.a $&.s
  155. 8%S=vscppc_wos -quiet $&.a $&.s
  156. ;
  157. ; assembler 
  158. ;
  159. A=PhxAss noexe quiet opt 3 M=0 $&.a TO $&.o
  160. 2%A=PhxAss noexe quiet opt 3 M=1 $&.a TO $&.o
  161. 3%A=PhxAss noexe quiet opt 3 M=2 FPU=1 $&.a TO $&.o
  162. 4%A=PhxAss noexe quiet opt 3 M=3 FPU=1 $&.a TO $&.o
  163. 5%A=PhxAss noexe quiet opt 3 M=4 $&.a TO $&.o
  164. 6%A=PhxAss noexe quiet opt 3 M=6 $&.a TO $&.o
  165. 7%A=pasm_wos -R -F1 -O65536 $&.s -o $&.o
  166. 8%A=pasm_wos -F2 -O65536 $&.s -o $&.o
  167. ;
  168. ; Linker (PhxLnk: @ übergibt eine Datei in der alle .o-Files gelistet sind!)
  169. ;        (GNU-ld: < dito, aber über Standard-Input)
  170. ;        (vlink: -F für File)
  171. ; PmmLibr from project (extern) simulate a linker and use of F, f, -F, -f or
  172. ;         @ read linker-objectfile
  173. ;
  174. ; The linker is the longest commandostart of all. The Link-Libs and other
  175. ; Libs will use the most bytes from the maximum commandstring. And do anytime
  176. ; this, else that isn't what I like. So I do all obj-names, everytime a link
  177. ; must be done, the FIle after $o is bild with a list of all obj-files.
  178. ; So I 'm shure that the linker become the list so short as possible from
  179. ; Pmm.
  180. ;
  181. ; The Linker obj-list from file $o are used to make the endproduct $$
  182. ;
  183. ;
  184. L=vlink_wos -s -sc -sd -x -dn $3 -F$o $L $4 -o $$
  185. 7%L=vlink_wos -belf32powerup -s -sc -sd -nostdlib -L$F: $3 -F$o $4 $L -o $$
  186. 8%L=vlink_wos -bamigaehf -s -sc -sd -nostdlib -L$F: $3 -F$o $L $4 -o $$
  187. ;
  188. ; CLI-commands use with control by pmm
  189. ;
  190. ; X0-X9 Run this lines if anything must be compile VOR first compiler starts.
  191. ;
  192. ; Y0-Y9 Run this Lines after Link. The File $$ (endprodukt) must really be
  193. ;       created
  194. ;
  195. ; R#: Run but only at special position and rules:
  196. ;
  197. ; R0: VOR  P - only if P will be startet
  198. ; R1:AFTER P - only after start P and output is created
  199. ; R2: VOR  C - only if C will be startet
  200. ; R3:AFTER C - only after start C and output is created
  201. ; R4: VOR  S - only if S will be startet
  202. ; R5:AFTER S - only after start S and output is created
  203. ; R6: VOR  A - only if A will be startet
  204. ; R7:AFTER A - only after start A and output is created
  205. ; R8: VOR  L - only if L will be startet
  206. ; R9:AFTER L - only after start L and output is created
  207. ; HINT: If lines not enough, use batch or arexx
  208. ;
  209. ; CleanUp
  210. ;
  211. R7=Delete $&.i $&.a
  212. 8%R7=Delete $&.i $&.a $&.s
  213. R9=Delete $o
  214. ;
  215. ; Create obj-dirs AND CLEAN ALL VARIABLE (for secure)
  216. ;
  217. X0=PmmTool -m obj/$0
  218. X1=;
  219. X2=;
  220. X3=;
  221. X4=;
  222. X5=;
  223. X6=;
  224. X7=;
  225. X8=;
  226. X9=;
  227.  
  228. Y0=;
  229. Y1=;
  230. Y2=;
  231. Y3=;
  232. Y4=;
  233. Y5=;
  234. Y6=;
  235. Y7=;
  236. Y8=;
  237. Y9=;
  238.