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 / p5 / makefile < prev    next >
Makefile  |  2007-09-19  |  2KB  |  114 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 the os kernel...
  62. #
  63.  
  64. Runtime.o: Runtime.s
  65.     asm Runtime.s
  66.  
  67. Switch.o: Switch.s
  68.     asm Switch.s
  69.  
  70. System.s: System.h System.c
  71.     kpl System -unsafe
  72.  
  73. System.o: System.s
  74.     asm System.s
  75.  
  76. List.s: System.h List.h List.c
  77.     kpl List -unsafe
  78.  
  79. List.o: List.s
  80.     asm List.s
  81.  
  82. BitMap.s: System.h BitMap.h BitMap.c
  83.     kpl BitMap -unsafe
  84.  
  85. BitMap.o: BitMap.s
  86.     asm BitMap.s
  87.  
  88. Kernel.s: System.h List.h BitMap.h Kernel.h Kernel.c
  89.     kpl Kernel -unsafe
  90.  
  91. Kernel.o: Kernel.s
  92.     asm Kernel.s
  93.  
  94. Main.s: System.h List.h BitMap.h Kernel.h Main.h Main.c
  95.     kpl Main -unsafe
  96.  
  97. Main.o: Main.s
  98.     asm Main.s
  99.  
  100. os: Runtime.o Switch.o System.o List.o BitMap.o Kernel.o Main.o
  101.     lddd Runtime.o Switch.o System.o List.o BitMap.o Kernel.o Main.o -o os
  102.  
  103. #
  104. # Stuff related to the DISK...
  105. #
  106.  
  107. DISK: MyProgram TestProgram1 TestProgram2
  108.     diskUtil -i
  109.     diskUtil -a MyProgram MyProgram
  110.     diskUtil -a TestProgram1 TestProgram1
  111.     diskUtil -a TestProgram2 TestProgram2
  112.  
  113.