home *** CD-ROM | disk | FTP | other *** search
/ ftp.ee.pdx.edu / 2014.02.ftp.ee.pdx.edu.tar / ftp.ee.pdx.edu / pub / users / Harry / Blitz / OSProject / p8 / makefile < prev    next >
Makefile  |  2007-09-19  |  5KB  |  248 lines

  1. #
  2. # Type 'make' with this 'makefile' file to build the BLITZ OS kernel
  3. # It will execute the following commands as needed, based on files'
  4. # most-recent-update times.
  5.  
  6. all: os DISK
  7.  
  8. #
  9. # Stuff related to user-level programs in general...
  10. #
  11.  
  12. UserRuntime.o: UserRuntime.s
  13.     asm UserRuntime.s
  14.  
  15. UserSystem.s: UserSystem.h UserSystem.c
  16.     kpl UserSystem -unsafe
  17.  
  18. UserSystem.o: UserSystem.s
  19.     asm UserSystem.s
  20.  
  21. #
  22. # Stuff related to user-level program 'MyProgram'...
  23. #
  24.  
  25. MyProgram.s: UserSystem.h MyProgram.h MyProgram.c
  26.     kpl MyProgram -unsafe
  27.  
  28. MyProgram.o: MyProgram.s
  29.     asm MyProgram.s
  30.  
  31. MyProgram: UserRuntime.o UserSystem.o MyProgram.o
  32.     lddd UserRuntime.o UserSystem.o MyProgram.o -o MyProgram
  33.  
  34. #
  35. # Stuff related to user-level program 'TestProgram1'...
  36. #
  37.  
  38. TestProgram1.s: UserSystem.h TestProgram1.h TestProgram1.c
  39.     kpl TestProgram1 -unsafe
  40.  
  41. TestProgram1.o: TestProgram1.s
  42.     asm TestProgram1.s
  43.  
  44. TestProgram1: UserRuntime.o UserSystem.o TestProgram1.o
  45.     lddd UserRuntime.o UserSystem.o TestProgram1.o -o TestProgram1
  46.  
  47. #
  48. # Stuff related to user-level program 'TestProgram2'...
  49. #
  50.  
  51. TestProgram2.s: UserSystem.h TestProgram2.h TestProgram2.c
  52.     kpl TestProgram2 -unsafe
  53.  
  54. TestProgram2.o: TestProgram2.s
  55.     asm TestProgram2.s
  56.  
  57. TestProgram2: UserRuntime.o UserSystem.o TestProgram2.o
  58.     lddd UserRuntime.o UserSystem.o TestProgram2.o -o TestProgram2
  59.  
  60. #
  61. # Stuff related to user-level program 'TestProgram3'...
  62. #
  63.  
  64. TestProgram3.s: UserSystem.h TestProgram3.h TestProgram3.c
  65.     kpl TestProgram3 -unsafe
  66.  
  67. TestProgram3.o: TestProgram3.s
  68.     asm TestProgram3.s
  69.  
  70. TestProgram3: UserRuntime.o UserSystem.o TestProgram3.o
  71.     lddd UserRuntime.o UserSystem.o TestProgram3.o -o TestProgram3
  72.  
  73. #
  74. # Stuff related to user-level program 'TestProgram4'...
  75. #
  76.  
  77. TestProgram4.s: UserSystem.h TestProgram4.h TestProgram4.c
  78.     kpl TestProgram4 -unsafe
  79.  
  80. TestProgram4.o: TestProgram4.s
  81.     asm TestProgram4.s
  82.  
  83. TestProgram4: UserRuntime.o UserSystem.o TestProgram4.o
  84.     lddd UserRuntime.o UserSystem.o TestProgram4.o -o TestProgram4
  85.  
  86. #
  87. # Stuff related to user-level program 'TestProgram5'...
  88. #
  89.  
  90. TestProgram5.s: UserSystem.h TestProgram5.h TestProgram5.c
  91.     kpl TestProgram5 -unsafe
  92.  
  93. TestProgram5.o: TestProgram5.s
  94.     asm TestProgram5.s
  95.  
  96. TestProgram5: UserRuntime.o UserSystem.o TestProgram5.o
  97.     lddd UserRuntime.o UserSystem.o TestProgram5.o -o TestProgram5
  98.  
  99.  
  100. #
  101. # Stuff related to user-level program 'Program1'...
  102. #
  103.  
  104. Program1.s: UserSystem.h Program1.h Program1.c
  105.     kpl Program1
  106.  
  107. Program1.o: Program1.s
  108.     asm Program1.s
  109.  
  110. Program1: UserRuntime.o UserSystem.o Program1.o
  111.     lddd UserRuntime.o UserSystem.o Program1.o -o Program1
  112.  
  113.  
  114. #
  115. # Stuff related to user-level program 'Program2'...
  116. #
  117.  
  118. Program2.s: UserSystem.h Program2.h Program2.c
  119.     kpl Program2 -unsafe
  120.  
  121. Program2.o: Program2.s
  122.     asm Program2.s
  123.  
  124. Program2: UserRuntime.o UserSystem.o Program2.o
  125.     lddd UserRuntime.o UserSystem.o Program2.o -o Program2
  126.  
  127.  
  128. #
  129. # Stuff related to user-level program 'sh'...
  130. #
  131.  
  132. sh.s: UserSystem.h sh.h sh.c
  133.     kpl sh -unsafe
  134.  
  135. sh.o: sh.s
  136.     asm sh.s
  137.  
  138. sh: UserRuntime.o UserSystem.o sh.o
  139.     lddd UserRuntime.o UserSystem.o sh.o -o sh
  140.  
  141.  
  142. #
  143. # Stuff related to user-level program 'cat'...
  144. #
  145.  
  146. cat.s: UserSystem.h cat.h cat.c
  147.     kpl cat -unsafe
  148.  
  149. cat.o: cat.s
  150.     asm cat.s
  151.  
  152. cat: UserRuntime.o UserSystem.o cat.o
  153.     lddd UserRuntime.o UserSystem.o cat.o -o cat
  154.  
  155.  
  156. #
  157. # Stuff related to user-level program 'hello'...
  158. #
  159.  
  160. hello.s: UserSystem.h hello.h hello.c
  161.     kpl hello -unsafe
  162.  
  163. hello.o: hello.s
  164.     asm hello.s
  165.  
  166. hello: UserRuntime.o UserSystem.o hello.o
  167.     lddd UserRuntime.o UserSystem.o hello.o -o hello
  168.  
  169.  
  170. #
  171. # Stuff related to the os kernel...
  172. #
  173.  
  174. Runtime.o: Runtime.s
  175.     asm Runtime.s
  176.  
  177. Switch.o: Switch.s
  178.     asm Switch.s
  179.  
  180. System.s: System.h System.c
  181.     kpl System -unsafe
  182.  
  183. System.o: System.s
  184.     asm System.s
  185.  
  186. List.s: System.h List.h List.c
  187.     kpl List -unsafe
  188.  
  189. List.o: List.s
  190.     asm List.s
  191.  
  192. BitMap.s: System.h BitMap.h BitMap.c
  193.     kpl BitMap -unsafe
  194.  
  195. BitMap.o: BitMap.s
  196.     asm BitMap.s
  197.  
  198. Kernel.s: System.h List.h BitMap.h Kernel.h Kernel.c
  199.     kpl Kernel -unsafe
  200.  
  201. Kernel.o: Kernel.s
  202.     asm Kernel.s
  203.  
  204. Main.s: System.h List.h BitMap.h Kernel.h Main.h Main.c
  205.     kpl Main -unsafe
  206.  
  207. Main.o: Main.s
  208.     asm Main.s
  209.  
  210. os: Runtime.o Switch.o System.o List.o BitMap.o Kernel.o Main.o
  211.     lddd Runtime.o Switch.o System.o List.o BitMap.o Kernel.o Main.o -o os
  212.  
  213. #
  214. # Stuff related to the DISK...
  215. #
  216.  
  217. DISK: MyProgram TestProgram1 TestProgram2 TestProgram3 TestProgram4 TestProgram5\
  218.             file1 file2 file3 file1234abcd \
  219.             fileA fileB fileC fileD \
  220.             Program1 Program2 sh cat hello script help \
  221.             FileWithVeryLongName012345678901234567890123456789
  222.     diskUtil -i
  223.     diskUtil -a file1 file1
  224.     diskUtil -a MyProgram MyProgram
  225.     diskUtil -a TestProgram1 TestProgram1
  226.     diskUtil -a TestProgram2 TestProgram2
  227.     diskUtil -a TestProgram3 TestProgram3
  228.     diskUtil -a TestProgram4 TestProgram4
  229.     diskUtil -a TestProgram5 TestProgram5
  230.     diskUtil -a file2 file2
  231.     diskUtil -a file3 file3
  232.     diskUtil -a file1234abcd file1234abcd
  233.     diskUtil -a fileA fileA
  234.     diskUtil -a fileB fileB
  235.     diskUtil -a fileC fileC
  236.     diskUtil -a fileD fileD
  237.     diskUtil -a Program1 Program1
  238.     diskUtil -a Program2 Program2
  239.     diskUtil -a sh sh
  240.     diskUtil -a cat cat
  241.     diskUtil -a hello hello
  242.     diskUtil -a script script
  243.     diskUtil -a help help
  244.     diskUtil -a FileWithVeryLongName012345678901234567890123456789 \
  245.             FileWithVeryLongName012345678901234567890123456789
  246.  
  247.