# Makefile for Tlpt
#
# NOTE: Use 'gmake' (GNU make).
#
# $Id: Makefile 885 2008-02-12 10:44:49Z isr $

BINDIR = $(HOME)/bin

# -------------------------------------------------------------

RESULT = tlpt

SCHEME_SRCS =	\
	scheme/stype.ml		scheme/slib.ml	\
	scheme/sparser.mly	scheme/slex.mll	\
	scheme/sexec.ml scheme/smain.ml

WHITESPACE_SRCS =	\
	whitespace/vm.ml	\
	whitespace/tokens.mli	whitespace/tokens.ml	\
	whitespace/input.ml	whitespace/wsmain.ml

SOURCES =	\
	terr.ml	\
	utils.ml	utils.mli	\
	ttype.ml	ttype.mli	\
	vars.ml		vars.mli	\
	tlib.ml	\
	tparser.mly \
	lang.ml		lang.mli	\
	texec.ml	\
	tlex.mll	\
	$(SCHEME_SRCS)	\
	$(WHITESPACE_SRCS)	\
	tlpt.ml	

LIBS = nums unix
OCAMLMAKEFILE = OCamlMakefile

# -------------------------------------------------------------
include $(OCAMLMAKEFILE)
# -------------------------------------------------------------

install: nc
	-mkdir -p $(BINDIR)
	cp tlpt $(BINDIR)
	cp -R lib $(BINDIR)
	-rm -rf $(BINDIR)/lib/.svn

line: $(SOURCES)
	wc -l $(SOURCES)
