################################################################# # # Compiler: Microsoft Visual C++ # Orca Software distributes these makefiles for convenience. Having a # makefile for a particular platform does not imply that you have a # license to use the source code on that platform. Before using the # source code on any given platform, make sure that you have purchased # the appropriate license. # ################################################################## APP_MODEL = LARGE APP_DEBUG = FALSE # File pathnames XVT_DIR = $(XVT_PTK_DIR) XVT_INCDIR = $(XVT_DIR)\include XVT_LIBDIR = $(XVT_DIR)\lib XVT_BINDIR = $(XVT_DIR)\bin XI_DIR = \xi XI_INCDIR = $(XI_DIR)\include XI_LIBDIR = $(XI_DIR)\lib LIB = $(XI_LIBDIR)\lmxiw.lib all: $(LIB) # # Compiler variables # # Note: The debug variables are only enabled when APP_DEBUG is # set to TRUE above. # -Od: Turn off optimization # -Zi: Compile for debugging # -c : Compile without linking # -G2s: Compile for 286 instruction set. # -W3: Turn on warning level 3. # -Zp: Pack structure members. CC = cl CDEBUG = -Od -Zi CFLAGS = -G2s -GA -GEs -W3 -Zp -DWSWIN -DXI_USE_XVT -DXI_R4_API # # Link variables # # Note: The debug variables are only enabled when APP_DEBUG is # set to TRUE above. # /CO : Add debugging information for Codeview. # /ALIGN: aligns segment on 16 byte boundaries. # /NOD: Don't search for default libraries. # /NOE: Prevent linker from searching extended dictionaries. # LINK = link LDEBUG = /CO LFLAGS = /ALIGN:16/NOD/NOE # # Debug variables # # Do not modify these. !IF "$(APP_DEBUG)" == "TRUE" C_FLAGS_DEBUG = $(CDEBUG) -DDEBUG L_FLAGS_DEBUG = $(LDEBUG) !ELSE C_FLAGS_DEBUG = L_FLAGS_DEBUG = !ENDIF # # Memory Model variables # # Do not modify these. C_FLAGS_MODEL = -AL C_LIBS = llibcew libw oldnames XVT_LIBS_MODEL = $(XVT_LIBDIR)\xvtwmapi.lib $(XVT_LIBDIR)\xvtwmhn.lib XI_LIB_MODEL = $(XI_LIBDIR)\lmxiw.lib ########################################################################## # # Library Variables # C_FLAGS = $(C_FLAGS_DEBUG) $(CFLAGS) $(C_FLAGS_MODEL) \ -I. -I$(XVT_INCDIR) -I$(XI_INCDIR) -DSTRICT L_FLAGS = $(L_FLAGS_DEBUG) $(LFLAGS) L_LIBS = $(C_LIBS) $(XVT_LIBS_MODEL) $(XI_LIB_MODEL) L_DEFS = $(XVT_LIBDIR)\xvtwapp.def ##################################################################### # # Suffix rules # .c.obj: $(CC) $(C_FLAGS) -Fo$* $? .url.rc: $(XVT_BINDIR)\curl -r rcwin -s -I$(XVT_INCDIR) $*.url .url.res: $(XVT_BINDIR)\curl -r rcwin -s -I$(XVT_INCDIR) $*.url rc -r $*.rc .rc.res: rc -r $*.rc .SUFFIXES: .rc .url .obj.exe: echo $*.obj > wiapp.tmp echo $@ >> wiapp.tmp echo nul >> wiapp.tmp echo $(L_LIBS) >> wiapp.tmp echo $(L_DEFS) >> wiapp.tmp $(LINK) $(L_FLAGS) @wiapp.tmp del wiapp.tmp rc -k -30 $*.res clean: -del *.exe -del *.obj -del *.res -del *.rc OBJS = xi.obj xilm2.obj xilm3.obj xiutils.obj xitext.obj xistx.obj xitree.obj xiheap.obj xilm.obj xi2.obj xicf.obj xidbg.obj xilmst.obj xiport.obj xierr.obj xibitmap.obj SRC = .. $(LIB): $(OBJS) del $(LIB) lib @<< $(LIB)& $(OBJS), nul <