source: trunk/examples/extended/eventgenerator/HepMC/HepMCEx02/GNUmakefile@ 807

Last change on this file since 807 was 807, checked in by garnier, 17 years ago

update

File size: 1.2 KB
Line 
1# $Id: GNUmakefile,v 1.4 2006/11/22 15:09:07 gcosmo Exp $
2# --------------------------------------------------------------
3# GNUmakefile for examples module. Gabriele Cosmo, 06/04/98.
4# --------------------------------------------------------------
5name := hepmcEx02
6G4TARGET := $(name)
7G4EXLIB := true
8
9ifndef G4INSTALL
10 G4INSTALL = ../../../../..
11endif
12
13.PHONY: all
14ifdef HEPMC_DIR
15all : lib bin
16
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
43else
44all:
45 @echo 'ERROR - HEPMC_DIR not defined in the environment !'
46 @echo ' Requires HepMC release 1.27.'
47endif
Note: See TracBrowser for help on using the repository browser.