source: src/libcfa/Makefile.am @ 8c0404e

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 8c0404e was 35304009, checked in by Peter A. Buhr <pabuhr@…>, 9 years ago

fix location of builtin.cf at configure

  • Property mode set to 100644
File size: 1.6 KB
RevLine 
[00cc023]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
[35304009]13## Last Modified On : Wed Dec 16 21:46:43 2015
14## Update Count     : 8
[00cc023]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
[aa30dc0]25${libdir}/builtins.cf : ${libdir} ${srcdir}/builtins.cf
[00cc023]26        ${INSTALL} ${srcdir}/builtins.cf ${libdir}
[aa30dc0]27        sed -i -e "s#typedef.*ptrdiff_t.*#`@BACKEND_CC@ -E ${srcdir}/ptrdiff_t.c | grep 'typedef.*ptrdiff_t'`#" ${srcdir}/prelude.cf
[00cc023]28
29builtins.cf : builtins.c
[db82596]30        @if [ -e $< ] ; then \
[00cc023]31                @BACKEND_CC@ -E -P $^ | sed -e "/targetm/s/.*//" -e "/_Decimal/s/.*//" -e "s/void (const char \*)0();//" -e "s/\"//g" -e "s/\(__builtin_\) /\1/" > $@ ; \
32        fi
33
34builtins.c : builtins.def prototypes.awk
[db82596]35        @if [ -e $< ] ; then \
[00cc023]36                @BACKEND_CC@ -E prototypes.c | awk -f prototypes.awk > $@ ; \
37        fi
38
39builtins.def :
40
[db82596]41prototypes.awk :
42
[aa30dc0]43MAINTAINERCLEANFILES = ${srcdir}/libcfa-prelude.c
44
45libcfa-prelude.c : ${srcdir}/prelude.cf
[35304009]46        ${prefix}/src/cfa-cpp -l ${srcdir}/prelude.cf $@  # use src/cfa-cpp as not in lib until after install
[00cc023]47
48libcfa-prelude.o : libcfa-prelude.c
49        ${BACKEND_CC} -c -o $@ $<
Note: See TracBrowser for help on using the repository browser.