# Makefile for KOS -- the derivative of KOS (Jim Plank's OS) # http://www.cs.utk.edu/~plank # # Michael A. Puening modified by Kim Buckner Spring 97 # further modified for kim's lab4 # # modified for cs560 James Spring 00 # # modified for UCSB, Spring 2002 # # modified for UCSB further, Fall 2007 and 2008 # # modified further for UCSB Winter 2014 OS = linux CC = gcc -m32 CFLAGS = -g KHOME = /cs/faculty/rich/cs170 INCLUDES = -I. -I$(KHOME)/include LIBS = $(KHOME)/lib/libsim.a $(KHOME)/lib/libkt.a $(KHOME)/lib/libfdr.a $(KHOME)/lib/libkos.a MAIN = $(KHOME)/lib/main_lab2.o $(KHOME)/lib/rb.o EXECUTABLES = kos USER_OBJS = exception.o kos.o all: $(EXECUTABLES) kos: $(USER_OBJS) $(MAIN) $(CC) $(CFLAGS) -o kos $(MAIN) $(USER_OBJS) $(LIBS) .c.o: $(CC) $(CFLAGS) $(INCLUDES) -c $*.c clean: /bin/rm -f *.o core $(EXECUTABLES) *~