Adapt your makefiles with adapt-mkfile

adapt-mkfile takes an input file and manipulates a block like
  ### Begin machine dependent

  ## Linux:
  ## This comment will always remain untouched
  #FC=f95
  #FC=/usr/lib/lam/bin/mpif95 #(Cincinnatus|Owen|Master)
  #FFLAGS= -O4 -C -gline -Wc,-malign-double

  ## OSF1:
  ## Compaq/HP alpha
  #FC=f95
  #FFLAGS=-fast -O5
  #FFLAGS=-fast -O5 -tune ev6 -arch ev6 #(Mhd.)

  ## IRIX64:
  #FC=f90
  #FFLAGS= -64 -O3 -C -macro_expand  #(Antares)
  #FFLAGS= -pfalist -64 -O3 -mips4 -C -macro_expand  #(Grand)

  ### End machine dependent

It will activate lines that are relevant to the given operating system or host and deactivate others.

Quite handy if you want to use one and the same Makefile on different machines. Just define a target

  makefile: Makefile
  	adapt-mkfile Makefile makefile
in your Makefile.

You can download adapt-mkfile or read the documentation.


Last modified: Thu Feb 28 21:12:00 CET 2002