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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2736 - (download) (annotate)
Fri Sep 26 20:48:57 2014 UTC (4 years, 8 months ago) by jhr
File size: 8614 byte(s)
  Working on OpenCL support
# Makefile.in
#
# COPYRIGHT (c) 2013 The Diderot Project (http://diderot-language.cs.uchicago.edu)
# 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 =	c-util/exec-hdr-frag.sml \
			c-util/lib-hdr-frag.sml \
       			c-util/lib-interface-head-frag.sml \
			c-util/lib-interface-rt-frag.sml \
			c-util/lib-interface-body-frag.sml \
			c-util/lib-interface-foot-frag.sml \
			c-target/alloc-frag.sml \
			c-target/c-body-frag.sml \
			c-target/c-hdr-par-extra-frag.sml \
			c-target/init-frag.sml \
			c-target/lib-interface-par-frag.sml \
			c-target/par-run-frag.sml \
			c-target/par-run-nobsp-frag.sml \
			c-target/seq-run-frag.sml \
			c-target/seq-run-nobsp-frag.sml \
			c-target/shutdown-frag.sml \
                        c-target/par-main-frag.sml \
                        c-target/seq-main-frag.sml \
			cl-target/c-alloc-frag.sml \
			cl-target/c-body-frag.sml \
			cl-target/c-check-cl-status-frag.sml \
			cl-target/c-init-frag.sml \
			cl-target/c-init-globals-frag.sml \
			cl-target/c-lib-interface-cl-frag.sml \
			cl-target/c-main-frag.sml \
			cl-target/c-run-frag.sml \
			cl-target/c-run-nobsp-frag.sml \
			cl-target/c-shadow-types-frag.sml \
			cl-target/c-shutdown-frag.sml \
			cl-target/c-sizes-frag.sml \
			cl-target/cl-eigen2x2-frag.sml \
			cl-target/cl-eigen3x3-frag.sml \
			cl-target/cl-hdr-frag.sml \
			cl-target/cl-sched-common-frag.sml \
			cl-target/cl-sched-frag.sml \
			cl-target/cl-sched-nobsp-frag.sml \
			cl-target/cl-sizes-frag.sml \
			cl-target/cl-types-frag.sml \
			cl-target/cl-update-frag.sml \
			cl-target/cl-update-nocom-frag.sml \
			cl-target/cl-update-nobsp-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):	.depend
	$(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 common C code fragments
#
c-util/exec-hdr-frag.sml:	c-util/fragments/exec-hdr.in
	gen/file2str/file2str.sh $< ExecHdrFrag $@

c-util/lib-hdr-frag.sml:	c-util/fragments/lib-hdr.in
	gen/file2str/file2str.sh $< LibHdrFrag $@

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

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

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 $@

# synthesize files for the C target code fragments
#
c-target/alloc-frag.sml:	c-target/fragments/alloc.in
	gen/file2str/file2str.sh $< AllocFrag $@

c-target/c-body-frag.sml:	c-target/fragments/c-body.in
	gen/file2str/file2str.sh $< CBodyFrag $@

c-target/lib-interface-par-frag.sml:	c-target/fragments/lib-interface-par.in
	gen/file2str/file2str.sh $< LibInterfaceParFrag $@

c-target/c-hdr-par-extra-frag.sml:	c-target/fragments/c-hdr-par-extra.in
	gen/file2str/file2str.sh $< CHeadParExtraFrag $@

c-target/init-frag.sml:	c-target/fragments/init.in
	gen/file2str/file2str.sh $< InitFrag $@

c-target/par-run-frag.sml:	c-target/fragments/par-run.in
	gen/file2str/file2str.sh $< ParRunFrag $@

c-target/par-run-nobsp-frag.sml:	c-target/fragments/par-run-nobsp.in
	gen/file2str/file2str.sh $< ParRunNoBSPFrag $@

c-target/seq-run-frag.sml:	c-target/fragments/seq-run.in
	gen/file2str/file2str.sh $< SeqRunFrag $@

c-target/seq-run-nobsp-frag.sml:	c-target/fragments/seq-run-nobsp.in
	gen/file2str/file2str.sh $< SeqRunNoBSPFrag $@

c-target/shutdown-frag.sml:	c-target/fragments/shutdown.in
	gen/file2str/file2str.sh $< ShutdownFrag $@

c-target/par-main-frag.sml:	c-target/fragments/par-main.in
	gen/file2str/file2str.sh $< ParMainFrag $@

c-target/seq-main-frag.sml:	c-target/fragments/seq-main.in
	gen/file2str/file2str.sh $< SeqMainFrag $@

# synthesize files for the OpenCL target code fragments
#
cl-target/c-alloc-frag.sml:	cl-target/fragments/c-alloc.in
	gen/file2str/file2str.sh $< CAllocFrag $@

cl-target/c-body-frag.sml:	cl-target/fragments/c-body.in
	gen/file2str/file2str.sh $< CBodyFrag $@

cl-target/c-check-cl-status-frag.sml:	cl-target/fragments/c-check-cl-status.in
	gen/file2str/file2str.sh $< CCheckCLStatusFrag $@

cl-target/c-init-frag.sml:	cl-target/fragments/c-init.in
	gen/file2str/file2str.sh $< CInitFrag $@

cl-target/c-init-globals-frag.sml:	cl-target/fragments/c-init-globals.in
	gen/file2str/file2str.sh $< CInitGlobalsFrag $@

cl-target/c-lib-interface-cl-frag.sml:	cl-target/fragments/c-lib-interface-cl.in
	gen/file2str/file2str.sh $< CLibInterfaceCLFrag $@

cl-target/c-main-frag.sml:	cl-target/fragments/c-main.in
	gen/file2str/file2str.sh $< CMainFrag $@

cl-target/c-run-frag.sml:	cl-target/fragments/c-run.in
	gen/file2str/file2str.sh $< CRunFrag $@

cl-target/c-run-nobsp-frag.sml:	cl-target/fragments/c-run-nobsp.in
	gen/file2str/file2str.sh $< CRunNoBSPFrag $@

cl-target/c-shadow-types-frag.sml:	cl-target/fragments/c-shadow-types.in
	gen/file2str/file2str.sh $< CShadowTypesFrag $@

cl-target/c-shutdown-frag.sml:	cl-target/fragments/c-shutdown.in
	gen/file2str/file2str.sh $< CShutdownFrag $@

cl-target/c-sizes-frag.sml:	cl-target/fragments/c-sizes.in
	gen/file2str/file2str.sh $< CSizesFrag $@

cl-target/cl-eigen2x2-frag.sml:	cl-target/fragments/cl-eigen2x2.in
	gen/file2str/file2str.sh $< CLEigen2x2Frag $@

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

cl-target/cl-hdr-frag.sml:	cl-target/fragments/cl-hdr.in
	gen/file2str/file2str.sh $< CLHeadFrag $@

cl-target/cl-sched-common-frag.sml:	cl-target/fragments/cl-sched-common.in
	gen/file2str/file2str.sh $< CLSchedCommonFrag $@

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

cl-target/cl-sched-nobsp-frag.sml:	cl-target/fragments/cl-sched-nobsp.in
	gen/file2str/file2str.sh $< CLSchedNoBSPFrag $@

cl-target/cl-sizes-frag.sml:	cl-target/fragments/cl-sizes.in
	gen/file2str/file2str.sh $< CLSizesFrag $@

cl-target/cl-types-frag.sml:	cl-target/fragments/cl-types.in
	gen/file2str/file2str.sh $< CLTypesFrag $@

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

cl-target/cl-update-nocom-frag.sml:	cl-target/fragments/cl-update-nocom.in
	gen/file2str/file2str.sh $< CLUpdateNoComFrag $@

cl-target/cl-update-nobsp-frag.sml:	cl-target/fragments/cl-update-nobsp.in
	gen/file2str/file2str.sh $< CLUpdateNoBSPFrag $@


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 \
                        $(CODE_FRAG_FILES) \
			.depend

DISTCLEAN_FILES +=	Makefile \
			common/paths.sml \
			common/size-of.sml \
			nrrd/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