#### # # This Makefile defines rules for building list, string, and mvp classes in the # support project. It will be exapanded as new support classes are added. # # # Object files # BASIC_OBJS = intlist.o list.o str.o strlist.o MVP_OBJS = model.o view.o OBJS = $(BASIC_OBJS) $(MVP_OBJS) SALLOC_OBJS = salloc.o salloc++.o table.o str_table.o # # Source files SRCS = $(IMPLE_DIR)/*.C $(IMPLE_DIR)/*.c DEPENDSRCS = $(SRCS) # # Relative paths to design and implementation directories. # DESIGN_DIR = ../../design IMPLE_DIR = .. # # Platform type # PLATFORM = SUN4G # # Paths to relevant Fisher project directories # RELEASE = work PROJECTS_DIR = /home/phoenix/faculty1/gfisher/$(RELEASE) 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) # # 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_DIRS = -I$(IV_SRC_DIR) default: libsupport.a libsalloc.a libsupport.a: $(OBJS) ar cq libsupport.a $(OBJS) libsalloc.a: $(SALLOC_OBJS) ar cq libsalloc.a $(SALLOC_OBJS) %.o: $(IMPLE_DIR)/%.C $(CC) $(CFLAGS) -c $< %.o: $(IMPLE_DIR)/%.c $(GCC) $(CFLAGS) -c $< tests: listtests listtests: listoutput listdiffs listoutput: @csh -q -c "source .makelistoutput" listdiffs: @csh -q -c "source .makelistdiffs" listgood: @csh -q -c "source .makelistgood" clean: rm -f *.o *.a # DO NOT DELETE THIS LINE -- make depend depends on it.