#
# Type 'make' with this 'makefile' file to build the Project 2 code.
# It will execute the following commands as needed, based on files'
# most-recent-update times.
# 

all: os

Runtime.o: Runtime.s
	asm Runtime.s

Switch.o: Switch.s
	asm Switch.s

System.s: System.h System.c
	kpl System -unsafe

System.o: System.s
	asm System.s

List.s: List.h List.c System.h
	kpl List -unsafe

List.o: List.s
	asm List.s

Thread.s: Thread.h Thread.c System.h List.h
	kpl Thread -unsafe

Thread.o: Thread.s
	asm Thread.s

Synch.s: Synch.h Synch.c Thread.h List.h System.h
	kpl Synch

Synch.o: Synch.s
	asm Synch.s

Main.s: Main.h Main.c Thread.h List.h System.h Synch.h
	kpl Main -unsafe

Main.o: Main.s
	asm Main.s



os: System.o List.o Thread.o Switch.o Synch.o Main.o Runtime.o
	lddd System.o List.o Thread.o Switch.o Synch.o Main.o Runtime.o -o os
