Rev | Line | |
---|
[807] | 1 | # $Id: GNUmakefile,v 1.6 2006/11/22 15:09:21 gcosmo Exp $ |
---|
| 2 | # -------------------------------------------------------------- |
---|
| 3 | # GNUmakefile for examples module. Gabriele Cosmo, 06/04/98. |
---|
| 4 | # -------------------------------------------------------------- |
---|
| 5 | name := hepmcEx01 |
---|
| 6 | G4TARGET := $(name) |
---|
| 7 | G4EXLIB := true |
---|
| 8 | |
---|
| 9 | ifndef G4INSTALL |
---|
| 10 | G4INSTALL = ../../../../.. |
---|
| 11 | endif |
---|
| 12 | |
---|
| 13 | .PHONY: all |
---|
| 14 | |
---|
| 15 | ifdef HEPMC_DIR |
---|
| 16 | all : lib bin |
---|
| 17 | include $(G4INSTALL)/config/binmake.gmk |
---|
| 18 | |
---|
| 19 | # ----------------------------------------------------------------- |
---|
| 20 | # HepMC and PYTHIA |
---|
| 21 | |
---|
| 22 | # if you do not use Pythia library, comment out the next line. |
---|
| 23 | # |
---|
| 24 | G4LIB_USE_PYTHIA := 1 |
---|
| 25 | ifdef G4LIB_USE_PYTHIA |
---|
| 26 | CPPFLAGS += -DG4LIB_USE_PYTHIA |
---|
| 27 | endif |
---|
| 28 | |
---|
| 29 | INCFLAGS += -I$(HEPMC_DIR)/include |
---|
| 30 | |
---|
| 31 | ifdef G4LIB_USE_PYTHIA |
---|
| 32 | LDLIBS1 += -L$(HEPMC_DIR)/lib -lHepMC -lHepMCfio |
---|
| 33 | else |
---|
| 34 | LDLIBS1 += -L$(HEPMC_DIR)/lib -lHepMC -lHepMCfio $(G4TMPDIR)/HEPEvtcom.o |
---|
| 35 | endif |
---|
| 36 | |
---|
| 37 | # Path for PYTHIA Fortran library. Based on CERNLIB-2005. |
---|
| 38 | # Add "/cern/pro/bin" to $PATH first ! |
---|
| 39 | # |
---|
| 40 | ifdef G4LIB_USE_PYTHIA |
---|
| 41 | LDLIBS1 += $(shell cernlib -v pro pythia6205 pdflib804 mathlib) -lg2c |
---|
| 42 | endif |
---|
| 43 | else |
---|
| 44 | all: |
---|
| 45 | @echo 'ERROR - HEPMC_DIR not defined in the environment !' |
---|
| 46 | @echo ' Requires HepMC release 1.27.' |
---|
| 47 | endif |
---|
Note: See
TracBrowser
for help on using the repository browser.