Changeset 5cb5f842


Ignore:
Timestamp:
May 31, 2015, 2:19:43 PM (7 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, ctor, deferred_resn, demangler, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, string, with_gc
Children:
56c3935
Parents:
00cc023
Message:

redo automake second attempt

Location:
src/examples
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/examples/Makefile.am

    r00cc023 r5cb5f842  
    1111## Created On       : Sun May 31 09:08:15 2015
    1212## Last Modified By : Peter A. Buhr
    13 ## Last Modified On : Sun May 31 12:32:19 2015
    14 ## Update Count     : 17
     13## Last Modified On : Sun May 31 14:16:58 2015
     14## Update Count     : 21
    1515###############################################################################
    1616
    1717# create object files in directory with source files
    18 AUTOMAKE_OPTIONS = subdir-objects
     18#AUTOMAKE_OPTIONS = subdir-objects
    1919
    2020# applies to both programs
    21 AM_CFLAGS = -g -Wall -Wno-unused-function # does not build with -O2
     21CFLAGS = -g -Wall -Wno-unused-function # TEMPORARY: does not build with -O2
    2222CC = @CFA_BINDIR@/cfa
    23 # TEMPORARY: replace COMPILE to remove CFLAGS containing -O2
    24 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) # $(CFLAGS)
    2523
    2624noinst_PROGRAMS = fstream_test vector_test
    27 fstream_test_SOURCES = ${srcdir}/iostream.c ${srcdir}/fstream.c ${srcdir}/fstream_test.c
    28 vector_test_SOURCES = ${srcdir}/vector_int.c ${srcdir}/fstream.c ${srcdir}/iostream.c ${srcdir}/array.c ${srcdir}/iterator.c ${srcdir}/vector_test.c
     25fstream_test_SOURCES = iostream.c fstream.c fstream_test.c
     26vector_test_SOURCES = vector_int.c fstream.c iostream.c array.c iterator.c vector_test.c
  • src/examples/Makefile.in

    r00cc023 r5cb5f842  
    1818######################## -*- Mode: Makefile-Automake -*- ######################
    1919###############################################################################
     20
     21# create object files in directory with source files
     22#AUTOMAKE_OPTIONS = subdir-objects
    2023
    2124VPATH = @srcdir@
     
    4851CONFIG_CLEAN_VPATH_FILES =
    4952PROGRAMS = $(noinst_PROGRAMS)
    50 am__dirstamp = $(am__leading_dot)dirstamp
    51 am_fstream_test_OBJECTS = ${srcdir}/iostream.$(OBJEXT) \
    52         ${srcdir}/fstream.$(OBJEXT) ${srcdir}/fstream_test.$(OBJEXT)
     53am_fstream_test_OBJECTS = iostream.$(OBJEXT) fstream.$(OBJEXT) \
     54        fstream_test.$(OBJEXT)
    5355fstream_test_OBJECTS = $(am_fstream_test_OBJECTS)
    5456fstream_test_LDADD = $(LDADD)
    55 am_vector_test_OBJECTS = ${srcdir}/vector_int.$(OBJEXT) \
    56         ${srcdir}/fstream.$(OBJEXT) ${srcdir}/iostream.$(OBJEXT) \
    57         ${srcdir}/array.$(OBJEXT) ${srcdir}/iterator.$(OBJEXT) \
    58         ${srcdir}/vector_test.$(OBJEXT)
     57am_vector_test_OBJECTS = vector_int.$(OBJEXT) fstream.$(OBJEXT) \
     58        iostream.$(OBJEXT) array.$(OBJEXT) iterator.$(OBJEXT) \
     59        vector_test.$(OBJEXT)
    5960vector_test_OBJECTS = $(am_vector_test_OBJECTS)
    6061vector_test_LDADD = $(LDADD)
     
    6364am__depfiles_maybe = depfiles
    6465am__mv = mv -f
     66COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
     67        $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
    6568CCLD = $(CC)
    6669LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
     
    8487CFA_LIBDIR = @CFA_LIBDIR@
    8588CFA_PREFIX = @CFA_PREFIX@
    86 CFLAGS = @CFLAGS@
     89
     90# applies to both programs
     91CFLAGS = -g -Wall -Wno-unused-function # TEMPORARY: does not build with -O2
    8792CPP = @CPP@
    8893CPPFLAGS = @CPPFLAGS@
     
    169174top_builddir = @top_builddir@
    170175top_srcdir = @top_srcdir@
    171 
    172 # create object files in directory with source files
    173 AUTOMAKE_OPTIONS = subdir-objects
    174 
    175 # applies to both programs
    176 AM_CFLAGS = -g -Wall -Wno-unused-function # does not build with -O2
    177 # TEMPORARY: replace COMPILE to remove CFLAGS containing -O2
    178 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) # $(CFLAGS)
    179 fstream_test_SOURCES = ${srcdir}/iostream.c ${srcdir}/fstream.c ${srcdir}/fstream_test.c
    180 vector_test_SOURCES = ${srcdir}/vector_int.c ${srcdir}/fstream.c ${srcdir}/iostream.c ${srcdir}/array.c ${srcdir}/iterator.c ${srcdir}/vector_test.c
     176fstream_test_SOURCES = iostream.c fstream.c fstream_test.c
     177vector_test_SOURCES = vector_int.c fstream.c iostream.c array.c iterator.c vector_test.c
    181178all: all-am
    182179
     
    216213clean-noinstPROGRAMS:
    217214        -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
    218 ${srcdir}/$(am__dirstamp):
    219         @$(MKDIR_P) ${srcdir}
    220         @: > ${srcdir}/$(am__dirstamp)
    221 ${srcdir}/$(DEPDIR)/$(am__dirstamp):
    222         @$(MKDIR_P) ${srcdir}/$(DEPDIR)
    223         @: > ${srcdir}/$(DEPDIR)/$(am__dirstamp)
    224 ${srcdir}/iostream.$(OBJEXT): ${srcdir}/$(am__dirstamp) \
    225         ${srcdir}/$(DEPDIR)/$(am__dirstamp)
    226 ${srcdir}/fstream.$(OBJEXT): ${srcdir}/$(am__dirstamp) \
    227         ${srcdir}/$(DEPDIR)/$(am__dirstamp)
    228 ${srcdir}/fstream_test.$(OBJEXT): ${srcdir}/$(am__dirstamp) \
    229         ${srcdir}/$(DEPDIR)/$(am__dirstamp)
    230215fstream_test$(EXEEXT): $(fstream_test_OBJECTS) $(fstream_test_DEPENDENCIES) $(EXTRA_fstream_test_DEPENDENCIES)
    231216        @rm -f fstream_test$(EXEEXT)
    232217        $(LINK) $(fstream_test_OBJECTS) $(fstream_test_LDADD) $(LIBS)
    233 ${srcdir}/vector_int.$(OBJEXT): ${srcdir}/$(am__dirstamp) \
    234         ${srcdir}/$(DEPDIR)/$(am__dirstamp)
    235 ${srcdir}/array.$(OBJEXT): ${srcdir}/$(am__dirstamp) \
    236         ${srcdir}/$(DEPDIR)/$(am__dirstamp)
    237 ${srcdir}/iterator.$(OBJEXT): ${srcdir}/$(am__dirstamp) \
    238         ${srcdir}/$(DEPDIR)/$(am__dirstamp)
    239 ${srcdir}/vector_test.$(OBJEXT): ${srcdir}/$(am__dirstamp) \
    240         ${srcdir}/$(DEPDIR)/$(am__dirstamp)
    241218vector_test$(EXEEXT): $(vector_test_OBJECTS) $(vector_test_DEPENDENCIES) $(EXTRA_vector_test_DEPENDENCIES)
    242219        @rm -f vector_test$(EXEEXT)
     
    245222mostlyclean-compile:
    246223        -rm -f *.$(OBJEXT)
    247         -rm -f ${srcdir}/array.$(OBJEXT)
    248         -rm -f ${srcdir}/fstream.$(OBJEXT)
    249         -rm -f ${srcdir}/fstream_test.$(OBJEXT)
    250         -rm -f ${srcdir}/iostream.$(OBJEXT)
    251         -rm -f ${srcdir}/iterator.$(OBJEXT)
    252         -rm -f ${srcdir}/vector_int.$(OBJEXT)
    253         -rm -f ${srcdir}/vector_test.$(OBJEXT)
    254224
    255225distclean-compile:
    256226        -rm -f *.tab.c
    257227
    258 @AMDEP_TRUE@@am__include@ @am__quote@${srcdir}/$(DEPDIR)/array.Po@am__quote@
    259 @AMDEP_TRUE@@am__include@ @am__quote@${srcdir}/$(DEPDIR)/fstream.Po@am__quote@
    260 @AMDEP_TRUE@@am__include@ @am__quote@${srcdir}/$(DEPDIR)/fstream_test.Po@am__quote@
    261 @AMDEP_TRUE@@am__include@ @am__quote@${srcdir}/$(DEPDIR)/iostream.Po@am__quote@
    262 @AMDEP_TRUE@@am__include@ @am__quote@${srcdir}/$(DEPDIR)/iterator.Po@am__quote@
    263 @AMDEP_TRUE@@am__include@ @am__quote@${srcdir}/$(DEPDIR)/vector_int.Po@am__quote@
    264 @AMDEP_TRUE@@am__include@ @am__quote@${srcdir}/$(DEPDIR)/vector_test.Po@am__quote@
     228@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/array.Po@am__quote@
     229@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fstream.Po@am__quote@
     230@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fstream_test.Po@am__quote@
     231@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iostream.Po@am__quote@
     232@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iterator.Po@am__quote@
     233@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vector_int.Po@am__quote@
     234@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vector_test.Po@am__quote@
    265235
    266236.c.o:
    267 @am__fastdepCC_TRUE@    depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
    268 @am__fastdepCC_TRUE@    $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
    269 @am__fastdepCC_TRUE@    $(am__mv) $$depbase.Tpo $$depbase.Po
     237@am__fastdepCC_TRUE@    $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
     238@am__fastdepCC_TRUE@    $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
    270239@AMDEP_TRUE@@am__fastdepCC_FALSE@       source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
    271240@AMDEP_TRUE@@am__fastdepCC_FALSE@       DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    272 @am__fastdepCC_FALSE@   $(COMPILE) -c -o $@ $<
     241@am__fastdepCC_FALSE@   $(COMPILE) -c $<
    273242
    274243.c.obj:
    275 @am__fastdepCC_TRUE@    depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
    276 @am__fastdepCC_TRUE@    $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
    277 @am__fastdepCC_TRUE@    $(am__mv) $$depbase.Tpo $$depbase.Po
     244@am__fastdepCC_TRUE@    $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
     245@am__fastdepCC_TRUE@    $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
    278246@AMDEP_TRUE@@am__fastdepCC_FALSE@       source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
    279247@AMDEP_TRUE@@am__fastdepCC_FALSE@       DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    280 @am__fastdepCC_FALSE@   $(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
     248@am__fastdepCC_FALSE@   $(COMPILE) -c `$(CYGPATH_W) '$<'`
    281249
    282250ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
     
    392360        -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
    393361        -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
    394         -rm -f ${srcdir}/$(DEPDIR)/$(am__dirstamp)
    395         -rm -f ${srcdir}/$(am__dirstamp)
    396362
    397363maintainer-clean-generic:
     
    403369
    404370distclean: distclean-am
    405         -rm -rf ${srcdir}/$(DEPDIR)
     371        -rm -rf ./$(DEPDIR)
    406372        -rm -f Makefile
    407373distclean-am: clean-am distclean-compile distclean-generic \
     
    449415
    450416maintainer-clean: maintainer-clean-am
    451         -rm -rf ${srcdir}/$(DEPDIR)
     417        -rm -rf ./$(DEPDIR)
    452418        -rm -f Makefile
    453419maintainer-clean-am: distclean-am maintainer-clean-generic
Note: See TracChangeset for help on using the changeset viewer.