source: src/prelude/Makefile.am @ 8c680e9

aaron-thesisarm-ehcleanup-dtorsdeferred_resndemanglerjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerresolv-newwith_gc
Last change on this file since 8c680e9 was 8c680e9, checked in by Thierry Delisle <tdelisle@…>, 4 years ago

Builtins.cf now properly evaluate dependencies.
Longrun tests no longer support specify test instance duration.
Longrun tests timeout increased to 30 from 10.

  • Property mode set to 100644
File size: 2.3 KB
Line 
1######################## -*- Mode: Makefile-Automake -*- ######################
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.am --
9##
10## Author           : Peter A. Buhr
11## Created On       : Sun May 31 08:54:01 2015
12## Last Modified By : Peter A. Buhr
13## Last Modified On : Wed Dec 14 15:00:35 2016
14## Update Count     : 205
15###############################################################################
16
17# create object files in directory with source files
18AUTOMAKE_OPTIONS = subdir-objects
19
20# put into lib for now
21cfalibdir = ${CFA_LIBDIR}
22cfalib_DATA = gcc-builtins.cf builtins.cf extras.cf prelude.cf bootloader.c
23noinst_DATA = ../libcfa/libcfa-prelude.c
24
25$(DEPDIR) :
26        mkdir $(DEPDIR)
27
28$(DEPDIR)/builtins.Po : $(DEPDIR)
29        touch ${@}
30
31# create extra forward types/declarations to reduce inclusion of library files
32extras.cf : extras.regx extras.c
33        ${AM_V_GEN}@BACKEND_CC@ @CFA_FLAGS@ -E ${srcdir}/extras.c | grep -f extras.regx > ${srcdir}/extras.cf
34
35# create forward declarations for gcc builtins
36gcc-builtins.cf : gcc-builtins.c prototypes.sed
37        ${AM_V_GEN}@BACKEND_CC@ -E -P $< | sed -f prototypes.sed > $@
38
39gcc-builtins.c : builtins.def prototypes.awk
40        ${AM_V_GEN}@BACKEND_CC@ -E prototypes.c | awk -f prototypes.awk > $@
41
42builtins.def :
43
44prototypes.awk :
45
46# create forward declarations for cfa builtins
47builtins.cf : builtins.c
48        ${AM_V_GEN}@BACKEND_CC@ -E -P ${<} -o ${@} -MD -MP -MF $(DEPDIR)/builtins.Po
49        ${AM_V_at}sed -i 's/builtins.o/builtins.cf/g' $(DEPDIR)/builtins.Po
50
51include $(DEPDIR)/builtins.Po
52
53../libcfa/libcfa-prelude.c : prelude.cf extras.cf gcc-builtins.cf builtins.cf ${abs_top_srcdir}/src/driver/cfa-cpp
54        ${AM_V_GEN}${abs_top_srcdir}/src/driver/cfa-cpp -l prelude.cf $@  # use src/cfa-cpp as not in lib until after install
55
56bootloader.c : bootloader.cf prelude.cf extras.cf gcc-builtins.cf builtins.cf ${abs_top_srcdir}/src/driver/cfa-cpp
57        ${AM_V_GEN}${abs_top_srcdir}/src/driver/cfa-cpp -tpmL bootloader.cf $@  # use src/cfa-cpp as not in lib until after install
58
59maintainer-clean-local :
60        rm -rf $(DEPDIR)
61
62MAINTAINERCLEANFILES = gcc-builtins.c gcc-builtins.cf builtins.cf extras.cf bootloader.c ${addprefix ${libdir}/,${cfalib_DATA}} ${addprefix ${libdir}/,${lib_LIBRARIES}}
Note: See TracBrowser for help on using the repository browser.