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 / p6 / makefile < prev    next >
Makefile  |  2007-09-19  |  3KB  |  128 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 the os kernel...
  75. #
  76.  
  77. Runtime.o: Runtime.s
  78.     asm Runtime.s
  79.  
  80. Switch.o: Switch.s
  81.     asm Switch.s
  82.  
  83. System.s: System.h System.c
  84.     kpl System -unsafe
  85.  
  86. System.o: System.s
  87.     asm System.s
  88.  
  89. List.s: System.h List.h List.c
  90.     kpl List -unsafe
  91.  
  92. List.o: List.s
  93.     asm List.s
  94.  
  95. BitMap.s: System.h BitMap.h BitMap.c
  96.     kpl BitMap -unsafe
  97.  
  98. BitMap.o: BitMap.s
  99.     asm BitMap.s
  100.  
  101. Kernel.s: System.h List.h BitMap.h Kernel.h Kernel.c
  102.     kpl Kernel -unsafe
  103.  
  104. Kernel.o: Kernel.s
  105.     asm Kernel.s
  106.  
  107. Main.s: System.h List.h BitMap.h Kernel.h Main.h Main.c
  108.     kpl Main -unsafe
  109.  
  110. Main.o: Main.s
  111.     asm Main.s
  112.  
  113. os: Runtime.o Switch.o System.o List.o BitMap.o Kernel.o Main.o
  114.     lddd Runtime.o Switch.o System.o List.o BitMap.o Kernel.o Main.o -o os
  115.  
  116. #
  117. # Stuff related to the DISK...
  118. #
  119.  
  120. DISK: MyProgram TestProgram1 TestProgram2 TestProgram3
  121.     diskUtil -i
  122.     diskUtil -a MyProgram MyProgram
  123.     diskUtil -a TestProgram1 TestProgram1
  124.     diskUtil -a TestProgram2 TestProgram2
  125.     diskUtil -a TestProgram3 TestProgram3
  126.  
  127.