#
# This software is part of the Visual Fortran kit.
# This software is provided as an example that demonstrates a particular
# feature/function of the licensed product. The software is not intended to
# provide a complete solution to any application problem but rather is provided
# as a teaching mechanism.
#
# Users may incorporate any part of this sample into their own source after 
# making appropriate changes to make it suitable for the intended application.
# 
# This application requires a C compiler be available to this makefile.  If you 
#  get an error similar to:
#            The name specified is not recognized as an
#            internal or external command, operable program or batch file.
#  while building with this makefile, make sure you have a C compiler available
#  before retrying.
#

!IFDEF DEBUG
!ELSE
NODEBUG=1
!ENDIF
!include <ntwin32.mak>
!include <dfinc.mak>

!IFDEF LINKDLL
gui_libs = $(guilibsdll)
!ELSE
gui_libs = $(guilibs)
!ENDIF

proj = mandel
objs = $(proj).obj $(proj).rbj man_cal.obj
incs = $(proj).h man_cal.h

all : $(proj).exe

$(proj).exe: $(objs) 
    $(link) $(objs) $(dflibs) $(gui_libs) -out:$@ $(lflags) \
        $(lnk_debug) $(guilflags)

$(proj).res : $(proj).rc $(proj).h $(proj).ico
	$(rc) $(rcvars) -r $(proj).rc 

$(proj).rbj : $(proj).res
	cvtres -$(CPU) $(proj).res -o $(proj).rbj

$(proj).obj : $(proj).c $(incs)
	$(cc) $(cflags) $(cdefs) $(cvars) $(cdebug) $*.c

man_cal.obj : man_cal.for
	$(FOR) /NAMES:LOWERCASE /ASSUME:UNDERSCORE $(fflags) $*.for /c

clean :
    -del *.obj
    -del *.res
    -del *.rbj
    -del *.exe





