Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/Makefile.am

    re054263f r70f8bcd2  
    1111## Created On       : Sun May 31 08:54:01 2015
    1212## Last Modified By : Peter A. Buhr
    13 ## Last Modified On : Mon Jul 15 22:43:27 2019
    14 ## Update Count     : 241
     13## Last Modified On : Wed Dec  9 22:46:14 2020
     14## Update Count     : 250
    1515###############################################################################
    1616
     
    1919ACLOCAL_AMFLAGS  = -I automake
    2020
    21 include $(srcdir)/../../src/cfa.make
     21include $(top_srcdir)/../tools/build/cfa.make
    2222
    2323libdir = ${CFA_LIBDIR}
     
    3131# AM_CFAFLAGS for only cfa source
    3232# use -no-include-stdhdr to prevent rebuild cycles
    33 # The built sources must not depend on the installed headers
    34 AM_CFAFLAGS = -quiet -cfalib -I$(srcdir)/stdhdr $(if $(findstring ${gdbwaittarget}, ${@}), -XCFA --gdb) @CONFIG_CFAFLAGS@
    35 AM_CFLAGS = -g -Wall -Wno-unused-function -fPIC -pthread @ARCH_FLAGS@ @CONFIG_CFLAGS@
     33# The built sources must not depend on the installed inst_headers_src
     34AM_CFAFLAGS = -quiet -cfalib -I$(srcdir)/stdhdr -I$(srcdir)/concurrency $(if $(findstring ${gdbwaittarget}, ${@}), -XCFA --gdb) @CONFIG_CFAFLAGS@
     35AM_CFLAGS = -g -Wall -Wno-unused-function -fPIC -fexceptions -pthread @ARCH_FLAGS@ @CONFIG_CFLAGS@
    3636AM_CCASFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@
    3737CFACC = @CFACC@
     
    3939#----------------------------------------------------------------------------------------------------------------
    4040if BUILDLIB
    41 headers_nosrc = math.hfa gmp.hfa time_t.hfa bits/align.hfa bits/containers.hfa bits/defs.hfa bits/debug.hfa bits/locks.hfa
    42 headers = fstream.hfa iostream.hfa iterator.hfa limits.hfa rational.hfa time.hfa stdlib.hfa common.hfa \
    43           containers/maybe.hfa containers/pair.hfa containers/result.hfa containers/vector.hfa \
    44           vec/vec.hfa vec/vec2.hfa vec/vec3.hfa vec/vec4.hfa
    45 
    46 libsrc = startup.cfa interpose.cfa bits/debug.cfa assert.cfa exception.c virtual.c heap.cfa ${headers:.hfa=.cfa}
     41inst_headers_nosrc = \
     42        bitmanip.hfa \
     43        clock.hfa \
     44        exception.hfa \
     45        exception.h \
     46        gmp.hfa \
     47        math.hfa \
     48        time_t.hfa \
     49        bits/align.hfa \
     50        bits/containers.hfa \
     51        bits/debug.hfa \
     52        bits/defs.hfa \
     53        bits/locks.hfa \
     54        bits/collection.hfa \
     55        bits/stack.hfa \
     56        bits/queue.hfa \
     57        bits/sequence.hfa \
     58        concurrency/iofwd.hfa \
     59        containers/list.hfa \
     60        containers/stackLockFree.hfa
     61
     62inst_headers_src = \
     63        common.hfa \
     64        fstream.hfa \
     65        heap.hfa \
     66        iostream.hfa \
     67        iterator.hfa \
     68        limits.hfa \
     69        memory.hfa \
     70        parseargs.hfa \
     71        rational.hfa \
     72        stdlib.hfa \
     73        time.hfa \
     74        containers/maybe.hfa \
     75        containers/pair.hfa \
     76        containers/result.hfa \
     77        containers/vector.hfa
     78
     79libsrc = ${inst_headers_src} ${inst_headers_src:.hfa=.cfa} \
     80        assert.cfa \
     81        bits/algorithm.hfa \
     82        bits/debug.cfa \
     83        exception.c \
     84        interpose.cfa \
     85        lsda.h \
     86        startup.cfa \
     87        startup.hfa \
     88        virtual.c \
     89        virtual.h
    4790
    4891# not all platforms support concurrency, add option do disable it
    49 thread_headers_nosrc = concurrency/invoke.h
    50 thread_headers = concurrency/coroutine.hfa concurrency/thread.hfa concurrency/kernel.hfa concurrency/monitor.hfa concurrency/mutex.hfa
    51 thread_libsrc = concurrency/CtxSwitch-@ARCHITECTURE@.S concurrency/alarm.cfa concurrency/invoke.c concurrency/preemption.cfa ${thread_headers:.hfa=.cfa}
     92inst_thread_headers_nosrc = \
     93        bits/random.hfa \
     94        concurrency/clib/cfathread.h \
     95        concurrency/invoke.h \
     96        concurrency/future.hfa \
     97        concurrency/kernel/fwd.hfa
     98
     99inst_thread_headers_src = \
     100        concurrency/coroutine.hfa \
     101        concurrency/exception.hfa \
     102        concurrency/kernel.hfa \
     103        concurrency/locks.hfa \
     104        concurrency/monitor.hfa \
     105        concurrency/mutex.hfa \
     106        concurrency/thread.hfa
     107
     108thread_libsrc = ${inst_thread_headers_src} ${inst_thread_headers_src:.hfa=.cfa} \
     109        bits/signal.hfa \
     110        concurrency/alarm.cfa \
     111        concurrency/alarm.hfa \
     112        concurrency/clib/cfathread.cfa \
     113        concurrency/CtxSwitch-@ARCHITECTURE@.S \
     114        concurrency/invoke.c \
     115        concurrency/io.cfa \
     116        concurrency/io/setup.cfa \
     117        concurrency/io/types.hfa \
     118        concurrency/io/call.cfa \
     119        concurrency/iofwd.hfa \
     120        concurrency/kernel_private.hfa \
     121        concurrency/kernel/startup.cfa \
     122        concurrency/preemption.cfa \
     123        concurrency/preemption.hfa \
     124        concurrency/ready_queue.cfa \
     125        concurrency/ready_subqueue.hfa \
     126        concurrency/snzi.hfa \
     127        concurrency/stats.cfa \
     128        concurrency/stats.hfa \
     129        concurrency/stats.hfa
     130
    52131else
    53 headers =
    54 thread_headers =
    55 headers_nosrc =
    56 thread_headers_nosrc =
     132inst_headers_src =
     133inst_thread_headers_src =
     134inst_headers_nosrc =
     135inst_thread_headers_nosrc =
    57136libsrc =
    58137endif
     
    97176
    98177prelude.o : prelude.cfa extras.cf gcc-builtins.cf builtins.cf @LOCAL_CFACC@ @CFACPP@
    99         ${AM_V_GEN}$(CFACOMPILE) -quiet -XCFA -l ${<} -c -o ${@}
     178        ${AM_V_GEN}$(CFACOMPILE) -quiet -XCFA,-l ${<} -c -o ${@}
    100179
    101180prelude.lo: prelude.cfa extras.cf gcc-builtins.cf builtins.cf @LOCAL_CFACC@ @CFACPP@
    102181        ${AM_V_GEN}$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile \
    103         $(CFACOMPILE) -quiet -XCFA -l ${<} -c -o ${@}
    104 
    105 #----------------------------------------------------------------------------------------------------------------
    106 libcfa_la_SOURCES = prelude.cfa ${libsrc}
     182        $(CFACOMPILE) -quiet -XCFA,-l ${<} -c -o ${@}
     183
     184#----------------------------------------------------------------------------------------------------------------
     185libcfa_la_SOURCES = ${libsrc}
     186nodist_libcfa_la_SOURCES = prelude.cfa
    107187libcfa_la_LDFLAGS = -version-info @CFA_VERSION@
    108188
     
    113193
    114194cfa_includedir = $(CFA_INCDIR)
    115 nobase_cfa_include_HEADERS = ${stdhdr} ${headers} ${headers_nosrc} ${thread_headers} ${thread_headers_nosrc}
     195nobase_cfa_include_HEADERS = ${stdhdr} ${inst_headers_src} ${inst_headers_nosrc} ${inst_thread_headers_src} ${inst_thread_headers_nosrc}
     196EXTRA_DIST = stdhdr
    116197
    117198#----------------------------------------------------------------------------------------------------------------
    118199maintainer-clean-local:
    119200        -rm -rf ${CFA_INCDIR} ${CFA_LIBDIR}
     201
     202distclean-local:
     203        find ${builddir} -path '*.Plo' -delete
    120204
    121205
Note: See TracChangeset for help on using the changeset viewer.