#### # # 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 include $(MAKEFILEVARSDIR)/Makefile.vars # # Override def of PLATFORM # PLATFORM = SUN4G-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 # # Define the location of the generic project Makefile.rules and include it. # MAKEFILERULESDIR = ../../implementation include $(MAKEFILERULESDIR)/Makefile.rules # # 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. edit-menu.o: ../../design/edit-menu.h edit-menu.o: ../../design/edit.h ../../design/view.h edit-menu.o: ../../design/std-macros.h edit-menu.o: /usr/include/setjmp.h edit-menu.o: /usr/include/sys/feature_tests.h edit-menu.o: ../../design/model.h edit-menu.o: ../../design/iv-support.h edit-menu.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/world.h edit-menu.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/scene.h edit-menu.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/interactor.h edit-menu.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/defs.h edit-menu.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/menu.h edit-menu.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/box.h edit-menu.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/control.h edit-menu.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/subject.h edit-menu.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/resource.h file-menu.o: ../../design/file-menu.h file-menu.o: ../../design/file.h ../../design/model.h file-menu.o: ../../design/std-macros.h file-menu.o: /usr/include/setjmp.h file-menu.o: /usr/include/sys/feature_tests.h file-menu.o: ../../design/view.h file-menu.o: ../../design/iv-support.h file-menu.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/world.h file-menu.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/scene.h file-menu.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/interactor.h file-menu.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/defs.h file-menu.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/menu.h file-menu.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/box.h file-menu.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/control.h file-menu.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/subject.h file-menu.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/resource.h file.o: ../../design/file.h ../../design/model.h file.o: ../../design/std-macros.h /usr/include/setjmp.h file.o: /usr/include/sys/feature_tests.h file.o: ../../design/quit-exception.h file.o: /usr/include/stdio.h /usr/include/sys/va_list.h intlist.o: /usr/include/stdio.h intlist.o: /usr/include/sys/feature_tests.h intlist.o: /usr/include/sys/va_list.h intlist.o: ../../design/intlist.h ../../design/list.h intlist.o: ../../design/std-macros.h intlist.o: /usr/include/setjmp.h list.o: /usr/include/stdio.h list.o: /usr/include/sys/feature_tests.h list.o: /usr/include/sys/va_list.h ../../design/list.h list.o: ../../design/std-macros.h /usr/include/setjmp.h model.o: ../../design/model.h ../../design/std-macros.h model.o: /usr/include/setjmp.h model.o: /usr/include/sys/feature_tests.h str.o: ../../design/std-macros.h /usr/include/setjmp.h str.o: /usr/include/sys/feature_tests.h str.o: /usr/include/string.h ../../design/str.h strlist.o: /usr/include/stdio.h strlist.o: /usr/include/sys/feature_tests.h strlist.o: /usr/include/sys/va_list.h strlist.o: /usr/include/string.h ../../design/strlist.h strlist.o: ../../design/list.h ../../design/std-macros.h strlist.o: /usr/include/setjmp.h ../../design/str.h view.o: ../../design/view.h ../../design/std-macros.h view.o: /usr/include/setjmp.h view.o: /usr/include/sys/feature_tests.h view.o: ../../design/model.h ../../design/iv-support.h view.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/world.h view.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/scene.h view.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/interactor.h view.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/defs.h intlist-test.o: /usr/include/stdio.h intlist-test.o: /usr/include/sys/feature_tests.h intlist-test.o: /usr/include/sys/va_list.h intlist-test.o: ../../testing/intlist-test.h intlist-test.o: ../../design/intlist.h ../../design/list.h intlist-test.o: ../../design/std-macros.h /usr/include/setjmp.h str-test.o: /opt/gnu/include/g++/ostream.h str-test.o: /opt/gnu/include/g++/stream.h str-test.o: /opt/gnu/include/g++/iostream.h str-test.o: /opt/gnu/include/g++/streambuf.h str-test.o: /opt/gnu/include/g++/libio.h str-test.o: /opt/gnu/sparc-sun-solaris2.6/include/_G_config.h str-test.o: /usr/include/stddef.h ../../design/str.h strlist-test.o: ../../testing/strlist-test.h strlist-test.o: ../../design/strlist.h ../../design/list.h strlist-test.o: ../../design/std-macros.h /usr/include/setjmp.h strlist-test.o: /usr/include/sys/feature_tests.h strlist-test.o: ../../design/str.h /usr/include/stdio.h strlist-test.o: /usr/include/sys/va_list.h /usr/include/std.h