######################## -*- Mode: Makefile-Automake -*- ###################### ## ## Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo ## ## The contents of this file are covered under the licence agreement in the ## file "LICENCE" distributed with Cforall. ## ## Makefile.am -- ## ## Author : Peter A. Buhr ## Created On : Sun May 31 08:54:01 2015 ## Last Modified By : Peter A. Buhr ## Last Modified On : Thu Jun 4 22:49:16 2015 ## Update Count : 7 ############################################################################### libcfa_a_SOURCES = libcfa-prelude.c lib_LIBRARIES = libcfa.a # put into lib for now cfalibdir = ${libdir} cfalib_DATA = prelude.cf builtins.cf # create forward declarations for gcc builtins ${libdir}/builtins.cf : ${libdir} ${srcdir}/builtins.cf ${INSTALL} ${srcdir}/builtins.cf ${libdir} sed -i -e "s#typedef.*ptrdiff_t.*#`@BACKEND_CC@ -E ${srcdir}/ptrdiff_t.c | grep 'typedef.*ptrdiff_t'`#" ${srcdir}/prelude.cf builtins.cf : builtins.c @if [ -e $< ] ; then \ @BACKEND_CC@ -E -P $^ | sed -e "/targetm/s/.*//" -e "/_Decimal/s/.*//" -e "s/void (const char \*)0();//" -e "s/\"//g" -e "s/\(__builtin_\) /\1/" > $@ ; \ fi builtins.c : builtins.def prototypes.awk @if [ -e $< ] ; then \ @BACKEND_CC@ -E prototypes.c | awk -f prototypes.awk > $@ ; \ fi builtins.def : prototypes.awk : MAINTAINERCLEANFILES = ${srcdir}/libcfa-prelude.c libcfa-prelude.c : ${srcdir}/prelude.cf ${libdir}/cfa-cpp -l ${srcdir}/prelude.cf $@ libcfa-prelude.o : libcfa-prelude.c ${BACKEND_CC} -c -o $@ $<