#
# This is iconiface/m68k/buildfile
#
# Buildfile created Aug 22, 1985
# James Wilson
#
# 25 Aug 85 (mjz): Now includes real buildtemplate with dependencies and 
#	does the right thing.  Unfortunately, it's not in the cmds 
#	buildfile yet, and really does not handle machine dependency 
#	correctly.
#

X = 1

#ifdef X
FLAGS = -vxV 
#else X
FLAGS = -O -V
#endif X

MI = ../mi/
# Without VPATH build will not find source, and therefore won't know to 
# try to convert .c.b...  It would do any commands under blah.b:
# but since I have no commands there, it ended up doing nothing.
VPATH = ../mi

# how to compile a 68k c program...
.SUFFIXES:
.SUFFIXES: .b .c 

.c.b:
	cc68 $(FLAGS) -c -o $*.b $(MI)$*.c

# get the file with all the dependency info in it... note it is 
#	machine dependent! (oh, well - mjz)  (also defines IOBJS)
#
#include ../buildtemplate

# here is where we link the iconic user interface (for the 68k).
# I also place the object in the directory above us to make it
# easy to remember (and less to type) where to find it.  Perhaps
# this should be done in an install step?
#
all: $(IOBJS)
	cc68 $(FLAGS) -o iconiface.m68k $(IOBJS)

install: 
	cp iconiface.m68k $(VSYS)/bin/
	netinstall $(NIFLAGS) iconiface.m68k $(VSYS)/bin

clean:
	rm -f *.EMACS *.BAK *.CKP *.r *.b
