##
##               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:+=.obj) cd_exe $(E:+=.exe)

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

install:
	set path=..\..\..\..\..\ia$(IA)\bin;%%path%%
	set lib=..\..\..\..\..\ia$(IA)\lib;%%lib%%
	set include=..\..\..\..\include;%%include%%
	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

!  IF "$F"=="intel" && "$(IA)"=="32"
CCOMPILER = icl
!  ENDIF
!  IF "$F"=="intel" && "$(IA)"=="64"
CCOMPILER = ecl
!  ENDIF
#------------------------------------------------------------------------------
.SUFFIXES:: .c .obj .exe .res

{..\..\source}.c.obj:
	$(CCOMPILER) /c /w /MT /DMKL_VML_CDECL /DMKL_VML_MIXED $<

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

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