Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/Makefile.am

    r2b3d6ff re523b07  
    1717# create object files in directory with source files
    1818AUTOMAKE_OPTIONS = foreign subdir-objects
    19 ACLOCAL_AMFLAGS  = -I automake
     19ARFLAGS = cr
    2020
    2121include $(srcdir)/../../src/cfa.make
    2222
    2323libdir = ${CFA_LIBDIR}
    24 lib_LTLIBRARIES =  libcfa.la
     24lib_LIBRARIES =  libcfa.a
    2525
    2626VPATH += :../prelude
     
    3131# The built sources must not depend on the installed headers
    3232AM_CFAFLAGS = -quiet -in-tree -I$(srcdir)/stdhdr @CONFIG_CFAFLAGS@
    33 AM_CFLAGS = -g -Wall -Wno-unused-function -fPIC @ARCH_FLAGS@ @CONFIG_CFLAGS@
     33AM_CFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@
    3434AM_CCASFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@
    3535CFACC = @CFACC@
     
    3737#----------------------------------------------------------------------------------------------------------------
    3838if BUILDLIB
    39 headers_nosrc = math.hfa gmp.hfa time_t.hfa bits/align.hfa bits/containers.hfa bits/defs.hfa bits/debug.hfa bits/locks.hfa
    4039headers = fstream.hfa iostream.hfa iterator.hfa limits.hfa rational.hfa time.hfa stdlib.hfa common.hfa \
    4140          containers/maybe.hfa containers/pair.hfa containers/result.hfa containers/vector.hfa
    4241
     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
    4344# not all platforms support concurrency, add option do disable it
     45headers += concurrency/coroutine.hfa concurrency/thread.hfa concurrency/kernel.hfa concurrency/monitor.hfa concurrency/mutex.hfa
     46
    4447headers_nosrc += concurrency/invoke.h
    45 headers += concurrency/coroutine.hfa concurrency/thread.hfa concurrency/kernel.hfa concurrency/monitor.hfa concurrency/mutex.hfa
    4648
    4749libsrc = startup.cfa interpose.cfa bits/debug.cfa assert.cfa exception.c virtual.c heap.cfa ${headers:.hfa=.cfa}
     
    6163
    6264# add dependency of cfa files
    63 libobjs = $(addsuffix .lo, $(basename $(filter %.cfa,$(libsrc))))
     65libobjs = $(addsuffix .o, $(basename $(filter %.cfa,$(libsrc))))
    6466$(libobjs) : @CFACC@ @CFACPP@ prelude.cfa
    6567
     
    6870libdeps = $(join \
    6971        $(addsuffix $(DEPDIR)/ , $(dir $(libobjs) ) ), \
    70         $(notdir ${libobjs:.lo=.Po}) \
     72        $(notdir ${libobjs:.o=.Po}) \
    7173)
    7274
     
    7678        ${AM_V_GEN}@CFACC@ ${AM_CFLAGS} ${CFLAGS} -quiet -in-tree -XCFA -l ${<} -c -o ${@}
    7779
    78 prelude.lo: prelude.cfa extras.cf gcc-builtins.cf builtins.cf @CFACC@ @CFACPP@
    79         ${AM_V_GEN}$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile \
    80         @CFACC@ ${AM_CFLAGS} ${CFLAGS} -quiet -in-tree -XCFA -l ${<} -c -o ${@}
    8180
    8281
    8382#----------------------------------------------------------------------------------------------------------------
    84 libcfa_la_SOURCES = prelude.cfa ${libsrc}
    85 libcfa_la_LDFLAGS = -version-info @CFA_VERSION@
     83libcfa_a_SOURCES = prelude.cfa ${libsrc}
    8684
    87 stdhdr = $(shell find $(srcdir)/stdhdr -type f -printf "%p ")
     85stdhdr = ${shell find ${srcdir}/stdhdr -type f -printf "%p "}
    8886
    8987cfa_includedir = $(CFA_INCDIR)
Note: See TracChangeset for help on using the changeset viewer.