campo-sirio/xi/makefile.wm
alex ebabab8c26 This commit was generated by cvs2svn to compensate for changes in r5761,
which included commits to RCS files with non-trunk default branches.

git-svn-id: svn://10.65.10.50/trunk@5762 c028cbd2-c16b-5b4b-a496-9718f37d4682
1997-12-17 12:57:49 +00:00

185 lines
4.1 KiB
Plaintext
Executable File

#################################################################
#
# 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
<<NOKEEP
xiutils.obj: $(SRC)\xiutils.c
$(CC) -c $(C_FLAGS) $(SRC)\$*.c
xitext.obj: $(SRC)\xitext.c
$(CC) -c $(C_FLAGS) $(SRC)\$*.c
xistx.obj: $(SRC)\xistx.c
$(CC) -c $(C_FLAGS) $(SRC)\$*.c
xilm.obj: $(SRC)\xilm.c
$(CC) -c $(C_FLAGS) $(SRC)\$*.c
xilm2.obj: $(SRC)\xilm2.c
$(CC) -c $(C_FLAGS) $(SRC)\$*.c
xilm3.obj: $(SRC)\xilm3.c
$(CC) -c $(C_FLAGS) $(SRC)\$*.c
xitree.obj: $(SRC)\xitree.c
$(CC) -c $(C_FLAGS) $(SRC)\$*.c
xiheap.obj: $(SRC)\xiheap.c
$(CC) -c $(C_FLAGS) $(SRC)\$*.c
xi.obj: $(SRC)\xi.c
$(CC) -c $(C_FLAGS) $(SRC)\$*.c
xi2.obj: $(SRC)\xi2.c
$(CC) -c $(C_FLAGS) $(SRC)\$*.c
xicf.obj: $(SRC)\xicf.c
$(CC) -c $(C_FLAGS) $(SRC)\$*.c
xidbg.obj: $(SRC)\xidbg.c
$(CC) -c $(C_FLAGS) $(SRC)\$*.c
xilmst.obj: $(SRC)\xilmst.c
$(CC) -c $(C_FLAGS) $(SRC)\$*.c
xiport.obj: $(SRC)\xiport.c
$(CC) -c $(C_FLAGS) $(SRC)\$*.c
xierr.obj: $(SRC)\xierr.c
$(CC) -c $(C_FLAGS) $(SRC)\$*.c
xibitmap.obj: $(SRC)\xibitmap.c
$(CC) -c $(C_FLAGS) $(SRC)\$*.c