Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/Makefile.am

    r2a75572 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=.Plo}) \
     72        $(notdir ${libobjs:.o=.Po}) \
    7173)
    7274
    73 include $(libdeps)
    74 
    75 $(libdeps):
    76         @mkdir -p $(dir $@)
    77         @echo '#dummy' > $@
     75-include $(libdeps)
    7876
    7977prelude.o : prelude.cfa extras.cf gcc-builtins.cf builtins.cf @CFACC@ @CFACPP@
    80         ${AM_V_GEN}@CFACC@ ${AM_CFLAGS} ${CFLAGS} -quiet -in-tree @CONFIG_CFAFLAGS@ -XCFA -l ${<} -c -o ${@}
     78        ${AM_V_GEN}@CFACC@ ${AM_CFLAGS} ${CFLAGS} -quiet -in-tree -XCFA -l ${<} -c -o ${@}
    8179
    82 prelude.lo: prelude.cfa extras.cf gcc-builtins.cf builtins.cf @CFACC@ @CFACPP@
    83         ${AM_V_GEN}$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile \
    84         @CFACC@ ${AM_CFLAGS} ${CFLAGS} -quiet -in-tree @CONFIG_CFAFLAGS@ -XCFA -l ${<} -c -o ${@}
    8580
    8681
    8782#----------------------------------------------------------------------------------------------------------------
    88 libcfa_la_SOURCES = prelude.cfa ${libsrc}
    89 libcfa_la_LDFLAGS = -version-info @CFA_VERSION@
     83libcfa_a_SOURCES = prelude.cfa ${libsrc}
    9084
    91 stdhdr = $(shell find $(srcdir)/stdhdr -type f -printf "%p ")
     85stdhdr = ${shell find ${srcdir}/stdhdr -type f -printf "%p "}
    9286
    9387cfa_includedir = $(CFA_INCDIR)
Note: See TracChangeset for help on using the changeset viewer.