source: libcfa/prelude/Makefile.am @ e523b07

aaron-thesisarm-ehcleanup-dtorsdeferred_resnjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprno_listpersistent-indexer
Last change on this file since e523b07 was e523b07, checked in by Thierry Delisle <tdelisle@…>, 3 years ago

Implemented the nolib configuration

  • Property mode set to 100644
File size: 2.5 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 = foreign subdir-objects
19
20# put into lib for now
21cfalibdir = ${CFA_LIBDIR}
22cfalib_DATA = gcc-builtins.cf builtins.cf extras.cf prelude.cfa bootloader.c
23
24CC = @CFACC@
25AM_CFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@
26AM_CFAFLAGS = @CONFIG_CFAFLAGS@
27
28$(DEPDIR) :
29        mkdir $(DEPDIR)
30
31$(DEPDIR)/builtins.Po : $(DEPDIR)
32        touch ${@}
33
34# create extra forward types/declarations to reduce inclusion of library files
35extras.cf : ${srcdir}/extras.regx ${srcdir}/extras.c
36        ${AM_V_GEN}gcc ${AM_CFLAGS} -E ${srcdir}/extras.c | grep -f ${srcdir}/extras.regx > extras.cf
37
38# create forward declarations for gcc builtins
39gcc-builtins.cf : gcc-builtins.c ${srcdir}/prototypes.sed
40        ${AM_V_GEN}gcc -I${srcdir} -E -P $< | sed -r -f ${srcdir}/prototypes.sed > $@
41
42gcc-builtins.c : ${srcdir}/builtins.def ${srcdir}/prototypes.awk ${srcdir}/sync-builtins.cf ${srcdir}/prototypes.c
43        ${AM_V_GEN}gcc -I${srcdir} -E ${srcdir}/prototypes.c | awk -f ${srcdir}/prototypes.awk > $@
44
45prelude.cfa : prelude-gen.cc
46        ${AM_V_GEN}${CXX} ${AM_CXXFLAGS} ${CXXFLAGS} ${AM_CFLAGS} ${<} -o prelude-gen -Wall -Wextra -O2 -g -std=c++14
47        @./prelude-gen > $@
48        @rm ./prelude-gen
49
50builtins.def :
51
52prototypes.awk :
53
54# create forward declarations for cfa builtins
55builtins.cf : builtins.c ${CC}
56        ${AM_V_GEN}gcc ${AM_CFLAGS} -E -P ${<} -o ${@} -MD -MP -MF $(DEPDIR)/builtins.Po
57        ${AM_V_at}sed -i 's/builtins.o/builtins.cf/g' $(DEPDIR)/builtins.Po
58
59include $(DEPDIR)/builtins.Po
60
61bootloader.c : ${srcdir}/bootloader.cf prelude.cfa extras.cf gcc-builtins.cf builtins.cf @CFACPP@
62        ${AM_V_GEN}@CFACPP@ --prelude-dir=${builddir} -tpm ${srcdir}/bootloader.cf $@  # use src/cfa-cpp as not in lib until after install
63
64maintainer-clean-local :
65        rm -rf $(DEPDIR)
66
67MOSTLYCLEANFILES = bootloader.c builtins.cf extras.cf gcc-builtins.c gcc-builtins.cf prelude.cfa
68MAINTAINERCLEANFILES = ${addprefix ${libdir}/,${cfalib_DATA}} ${addprefix ${libdir}/,${lib_LIBRARIES}}
Note: See TracBrowser for help on using the repository browser.