# Makefile for src/string
# Copyright (C) TOYODA Eizi, 2000.  All rights reserved.

all: string.obj chars.obj

.f90.obj:
        df/c $<

# select one
CHOICE=p                # pointer allocation version
#CHOICE=b                # limited buffer version
#CHOICE=psr              # for PSR vf90 compiler

string.obj: string_$(CHOICE).f90
	df/c /obj:$@ $?

test: test.exe

test.exe: string.obj test.obj
	df test.obj string.obj

clean:
	-del *.obj
	-del *.bak
        -del *.mod
        -del *.exe
