# **********************************************************************
# * DISCLAIMER OF WARRANTIES:                                          *
# *                                                                    *
# * The following enclosed code is sample code created by IBM          *
# * Corporation.  This sample code is not part of any standard IBM     *
# * product and is provided to you solely for the purpose of assisting *
# * you in the development of your applications.  The code is provided *
# * "AS IS", without warranty of any kind.  IBM shall not be liable    *
# * for any damages arising out of your use of the sample code, even   *
# * if they have been advised of the possibility of such damages       *
# *                                                                    *
# **********************************************************************
#
# sample07 makefile (method 1)

CFLAGS=/Ti /Gd /I.\dll
LDFLAGS=/de /map
LD=ilink
CC=icc

all: vfdll main.exe

.cpp.obj:
        $(CC) $(CFLAGS) /Fo"%|dpfF.obj" /C %s

main.exe: main.obj .\dll\vf.lib
        $(LD) $(LDFLAGS) -out:$@ $**

vfdll:
        cd .\dll
        $(MAKE) -nologo vf.dll
        cd ..
        copy .\dll\vf.dll .

.\dll\vf.lib:
        cd .\dll
        $(MAKE) -nologo vf.lib
        cd ..

main.obj: main.cpp .\dll\vf.h

clean:
        -del *.obj *.exe *.dbg *.dll *.map 2>nul:
        cd .\dll
        $(MAKE) -nologo clean

