Changeset a9fb796 for libcfa/src
- 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
- Location:
- libcfa/src
- Files:
-
- 2 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 -
libcfa/src/Makefile.in
r0982a05 ra9fb796 19 19 20 20 21 VPATH = @srcdir@22 21 am__is_gnu_make = { \ 23 22 if test -z '$(MAKELEVEL)'; then \ … … 147 146 concurrency/kernel.$(OBJEXT) concurrency/monitor.$(OBJEXT) \ 148 147 concurrency/mutex.$(OBJEXT) 149 am__objects_2 = prelude.$(OBJEXT) startup.$(OBJEXT) \ 150 interpose.$(OBJEXT) bits/debug.$(OBJEXT) assert.$(OBJEXT) \ 151 exception.$(OBJEXT) virtual.$(OBJEXT) heap.$(OBJEXT) \ 152 $(am__objects_1) \ 148 am__objects_2 = startup.$(OBJEXT) interpose.$(OBJEXT) \ 149 bits/debug.$(OBJEXT) assert.$(OBJEXT) exception.$(OBJEXT) \ 150 virtual.$(OBJEXT) heap.$(OBJEXT) $(am__objects_1) \ 153 151 concurrency/CtxSwitch-@ARCHITECTURE@.$(OBJEXT) \ 154 152 concurrency/alarm.$(OBJEXT) concurrency/invoke.$(OBJEXT) \ … … 220 218 $(top_srcdir)/./automake/depcomp 221 219 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 220 VPATH = @srcdir@ :../prelude 222 221 ACLOCAL = @ACLOCAL@ 223 222 AMTAR = @AMTAR@ … … 328 327 329 328 # create object files in directory with source files 330 AUTOMAKE_OPTIONS = subdir-objects329 AUTOMAKE_OPTIONS = foreign subdir-objects 331 330 ARFLAGS = cr 332 331 CFACOMPILE = $(CFACC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CFAFLAGS) $(CFAFLAGS) $(AM_CFLAGS) $(CFLAGS) … … 341 340 # use -no-include-stdhdr to prevent rebuild cycles 342 341 # The built sources must not depend on the installed headers 343 AM_CFAFLAGS = -quiet -in-tree - imacros prelude.c -I$(srcdir)/stdhdr @CONFIG_CFAFLAGS@342 AM_CFAFLAGS = -quiet -in-tree -I$(srcdir)/stdhdr @CONFIG_CFAFLAGS@ 344 343 AM_CFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@ 345 344 AM_CCASFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@ … … 354 353 concurrency/thread.hfa concurrency/kernel.hfa \ 355 354 concurrency/monitor.hfa concurrency/mutex.hfa 356 libobjs = ${headers:.hfa=.o}357 355 358 356 # not all platforms support concurrency, add option do disable it 359 libsrc = prelude.cstartup.cfa interpose.cfa bits/debug.cfa assert.cfa \357 libsrc = startup.cfa interpose.cfa bits/debug.cfa assert.cfa \ 360 358 exception.c virtual.c heap.cfa ${headers:.hfa=.cfa} \ 361 359 concurrency/CtxSwitch-@ARCHITECTURE@.S concurrency/alarm.cfa \ 362 360 concurrency/invoke.c concurrency/preemption.cfa 363 libcfa_a_SOURCES = ${libsrc} 361 362 #---------------------------------------------------------------------------------------------------------------- 363 # add dependency to cfa-cpp so all libraries are rebuilt with new translator 364 #@CFACC@ @CFACPP@ prelude.cf 365 366 # add dependency of cfa files 367 libobjs = $(addsuffix .o, $(basename $(filter %.cfa,$(libsrc)))) 368 369 # .deps inclusion is not done automatically by automake for new languages 370 libdeps = $(join \ 371 $(addsuffix $(DEPDIR)/ , $(dir $(libobjs) ) ), \ 372 $(notdir ${libobjs:.o=.Po}) \ 373 ) 374 375 376 #---------------------------------------------------------------------------------------------------------------- 377 libcfa_a_SOURCES = prelude.o ${libsrc} 364 378 stdhdr = ${shell find ${srcdir}/stdhdr -type f -printf "%p "} 365 379 cfa_includedir = $(CFA_INCDIR) … … 377 391 concurrency/invoke.h 378 392 379 MOSTLYCLEANFILES = prelude.c380 393 all: all-am 381 394 … … 506 519 507 520 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/exception.Po@am__quote@ 508 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/prelude.Po@am__quote@509 521 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/virtual.Po@am__quote@ 510 522 @AMDEP_TRUE@@am__include@ @am__quote@concurrency/$(DEPDIR)/CtxSwitch-@ARCHITECTURE@.Po@am__quote@ … … 676 688 fi 677 689 mostlyclean-generic: 678 -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)679 690 680 691 clean-generic: … … 784 795 785 796 786 .cfa.o: $(CFACC) $(CFACPP)797 .cfa.o: 787 798 $(AM_V_CFA)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ 788 799 $(CFACOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ 789 800 $(am__mv) $$depbase.Tpo $$depbase.Po 790 791 #---------------------------------------------------------------------------------------------------------------- 792 # add dependency to cfa-cpp so all libraries are rebuilt with new translator 793 ${libobjs} : ${cfalib_DATA} 801 $(libobjs) : @CFACC@ @CFACPP@ prelude.cf 802 803 -include $(libdeps) 804 805 prelude.o : prelude.cf extras.cf gcc-builtins.cf builtins.cf @CFACC@ @CFACPP@ 806 ${AM_V_GEN}@CFACC@ ${AM_CFLAGS} ${CFLAGS} -in-tree -XCFA -l ${<} -c -o ${@} 794 807 795 808 #---------------------------------------------------------------------------------------------------------------- … … 797 810 -rm -rf ${CFA_INCDIR} ${CFA_LIBDIR} 798 811 812 # $(AM_V_CFA)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ 813 # $(CFACOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ 814 # $(am__mv) $$depbase.Tpo $$depbase.Po 815 799 816 # Tell versions [3.59,3.63) of GNU make to not export all variables. 800 817 # Otherwise a system limit (for SysV at least) may be exceeded.
Note: See TracChangeset
for help on using the changeset viewer.