The package program generates configuration files and installs them in the etc and src subdirectories of the directory designated as wsadmin= on the make command line. Recompile whenever you modify a prototype or library file.
Note | |
---|---|
These instructions assume that you store your package-related files in the /afs/cellname/wsadmin directory. If you use a different directory, substitute its name for /afs/cellname/wsadmin. |
Verify that you have all privileges in the /afs/cellname/wsadmin directory and in its src, lib and etc subdirectories. If necessary, issue the fs listacl command.
% fs listacl [dir/file path]
Change to the /afs/cellname/wsadmin/src subdirectory.
% cd /afs/cellname/wsadmin/src
Create a backup copy of the Makefile file included in the AFS distribution.
% cp Makefile Makefile.example
Modify the CONFIG, BASE_LIBS and MACHINE_LIBS sections of the Makefile file, as described in The CONFIG Section, The BASE_LIBS Section, and The MACHINE_LIBS Section.
Compile the prototype files using the make command.
Use the wsadmin= argument to specify the package directory. This becomes the value of the ${wsadmin} variable in the prototype and the library files.
The package program generates configuration files and installs them in the etc and src subdirectories of the directory designated as wsadmin=.
% make system wsadmin=/afs/cellname/wsadmin