# WARNING: DO NOT EDIT.
# THIS FILE WAS AUTOMATICALLY GENERATED USING THE
# BUILDMAKE PROGRAM.

#
# Makefile for V kernel
# Machine-independent subdirectory
# Tim Mann, March 3, 1982
# 
HOST= ../m68k
VINCL= ../../libc/include
NET=ENET3MEG

OBJECTS= bpi.b dm.b kp.b init.b ipc.b ikc.b \
	mouse.b naming.b pm.b time.b
C68FLAGS =  -DMC68000 -I$(HOST) -O -D$(NET) -V

# first, define the world of 68000s
.SUFFIXES: .b .ls .a68 .c

# how to compile a 68000 file
.c.b:
	cc68 $(C68FLAGS) -c $*.c 

# how to make an assembly file (Not deleting it or assembling it)
.c.s:
	cc68 $(C68FLAGS) -S $*.c

# how to make an assembly listing
.c.ls:
	cc68 $(C68FLAGS) -c -L $*.c

#END world of 68000's

# compile everything that needs it
all: $(OBJECTS)

process.h: $(VINCL)/Venviron.h $(HOST)/config.h $(HOST)/machine.h
	touch process.h
dm.h: $(HOST)/config.h $(VINCL)/Vio.h
	touch dm.h
naming.h: $(VINCL)/Venviron.h
	touch naming.h

bpi.b: bpi.c process.h
dm.b: dm.c $(VINCL)/Vio.h process.h dm.h $(HOST)/config.h
kp.b: kp.c $(VINCL)/Venviron.h process.h $(VINCL)/Vikc.h
init.b: init.c process.h dm.h naming.h
ipc.b: ipc.c process.h
ikc.b: ikc.c process.h naming.h $(VINCL)/Vethernet.h $(VINCL)/Vikc.h
mouse.b: mouse.c dm.h $(VINCL)/Vmouse.h $(HOST)/interrupt.h mouse.h
naming.b: naming.c $(VINCL)/Venviron.h process.h naming.h
pm.b: pm.c process.h
time.b: time.c process.h $(HOST)/timer.h

clean:
	rm -f *.o *.b *.s *.ls .emacs* .net*

build:
	buildmake.sh

xbuild:
	buildmake.sh -DX=1
