#### # # Makefile for simple and more advanced use of InterViews string browsers. # # # Model object files. # MODEL_OBJS = # None needed. These are small, self-contained InterViews # examples that are "pure view" in nature, in that they contain # code that will go only a the View part of a full MVP program. # # View object files. # SIMPLE_OBJS = simple.o SIMPLE_HSCROLL_OBJS = simple-hscrolling.o ADVANCED_OBJS = advanced.o strbrowser.o # # 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 = ../ 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 # RELEASE = alpha PROJECTS_DIR = /home/phoenix/faculty1/gfisher/projects/$(RELEASE) PROJECTS_INCLUDE_DIR = $(PROJECTS_DIR)/include PROJECTS_LIB_DIR = $(PROJECTS_DIR)/lib/$(PLATFORM) # # Support doc dir for source code printing purposes # SUPPORT_DOC_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_GRAPHICS_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 \ -lgen # # Compilation flags and related definitions # CFLAGS = -c -g \ -I$(DESIGN_DIR) -I$(PROJECTS_INCLUDE_DIR) -I$(IV_INCLUDE_DIR) \ -Dgcc_2_6_3 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_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: simple advanced # # Build the simple example. # simple: $(SIMPLE_OBJS) $(CC) $(LDFLAGS) $(SIMPLE_OBJS) $(LIBS_g) -o simple # # Build the simple example, with added horizontal scrolling. # simple-hscrolling: $(SIMPLE_OBJS) $(CC) $(LDFLAGS) $(SIMPLE_HSCROLL_OBJS) $(LIBS_g) \ -o simple-hscrolling # # Build the more advanced example. # advanced: $(ADVANCED_OBJS) $(CC) $(LDFLAGS) $(ADVANCED_OBJS) $(LIBS_g) -o advanced # # 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 simple advanced # # Generate dependencies using makedepend. # depend: $(DEPEND_SRCS) makedepend $(CFLAGS) $(DEPEND_DIRS) $? # DO NOT DELETE THIS LINE -- make depend depends on it. advanced.o: /usr/include/stdlib.h /usr/include/sys/feature_tests.h advanced.o: /usr/include/stdio.h /usr/include/sys/va_list.h advanced.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/box.h advanced.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/scene.h advanced.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/interactor.h advanced.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/defs.h advanced.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/button.h advanced.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/subject.h advanced.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/resource.h advanced.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/event.h advanced.o: /usr/include/sys/types.h /usr/include/sys/isa_defs.h advanced.o: /usr/include/sys/machtypes.h /usr/include/sys/int_types.h advanced.o: /usr/include/sys/select.h /usr/include/sys/time.h advanced.o: /usr/include/sys/time.h advanced.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/frame.h advanced.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/glue.h advanced.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/shape.h advanced.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/message.h advanced.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/scroller.h advanced.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/sensor.h advanced.o: ../strbrowser.h advanced.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/streditor.h advanced.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/tray.h advanced.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/world.h advanced.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/quit-exception.h advanced.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/std-macros.h advanced.o: /usr/include/setjmp.h simple-hscrolling.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/box.h simple-hscrolling.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/scene.h simple-hscrolling.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/interactor.h simple-hscrolling.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/defs.h simple-hscrolling.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/button.h simple-hscrolling.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/subject.h simple-hscrolling.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/resource.h simple-hscrolling.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/scroller.h simple-hscrolling.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/world.h simple-hscrolling.o: ../strbrowser.h simple.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/box.h simple.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/scene.h simple.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/interactor.h simple.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/defs.h simple.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/button.h simple.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/subject.h simple.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/resource.h simple.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/scroller.h simple.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/strbrowser.h simple.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/world.h strbrowser.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/bitmap.h strbrowser.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/defs.h strbrowser.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/resource.h strbrowser.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/button.h strbrowser.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/interactor.h strbrowser.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/subject.h strbrowser.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/cursor.h strbrowser.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/font.h strbrowser.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/painter.h strbrowser.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/perspective.h strbrowser.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/sensor.h strbrowser.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/event.h strbrowser.o: /usr/include/sys/types.h /usr/include/sys/feature_tests.h strbrowser.o: /usr/include/sys/isa_defs.h /usr/include/sys/machtypes.h strbrowser.o: /usr/include/sys/int_types.h /usr/include/sys/select.h strbrowser.o: /usr/include/sys/time.h /usr/include/sys/time.h strbrowser.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/shape.h strbrowser.o: ../strbrowser.h strbrowser.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/textdisplay.h strbrowser.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/Bitmaps/hand.bm strbrowser.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/Bitmaps/handMask.bm strbrowser.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/Bitmaps/dfast.bm strbrowser.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/Bitmaps/dfastMask.bm strbrowser.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/Bitmaps/ufast.bm strbrowser.o: /home/phoenix/faculty1/gfisher/projects/alpha/include/InterViews/Bitmaps/ufastMask.bm strbrowser.o: /usr/include/string.h /usr/include/math.h strbrowser.o: /usr/include/stdlib.h