include <ntwin32.mak>

MAKE = nmake

#
# The XXX_DIR variables below MUST have ABSOLUTE path. Since this file
# is sourced from several directories relative path specification will
# be simple wrong.
#
SRC_DIR = c:\users\gershon\sm\src

#
# All libraries created will be installed into the LIB_DIR directory.
#
LIB_DIR = $(SRC_DIR)\lib

#
# All includes files associated with the installed libraries will be
# installed into the INC_DIR directory.
#
INC_DIR = $(SRC_DIR)\inc

#
# All binaries created will be installed into the BIN_DIR directory.
#
BIN_DIR = $(SRC_DIR)\bin

#
# Flags for Mircosoft C compiler, Windows NT release 3.1, August 1993.
#
IRITCC = cl386
DFLAGS = -D__WINNT__ -D_X86_=1 -DWIN32 -D_MT -DRAND -W3 -nologo
IRITLIB = $(implib)
# CFLAGS = $(DFLAGS) 
# IRITCONLINK = $(link) $(conflags)
# IRITGUILINK = $(link) $(guiflags)
CFLAGS = -Zi -Od  $(DFLAGS)
IRITCONLINK = $(link) $(conflags) $(linkdebug)
IRITGUILINK = $(link) $(guiflags) $(linkdebug)
GRAPDRVS = wntdrvs.exe nuldrvs.exe

#
# Default rule for compilation.
#
.c.obj:
	$(IRITCC) $(CFLAGS) -I. -I$(INC_DIR) -c $<

#
# All libraries.
#
PRSR_LIB = $(LIB_DIR)\prsr_lib.lib
GEOM_LIB = $(LIB_DIR)\geom_lib.lib
CAGD_LIB = $(LIB_DIR)\cagd_lib.lib
MISC_LIB = $(LIB_DIR)\misc_lib.lib
GIF_LIB = $(LIB_DIR)\gif_libl.lib

LIBS = $(GEOM_LIB) $(PRSR_LIB) $(CAGD_LIB) $(MISC_LIB) # $(GIF_LIB)
W32CONLIBS = wsock32.lib $(conlibs)
W32GUILIBS = wsock32.lib $(guilibs)
W32GUIMTLIBS = wsock32.lib $(guilibsmt)
