Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/Makefile.am

    r70f8bcd2 re054263f  
    1111## Created On       : Sun May 31 08:54:01 2015
    1212## Last Modified By : Peter A. Buhr
    13 ## Last Modified On : Wed Dec  9 22:46:14 2020
    14 ## Update Count     : 250
     13## Last Modified On : Mon Jul 15 22:43:27 2019
     14## Update Count     : 241
    1515###############################################################################
    1616
     
    1919ACLOCAL_AMFLAGS  = -I automake
    2020
    21 include $(top_srcdir)/../tools/build/cfa.make
     21include $(srcdir)/../../src/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 inst_headers_src
    34 AM_CFAFLAGS = -quiet -cfalib -I$(srcdir)/stdhdr -I$(srcdir)/concurrency $(if $(findstring ${gdbwaittarget}, ${@}), -XCFA --gdb) @CONFIG_CFAFLAGS@
    35 AM_CFLAGS = -g -Wall -Wno-unused-function -fPIC -fexceptions -pthread @ARCH_FLAGS@ @CONFIG_CFLAGS@
     33# The built sources must not depend on the installed headers
     34AM_CFAFLAGS = -quiet -cfalib -I$(srcdir)/stdhdr $(if $(findstring ${gdbwaittarget}, ${@}), -XCFA --gdb) @CONFIG_CFAFLAGS@
     35AM_CFLAGS = -g -Wall -Wno-unused-function -fPIC -pthread @ARCH_FLAGS@ @CONFIG_CFLAGS@
    3636AM_CCASFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@
    3737CFACC = @CFACC@
     
    3939#----------------------------------------------------------------------------------------------------------------
    4040if BUILDLIB
    41 inst_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
     41headers_nosrc = math.hfa gmp.hfa time_t.hfa bits/align.hfa bits/containers.hfa bits/defs.hfa bits/debug.hfa bits/locks.hfa
     42headers = 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
    6145
    62 inst_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 
    79 libsrc = ${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
     46libsrc = startup.cfa interpose.cfa bits/debug.cfa assert.cfa exception.c virtual.c heap.cfa ${headers:.hfa=.cfa}
    9047
    9148# not all platforms support concurrency, add option do disable it
    92 inst_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 
    99 inst_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 
    108 thread_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 
     49thread_headers_nosrc = concurrency/invoke.h
     50thread_headers = concurrency/coroutine.hfa concurrency/thread.hfa concurrency/kernel.hfa concurrency/monitor.hfa concurrency/mutex.hfa
     51thread_libsrc = concurrency/CtxSwitch-@ARCHITECTURE@.S concurrency/alarm.cfa concurrency/invoke.c concurrency/preemption.cfa ${thread_headers:.hfa=.cfa}
    13152else
    132 inst_headers_src =
    133 inst_thread_headers_src =
    134 inst_headers_nosrc =
    135 inst_thread_headers_nosrc =
     53headers =
     54thread_headers =
     55headers_nosrc =
     56thread_headers_nosrc =
    13657libsrc =
    13758endif
     
    17697
    17798prelude.o : prelude.cfa extras.cf gcc-builtins.cf builtins.cf @LOCAL_CFACC@ @CFACPP@
    178         ${AM_V_GEN}$(CFACOMPILE) -quiet -XCFA,-l ${<} -c -o ${@}
     99        ${AM_V_GEN}$(CFACOMPILE) -quiet -XCFA -l ${<} -c -o ${@}
    179100
    180101prelude.lo: prelude.cfa extras.cf gcc-builtins.cf builtins.cf @LOCAL_CFACC@ @CFACPP@
    181102        ${AM_V_GEN}$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile \
    182         $(CFACOMPILE) -quiet -XCFA,-l ${<} -c -o ${@}
     103        $(CFACOMPILE) -quiet -XCFA -l ${<} -c -o ${@}
    183104
    184105#----------------------------------------------------------------------------------------------------------------
    185 libcfa_la_SOURCES = ${libsrc}
    186 nodist_libcfa_la_SOURCES = prelude.cfa
     106libcfa_la_SOURCES = prelude.cfa ${libsrc}
    187107libcfa_la_LDFLAGS = -version-info @CFA_VERSION@
    188108
     
    193113
    194114cfa_includedir = $(CFA_INCDIR)
    195 nobase_cfa_include_HEADERS = ${stdhdr} ${inst_headers_src} ${inst_headers_nosrc} ${inst_thread_headers_src} ${inst_thread_headers_nosrc}
    196 EXTRA_DIST = stdhdr
     115nobase_cfa_include_HEADERS = ${stdhdr} ${headers} ${headers_nosrc} ${thread_headers} ${thread_headers_nosrc}
    197116
    198117#----------------------------------------------------------------------------------------------------------------
     
    200119        -rm -rf ${CFA_INCDIR} ${CFA_LIBDIR}
    201120
    202 distclean-local:
    203         find ${builddir} -path '*.Plo' -delete
    204 
    205121
    206122# $(AM_V_CFA)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
Note: See TracChangeset for help on using the changeset viewer.