SHELL = /bin/sh
FC = ifort

F_FLAGS    = 
IOAPI =  -L/home/wdx/lib/x86_64/ifc-17.0.3/ioapi_3.1/Linux2_x86_64ifort -lioapi 
NETCDF =  -L/home/wdx/lib/x86_64/ifc-17.0.3/netcdf/lib -lnetcdf -lnetcdff
LIBS = $(IOAPI) $(NETCDF)
INCLUDE = -I/home/wdx/lib/x86_64/ifc-17.0.3/ioapi_3.1/ioapi/fixed_src \
          -I/home/wdx/lib/x86_64/ifc-17.0.3/netcdf/include
PROGRAM = diffinline

RAW = $(PROGRAM).o

.f.o:
	$(FC) $(FFLAGS) $(INCLUDE) -c -o $@ $<

.F.o:
	$(FC) $(FFLAGS) $(INCLUDE) -c -o $@ $<

$(PROGRAM):	$(RAW)
	$(FC) $(FFLAGS) $(INCLUDE) -o $(@) $(RAW) $(LIBS)

clean:
	rm -f $(PROGRAM)
