#
# 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 makefile builds EX1.EXE from EX1.FOR and UOPEN_.C.
#	It requires a C compiler be available on your system.  If this makefile
#    gives an error similar to:
#            The name specified is not recognized as an
#             internal or external command, operable program or batch file.
#    that may be your problem.  Confirm that you have a C compiler and retry the
#    makefile.

!IFNDEF DEBUG
NODEBUG=1
!ENDIF


# Nmake macros for building Visual Fortran applications
!include <dfinc.mak>

all: ex1.exe

ex1.exe:  ex1.for uopen.obj
    $(FOR) /NOLOGO $(fflags) /names:lowercase /assume:underscore ex1.for /link $(lflags) uopen.obj 

uopen.obj: uopen.c
    $(CC) /c /nologo $(CFLAGS) $(CDEFS) $(CVARS) $(CDEBUG) uopen.c

run:
    -call ex1.exe

clean:
    -del ex1.exe
    -del uopen.obj	
