#CONFIG
include $(EPICS_BASE)/configure/RULES

# Library should be rebuilt because LIBOBJS may have changed.
$(LIBNAME): ../Makefile

# For include files that end with hc or hm.
vpath %.hc  $(USR_VPATH) $(ALL_SRC_DIRS)
vpath %.hm  $(USR_VPATH) $(ALL_SRC_DIRS)
vpath %.hf  $(USR_VPATH) $(ALL_SRC_DIRS)
vpath %.inc $(USR_VPATH) $(ALL_SRC_DIRS)

# Fortran.
vpath %.for $(USR_VPATH) $(ALL_SRC_DIRS)

FOR_FLAGS = -w -ffixed-line-length-100 -fno-underscoring -fno-automatic
COMPILE.for = $(COMPILE.c) $(FOR_FLAGS)

%$(OBJ): %.for
	@$(HDEPENDS_CMD)
	@$(RM) $@
	$(COMPILE.for) $(call PATH_FILTER,$<)


