Compiling Prototype Files

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.

To compile prototype files

[Note]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.

  1. 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]
    
  2. Change to the /afs/cellname/wsadmin/src subdirectory.

       % cd /afs/cellname/wsadmin/src
    
  3. Create a backup copy of the Makefile file included in the AFS distribution.

       % cp  Makefile Makefile.example 
    
  4. 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.

  5. 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