Changeset a9fb796 for libcfa/src/Makefile.am
- Timestamp:
- Sep 18, 2018, 4:23:45 PM (6 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/Makefile.am
r0982a05 ra9fb796 16 16 17 17 # create object files in directory with source files 18 AUTOMAKE_OPTIONS = subdir-objects18 AUTOMAKE_OPTIONS = foreign subdir-objects 19 19 ARFLAGS = cr 20 20 … … 24 24 lib_LIBRARIES = libcfa.a 25 25 26 VPATH += :../prelude 27 26 28 # AM_CFLAGS for all cfa source 27 29 # AM_CFAFLAGS for only cfa source 28 30 # use -no-include-stdhdr to prevent rebuild cycles 29 31 # The built sources must not depend on the installed headers 30 AM_CFAFLAGS = -quiet -in-tree - imacros prelude.c -I$(srcdir)/stdhdr @CONFIG_CFAFLAGS@32 AM_CFAFLAGS = -quiet -in-tree -I$(srcdir)/stdhdr @CONFIG_CFAFLAGS@ 31 33 AM_CFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@ 32 34 AM_CCASFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@ … … 40 42 headers += concurrency/coroutine.hfa concurrency/thread.hfa concurrency/kernel.hfa concurrency/monitor.hfa concurrency/mutex.hfa 41 43 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} 44 libsrc = startup.cfa interpose.cfa bits/debug.cfa assert.cfa exception.c virtual.c heap.cfa ${headers:.hfa=.cfa} 45 45 46 46 # not all platforms support concurrency, add option do disable it … … 49 49 #---------------------------------------------------------------------------------------------------------------- 50 50 # add dependency to cfa-cpp so all libraries are rebuilt with new translator 51 ${libobjs} : ${cfalib_DATA} 51 #@CFACC@ @CFACPP@ prelude.cf 52 52 53 libcfa_a_SOURCES = ${libsrc} 53 # add dependency of cfa files 54 libobjs = $(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 59 libdeps = $(join \ 60 $(addsuffix $(DEPDIR)/ , $(dir $(libobjs) ) ), \ 61 $(notdir ${libobjs:.o=.Po}) \ 62 ) 63 64 -include $(libdeps) 65 66 prelude.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 #---------------------------------------------------------------------------------------------------------------- 72 libcfa_a_SOURCES = prelude.o ${libsrc} 54 73 55 74 stdhdr = ${shell find ${srcdir}/stdhdr -type f -printf "%p "} … … 69 88 concurrency/invoke.h 70 89 71 MOSTLYCLEANFILES = prelude.c72 73 90 #---------------------------------------------------------------------------------------------------------------- 74 91 maintainer-clean-local: 75 92 -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.