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 / p7 / makefile < prev    next >
Makefile  |  2007-09-19  |  4KB  |  181 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. #
  88. # Stuff related to user-level program 'Program1'...
  89. #
  90.  
  91. Program1.s: UserSystem.h Program1.h Program1.c
  92.     kpl Program1
  93.  
  94. Program1.o: Program1.s
  95.     asm Program1.s
  96.  
  97. Program1: UserRuntime.o UserSystem.o Program1.o
  98.     lddd UserRuntime.o UserSystem.o Program1.o -o Program1
  99.  
  100.  
  101. #
  102. # Stuff related to user-level program 'Program2'...
  103. #
  104.  
  105. Program2.s: UserSystem.h Program2.h Program2.c
  106.     kpl Program2 -unsafe
  107.  
  108. Program2.o: Program2.s
  109.     asm Program2.s
  110.  
  111. Program2: UserRuntime.o UserSystem.o Program2.o
  112.     lddd UserRuntime.o UserSystem.o Program2.o -o Program2
  113.  
  114. #
  115. # Stuff related to the os kernel...
  116. #
  117.  
  118. Runtime.o: Runtime.s
  119.     asm Runtime.s
  120.  
  121. Switch.o: Switch.s
  122.     asm Switch.s
  123.  
  124. System.s: System.h System.c
  125.     kpl System -unsafe
  126.  
  127. System.o: System.s
  128.     asm System.s
  129.  
  130. List.s: System.h List.h List.c
  131.     kpl List -unsafe
  132.  
  133. List.o: List.s
  134.     asm List.s
  135.  
  136. BitMap.s: System.h BitMap.h BitMap.c
  137.     kpl BitMap -unsafe
  138.  
  139. BitMap.o: BitMap.s
  140.     asm BitMap.s
  141.  
  142. Kernel.s: System.h List.h BitMap.h Kernel.h Kernel.c
  143.     kpl Kernel -unsafe
  144.  
  145. Kernel.o: Kernel.s
  146.     asm Kernel.s
  147.  
  148. Main.s: System.h List.h BitMap.h Kernel.h Main.h Main.c
  149.     kpl Main -unsafe
  150.  
  151. Main.o: Main.s
  152.     asm Main.s
  153.  
  154. os: Runtime.o Switch.o System.o List.o BitMap.o Kernel.o Main.o
  155.     lddd Runtime.o Switch.o System.o List.o BitMap.o Kernel.o Main.o -o os
  156.  
  157. #
  158. # Stuff related to the DISK...
  159. #
  160.  
  161. DISK: MyProgram TestProgram1 TestProgram2 TestProgram3 TestProgram4 \
  162.             file1 file2 file3 file1234abcd \
  163.             Program1 Program2 \
  164.             FileWithVeryLongName012345678901234567890123456789
  165.     diskUtil -i
  166.     diskUtil -a file1 file1
  167.     diskUtil -a MyProgram MyProgram
  168.     diskUtil -a TestProgram1 TestProgram1
  169.     diskUtil -a TestProgram2 TestProgram2
  170.     diskUtil -a TestProgram3 TestProgram3
  171.     diskUtil -a TestProgram4 TestProgram4
  172.     diskUtil -a file2 file2
  173.     diskUtil -a file3 file3
  174.     diskUtil -a file1234abcd file1234abcd
  175.     diskUtil -a Program1 Program1
  176.     diskUtil -a Program2 Program2
  177.     diskUtil -a FileWithVeryLongName012345678901234567890123456789 \
  178.             FileWithVeryLongName012345678901234567890123456789
  179.  
  180.