#-------------------------------------------------------------------- # # Name: Makefile # # Destcription: # Makefile for the Pretty Print (pprint) ITEX Access example. # # This file uses the variables itexaccessroot and itexaccesscompiler. # These variables can either be set in this file, or using setenv or # on the command line to make. The suggestion is to use "source" of # the "telelogic.sou" file in the installation to set these variables # using setenv to suitable default values. # # Be sure to assign a suitable value to the SYSLIBS variable too. # The default value for this is set for the Solaris environment. # # Example invokations (source of telelogic.sou beforehand assumed): # For Solaris: # make (uses CC as compiler - solaris syslibs) # make itexaccesscompiler=g++ (uses g++ as compiler - solaris syslibs) # # For HP: # make CCC="CC +eh" SYSLIBS="" (uses CC as compiler - no syslibs) # make itexaccesscompiler=g++ SYSLIBS="" # (uses g++ as compiler - no syslibs) # #-------------------------------------------------------------------- itexaccess = $(itexaccessroot)/$(itexaccesscompiler) ACCESS-INCL = $(itexaccess)/include ACCESS-LIB = $(itexaccess)/lib #SYSLIBS = SYSLIBS = -lsocket -lnsl -ldl CCC = $(itexaccesscompiler) TARGET = pprint OBJS = $(TARGET)_pre_post.o \ init_$(TARGET)_pre_post.o \ $(TARGET).o #-------------------------------------------------------------------- $(TARGET) : $(OBJS) $(CCC) -L$(ACCESS-LIB) -o $@ $(OBJS) -laccess $(SYSLIBS) #-------------------------------------------------------------------- .SUFFIXES: .cc .o .cc.o : $(CCC) -I$(ACCESS-INCL) -c -o $@ $< #-------------------------------------------------------------------- clean : /bin/rm -f $(TARGET) $(OBJS)