Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] View of /branches/vis12/src/compiler/Makefile.in
ViewVC logotype

View of /branches/vis12/src/compiler/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1703 - (download) (annotate)
Tue Mar 6 13:05:55 2012 UTC (7 years, 7 months ago) by jhr
File size: 3880 byte(s)
  generate fragment files
# Makefile.in
#
# COPYRIGHT (c) 2010 The Diderot Project
# All rights reserved.
#
# @configure_input@
#

#### Start of system configuration section. ####

#
# directories for the install target
#
PREFIX =		@prefix@
INSTALL_BINDIR =	$(PREFIX)/bin
INSTALL_HEAPDIR =	$(INSTALL_BINDIR)/.heap
INSTALL_LIBDIR =	$(PREFIX)/lib
INSTALL_INCDIR =	$(PREFIX)/include

#
# directories for the local-install target
#
SRCDIR =	@DIDEROT_ROOT@/src
LIBDIR =	@DIDEROT_ROOT@/lib
BINDIR =	@DIDEROT_ROOT@/bin
HEAPDIR =	$(BINDIR)/.heap

INSTALL =	@INSTALL@
SHELL =		@SHELL@
@SET_MAKE@

INSTALL_SMLNJ_WRAPPER = @INSTALL_SMLNJ_WRAPPER@
ML_BUILD =		@ML_BUILD@
ML_BUILD_FLAGS =	-Ctdp.instrument=true \$$smlnj-tdp/back-trace.cm
ML_MAKEDEPEND =		@ML_MAKEDEPEND@
ML_MAKEDEPEND_FLAGS =

#### End of system configuration section. ####

PROGRAM =		diderotc
HEAP_IMAGE =		$(PROGRAM).@SMLNJ_HEAP_SUFFIX@
ROOT_CM =		driver/sources.cm
CM_FILES =		ast/sources.cm \
			basis/sources.cm \
			c-target/sources.cm \
			codegen/sources.cm \
			common/sources.cm \
			driver/sources.cm \
			env/sources.cm \
			fields/sources.cm \
			high-il/sources.cm \
			high-to-mid/sources.cm \
			IL/sources.cm \
			low-il/sources.cm \
			mid-il/sources.cm \
			mid-to-low/sources.cm \
			parser/sources.cm \
			simplify/sources.cm \
			translate/sources.cm \
			tree-il/sources.cm \
			typechecker/sources.cm

CODE_FRAG_FILES =       cl-target/cl-eigen2x2-frag.sml \
			cl-target/cl-eigen3x3-frag.sml \
			cl-target/cl-header-frag.sml \
                        cl-target/cl-sched-frag.sml \
                        cl-target/cl-update-frag.sml \
			c-util/lib-interface-head-frag.sml \
			c-util/lib-interface-body-frag.sml \
			c-util/lib-interface-foot-frag.sml

.PHONY:		local-install
local-install:	$(HEAP_IMAGE)
	$(INSTALL_SMLNJ_WRAPPER) $(PROGRAM) $(BINDIR)

.PHONY:		install
install:	$(HEAP_IMAGE)
	$(INSTALL_SMLNJ_WRAPPER) $(PROGRAM) $(INSTALL_BINDIR)

.PHONY:		build
build:		$(HEAP_IMAGE)

$(HEAP_IMAGE):
	$(ML_BUILD) $(ML_BUILD_FLAGS) $(ROOT_CM) Main.main $(PROGRAM)
	touch $(HEAP_IMAGE)

.depend:	$(CM_FILES) $(CODE_FRAG_FILES)
	touch .depend
	$(ML_MAKEDEPEND) $(ML_MAKEDEPEND_FLAGS) -n -f .depend $(ROOT_CM) $(HEAP_IMAGE)

# synthesize files for the code fragments
#
cl-target/cl-eigen2x2-frag.sml:	cl-target/fragments/eigen2x2.in
	gen/file2str/file2str.sh cl-target/fragments/eigen2x2.in CLEigen2x2Frag cl-target/cl-eigen2x2-frag.sml

cl-target/cl-eigen3x3-frag.sml:	cl-target/fragments/eigen3x3.in
	gen/file2str/file2str.sh cl-target/fragments/eigen3x3.in CLEigen3x3Frag cl-target/cl-eigen3x3-frag.sml

cl-target/cl-header-frag.sml:	cl-target/fragments/header.in
	gen/file2str/file2str.sh cl-target/fragments/header.in CLHeaderFrag cl-target/cl-header-frag.sml

cl-target/cl-sched-frag.sml:	cl-target/fragments/sched.in
	gen/file2str/file2str.sh cl-target/fragments/sched.in CLSchedFrag cl-target/cl-sched-frag.sml

cl-target/cl-update-frag.sml:	cl-target/fragments/update.in
	gen/file2str/file2str.sh cl-target/fragments/update.in CLUpdateFrag cl-target/cl-update-frag.sml

c-util/lib-interface-head-frag.sml:	c-util/fragments/lib-interface-head.in
	gen/file2str/file2str.sh $< LibInterfaceHeadFrag $@

c-util/lib-interface-body-frag.sml:	c-util/fragments/lib-interface-body.in
	gen/file2str/file2str.sh $< LibInterfaceBodyFrag $@

c-util/lib-interface-foot-frag.sml:	c-util/fragments/lib-interface-foot.in
	gen/file2str/file2str.sh $< LibInterfaceFootFrag $@

ifneq ($(MAKECMDGOALS),clean)
ifneq ($(MAKECMDGOALS),devclean)
ifneq ($(MAKECMDGOALS),distclean)
sinclude .depend
endif
endif
endif

#################### Cleanup ####################

CLEAN_SUBDIRS =

CLEAN_FILES +=		$(HEAP_IMAGE) \
			*/*.grm.sml \
			*/*.lex.sml \
			.depend

DISTCLEAN_FILES +=	Makefile \
                        $(CODE_FRAG_FILES) \
			common/paths.sml \
			fields/run-dnorm.sml

DEVCLEAN_FILES =

include @DIDEROT_MKDIR@/clean-rules.gmk

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0