###############################################################################
#
#          PlantWorks C Function Example (32 bit)
#
#  NOTE: This is a SAMPLE program.  It is not intended to be
#        a definition of programming interfaces to PlantWorks.
#
###############################################################################
#
#  Copyright:
#              IBM CORPORATION 1993
#              LICENSED MATERIAL - PROGRAM PROPERTY OF IBM
#              REFER TO COPYRIGHT INSTRUCTIONS FORM #G120-2083
#
###############################################################################

###############################################################################
#
#       Sample MAKEFILE for building C functions
#
#       This assumes you have the IBM CSet/2 compiler installed in your system.
#
#       You need to prepare the .DEF file prior to executing this makefile.
#
#       Suggested invocation:
#               make FNAME=<C_Function_name>
#                       Do not use any file extensions
#
###############################################################################

FNAME=sample                    # Name of the function to be compiled

$(FNAME).dll : $(FNAME).obj
        link386 /NOI $(FNAME), $(FNAME).dll, $(FNAME).map, , $(FNAME).def

$(FNAME).obj : $(FNAME).c
        icc /C /Q /W2 /Gms /Semns /Sp1 /Su2 $(FNAME).c

###############################################################################
#
#               End of sample MAKEFILE
#
###############################################################################
