#### # # Makefile for building simple InterViews menu examples. # # # Model object files. # OBJS = menu.o SRCS = ../menu.c OBJS2 = menu2.o SRCS2 = ../menu2.c OBJS3 = menu3.o SRCS3 = ../menu3.c OBJS4 = menu4.o SRCS4 = ../menu4.c OBJS5 = menu5.o SRCS5 = ../menu5.c OBJS6 = menu6.o # # View object files. # VIEW_OBJS = # None needed. These are small self-contained examples, with # no separate view classes. # # Process object files. # PROCESS_OBJS = # None needed # # All of the object files. # ALL_OBJS = $(MODEL_OBJS) $(VIEW_OBJS) $(PROCESS_OBJS) # # Relative paths to design and implementation directories. # DESIGN_DIR = ../../design IMPLE_DIR = .. # # Platform type. Use to specify what platform the make is on. At Cal Poly, # the following platform names are used: # # SUN4G: SUN4s galaxy and phoenix # SUN4K: SUN4 kdat # HP700: HP 700 cobra cluster # HP400: HP 400 garden cluster # # Note that on kdat, the SUN4K directory may not always exists. If it does # not, the SUN4G directory holds the executables. This is because # galaxy/phoenix executables will run on kdat, but in order to make native on # kdat, a different makefile is need to accomodate differences between kdat # and galaxy, such as absolute file paths. # PLATFORM = SUN4G # # Paths to relevant root project directories # PROJECTS_DIR = /home/phoenix/faculty1/gfisher/projects/alpha PROJECTS_INCLUDE_DIR = $(PROJECTS_DIR)/include PROJECTS_LIB_DIR = $(PROJECTS_DIR)/lib/$(PLATFORM) SUPPORT_DOC_DIR = $(PROJECTS_DIR)/support/documentation # # Paths to the relevant directories of the InterViews GUI toolkit # IV_DIR = $(PROJECTS_DIR)/interviews IV_INCLUDE_DIR = $(IV_DIR)/design IV_LIB_DIR = $(IV_DIR)/implementation/libInterViews/$(PLATFORM) IV_LIB_GRAPHICS_DIR = $(IV_DIR)/implementation/libgraphic/$(PLATFORM) # # InterViews libraries; the _g version is compiled with debugging on, so that # GUI library functions can be traced if necessary. # IV_LIBS = $(IV_LIB_DIR)/libInterViewsX11.a $(IV_LIB_DIR)/libgraphic.a IV_LIBS_g = $(IV_LIB_DIR)/libInterViewsX11-g.a \ $(IV_LIB_GRAPHICS_DIR)/libgraphic-g.a # # X Windows and other system libraries. # X_LIB = -lX11 # X Windows lib OTHER_LIBS = -lsupport \ -liv-local \ -lm -lg++ \ -lgen # # Compilation flags and related definitions # CFLAGS = -c -g \ -I$(DESIGN_DIR) -I$(PROJECTS_INCLUDE_DIR) -I$(IV_INCLUDE_DIR) \ -Dgcc_2_6_3 -fhandle-exceptions \ -DOLD_EXCEPTION_HANDLING LDFLAGS = -g -L/usr/openwin/lib -L$(PROJECTS_LIB_DIR) CC = g++ GCC = gcc LIBS = $(IV_LIBS) $(X_LIB) $(OTHER_LIBS) LIBS_g = $(IV_LIBS_g) $(X_LIB) $(OTHER_LIBS) DEPEND_DIRS = -I$(IV_SRC_DIR) DEPEND_SRCS = $(IMPLE_DIR)/*.C DEPEND_FLAGS = -I$(DESIGN_DIR) -I$(PROJECTS_INCLUDE_DIR) -I$(IV_INCLUDE_DIR) \ -Dgcc_2_6_3 # # Default definition to make. # default: all # # Build all of the menu examples. # all: menu menu2 menu3 menu4 menu5 menu6 menu: $(OBJS) $(CC) $(LDFLAGS) $(OBJS) $(LIBS_g) -o menu menu2: $(OBJS2) $(CC) $(LDFLAGS) $(OBJS2) $(LIBS_g) -o menu2 menu3: $(OBJS3) $(CC) $(LDFLAGS) $(OBJS3) $(LIBS_g) -o menu3 menu4: $(OBJS4) $(CC) $(LDFLAGS) $(OBJS4) $(LIBS_g) -o menu4 menu5: $(OBJS5) $(CC) $(LDFLAGS) $(OBJS5) $(LIBS_g) -o menu5 menu6: $(OBJS6) $(CC) $(LDFLAGS) $(OBJS6) $(LIBS_) -o menu6 # # Build the design only, which means just compile the .h files, all of which # are included in compile-stub.C. # design: $(CC) $(CFLAGS) $(DESIGN_DIR)/compile-stub.C # # Generic pattern rules to make all of the rolodex implemenation files. # %.o: $(IMPLE_DIR)/%.C $(CC) $(CFLAGS) $< %.E: $(IMPLE_DIR)/%.C $(CC) -E $(CFLAGS) $< > $*.E # # Delete all object files. # clean: rm -f *.o menu menu? # # Generate dependencies using makedepend. # depend: $(DEPEND_SRCS) makedepend $(DEPEND_FLAGS) $(DEPEND_DIRS) $? print: print_design print_implementation print_support print_design: csh -f -c "cd $(DESIGN_DIR); \ $(SUPPORT_DOC_DIR)/codeprint2.csh \ ../documentation/formatted-code \ roldex/design \ *.h" print_implementation: csh -f -c "cd $(IMPLE_DIR); \ $(SUPPORT_DOC_DIR)/codeprint2.csh \ ../documentation/formatted-code \ roldex/implementation \ *.C" print_support: csh -f -c "cd $(PROJECTS_INCLUDE_DIR) ; \ ../support/documentation/codeprint2.csh \ ../rolodex/documentation/formatted-code \ support/design \ view.h model.h" # DO NOT DELETE THIS LINE -- make depend depends on it. menu2.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/box.h menu2.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/scene.h menu2.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/interactor.h menu2.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/defs.h menu2.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/glue.h menu2.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/shape.h menu2.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/menu.h menu2.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/control.h menu2.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/subject.h menu2.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/resource.h menu2.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/tray.h menu2.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/world.h menu2.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h menu2.o: /home/phoenix/faculty1/gfisher/projects/work/include/std-macros.h menu2.o: /usr/include/setjmp.h menu3.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/box.h menu3.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/scene.h menu3.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/interactor.h menu3.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/defs.h menu3.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/glue.h menu3.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/shape.h menu3.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/menu.h menu3.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/control.h menu3.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/subject.h menu3.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/resource.h menu3.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/tray.h menu3.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/world.h menu3.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h menu3.o: /home/phoenix/faculty1/gfisher/projects/work/include/std-macros.h menu3.o: /usr/include/setjmp.h menu4.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/box.h menu4.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/scene.h menu4.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/interactor.h menu4.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/defs.h menu4.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/event.h menu4.o: /usr/include/sys/types.h /usr/include/sys/feature_tests.h menu4.o: /usr/include/sys/isa_defs.h /usr/include/sys/machtypes.h menu4.o: /usr/include/sys/time.h menu4.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/glue.h menu4.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/shape.h menu4.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/menu.h menu4.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/control.h menu4.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/subject.h menu4.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/resource.h menu4.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/painter.h menu4.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/sensor.h menu4.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/tray.h menu4.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/world.h menu4.o: /usr/include/stdio.h menu4.o: /home/phoenix/faculty1/gfisher/projects/work/include/std-macros.h menu4.o: /usr/include/setjmp.h menu5-bogus.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/box.h menu5-bogus.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/scene.h menu5-bogus.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/interactor.h menu5-bogus.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/defs.h menu5-bogus.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/glue.h menu5-bogus.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/shape.h menu5-bogus.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/menu.h menu5-bogus.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/control.h menu5-bogus.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/subject.h menu5-bogus.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/resource.h menu5-bogus.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/tray.h menu5-bogus.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/world.h menu5-bogus.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h menu5-bogus.o: /home/phoenix/faculty1/gfisher/projects/work/include/std-macros.h menu5-bogus.o: /usr/include/setjmp.h menu5.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/box.h menu5.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/scene.h menu5.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/interactor.h menu5.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/defs.h menu5.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/glue.h menu5.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/shape.h menu5.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/menu.h menu5.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/control.h menu5.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/subject.h menu5.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/resource.h menu5.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/tray.h menu5.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/world.h menu5.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h menu5.o: /home/phoenix/faculty1/gfisher/projects/work/include/std-macros.h menu5.o: /usr/include/setjmp.h menu6.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/box.h menu6.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/scene.h menu6.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/interactor.h menu6.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/defs.h menu6.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/glue.h menu6.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/shape.h menu6.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/menu.h menu6.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/control.h menu6.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/subject.h menu6.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/resource.h menu6.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/tray.h menu6.o: /home/phoenix/faculty1/gfisher/projects/work/include/InterViews/world.h menu6.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h menu6.o: /home/phoenix/faculty1/gfisher/projects/work/include/std-macros.h menu6.o: /usr/include/setjmp.h