Makefile Setup
Before building any DDS application you need to setup the following:
-
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")
-
Environment: Make sure your environment variables
are setup correctly
- DDSROOT - path to the root DDS directory. (Within BP
this is setup for you by sourcing to "devsetup")
- DDS_DIST - path to the distribution directory. (This is
defaulted to /tstapps/global by the DDS Make structure)
- REMOTE_HOSTS - list of remote machines to use when
making on multiple platforms at the same time using the "all" or
"allinstall" make options. The newer application make files
can determine at run-time (if REMOTE_HOSTS is not
defined) the available machines to use via a couple of scripts
(gethosts & chkhost). (These will have to be setup for FreeDDS.)
- 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.