# -*- makefile -*- mode for emacs
# @(#) $Id: Makefile,v 1.9 1999/01/08 22:26:08 leavens Exp $
#
# Developer's Makefile for testing Larch/C++ specs
#

RM = rm -f
LCPPFLAGS = -ansi
# LCPPFLAGS = -ansi --no-LSL
LSLFLAGS =
# LSLFLAGS = -lp

.SUFFIXES: .lh .lh-ckd .lsl .lsl-ckd

.lh.lh-ckd:
	lcpp $(LCPPFLAGS) $< 2>&1 | tee $@

.lsl.lsl-ckd:
	lsl $(LSLFLAGS) $< 2>&1 | tee $@

check: checkallspecs

checkalltraits:
	@echo 'no traits in this directory'

# check all Larch/C++ specs.
checkallspecs :
	lcpp $(LCPPFLAGS) *.lh

# Clean up stuff
#
clean	:
	$(RM) *.lh-ckd *.lpfrz *.o a.out core

cleanall : clean
	$(RM) *.lpscr *.lp *.lplog *~
	$(RM) -r lsl_syms_cache
