source: src/Makefile.in @ 6244dfb

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 6244dfb 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
Line 
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##
10## Author           : Richard C. Bilson
11## Created On       : Sat May 16 08:37:37 2015
12## Last Modified By : Peter A. Buhr
13## Last Modified On : Thu May 21 21:17:32 2015
14## Update Count     : 3
15###############################################################################
16
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
20TARGET := cfa-cpp
21
22all: ${TARGET}
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
42include ${patsubst %,%/module.mk,${MODULES}}
43
44# determine the object files
45OBJ := ${patsubst %.cc,%.o,${filter %.cc,${SRC}}} \
46       ${patsubst %.y,%.tab.o,${filter %.y,${SRC}}} \
47       ${patsubst %.l,%.yy.o,${filter %.l,${SRC}}}
48
49# include the C include dependencies
50DEPS := ${OBJ:.o=.d}
51-include ${DEPS}
52
53# link the program
54${TARGET}: ${OBJ}
55        ${PURIFY} ${CXX} -o $@ ${OBJ} ${LIBS}
56
57#installing
58install: ${TARGET}
59        ${INSTALL} -d @CFA_LIBDIR@
60        ${INSTALL} ${TARGET} @CFA_LIBDIR@
61
62# clean-up rule
63clean:
64        rm -f ${OBJ} ${DEPS} ${TARGET} tags ${EXTRA_OUTPUT}
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.