#
# This software is part of the Digital Fortran kit.
# Copyright (C) 1993,1996 Digital Equipment Corporation.
# All rights reserved.
#
# This software is furnished to you under a license by  Digital Equipment
# Corporation and must be used only in  accordance with the terms and conditions
# of that license,  and only with the inclusion of the above copyright notice.
#
# 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.
# 
# Makefile for fpp example.
#

# Nmake macros for building Digital Fortran applications

!include <dfinc.mak>

DFFLAGS= /nologo /verbose $(fflags)

all : fppdemo1.out fppdemo2.out fppdemo3.out fppdemo4.out fppdemo5.out
    type fppdemo1.out
    type fppdemo2.out
    type fppdemo3.out
    type fppdemo4.out
    type fppdemo5.out
	

fppdemo1.out : fppdemo1.exe 
    fppdemo1 > fppdemo1.out

fppdemo1.exe : fppdemo.fpp fppdemo.fi
    $(FOR) $(DFFLAGS) /fpp:"/DTEST1=3" fppdemo.fpp \
	/link $(lflags) /out:fppdemo1.exe 

fppdemo2.out : fppdemo2.exe 
    fppdemo2 > fppdemo2.out

fppdemo2.exe : fppdemo.fpp fppdemo.fi
    $(FOR) $(DFFLAGS) /fpp:"/DTEST2" fppdemo.fpp \
	/link $(lflags) /out:fppdemo2.exe 

fppdemo3.out : fppdemo3.exe
    fppdemo3 > fppdemo3.out

fppdemo3.exe : fppdemo.fpp fppdemo.fi
    $(FOR) $(DFFLAGS) /fpp:"/DTEST3" fppdemo.fpp \
	/link $(lflags) /out:fppdemo3.exe 

fppdemo4.out : fppdemo4.exe 
    fppdemo4 > fppdemo4.out

fppdemo4.exe : fppdemo.fpp fppdemo.fi
    $(FOR) $(DFFLAGS) /fpp:"/DTEST4=4" fppdemo.fpp \
	/link $(lflags) /out:fppdemo4.exe

fppdemo5.out : fppdemo5.exe
    fppdemo5 > fppdemo5.out

fppdemo5.exe : fppdemo.fpp fppdemo.fi
    $(FOR) $(DFFLAGS) /fpp:"/DTEST5" fppdemo.fpp \
	/link $(lflags) /out:fppdemo5.exe 

clean :
    -del fppdemo1.exe
    -del fppdemo2.exe
    -del fppdemo3.exe
    -del fppdemo4.exe
    -del fppdemo5.exe
    -del fppdemo1.out
    -del fppdemo2.out
    -del fppdemo3.out
    -del fppdemo4.out
    -del fppdemo5.out
