 
cflags    = $(CFLAGS)
cppflags  = $(CFLAGS)
fflags    = $(CFLAGS)

cc        = cl.exe
ccomp     = $(cc) /nologo /ML /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /Fo"$(bin)\\" /Fd"$(bin)\\" /FD /c
clink   = link.exe kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386

cpp       = cl.exe
cppcomp   = $(cpp) /nologo /ML /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /c
cpplink   = link.exe kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386

####for       = f77
####fcomp     = $(for) -c -I$(inc) $(fflags)
####flink     = $(for)

####lexflags  =
####lex       = lex $(lexflags)

####yaccflags =
####yacc      = yacc $(yaccflags)

ar        = link.exe -lib
ranlib    = ranlib

!if defined (tag)
!else
!if defined (CMTCONFIG)
tag = $(CMTCONFIG) 
!else
tag = VisualC
!endif
!endif

src       = ../src/
inc       = ../src/
mgr       = ../mgr/
cmt       = ../cmt/
bin       = ..\$(tag)\
shortbin  = ..\$(tag) 

build_strategy = rebuild_makefiles
build_dependencies = echo


#---------------------------------------------
# Controlling the verbosity of Make
#

!if defined (QUIET)
LEX_QUIET = 1
YACC_QUIET = 1
C_QUIET = 1
CPP_QUIET = 1
FORTRAN_QUIET = 1
JAVA_QUIET = 1
LINK_QUIET = 1
LIB_QUIET = 1
CLEANUP_QUIET = 1
silent = @
echo = @echo 
!else
silent =
echo = echo 
!endif

!if defined (LEX_QUIET)
lex_silent = @
lex_echo = @echo rebuilding 
!else
lex_silent =
lex_echo = -@ $(echo)
!endif

!if defined (YACC_QUIET)
yacc_silent = @
yacc_echo = @echo rebuilding 
!else
yacc_silent =
yacc_echo = -@ $(echo)
!endif

!if defined (C_QUIET)
c_silent = @
c_echo = @echo rebuilding 
!else
c_silent =
c_echo = -@ $(echo)
!endif

!if defined (CPP_QUIET)
cpp_silent = @
cpp_echo = @echo rebuilding 
!else
cpp_silent =
cpp_echo = -@ $(echo)
!endif

!if defined (FORTRAN_QUIET)
fortran_silent = @
fortran_echo = @echo rebuilding 
!else
fortran_silent =
fortran_echo = -@ $(echo)
!endif

!if defined (JAVA_QUIET)
java_silent = @
java_echo = @echo rebuilding 
!else
java_silent =
java_echo = -@ $(echo)
!endif

!if defined (LINK_QUIET)
link_silent = @
link_echo = @echo rebuilding 
!else
link_silent =
link_echo = -@ $(echo)
!endif

!if defined (LIB_QUIET)
lib_silent = @
lib_echo = @echo rebuilding 
!else
lib_silent =
lib_echo = -@ $(echo)
!endif

!if defined (CLEANUP_QUIET)
cleanup_silent = @
cleanup_echo = @echo removing 
!else
cleanup_silent =
cleanup_echo = @ $(echo)
!endif

cmtexe = $(CMTROOT)\$(CMTBIN)\cmt.exe

!if exist ("$(cmtexe)")
!if [$(cmtexe) -quiet show macro package >package.nmake] == 0
!endif
!endif

!if exist ("$(cmtexe)")
!if [cmt -quiet build tag_makefile -tag=$(tag) >tag.nmake] == 0
!endif
!endif

!if exist ("$(cmtexe)")
!if [cmt -quiet -tag=$(tag) filter tag.nmake $(tag).nmake] == 0
!endif
!endif

!include package.nmake

!include $(tag).nmake

all :: checkuses

checkuses ::
!if exist ("$(cmtexe)")
	@$(cmtexe) check configuration
!endif
	@echo "" >checkuses

dirs :: checkuses
	@if not exist requirements echo "No requirements file"
	@if not exist $(bin) mkdir $(bin)
	@del checkuses

javadirs :: checkuses
	@if not exist requirements echo "No requirements file"
	@if not exist $(javabin) mkdir $(javabin)
	@del checkuses

config ::

configclean ::
	del *nmake* setup.* cleanup.*

help :: dirs
	@echo --------------------------------------------------------------------------
	@echo You may select one of the following make targets :
	@echo  
	@echo help        : this help
	@echo all         : rebuild everything according to the $$(constituents) macro
	@echo               (this is the default target)
	@echo clean       : remove everything that can be rebuilt
	@echo configclean : remove configuration files (*.nmake)
	@echo  
	@echo check :
	@echo               run all applications defined with the -check option
	@echo  
	@echo everywhere [target=...] : 
	@echo               o Rebuild on all plateforms specified in the $$(everywhere) macro
	@echo               o Use "cmt show macro everywhere -tag=<site>" to check it
	@echo               o The "target" option permits to transmit a target to the remote site

always ::


