Skip to content

Instantly share code, notes, and snippets.

@khaije1
Created February 19, 2015 20:50
Show Gist options
  • Save khaije1/0b3d6dcb18605e01742d to your computer and use it in GitHub Desktop.
Save khaije1/0b3d6dcb18605e01742d to your computer and use it in GitHub Desktop.
# the Make rules
$(OBJ_DIR)/%.f$(sfxObj) : %.f $(DEP_DIR)/%.f$(sfxDep)
$(FC) -c $< $(call fn_includes_from_src,$<) $(SHAREDFLAGS) $(FFLAGS) -o $@
...
$(DEP_DIR)/%.f$(sfxDep) : %.f
$(FC) -cpp -MM -MT "$(<F)$(sfxObj)" -MF "$@" $(call fn_includes_from_src,$<) $(FFLAGS) $(CPPFLAGS) $^
# genethe depend file generated by: make vscale.f.depend
# view vscale.f.depend
vscale.o vscale.f.o: \ vscale.f \
inc/pltcom.inc
## Question: how to get rid of the 'vscale.o' target? It doesn't break anything but I consider it messy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment