#### # # This Makefile defines rules for testing list and string classes in the # support project. It will be exapanded as new support classes are added. # # # Define the location of the generic project Makefile.vars and include it. # MAKEFILEVARSDIR = ../../implementation/source/c++ include $(MAKEFILEVARSDIR)/Makefile.vars # # Override def of PLATFORM. # PLATFORM = SUN4T-work-work # # Define object file and source file paths. # STROBJS = \ $(IMPLEOBJDIR)/str.o STRLISTOBJS = \ $(IMPLEOBJDIR)/list.o \ $(IMPLEOBJDIR)/strlist.o \ $(IMPLEOBJDIR)/str.o INTLISTOBJS = \ $(IMPLEOBJDIR)/list.o \ $(IMPLEOBJDIR)/intlist.o STRLISTTESTOBJS = \ $(STRLISTOBJS) strlist-test.o INTLISTTESTOBJS = \ $(INTLISTOBJS) intlist-test.o STRTESTOBJS = \ $(STROBJS) str-test.o SRCS = \ $(IMPLEDIR)/*.C \ $(TESTDIR)/*.C DEPENDSRCS = $(SRCS) # # Execute test scripts, save results, and compare results with last good # results. By convention, rules ending in "-testing" do this. # all-testing: list-testing str-testing list-testing: list-output list-diffs str-testing: str-output str-diffs # # Execute test scripts and save output results. By convention, rules ending in # "-output" do this work. # list-output: strlist-test intlist-test @csh -q -c "source .make-list-output" str-output: str-test @csh -q -c "source .make-str-output" # # Compare current output results with last good results. By convention, rules # ending in "-diff" do this work. # list-diffs: @csh -q -c "source .make-list-diffs" str-diffs: @csh -q -c "source .make-str-diffs" # # Make the current output results the good results. By convention, rules # ending in "-good" so this work. # # NOTE WELL: 'make good' should only be performed after thorough analysis of # current output results to ensure that they are absolutely correct. # good: list-good str-good list-good: @csh -q -c "source .make-list-good" str-good: @csh -q -c "source .make-str-good" # # Compile the testing scripts. By convention, rules ending in "-test" do this # work. # strlist-test: $(STRLISTTESTOBJS) $(CC) $(LDFLAGS) $(STRLISTTESTOBJS) $(LIBS) \ -o strlist-test intlist-test: $(INTLISTTESTOBJS) $(CC) $(LDFLAGS) $(INTLISTTESTOBJS) $(LIBS) \ -o intlist-test str-test: str-test.o str.o $(CC) $(LDFLAGS) $(STRTESTOBJS) $(LIBS) \ -o str-test # # Force a remake of any implementation file, if necessary. This is a # convenience during the course of testing. I.e., if a bug is detected during # testing, the implementation fix can be made, and then make can be rerun in # the testing dir, without having to run it separately in the implementation # dir. # # If interested, see the 25jun97 entry in the enchilada LOG file for a # discussion of the structure of this rule. # %.o: $(IMPLEDIR)/%.C @echo "in % rule" $(CC) $(CFLAGS) $< -o $(IMPLEOBJDIR)/$@ rm -f $@ ln -s $(IMPLEOBJDIR)/$@ . # # The following rule is an attempt to accomplish what the preceding rule # accomplishes, only here without the sym link. For some unknown reason it # does not work. Again, see the LOG file for a bit more discussion. #$(IMPLEOBJDIR)/%.o: # $(CC) $(CFLAGS) -c -o $< $@ # DO NOT DELETE THIS LINE -- make depend depends on it. ../../implementation/edit-menu.o: ../../design/edit-menu.h ../../implementation/edit-menu.o: ../../design/edit.h ../../design/view.h ../../implementation/edit-menu.o: ../../design/std-macros.h ../../implementation/edit-menu.o: /usr/include/setjmp.h ../../implementation/edit-menu.o: /usr/include/sys/feature_tests.h ../../implementation/edit-menu.o: /usr/include/sys/isa_defs.h ../../implementation/edit-menu.o: ../../design/model.h ../../implementation/edit-menu.o: ../../design/iv-support.h ../../implementation/edit-menu.o: /users/gfisher/projects/work/include/InterViews/world.h ../../implementation/edit-menu.o: /users/gfisher/projects/work/include/InterViews/scene.h ../../implementation/edit-menu.o: /users/gfisher/projects/work/include/InterViews/interactor.h ../../implementation/edit-menu.o: /users/gfisher/projects/work/include/InterViews/defs.h ../../implementation/edit-menu.o: /users/gfisher/projects/work/include/InterViews/menu.h ../../implementation/edit-menu.o: /users/gfisher/projects/work/include/InterViews/box.h ../../implementation/edit-menu.o: /users/gfisher/projects/work/include/InterViews/control.h ../../implementation/edit-menu.o: /users/gfisher/projects/work/include/InterViews/subject.h ../../implementation/edit-menu.o: /users/gfisher/projects/work/include/InterViews/resource.h ../../implementation/file-menu.o: ../../design/file-menu.h ../../implementation/file-menu.o: ../../design/file.h ../../design/model.h ../../implementation/file-menu.o: ../../design/std-macros.h ../../implementation/file-menu.o: /usr/include/setjmp.h ../../implementation/file-menu.o: /usr/include/sys/feature_tests.h ../../implementation/file-menu.o: /usr/include/sys/isa_defs.h ../../implementation/file-menu.o: ../../design/view.h ../../implementation/file-menu.o: ../../design/iv-support.h ../../implementation/file-menu.o: /users/gfisher/projects/work/include/InterViews/world.h ../../implementation/file-menu.o: /users/gfisher/projects/work/include/InterViews/scene.h ../../implementation/file-menu.o: /users/gfisher/projects/work/include/InterViews/interactor.h ../../implementation/file-menu.o: /users/gfisher/projects/work/include/InterViews/defs.h ../../implementation/file-menu.o: /users/gfisher/projects/work/include/InterViews/menu.h ../../implementation/file-menu.o: /users/gfisher/projects/work/include/InterViews/box.h ../../implementation/file-menu.o: /users/gfisher/projects/work/include/InterViews/control.h ../../implementation/file-menu.o: /users/gfisher/projects/work/include/InterViews/subject.h ../../implementation/file-menu.o: /users/gfisher/projects/work/include/InterViews/resource.h ../../implementation/file.o: ../../design/file.h ../../design/model.h ../../implementation/file.o: ../../design/std-macros.h /usr/include/setjmp.h ../../implementation/file.o: /usr/include/sys/feature_tests.h ../../implementation/file.o: /usr/include/sys/isa_defs.h ../../implementation/file.o: ../../design/quit-exception.h ../../implementation/file.o: /usr/include/stdio.h /usr/include/sys/va_list.h ../../implementation/file.o: /usr/include/stdio_tag.h ../../implementation/file.o: /usr/include/stdio_impl.h ../../implementation/intlist.o: /usr/include/stdio.h ../../implementation/intlist.o: /usr/include/sys/feature_tests.h ../../implementation/intlist.o: /usr/include/sys/isa_defs.h ../../implementation/intlist.o: /usr/include/sys/va_list.h ../../implementation/intlist.o: /usr/include/stdio_tag.h ../../implementation/intlist.o: /usr/include/stdio_impl.h ../../implementation/intlist.o: ../../design/intlist.h ../../design/list.h ../../implementation/intlist.o: ../../design/std-macros.h ../../implementation/intlist.o: /usr/include/setjmp.h ../../implementation/list.o: /usr/include/stdio.h ../../implementation/list.o: /usr/include/sys/feature_tests.h ../../implementation/list.o: /usr/include/sys/isa_defs.h ../../implementation/list.o: /usr/include/sys/va_list.h ../../implementation/list.o: /usr/include/stdio_tag.h ../../implementation/list.o: /usr/include/stdio_impl.h ../../design/list.h ../../implementation/list.o: ../../design/std-macros.h /usr/include/setjmp.h ../../implementation/model.o: ../../design/model.h ../../design/std-macros.h ../../implementation/model.o: /usr/include/setjmp.h ../../implementation/model.o: /usr/include/sys/feature_tests.h ../../implementation/model.o: /usr/include/sys/isa_defs.h ../../implementation/salloc++.o: /usr/include/stdio.h ../../implementation/salloc++.o: /usr/include/sys/feature_tests.h ../../implementation/salloc++.o: /usr/include/sys/isa_defs.h ../../implementation/salloc++.o: /usr/include/sys/va_list.h ../../implementation/salloc++.o: /usr/include/stdio_tag.h ../../implementation/salloc++.o: /usr/include/stdio_impl.h ../../implementation/salloc++.o: /usr/include/stdlib.h ../../design/table.h ../../implementation/salloc++.o: ../../design/salloc.h ../../implementation/salloc++.o: ../../design/salloc++.h ../../implementation/str.o: ../../design/std-macros.h /usr/include/setjmp.h ../../implementation/str.o: /usr/include/sys/feature_tests.h ../../implementation/str.o: /usr/include/sys/isa_defs.h /usr/include/math.h ../../implementation/str.o: /usr/include/stdlib.h /usr/include/string.h ../../implementation/str.o: ../../design/str.h ../../implementation/strlist.o: /usr/include/stdio.h ../../implementation/strlist.o: /usr/include/sys/feature_tests.h ../../implementation/strlist.o: /usr/include/sys/isa_defs.h ../../implementation/strlist.o: /usr/include/sys/va_list.h ../../implementation/strlist.o: /usr/include/stdio_tag.h ../../implementation/strlist.o: /usr/include/stdio_impl.h ../../implementation/strlist.o: /usr/include/string.h ../../design/strlist.h ../../implementation/strlist.o: ../../design/list.h ../../design/std-macros.h ../../implementation/strlist.o: /usr/include/setjmp.h ../../design/str.h ../../implementation/view.o: ../../design/view.h ../../design/std-macros.h ../../implementation/view.o: /usr/include/setjmp.h ../../implementation/view.o: /usr/include/sys/feature_tests.h ../../implementation/view.o: /usr/include/sys/isa_defs.h ../../design/model.h ../../implementation/view.o: ../../design/iv-support.h ../../implementation/view.o: /users/gfisher/projects/work/include/InterViews/world.h ../../implementation/view.o: /users/gfisher/projects/work/include/InterViews/scene.h ../../implementation/view.o: /users/gfisher/projects/work/include/InterViews/interactor.h ../../implementation/view.o: /users/gfisher/projects/work/include/InterViews/defs.h ../../testing/intlist-test.o: /usr/include/stdio.h ../../testing/intlist-test.o: /usr/include/sys/feature_tests.h ../../testing/intlist-test.o: /usr/include/sys/isa_defs.h ../../testing/intlist-test.o: /usr/include/sys/va_list.h ../../testing/intlist-test.o: /usr/include/stdio_tag.h ../../testing/intlist-test.o: /usr/include/stdio_impl.h ../../testing/intlist-test.o: ../../testing/intlist-test.h ../../testing/intlist-test.o: ../../design/intlist.h ../../design/list.h ../../testing/intlist-test.o: ../../design/std-macros.h /usr/include/setjmp.h ../../testing/str-test.o: /opt/gnu/include/g++/ostream.h ../../testing/str-test.o: /opt/gnu/include/g++/stream.h ../../testing/str-test.o: /opt/gnu/include/g++/iostream.h ../../testing/str-test.o: /opt/gnu/include/g++/streambuf.h ../../testing/str-test.o: /opt/gnu/include/g++/libio.h ../../design/str.h ../../testing/strlist-test.o: ../../testing/strlist-test.h ../../testing/strlist-test.o: ../../design/strlist.h ../../design/list.h ../../testing/strlist-test.o: ../../design/std-macros.h /usr/include/setjmp.h ../../testing/strlist-test.o: /usr/include/sys/feature_tests.h ../../testing/strlist-test.o: /usr/include/sys/isa_defs.h ../../design/str.h ../../testing/strlist-test.o: /usr/include/stdio.h /usr/include/sys/va_list.h ../../testing/strlist-test.o: /usr/include/stdio_tag.h ../../testing/strlist-test.o: /usr/include/stdio_impl.h /usr/include/std.h