Ignore:
Timestamp:
Sep 21, 2018, 4:09:32 PM (7 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, stuck-waitfor-destruct
Children:
fcc57ba
Parents:
72b0573
Message:

Implemented the nolib configuration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/Makefile.am

    r72b0573 re523b07  
    3636
    3737#----------------------------------------------------------------------------------------------------------------
     38if BUILDLIB
    3839headers = fstream.hfa iostream.hfa iterator.hfa limits.hfa rational.hfa time.hfa stdlib.hfa common.hfa \
    3940          containers/maybe.hfa containers/pair.hfa containers/result.hfa containers/vector.hfa
    4041
     42headers_nosrc = math.hfa gmp.hfa time_t.hfa bits/align.hfa bits/containers.hfa bits/defs.hfa bits/debug.hfa bits/locks.hfa
     43
    4144# not all platforms support concurrency, add option do disable it
    4245headers += concurrency/coroutine.hfa concurrency/thread.hfa concurrency/kernel.hfa concurrency/monitor.hfa concurrency/mutex.hfa
     46
     47headers_nosrc += concurrency/invoke.h
    4348
    4449libsrc = startup.cfa interpose.cfa bits/debug.cfa assert.cfa exception.c virtual.c heap.cfa ${headers:.hfa=.cfa}
     
    4651# not all platforms support concurrency, add option do disable it
    4752libsrc += concurrency/CtxSwitch-@ARCHITECTURE@.S concurrency/alarm.cfa concurrency/invoke.c concurrency/preemption.cfa
     53else
     54headers =
     55headers_nosrc =
     56libsrc =
     57endif
     58
    4859
    4960#----------------------------------------------------------------------------------------------------------------
    5061# add dependency to cfa-cpp so all libraries are rebuilt with new translator
    51 #@CFACC@ @CFACPP@ prelude.cf
     62#@CFACC@ @CFACPP@ prelude.cfa
    5263
    5364# add dependency of cfa files
    5465libobjs = $(addsuffix .o, $(basename $(filter %.cfa,$(libsrc))))
    55 $(libobjs) : @CFACC@ @CFACPP@ prelude.cf
     66$(libobjs) : @CFACC@ @CFACPP@ prelude.cfa
    5667
    5768
     
    6475-include $(libdeps)
    6576
    66 prelude.o : prelude.cf extras.cf gcc-builtins.cf builtins.cf @CFACC@ @CFACPP@
    67         ${AM_V_GEN}@CFACC@ ${AM_CFLAGS} ${CFLAGS} -in-tree -XCFA -l ${<} -c -o ${@}
     77prelude.o : prelude.cfa extras.cf gcc-builtins.cf builtins.cf @CFACC@ @CFACPP@
     78        ${AM_V_GEN}@CFACC@ ${AM_CFLAGS} ${CFLAGS} -quiet -in-tree -XCFA -l ${<} -c -o ${@}
    6879
    6980
    7081
    7182#----------------------------------------------------------------------------------------------------------------
    72 libcfa_a_SOURCES = prelude.o ${libsrc}
     83libcfa_a_SOURCES = prelude.cfa ${libsrc}
    7384
    7485stdhdr = ${shell find ${srcdir}/stdhdr -type f -printf "%p "}
    7586
    7687cfa_includedir = $(CFA_INCDIR)
    77 nobase_cfa_include_HEADERS = \
    78         ${headers}             \
    79         ${stdhdr}              \
    80         math.hfa               \
    81         gmp.hfa                \
    82         time_t.hfa             \
    83         bits/align.hfa         \
    84         bits/containers.hfa    \
    85         bits/defs.hfa          \
    86         bits/debug.hfa         \
    87         bits/locks.hfa         \
    88         concurrency/invoke.h
     88nobase_cfa_include_HEADERS = ${stdhdr} ${headers} ${headers_nosrc}
    8989
    9090#----------------------------------------------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.