source: libcfa/Makefile.am @ 00cc023

aaron-thesisarm-ehcleanup-dtorsctordeferred_resndemanglergc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerresolv-newstringwith_gc
Last change on this file since 00cc023 was 00cc023, checked in by Peter A. Buhr <pabuhr@…>, 7 years ago

redo automake first attempt

  • Property mode set to 100644
File size: 1.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 : Sun May 31 08:54:36 2015
14## Update Count     : 2
15###############################################################################
16
17libcfa_a_SOURCES = libcfa-prelude.c
18lib_LIBRARIES = libcfa.a
19
20# put into lib for now
21cfalibdir = ${libdir}
22cfalib_DATA = prelude.cf builtins.cf
23
24# create forward declarations for gcc builtins
25${libdir}/builtins.cf : ${srcdir}/builtins.cf ${libdir}
26        ${INSTALL} ${srcdir}/builtins.cf ${libdir}
27
28builtins.cf : builtins.c
29        @if [ -e builtins.c ] ; then \
30                @BACKEND_CC@ -E -P $^ | sed -e "/targetm/s/.*//" -e "/_Decimal/s/.*//" -e "s/void (const char \*)0();//" -e "s/\"//g" -e "s/\(__builtin_\) /\1/" > $@ ; \
31        fi
32
33builtins.c : builtins.def prototypes.awk
34        @if [ -e builtins.def ] ; then \
35                @BACKEND_CC@ -E prototypes.c | awk -f prototypes.awk > $@ ; \
36        fi
37
38builtins.def :
39
40libcfa-prelude.c : ${libdir}/cfa-cpp ${libdir}/builtins.cf
41        sed -i -e "s#typedef.*ptrdiff_t.*#`@BACKEND_CC@ -E ${srcdir}/ptrdiff_t.c | grep 'typedef.*ptrdiff_t'`#" ${srcdir}/prelude.cf
42        ${libdir}/cfa-cpp -l ${srcdir}/prelude.cf $@
43        rm -f ${srcdir}/prelude.c
44
45libcfa-prelude.o : libcfa-prelude.c
46        ${BACKEND_CC} -c -o $@ $<
Note: See TracBrowser for help on using the repository browser.