##
##               INTEL CORPORATION PROPRIETARY INFORMATION
##  This software is supplied under the terms of a license agreement or
##  nondisclosure agreement with Intel Corporation and may not be copied
##  or disclosed except in accordance with the terms of that agreement.
##  Copyright(C) 2001-2003, Intel Corporation. All Rights Reserved.
##
## File    : make_exe
## Purpose : support for makefile
##
#===============================================================================
build: install $T

exe: $(E:+=x.obj) cd_exe $(E:+=x.exe)

res: exe md_res $(E:+=x.res)

install:
	set path=..\..\..\..\..\ia$(IA)\bin;%%path%%
	set lib=..\..\..\..\..\ia$(IA)\lib;%%lib%%
	if not exist _results$(IA) md _results$(IA)
	cd _results$(IA)
	if not exist $F md $F
	cd $F
cd_exe:
	if not exist $(LD) md $(LD)
	cd $(LD)
md_res:
	if not exist $(PROC) md $(PROC)
#------------------------------------------------------------------------------
CCOMPILER = cl
FCOMPILER = fl32
FOPTS_OBJ = /c /nowarn /fltconsistency /threads

!  IF "$F"=="intel" && "$(IA)"=="32"
CCOMPILER = icl
FCOMPILER = ifl
FOPTS_OBJ = /c /w /MT
!  ENDIF
!  IF "$F"=="intel" && "$(IA)"=="64"
CCOMPILER = ecl
FCOMPILER = efl
FOPTS_OBJ = /c /w /MT
!  ENDIF
#------------------------------------------------------------------------------
.SUFFIXES:: .f .obj .exe .res

{..\..\source}.f.obj:
	$(FCOMPILER) $(FOPTS_OBJ) $<

{..\}.obj.exe:
	-$(CCOMPILER) /Fm /Fe $< $(MKL_LIB:+=.lib)

.exe.res:
	-$< <..\..\..\data\$(@B).d >$(PROC)\$@
