source: src/Makefile.in @ 451665cc

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newstringwith_gc
Last change on this file since 451665cc was 843054c2, checked in by Peter A. Buhr <pabuhr@…>, 9 years ago

licencing: seventh groups of files

  • Property mode set to 100644
File size: 2.0 KB
RevLine 
[b87a5ed]1######################### -*- Mode: Makefile-Gmake -*- ########################
2##
3## Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
4##
5## The contents of this file are covered under the licence agreement in the
6## file "LICENCE" distributed with Cforall.
7##
8## Makefile.in --
9##
[843054c2]10## Author           : Richard C. Bilson
[b87a5ed]11## Created On       : Sat May 16 08:37:37 2015
12## Last Modified By : Peter A. Buhr
[843054c2]13## Last Modified On : Thu May 21 21:17:32 2015
14## Update Count     : 3
[b87a5ed]15###############################################################################
[51b7345]16
[b87a5ed]17# This makefile is adapted from Peter Miller's article "Recursive Make Considered Harmful"
18
19MODULES := Common Parser SynTree SymTab ResolvExpr CodeGen ControlStruct GenPoly Tuples InitTweak Designators # Try ArgTweak Explain
[51b7345]20TARGET := cfa-cpp
21
[b87a5ed]22all: ${TARGET}
[51b7345]23
24# look for include files in each of the modules
25CXX := @CXX@
26CXXFLAGS += -Wno-deprecated -Wall -g -DDEBUG_ALL -I. -I Common -MMD
27INSTALL=@INSTALL@
28
29# this is the back-end compiler, used to compile libcfa & builtins to link with user code
30BACKEND_CC := @BACKEND_CC@
31
32# extra libraries if required
33LIBS :=
34
35# each module will add to this
36SRC := main.cc MakeLibCfa.cc
37
38# other things that ought to be cleaned up
39EXTRA_OUTPUT := core
40
41# include the description for each module
[b87a5ed]42include ${patsubst %,%/module.mk,${MODULES}}
[51b7345]43
44# determine the object files
[b87a5ed]45OBJ := ${patsubst %.cc,%.o,${filter %.cc,${SRC}}} \
46       ${patsubst %.y,%.tab.o,${filter %.y,${SRC}}} \
47       ${patsubst %.l,%.yy.o,${filter %.l,${SRC}}}
[51b7345]48
49# include the C include dependencies
[b87a5ed]50DEPS := ${OBJ:.o=.d}
51-include ${DEPS}
[51b7345]52
53# link the program
[b87a5ed]54${TARGET}: ${OBJ}
55        ${PURIFY} ${CXX} -o $@ ${OBJ} ${LIBS}
[51b7345]56
57#installing
[b87a5ed]58install: ${TARGET}
59        ${INSTALL} -d @CFA_LIBDIR@
60        ${INSTALL} ${TARGET} @CFA_LIBDIR@
[51b7345]61
62# clean-up rule
63clean:
[b87a5ed]64        rm -f ${OBJ} ${DEPS} ${TARGET} tags ${EXTRA_OUTPUT}
[51b7345]65        find . -name "Expected*" -prune -o \( -name "*.tst" -o -name "report" \) -print | xargs rm -f
66        find . -name "core*" -print | xargs rm -f
67
68distclean: clean
Note: See TracBrowser for help on using the repository browser.