source: HiSusy/trunk/Pythia8Sgluon/Makefile @ 8

Last change on this file since 8 was 8, checked in by zerwas, 9 years ago

add Pythia8Sgluon generator

File size: 1.3 KB
Line 
1#
2# Examples Makefile.
3#
4#                  M. Kirsanov 07.04.2006
5#                     Modified 18.11.2006
6#                     26.03.2008 CLHEP dependency removed
7
8SHELL = /bin/sh
9
10-include config.mk
11ifeq (x$(PYTHIA8LOCATION),x)
12 PYTHIA8LOCATION=..
13endif
14-include $(PYTHIA8LOCATION)/config.mk
15
16# Location of directories.
17TOPDIR=$(shell \pwd)
18INCDIR=include
19SRCDIR=src
20LIBDIR=lib
21LIBDIRARCH=lib/archive
22BINDIR=bin
23
24# Libraries to include if GZIP support is enabled
25ifeq (x$(ENABLEGZIP),xyes)
26LIBGZIP=-L$(BOOSTLIBLOCATION) -lboost_iostreams -L$(ZLIBLOCATION) -lz
27endif
28
29CXXFILES  = $(wildcard *.cxx)
30SGLOBJFILES  := $(CXXFILES:%.cxx=%.o) 
31
32# There is no default behaviour, so remind user.
33all: Pythia8Sgluon
34
35%.o : %.cxx
36        $(CXX) $(CXXFLAGS) -I$(PYTHIA8LOCATION)/$(INCDIR) -I$(HEPMCLOCATION)/$(INCDIR) -c $< -o $@
37
38Pythia8Sgluon : Pythia8Sgluon.cc $(SGLOBJFILES) $(PYTHIA8LOCATION)/$(LIBDIRARCH)/libpythia8.a $(PYTHIA8LOCATION)/$(LIBDIRARCH)/libhepmcinterface.a
39        $(CXX) $(CXXFLAGS) -I$(PYTHIA8LOCATION)/$(INCDIR) -I$(HEPMCLOCATION)/$(INCDIR) $@.cc -o $@ \
40        $(SGLOBJFILES) \
41        -L$(PYTHIA8LOCATION)/$(LIBDIRARCH) -lpythia8 -llhapdfdummy $(LIBGZIP) -lhepmcinterface  -L$(HEPMCLOCATION)/lib -lHepMC
42
43# Clean up: remove executables and outdated files.
44.PHONY: clean
45clean:
46        rm -rf $(BINDIR)
47        rm -rf *.o
48        rm Pythia8Sgluon
49        rm -f *~; rm -f \#*; rm -f core*
Note: See TracBrowser for help on using the repository browser.