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.am

    rd32c4e2 r159c62e  
    1111## Created On       : Sun May 31 08:54:01 2015
    1212## Last Modified By : Peter A. Buhr
    13 ## Last Modified On : Mon Jun 13 14:27:22 2016
    14 ## Update Count     : 166
     13## Last Modified On : Tue Jul  5 16:19:31 2016
     14## Update Count     : 178
    1515###############################################################################
    1616
     
    1919# put into lib for now
    2020cfalibdir = ${libdir}
    21 cfalib_DATA = prelude.cf builtins.cf
     21cfalib_DATA = builtins.cf extras.cf prelude.cf
    2222
    2323# create forward declarations for gcc builtins
    24 ${libdir}/builtins.cf : ${libdir} ${srcdir}/builtins.cf
    25         ${INSTALL} ${srcdir}/builtins.cf ${libdir}
    26         sed -i -e "s#typedef.*ptrdiff_t.*#`@BACKEND_CC@ -E ${srcdir}/ptrdiff_t.c | grep 'typedef.*ptrdiff_t'`#" ${srcdir}/prelude.cf
     24extras.cf : extras.regx extras.c
     25        @BACKEND_CC@ -E ${srcdir}/extras.c | grep -f extras.regx > ${srcdir}/extras.cf
    2726
    2827builtins.cf : builtins.c
    29         @if [ -e $< ] ; then \
     28        if [ -e $< ] ; then \
    3029                @BACKEND_CC@ -E -P $^ | sed -e "/targetm/s/.*//" -e "/_Decimal/s/.*//" -e "s/void (const char \*)0();//" -e "s/\"//g" -e "s/\(__builtin_\) /\1/" > $@ ; \
    3130        fi
    3231
    3332builtins.c : builtins.def prototypes.awk
    34         @if [ -e $< ] ; then \
     33        if [ -e $< ] ; then \
    3534                @BACKEND_CC@ -E prototypes.c | awk -f prototypes.awk > $@ ; \
    3635        fi
     
    4039prototypes.awk :
    4140
    42 MAINTAINERCLEANFILES = ${addprefix ${libdir}/,${cfalib_DATA}} ${addprefix ${libdir}/,${lib_LIBRARIES}}
     41MAINTAINERCLEANFILES = builtins.cf extras.cf ${addprefix ${libdir}/,${cfalib_DATA}} ${addprefix ${libdir}/,${lib_LIBRARIES}}
    4342
    4443#--------------------------------------------------
    4544
    46 libcfa-prelude.c : ${srcdir}/prelude.cf
     45libcfa-prelude.c : ${srcdir}/prelude.cf ${srcdir}/extras.cf ${srcdir}/builtins.cf
    4746        ${abs_top_srcdir}/src/driver/cfa-cpp -l ${srcdir}/prelude.cf $@  # use src/cfa-cpp as not in lib until after install
    4847
     
    6463libcfa_a_SOURCES = libcfa-prelude.c ${headers:=.c}
    6564
    66 nobase_include_HEADERS = ${headers}
     65nobase_include_HEADERS = ${headers} stdio.h
    6766
    6867CLEANFILES = libcfa-prelude.c
    69 MAINTAINERCLEANFILES += ${includedir}/*
     68
     69maintainer-clean-local:
     70        -rm -rf ${includedir}/*
Note: See TracChangeset for help on using the changeset viewer.