Ignore:
Timestamp:
May 16, 2015, 3:36:19 PM (9 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
Children:
a32b204
Parents:
b8508a2
Message:

licencing: first groups of files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • translator/Makefile.in

    rb8508a2 rb87a5ed  
    1 # This makefile is adapted from Peter Miller's article
    2 # "Recursive Make Considered Harmful"
    3 #
    4 # http://www.pcug.org.au/~millerp/rmch/recu-make-cons-harm.html
     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           : Peter A. Buhr
     11## Created On       : Sat May 16 08:37:37 2015
     12## Last Modified By : Peter A. Buhr
     13## Last Modified On : Sat May 16 08:38:52 2015
     14## Update Count     : 2
     15###############################################################################
    516
    6 MODULES := Common Parser SynTree SymTab ResolvExpr CodeGen ControlStruct GenPoly Tuples InitTweak Designators #Try ArgTweak Explain
     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
    720TARGET := cfa-cpp
    821
    9 all: $(TARGET)
     22all: ${TARGET}
    1023
    1124# look for include files in each of the modules
     
    1629# this is the back-end compiler, used to compile libcfa & builtins to link with user code
    1730BACKEND_CC := @BACKEND_CC@
    18 
    19 # uncomment the definition of this variable to enable purify
    20 #  (do a "purerun" first)
    21 #PURIFY := purify --cache-dir=$(HOME)/tmp
    2231
    2332# extra libraries if required
     
    3140
    3241# include the description for each module
    33 include $(patsubst %,%/module.mk,$(MODULES))
     42include ${patsubst %,%/module.mk,${MODULES}}
    3443
    3544# determine the object files
    36 OBJ := $(patsubst %.cc,%.o,$(filter %.cc,$(SRC))) \
    37        $(patsubst %.y,%.tab.o,$(filter %.y,$(SRC))) \
    38        $(patsubst %.l,%.yy.o,$(filter %.l,$(SRC)))
     45OBJ := ${patsubst %.cc,%.o,${filter %.cc,${SRC}}} \
     46       ${patsubst %.y,%.tab.o,${filter %.y,${SRC}}} \
     47       ${patsubst %.l,%.yy.o,${filter %.l,${SRC}}}
    3948
    4049# include the C include dependencies
    41 DEPS := $(OBJ:.o=.d)
    42 -include $(DEPS)
     50DEPS := ${OBJ:.o=.d}
     51-include ${DEPS}
    4352
    4453# link the program
    45 $(TARGET): $(OBJ)
    46         $(PURIFY) $(CXX) -o $@ $(OBJ) $(LIBS)
     54${TARGET}: ${OBJ}
     55        ${PURIFY} ${CXX} -o $@ ${OBJ} ${LIBS}
    4756
    4857#installing
    49 install: $(TARGET)
    50         $(INSTALL) -d @CFA_LIBDIR@
    51         $(INSTALL) $(TARGET) @CFA_LIBDIR@
     58install: ${TARGET}
     59        ${INSTALL} -d @CFA_LIBDIR@
     60        ${INSTALL} ${TARGET} @CFA_LIBDIR@
    5261
    5362# clean-up rule
    5463clean:
    55         rm -f $(OBJ) $(DEPS) $(TARGET) tags $(EXTRA_OUTPUT)
     64        rm -f ${OBJ} ${DEPS} ${TARGET} tags ${EXTRA_OUTPUT}
    5665        find . -name "Expected*" -prune -o \( -name "*.tst" -o -name "report" \) -print | xargs rm -f
    5766        find . -name "core*" -print | xargs rm -f
Note: See TracChangeset for help on using the changeset viewer.