Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /lexgen/releases/release-110.61/src/Makefile
ViewVC logotype

View of /lexgen/releases/release-110.61/src/Makefile

Parent Directory Parent Directory | Revision Log Revision Log

Revision 2246 - (download) (annotate)
Thu Dec 14 18:20:38 2006 UTC (14 years, 1 month ago) by blume
File size: 1241 byte(s)
Release 110.61
# COPYRIGHT (c) 2005 
# John Reppy (http://www.cs.uchicago.edu/~jhr)
# Aaron Turon (adrassi@gmail.com)
# All rights reserved.

OS =		$(shell uname -s)

ifeq ($(shell uname -s),Darwin)
HEAP_SUFFIX =		ppc-darwin
HEAP_SUFFIX =		x86-unix

SHELL =			/bin/sh
SML =			sml
ML_BUILD =		ml-build
ML_MAKEDEPEND =		ml-makedepend

PROGRAM =	lexgen

FE = 		FrontEnds
BE = 		BackEnds

ML_LEX =	$(FE)/ml-lex
ML_LEX_SRC = 	$(wildcard $(ML_LEX)/*.sml) $(ML_LEX)/ml-lex.lex $(ML_LEX)/ml-lex.yacc

DUMP_SRC =	$(wildcard $(BE)/Dump/*.sml)
DOT_SRC =	$(wildcard $(BE)/Dot/*.sml)
SML_SRC = 	$(wildcard $(BE)/SML/*.sml)
MATCH_SRC = 	$(wildcard $(BE)/Match/*.sml)

FE_SRC = 	$(wildcard $(FE)/*.sml) $(ML_LEX_SRC)
BE_SRC = 	$(wildcard $(BE)/*.sml) $(DOT_SRC) $(SML_SRC) $(MATCH_SRC)

CORE_SRC =	$(wildcard *.sml)

SOURCES =	$(CORE_SRC) $(FE_SRC) $(BE_SRC) sources.cm

build:		$(HEAP_IMAGE)

	$(ML_BUILD) sources.cm Main.main $(PROGRAM)

.depend:	$(CM_FILES)
	touch .depend
	$(ML_MAKEDEPEND) -n -f .depend sources.cm $(HEAP_IMAGE)

sinclude .depend

#NOTE: do NOT clean out ml-lex.lex.sml, it is not autogenerated!
	rm -rf .depend .cm FrontEnds/ml-lex/ml-lex.yacc.sml $(HEAP_IMAGE)

ViewVC Help
Powered by ViewVC 1.0.0