include ../../../makeinit.vms OBJLIB = $(IMAGE_NAME).$(OLB_SUFFIX) # Alpha only compiler flags. ifdef ALPHA CFLAGS += /pointer_size=short PTRSIZ=32 DEST = [.Alpha] endif # Itanium only compiler flags. ifdef IA64 CFLAGS += /pointer_size=short PTRSIZ=32 DEST = [.ia64] endif # VAX only compiler flags. ifdef VAX CFLAGS = PTRSIZ = DEST = [.VAX] endif IMAGE_NAME = sim_client # Compiler flags we always want CFLAGS += /obj=$@/prefix=all /include=([],[-],krb$$root:[include]) LFLAGS = /exe=$(DEST) ifdef DEBUG CFLAGS += /debug/nooptimize/lis/show=all DEFINES += ,"DEBUG=1" LFLAGS += /debug/map/full else LFLAGS += /nodebug ### /notraceback endif CFLAGS += /define=($(DEFINES)) CSRCS = SIM_SERVER.C BASE_H_FILES = [-]SIMPLE.H #Rules OBJS = $(CSRCS:.c=.$(OBJ_SUFFIX)) TARGETS = $(DEST)sim_server.exe all: $(TARGETS) $(DEST)sim_server.exe: $(DEST)sim_server.obj link $(LFLAGS) $(DEST)sim_server.obj,[]krblnk$(PTRSIZ).opt/option $(DEST)sim_server.obj: sim_server.c cc $(CFLAGS) $? $(DEST)$(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 MIT simple server" @$(ECHO) " gmake ""DEBUG=1"" - Builds everything with DEBUG" @$(ECHO) "" @$(ECHO) " gmake clean - Cleans the server directory"