# **********************************************************************
# * 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       *
# *                                                                    *
# **********************************************************************
#
# sample05 makefile

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

all: sample05dll main05.exe

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

main05.exe: MAIN05.obj .\dll\sample05.lib
        $(LD) $(LDFLAGS) -out:$@ $**

sample05dll:
        cd .\dll
        $(MAKE) -nologo sample05.dll
        cd ..
        copy .\dll\sample05.dll .

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

main05.obj: main05.c .\dll\sample05.h

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

