#### # # Makefile for building simple InterViews color examples. # # # Object files. # ALL_OBJS = color-test.o # # 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 = PROJECTS_DIR = /home/phoenix/faculty1/gfisher/work PROJECTS_INCLUDE_DIR = $(PROJECTS_DIR)/include PROJECTS_LIB_DIR = $(PROJECTS_DIR)/lib/$(PLATFORM) SUPPORT_DOC_DIR = $(PROJECTS_DIR)/support/documentation # # Support doc dir for source code printing purposes # 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_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 \ -I/opt/gnu/include/g++ -I/opt/gnu/sparc-sun-solaris2.6/include # # Default definition to make. # default: color-test # # Build the color example. # color-test: $(ALL_OBJS) $(CC) $(LDFLAGS) $(ALL_OBJS) $(LIBS_g) -o color-test # # 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 implemenation files. # %.o: $(IMPLE_DIR)/%.C $(CC) $(CFLAGS) $< %.E: $(IMPLE_DIR)/%.C $(CC) -E $(CFLAGS) $< > $*.E # # Delete all object files. # clean: rm -f *.o color-test # # Generate dependencies using makedepend. # depend: $(DEPEND_SRCS) makedepend $(DEPEND_FLAGS) $? # # Generate printable PostScript output for source files. Format is two-column # 7 point courier font in landscape page layout. # print: print_design print_implementation print_design: csh -f -c "cd $(DESIGN_DIR); \ $(SUPPORT_DOC_DIR)/codeprint2.csh \ ../documentation/formatted-code \ color-test/design \ *.h" print_implementation: csh -f -c "cd $(IMPLE_DIR); \ $(SUPPORT_DOC_DIR)/codeprint2.csh \ ../documentation/formatted-code \ color-test/implementation \ *.C" # DO NOT DELETE THIS LINE -- make depend depends on it. color-test.o: /home/phoenix/faculty1/gfisher/work/interviews/design/InterViews/color.h color-test.o: /home/phoenix/faculty1/gfisher/work/interviews/design/InterViews/resource.h color-test.o: /home/phoenix/faculty1/gfisher/work/interviews/design/InterViews/defs.h color-test.o: /home/phoenix/faculty1/gfisher/work/interviews/design/InterViews/graphic.h color-test.o: /home/phoenix/faculty1/gfisher/work/interviews/design/InterViews/Graphic/base.h color-test.o: /home/phoenix/faculty1/gfisher/work/interviews/design/InterViews/painter.h color-test.o: /home/phoenix/faculty1/gfisher/work/interviews/design/InterViews/Graphic/geomobjs.h color-test.o: /home/phoenix/faculty1/gfisher/work/interviews/design/InterViews/Graphic/persistent.h color-test.o: /home/phoenix/faculty1/gfisher/work/interviews/design/InterViews/Graphic/classes.h color-test.o: /home/phoenix/faculty1/gfisher/work/interviews/design/InterViews/Graphic/ppaint.h color-test.o: /home/phoenix/faculty1/gfisher/work/interviews/design/InterViews/paint.h color-test.o: /home/phoenix/faculty1/gfisher/work/interviews/design/InterViews/brush.h color-test.o: /home/phoenix/faculty1/gfisher/work/interviews/design/InterViews/font.h color-test.o: /home/phoenix/faculty1/gfisher/work/interviews/design/InterViews/pattern.h color-test.o: /home/phoenix/faculty1/gfisher/work/interviews/design/InterViews/Graphic/objman.h color-test.o: /home/phoenix/faculty1/gfisher/work/interviews/design/InterViews/Graphic/pfile.h color-test.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h color-test.o: /usr/include/sys/va_list.h color-test.o: /home/phoenix/faculty1/gfisher/work/interviews/design/InterViews/Graphic/ref.h color-test.o: /home/phoenix/faculty1/gfisher/work/interviews/design/InterViews/Graphic/reflist.h color-test.o: /home/phoenix/faculty1/gfisher/work/interviews/design/InterViews/Graphic/grconstruct.h color-test.o: /home/phoenix/faculty1/gfisher/work/interviews/design/InterViews/sensor.h color-test.o: /home/phoenix/faculty1/gfisher/work/interviews/design/InterViews/event.h color-test.o: /usr/include/sys/types.h /usr/include/sys/isa_defs.h color-test.o: /usr/include/sys/machtypes.h /usr/include/sys/int_types.h color-test.o: /usr/include/sys/select.h /usr/include/sys/time.h color-test.o: /usr/include/sys/time.h color-test.o: /home/phoenix/faculty1/gfisher/work/interviews/design/InterViews/world.h color-test.o: /home/phoenix/faculty1/gfisher/work/interviews/design/InterViews/scene.h color-test.o: /home/phoenix/faculty1/gfisher/work/interviews/design/InterViews/interactor.h color-test.o: /home/phoenix/faculty1/gfisher/work/interviews/design/InterViews/Graphic/grblock.h color-test.o: /home/phoenix/faculty1/gfisher/work/interviews/design/InterViews/Graphic/polygons.h color-test.o: /home/phoenix/faculty1/gfisher/work/interviews/design/InterViews/Graphic/lines.h