####
#### Modify the following two fragments if necessary.
####
###########################################################################
#                                                                         #
#  Modify this fragment to the complier(s) you use.                       #
#                                                                         #
###########################################################################

                    
                       # modify if necessary   
                       #
                       #
                     # # #
                      ###
                       #

fortran_complier    = fl32   # i.e. Microsoft 32-bit fortran
c_complier          = cl     # i.e. Microsoft Visual C++
multithreads_option = /MT    # i.e. multiple threads
processor_type      = /G3    # i.e. 386 processor (It may slow down the
                             #                     speed, if your processor
                             #                     is higher than 386.)


###########################################################################
#                                                                         #
#  Modify this fragment to select a Mtask library                         #
#                                                                         #
###########################################################################


                       # modify if necessary   
                       #
                       #
                     # # #
                      ###
                       #

path_to_mtask     = c:\users\parallel\ # the subdirectory that contains LIB
mtask_for_fortran = mtaskf3a.lib       # fortran library for 386 & ASCII std
mtask_for_c       = mtaskc3a.lib       # c library for 386 & ASCII standard


###########################################################################
#                                                                         #
#  Target                                                                 #
#                                                                         #
###########################################################################


fortran : b5.exe b6.exe b7.exe b9.exe  # fortran examples
c       : c5.exe c6.exe c7.exe c9.exe  # c examples
all     : fortran c                    # all the examples


###########################################################################
#                                                                         #
#  user_defined macros                                                    #
#                                                                         #
###########################################################################


option           = $(multithreads_option) $(processor_type)
fortran_library  = $(path_to_mtask)$(mtask_for_fortran)
c_library        = $(path_to_mtask)$(mtask_for_c)


###########################################################################
#                                                                         #
#  Inference Rules                                                        #
#                                                                         #
###########################################################################


.for.exe:
        $(fortran_complier) $(option) $< $(fortran_library)

.c.exe:
        $(c_complier) $(option) $< $(c_library)



