next up previous contents
Next: Running the Makefile Up: No Title Previous: Update file

Configuring the Makefile

This part is probably the most difficult. There is a script configure

in the root of the WFC distribution which attempts to make a Makefile

in order to make the various components of the WFC software. configure is not the well-known GNU configure but a self-written one.

The purpose of configure is to set values for the names of C and FORTRAN compilers, locations of libraries, etc. Also optimizing and/or debug flags should be set here.

For a number of machines and operating systems the information is present. As expected some settings are operating system specific and some are machine specific, e.g. the location of the FTOOLS directory. The idea is that you only edit configure and not the Makefile . So, in first instance try to run configure to see have far it gets in generating the Makefile , so type:

$ ./configure

If you get responses like `Your hostname is not known to configure' or it complains it doesn't know your operating system you have to add one or more lines to the configure script. Just start an editor and load configure . As there are several machines and operating systems in the script you have enough examples how to add your system. The variables mentioned in table gif should be set in configure .

  
Table: Variables set by configure .

In case your system required much effort in order to create a suitable Makefile you can send your Makefile to us and we will incorporate it in configure . See the E-mail address in the first section. Also in case of real trouble the E-mail address can be used for help.

configure will create the first part of Makefile by itself. It then appends Makefile.ORIG to it where machine and operating system independent information is stored. An example Makefile can be found in appendix gif.



next up previous contents
Next: Running the Makefile Up: No Title Previous: Update file



Mark Savenije
Sat Jan 18 13:43:02 MET 1997