Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/Makefile.in

    r159c62e r854a32c  
    230230# put into lib for now
    231231cfalibdir = ${libdir}
    232 cfalib_DATA = builtins.cf extras.cf prelude.cf
    233 MAINTAINERCLEANFILES = builtins.cf extras.cf ${addprefix ${libdir}/,${cfalib_DATA}} ${addprefix ${libdir}/,${lib_LIBRARIES}}
     232cfalib_DATA = prelude.cf builtins.cf
     233MAINTAINERCLEANFILES = ${addprefix ${libdir}/,${cfalib_DATA}} \
     234        ${addprefix ${libdir}/,${lib_LIBRARIES}} ${includedir}/*
    234235headers = limits stdlib math iostream fstream iterator rational containers/vector
    235236libobjs = ${headers:=.o}
    236237libcfa_a_SOURCES = libcfa-prelude.c ${headers:=.c}
    237 nobase_include_HEADERS = ${headers} stdio.h
     238nobase_include_HEADERS = ${headers}
    238239CLEANFILES = libcfa-prelude.c
    239240all: all-am
     
    563564        -rm -rf ./$(DEPDIR)
    564565        -rm -f Makefile
    565 maintainer-clean-am: distclean-am maintainer-clean-generic \
    566         maintainer-clean-local
     566maintainer-clean-am: distclean-am maintainer-clean-generic
    567567
    568568mostlyclean: mostlyclean-am
     
    593593        install-ps install-ps-am install-strip installcheck \
    594594        installcheck-am installdirs maintainer-clean \
    595         maintainer-clean-generic maintainer-clean-local mostlyclean \
    596         mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \
    597         tags uninstall uninstall-am uninstall-cfalibDATA \
    598         uninstall-libLIBRARIES uninstall-nobase_includeHEADERS
     595        maintainer-clean-generic mostlyclean mostlyclean-compile \
     596        mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \
     597        uninstall-am uninstall-cfalibDATA uninstall-libLIBRARIES \
     598        uninstall-nobase_includeHEADERS
    599599
    600600
    601601# create forward declarations for gcc builtins
    602 extras.cf : extras.regx extras.c
    603         @BACKEND_CC@ -E ${srcdir}/extras.c | grep -f extras.regx > ${srcdir}/extras.cf
     602${libdir}/builtins.cf : ${libdir} ${srcdir}/builtins.cf
     603        ${INSTALL} ${srcdir}/builtins.cf ${libdir}
     604        sed -i -e "s#typedef.*ptrdiff_t.*#`@BACKEND_CC@ -E ${srcdir}/ptrdiff_t.c | grep 'typedef.*ptrdiff_t'`#" ${srcdir}/prelude.cf
    604605
    605606builtins.cf : builtins.c
    606         if [ -e $< ] ; then \
     607        @if [ -e $< ] ; then \
    607608                @BACKEND_CC@ -E -P $^ | sed -e "/targetm/s/.*//" -e "/_Decimal/s/.*//" -e "s/void (const char \*)0();//" -e "s/\"//g" -e "s/\(__builtin_\) /\1/" > $@ ; \
    608609        fi
    609610
    610611builtins.c : builtins.def prototypes.awk
    611         if [ -e $< ] ; then \
     612        @if [ -e $< ] ; then \
    612613                @BACKEND_CC@ -E prototypes.c | awk -f prototypes.awk > $@ ; \
    613614        fi
     
    619620#--------------------------------------------------
    620621
    621 libcfa-prelude.c : ${srcdir}/prelude.cf ${srcdir}/extras.cf ${srcdir}/builtins.cf
     622libcfa-prelude.c : ${srcdir}/prelude.cf
    622623        ${abs_top_srcdir}/src/driver/cfa-cpp -l ${srcdir}/prelude.cf $@  # use src/cfa-cpp as not in lib until after install
    623624
     
    631632${libobjs} : ${abs_top_srcdir}/src/driver/cfa-cpp       # add dependency to cfa-cpp so all libraries are rebuilt with new translator
    632633
    633 maintainer-clean-local:
    634         -rm -rf ${includedir}/*
    635 
    636634# Tell versions [3.59,3.63) of GNU make to not export all variables.
    637635# Otherwise a system limit (for SysV at least) may be exceeded.
Note: See TracChangeset for help on using the changeset viewer.