# Makefile for Fortran 2D Examples
FC = gfortran
FFLAGS = -O2 -I../src
LDFLAGS = -L../../lib -lgraphic -lm

SRCS = ../src/graphic_iso.f90 ../src/graphic.f90
EXAMPLES = sample d2test logtest bartest erftest multi_y

all: $(EXAMPLES)

%: %.f90 $(SRCS)
	$(FC) $(FFLAGS) $(SRCS) $< $(LDFLAGS) -o $@

clean:
	rm -f $(EXAMPLES) *.mod *.svg *.html *.tkf
