Ignore:
Timestamp:
Sep 18, 2018, 4:23:45 PM (6 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
Children:
56b53b2
Parents:
0982a05
Message:

Fixed libcfa dependencies

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/Makefile.am

    r0982a05 ra9fb796  
    1616
    1717# create object files in directory with source files
    18 AUTOMAKE_OPTIONS = subdir-objects
     18AUTOMAKE_OPTIONS = foreign subdir-objects
    1919ARFLAGS = cr
    2020
     
    2424lib_LIBRARIES =  libcfa.a
    2525
     26VPATH += :../prelude
     27
    2628# AM_CFLAGS for all cfa source
    2729# AM_CFAFLAGS for only cfa source
    2830# use -no-include-stdhdr to prevent rebuild cycles
    2931# The built sources must not depend on the installed headers
    30 AM_CFAFLAGS = -quiet -in-tree -imacros prelude.c -I$(srcdir)/stdhdr @CONFIG_CFAFLAGS@
     32AM_CFAFLAGS = -quiet -in-tree -I$(srcdir)/stdhdr @CONFIG_CFAFLAGS@
    3133AM_CFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@
    3234AM_CCASFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@
     
    4042headers += concurrency/coroutine.hfa concurrency/thread.hfa concurrency/kernel.hfa concurrency/monitor.hfa concurrency/mutex.hfa
    4143
    42 libobjs = ${headers:.hfa=.o}
    43 libsrc = prelude.c startup.cfa interpose.cfa bits/debug.cfa assert.cfa exception.c virtual.c heap.cfa \
    44         ${headers:.hfa=.cfa}
     44libsrc = startup.cfa interpose.cfa bits/debug.cfa assert.cfa exception.c virtual.c heap.cfa ${headers:.hfa=.cfa}
    4545
    4646# not all platforms support concurrency, add option do disable it
     
    4949#----------------------------------------------------------------------------------------------------------------
    5050# add dependency to cfa-cpp so all libraries are rebuilt with new translator
    51 ${libobjs} : ${cfalib_DATA}
     51#@CFACC@ @CFACPP@ prelude.cf
    5252
    53 libcfa_a_SOURCES = ${libsrc}
     53# add dependency of cfa files
     54libobjs = $(addsuffix .o, $(basename $(filter %.cfa,$(libsrc))))
     55$(libobjs) : @CFACC@ @CFACPP@ prelude.cf
     56
     57
     58# .deps inclusion is not done automatically by automake for new languages
     59libdeps = $(join \
     60        $(addsuffix $(DEPDIR)/ , $(dir $(libobjs) ) ), \
     61        $(notdir ${libobjs:.o=.Po}) \
     62)
     63
     64-include $(libdeps)
     65
     66prelude.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 ${@}
     68
     69
     70
     71#----------------------------------------------------------------------------------------------------------------
     72libcfa_a_SOURCES = prelude.o ${libsrc}
    5473
    5574stdhdr = ${shell find ${srcdir}/stdhdr -type f -printf "%p "}
     
    6988        concurrency/invoke.h
    7089
    71 MOSTLYCLEANFILES = prelude.c
    72 
    7390#----------------------------------------------------------------------------------------------------------------
    7491maintainer-clean-local:
    7592        -rm -rf ${CFA_INCDIR} ${CFA_LIBDIR}
     93
     94
     95# $(AM_V_CFA)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
     96#       $(CFACOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
     97#       $(am__mv) $$depbase.Tpo $$depbase.Po
Note: See TracChangeset for help on using the changeset viewer.