HEPREP (Re-)Build Procedure

To compile, link and package HEPREP for a different operating system and or compiler do the following.

You may need to add a new OS-COMPILER.gmk file for your system or rename one of the current ones.

On Unix style systems

Linux, Solaris, MacOS X:

Open a terminal window and:
setenv FREEHEP 	<top-level-dir of this distribution>
setenv PATH 	$FREEHEP/bin:$PATH
setenv OS 	<choice of Operating System [Linux, Darwin, SUN]>
setenv COMPILER <choice of Compiler [g++, g++2, g++3, CC, icc]>
chmod +x tools/ant
gmake -f GNUmakefile-HEPREP
gmake -f GNUmakefile-HEPREP dist

This will produce a HEPREP-*.*.*-OS-COMPILER.tar.gz file, ready for distribution and installation.

Note: on MacOS use make instead of gmake.

On Windows systems:

Visual C++ version 6 or 7:

Open a MSDOS window and:

set FREEHEP	=<top-level-dir of this distribution>
set PATH	=%FREEHEP%\bin;%PATH%
set OS	        =Windows_NT
set COMPILER	=<choice of Compiler [VC, VC7]>
gmake -f GNUmakefile-HEPREP
gmake -f GNUmakefile-HEPREP dist

This will produce a HEPREP-*.*.*-WIN32-COMPILER.zip file, ready for distribution and installation.

g++ and Cygwin:

Open a MSDOS window and:

set FREEHEP	=<top-level-dir of this distribution>
set PATH	=%FREEHEP%\bin;%PATH%
tools\ant -Djar=aidajni

then open a Cygwin window and:

export FREEHEP	=<top-level-dir of this distribution using cygwin syntax>
export OS	=Windows_NT
export COMPILER	=g++
make -f GNUmakefile-HEPREP
make -f GNUmakefile-HEPREP dist

This will produce a HEPREP-*.*.*-WIN32-g++.tar.gz file, ready for distribution and installation.