# **********************************************************************
# * 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 2)

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

all: stackdll main.exe

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

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

stackdll:
        cd .\dll
        $(MAKE) -nologo stack.dll
        cd ..
        copy .\dll\stack.dll .

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

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

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

