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

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

all: sample03dll main03.exe

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

main03.exe: MAIN03.obj main03.def .\sort\sample03.lib
        $(LD) $(LDFLAGS) -out:$@ $**

sample03dll:
        cd .\sort
        $(MAKE) -nologo sample03.dll
        cd ..
        copy .\sort\sample03.dll .

.\sort\sample03.lib:
        cd .\sort
        $(MAKE) -nologo sample03.lib
        cd ..

main03.obj: main03.c .\sort\sample03.h

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


