# (C) Copyright International Business Machines Corporation 23 January 
# 1990.  All Rights Reserved. 
#  
# See the file USERAGREEMENT distributed with this software for full 
# terms and conditions of use. 
# File: Makefile
# Author: David F. Bacon
# SCCS Info: @(#)Makefile	1.7 3/13/90

# This is the makefile for the bootstrapping version of the Hermes typechecker.
# Since typemarks are not included in all of the code, some versions must be
# compiled twice, once without checking and once with.  These are the *.bs 
# files in the $(COMMOND) directory.

TCDEFDIR =	../defs
TCCOMDIR =	../common

# #ifdef'd sources from $(TCCOMDIR)
BSSRC	=	interfacecheck.bs stmtchecker.bs recheckinfer.bs type.bs \
		qualchecker.bs
BSINT	=	interfacecheck.p stmtchecker.p recheckinfer.p type.p \
		qualchecker.p
BSOBJ	=	interfacecheck.po stmtchecker.po recheckinfer.po type.po \
		qualchecker.po

# sources required only for bootstrapping
BOOTSRC=	dummy_class.p
BOOTOBJ=	dummy_class.po

# all together now...
SRC	=	$(BOOTSRC)
INT	=	$(BSINT)
PROCOBJS =	$(BSOBJ) $(BOOTOBJ)

include ../../make/includefile

EXTRACPPFLAGS =	-UFullChecking -Udebug

DEFPATH	=	$(TCDEFDIR):$(DEFDIR)

all: $(SRC) $(INT) compileprocs

# *.bs files from $(TCCOMDIR)

include ../common/bsmake

# cleanup

clean:
	rm -f core *~ $(INT) $(PROCOBJS)

# following removes all the .po files from the current version's
# installed binaries directory so they won't interfere with a build
# that needs to use the bootstrapper
cleanbins:
	( cd $(PROCDIR) ; rm -f $(PROCOBJS) )
