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

CFLAGS=/Ti /Ge- /Ft- -DDLLCOMPILE=1
LDFLAGS=/de /dll /noe
LD=ilink
CC=icc

all: stack.dll stack.lib

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

stack.dll: stack.obj stack.def
        $(LD) $(LDFLAGS) -out:$@ $**

stack.lib: stack.def
        ilib -gi:$@ $**

stack.obj: stack.cpp stk.h

stack.def: stack.obj
        type basic.def > stack.def
        cppfilt -q -b -p stack.obj >> stack.def

clean:
        -del *.obj *.dbg *.dll *.lib stack.def 2>nul:


