include ../../makeinit.vms OBJLIB = $(IMAGE_NAME).$(OLB_SUFFIX) # Alpha only compiler flags. ifdef ALPHA ifdef 64BIT CFLAGS += /pointer_size=long DEST = [.64bit] OPT = krblnk64.opt else CFLAGS += /pointer_size=short DEST = [.32bit] OPT = krblnk32.opt endif # 64bit endif # Itanium only compiler flags. ifdef IA64 ifdef 64BIT CFLAGS += /pointer_size=long DEST = [.64bit] OPT = krblnk64.opt else CFLAGS += /pointer_size=short DEST = [.32bit] OPT = krblnk32.opt endif # 64bit endif ifdef VAX DEST = [.vax] OPT = krblnk.opt endif # VAX only compiler flags. ifdef VAX CFLAGS += endif # Compiler flags we always want CFLAGS += /prefix=all /include=([],krb$$root:[include]) LFLAGS += /map=$(DEST)/full ifdef DEBUG CFLAGS += /debug/nooptimize/lis/show=all DEFINES += ,"DEBUG=1" LFLAGS += /debug else LFLAGS += /nodebug ### /notraceback endif CFLAGS += /define=($(DEFINES)) CSRCS = krb_client.c krb_server.c krb_common.c #Rules OBJS = $(CSRCS:.c=.$(OBJ_SUFFIX)) TARGETS = $(DEST)krb-client.exe $(DEST)krb-server.exe all: $(TARGETS) $(DEST)krb-client.exe: $(DEST)krb_client.obj, $(DEST)krb_common.obj link/exe=$@ $(LFLAGS) $(DEST)krb_client.obj,$(DEST)krb_common.obj, $(OPT)/option $(DEST)krb-server.exe: $(DEST)krb_server.obj, $(DEST)krb_common.obj link/exe=$@ $(LFLAGS) $(DEST)krb_server.obj,$(DEST)krb_common.obj, $(OPT)/option $(DEST)krb_client.obj: krb_client.c cc $(CFLAGS)/obj=$@ $? $(DEST)krb_server.obj: krb_server.c cc $(CFLAGS)/obj=$@ $? $(DEST)krb_common.obj: krb_common.c cc $(CFLAGS)/obj=$@ $? $(OBJLIB): $(OBJS) @if f$$search("$@") .eqs. "" then library /create $@ library /replace /log $@ $? clean: @if f$$search("$(DEST)*.$(OBJ_SUFFIX)") .nes. "" then delete /log $(DEST)*.$(OBJ_SUFFIX);* @if f$$search("$(DEST)*.$(SHR_SUFFIX)") .nes. "" then delete /log $(DEST)*.$(SHR_SUFFIX);* @if f$$search("$(DEST)*.lis") .nes. "" then delete /log $(DEST)*.lis;* @if f$$search("$(DEST)*.map") .nes. "" then delete /log $(DEST)*.map;* @if f$$search("$(DEST)$(OBJLIB)") .nes. "" then delete /log $(DEST)$(OBJLIB);* help: @$(ECHO) " gmake -? - Displays general Gmake command line help" @$(ECHO) " gmake help - Displays help for using/typing gmake in this directory" @$(ECHO) "" @$(ECHO) " gmake - Builds the VMS KRB client & server in the 32bit directory" @$(ECHO) " gmake ""DEBUG=1"" - Builds with DEBUG." @$(ECHO) "" @$(ECHO) " gmake ""64BIT=1"" - Builds the VMS KRB client & server in the 64bit directory" @$(ECHO) " gmake ""64BIT=1"" ""DEBUG=1"" - Builds with DEBUG" @$(ECHO) "" @$(ECHO) " gmake ""VAX=1"" - Builds the VAX/VMS KRB client & server in this directory" @$(ECHO) " gmake ""VAX=1"" ""DEBUG=1"" - Builds the VAX/VMS KRB images with DEBUG" @$(ECHO) "" @$(ECHO) " gmake ""IA64=1"" - Builds Itanium VMS KRB client & server in this directory" @$(ECHO) " gmake ""IA64=1"" ""DEBUG=1"" - Builds the Itanium VMS KRB images with DEBUG" @$(ECHO) "" @$(ECHO) " gmake clean - Cleans the default 32BIT or VAX directory" @$(ECHO) " gmake clean ""64BIT=1"" - Cleans the 64BIT Alpha directory"