###############################################################################
# Makefile - makefile for generic portion of tkisem
#
# $Id: Makefile 1.1 Sat, 13 Sep 1997 12:04:11 -0600 maccabe $
###############################################################################

HOME=..
include $(HOME)/build/make.config

all:	isem_rom

clean:	
	rm -f *~

realclean:	
	rm -f *~ isem_rom *.o

# The cleaned-up isem_rom/isem_vec combo requires that
# the trap table get linked at a page boundary, but there
# seems to be no way to do that with just command line
# options in GNU ld.  So we're going with a slightly
# a customized ld script instead.  See discussion in
# isem_ld.txt.
isem_rom:	isem_rom.o isem_vec.o isem_ld.txt
	$(ISEM_LD) -T isem_ld.txt -o isem_rom isem_rom.o isem_vec.o

depend:
	@echo "Dependencies built in" 

SUFFIXES: .o .s

.s.o:
	$(ISEM_AS) $< -o $@

install:	isem_rom
	$(INSTALL) isem_rom $(LIBDIR)
	$(INSTALL) isem_rom.s $(LIBDIR)
	$(INSTALL) isem_vec.s $(LIBDIR)
	$(INSTALL) isem_com.tcl $(LIBDIR)
	$(INSTALL) isemhelp.txt $(LIBDIR)
	$(INSTALL) tkisem $(BINDIR)
	# $(INSTALL) tclisem $(BINDIR)  #tclisem still not ready for prime time..
	$(INSTALL) gxisem $(BINDIR)
