Makefile Setup

Before building any DDS application you need to setup the following:

  1. Compiler: Make sure your compiler is setup in your path for the correct machine on which you are building. (Within BP this is setup for by you sourcing to "devsetup")

  2. Environment: Make sure your environment variables are setup correctly
  3. Makefile: Setup a Makefile similar to this one for the programs "freq". If you have any "C" routines, they can be included in the "CSrcs" definition; otherwise it's just there if needed. (F77Srcs, F90Srcs, C+Srcs & C++Srcs are aliased to these.) The make flags (such as DEBUG, MP or FFT; see "make flags" for available flags) must have any non-blank definition to turn them on. (NOTE: by using "LibName" instead of "Name" a library is made instead of an application.) WARNING: Make sure you pick a name for your application that does not already exist in the installation or distribution.
    Name  := freq
    FSrcs := freq.F t2w.F w2t.F subs.F90
    CSrcs :=
    
    #DEBUG:=X 
    MP    :=X
    FFT   :=X
    
    include ${DDSROOT}/etc/MakeVariables
    
    include ${DDSROOT}/etc/MakeRules
    
    Run "make help" to get online help information on the use of the DDS Makefile features. Run "make variables" for a list of the DDS Makefile variables that are used and modifiable (e.g. FSrcs). Run "make flags" for a list of DDS Makefile flags that can be used (e.g. FFT). They only need to be defined with some non-blank value.