| 1 |
pager=${pager:-more} |
| 2 |
$pager <<EOF |
| 3 |
|
| 4 |
* First copy an appropriate system/Make.* to ./Make.sys |
| 5 |
and edit it according to your needs, i.e: |
| 6 |
|
| 7 |
\$ cp system/Make.MY_SYSTEM Make.sys |
| 8 |
|
| 9 |
* Then to compile the package type: |
| 10 |
|
| 11 |
\$ make all |
| 12 |
|
| 13 |
If everything compiled well, xcrysden should work. You can try: ./xcrysden |
| 14 |
|
| 15 |
* Optionally you may do: |
| 16 |
|
| 17 |
\$ prefix=XXXX make install |
| 18 |
|
| 19 |
where XXXX is a directory where to install xcysden. BEWARE: |
| 20 |
please read first the below description of "install" target |
| 21 |
before issuing this command. |
| 22 |
|
| 23 |
|
| 24 |
============================================================================== |
| 25 |
* * * Here is a list of make targets * * * |
| 26 |
============================================================================== |
| 27 |
|
| 28 |
Usage: make all | clean | clean-external-src |
| 29 |
|
| 30 |
-- |
| 31 |
all: |
| 32 |
|
| 33 |
all = bindir + tcl + tk + togl + mesa + fftw + xcrysden |
| 34 |
|
| 35 |
The "make all" simply makes all. That is: compiles all the |
| 36 |
source files and creates the executables. |
| 37 |
|
| 38 |
If external/src/ subdirectory exists, then it also downloads and |
| 39 |
compiles all the external libraries (Tcl/Tk, Togl, Mesa, |
| 40 |
FFTW), which were requested for compilation by |
| 41 |
COMPILE_package=yes variable in Make.sys. |
| 42 |
|
| 43 |
-- |
| 44 |
install: |
| 45 |
|
| 46 |
Installs the compiled package systemwide to a |
| 47 |
\$prefix/share/xcrysden-version/ and |
| 48 |
\$prefix/lib/xcrysden-version/ directories and makes xcrysden |
| 49 |
wrapper in \$prefix/bin/. The default value of \$prefix is |
| 50 |
/usr/local, but this can be changed by running as: |
| 51 |
|
| 52 |
"prefix=XXXX make install". |
| 53 |
|
| 54 |
BEWARE: assumes that Tcl/Tk/Togl/GL/GLU/FFTW libraries are |
| 55 |
available system-wide (i.e. it will not install the internally |
| 56 |
complied libraries that reside in external/lib subdirectory). |
| 57 |
|
| 58 |
-- |
| 59 |
clean | veryclean | distclean: |
| 60 |
|
| 61 |
Various levels of cleaning. |
| 62 |
|
| 63 |
------------------------------------------------------------------------ |
| 64 |
|
| 65 |
|
| 66 |
The following targets are suitable only for developers, for making |
| 67 |
various package distributions: |
| 68 |
|
| 69 |
-- |
| 70 |
srcdist: |
| 71 |
Creates the source tar.gz package-archive. |
| 72 |
|
| 73 |
-- |
| 74 |
bindist-shared: |
| 75 |
Creates the shared binary tar.gz package-archive. Note: you should |
| 76 |
previously compile the xcrysden package. |
| 77 |
|
| 78 |
-- |
| 79 |
bindist-semishared: |
| 80 |
Creates the shared binary tar.gz package-archive with the Tcl, Tk, |
| 81 |
and Mesa shared libraries in external/lib subdirectory. Note: you should |
| 82 |
previously compile the xcrysden package with the internally compiled |
| 83 |
Tcl/Tk/Togl/GL/GLU/FFTW libraries that reside in external/lib subdirectory. |
| 84 |
|
| 85 |
-- |
| 86 |
bindist-static: |
| 87 |
Creates the statically linked binary tar.gz package-archive. Note: |
| 88 |
you should previously compile the xcrysden package and link it with |
| 89 |
static libraries. |
| 90 |
EOF |