Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1367
News FAQ
Search Home


next up previous
Next: System databases Up: No Title Previous: Source code management

System generation

POSIX.2 compliance for make applies largely to the way makefiles themselves are written, and essentially restricts functionality to the lowest common denominator of all the many varieties of make. This means it would be it very difficult to write portable POSIX.2 compliant makefiles for AIPS++, so GNU make has been adopted instead. GNU make is itself POSIX.1 and POSIX.2 compliant, and so satisfies the ``POSIX compliance'' criteria originally set for AIPS++.

AIPS++ uses a hierarchical system of GNU makefiles. The head resides in ãips++/code and recursively invokes all makefiles residing in the subdirectories beneath it. The makefiles have the following features:

By allowing programmers to compile code in their own workspace without having to extract related files from the rcs repository, the makefiles minimize the number of files that need to be present in the programmer's own workspace. This reduces the possibility that these may be ``stale''.

The AIPS++ makefiles use a standard set of target names; references to a directory in the following list refers to the directory in which the makefile exists, or the corresponding AIPS++ directory:

Library maintenance requires special attention to avoiding conflicts which may arise when two programmers independently try to update the library. This is handled by a script used by the makefiles called updatelib. Object modules are deposited by make in a library-specific subdirectory of  aips++/$ARCH/$VERS/tmp, for example ...tmp/libkernel. When all modules have been produced the makefile invokes updatelib which copies the library to the temporary area, updates it, ranlibs it, then copies it back to the lib area.


next up previous
Next: System databases Up: No Title Previous: Source code management
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-03-28