Ignore:
Timestamp:
Jul 5, 2016, 4:33:46 PM (8 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
9bb81bb8
Parents:
d32c4e2
Message:

add small set of library types/routines to prelude to reduce including larger library files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/Makefile.in

    rd32c4e2 r159c62e  
    230230# put into lib for now
    231231cfalibdir = ${libdir}
    232 cfalib_DATA = prelude.cf builtins.cf
    233 MAINTAINERCLEANFILES = ${addprefix ${libdir}/,${cfalib_DATA}} \
    234         ${addprefix ${libdir}/,${lib_LIBRARIES}} ${includedir}/*
     232cfalib_DATA = builtins.cf extras.cf prelude.cf
     233MAINTAINERCLEANFILES = builtins.cf extras.cf ${addprefix ${libdir}/,${cfalib_DATA}} ${addprefix ${libdir}/,${lib_LIBRARIES}}
    235234headers = limits stdlib math iostream fstream iterator rational containers/vector
    236235libobjs = ${headers:=.o}
    237236libcfa_a_SOURCES = libcfa-prelude.c ${headers:=.c}
    238 nobase_include_HEADERS = ${headers}
     237nobase_include_HEADERS = ${headers} stdio.h
    239238CLEANFILES = libcfa-prelude.c
    240239all: all-am
     
    564563        -rm -rf ./$(DEPDIR)
    565564        -rm -f Makefile
    566 maintainer-clean-am: distclean-am maintainer-clean-generic
     565maintainer-clean-am: distclean-am maintainer-clean-generic \
     566        maintainer-clean-local
    567567
    568568mostlyclean: mostlyclean-am
     
    593593        install-ps install-ps-am install-strip installcheck \
    594594        installcheck-am installdirs maintainer-clean \
    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
     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
    599599
    600600
    601601# create forward declarations for gcc builtins
    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
     602extras.cf : extras.regx extras.c
     603        @BACKEND_CC@ -E ${srcdir}/extras.c | grep -f extras.regx > ${srcdir}/extras.cf
    605604
    606605builtins.cf : builtins.c
    607         @if [ -e $< ] ; then \
     606        if [ -e $< ] ; then \
    608607                @BACKEND_CC@ -E -P $^ | sed -e "/targetm/s/.*//" -e "/_Decimal/s/.*//" -e "s/void (const char \*)0();//" -e "s/\"//g" -e "s/\(__builtin_\) /\1/" > $@ ; \
    609608        fi
    610609
    611610builtins.c : builtins.def prototypes.awk
    612         @if [ -e $< ] ; then \
     611        if [ -e $< ] ; then \
    613612                @BACKEND_CC@ -E prototypes.c | awk -f prototypes.awk > $@ ; \
    614613        fi
     
    620619#--------------------------------------------------
    621620
    622 libcfa-prelude.c : ${srcdir}/prelude.cf
     621libcfa-prelude.c : ${srcdir}/prelude.cf ${srcdir}/extras.cf ${srcdir}/builtins.cf
    623622        ${abs_top_srcdir}/src/driver/cfa-cpp -l ${srcdir}/prelude.cf $@  # use src/cfa-cpp as not in lib until after install
    624623
     
    632631${libobjs} : ${abs_top_srcdir}/src/driver/cfa-cpp       # add dependency to cfa-cpp so all libraries are rebuilt with new translator
    633632
     633maintainer-clean-local:
     634        -rm -rf ${includedir}/*
     635
    634636# Tell versions [3.59,3.63) of GNU make to not export all variables.
    635637# Otherwise a system limit (for SysV at least) may be exceeded.
Note: See TracChangeset for help on using the changeset viewer.