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 | |
---|
8 | SHELL = /bin/sh |
---|
9 | |
---|
10 | -include config.mk |
---|
11 | ifeq (x$(PYTHIA8LOCATION),x) |
---|
12 | PYTHIA8LOCATION=.. |
---|
13 | endif |
---|
14 | -include $(PYTHIA8LOCATION)/config.mk |
---|
15 | |
---|
16 | # Location of directories. |
---|
17 | TOPDIR=$(shell \pwd) |
---|
18 | INCDIR=include |
---|
19 | SRCDIR=src |
---|
20 | LIBDIR=lib |
---|
21 | LIBDIRARCH=lib/archive |
---|
22 | BINDIR=bin |
---|
23 | |
---|
24 | # Libraries to include if GZIP support is enabled |
---|
25 | ifeq (x$(ENABLEGZIP),xyes) |
---|
26 | LIBGZIP=-L$(BOOSTLIBLOCATION) -lboost_iostreams -L$(ZLIBLOCATION) -lz |
---|
27 | endif |
---|
28 | |
---|
29 | CXXFILES = $(wildcard *.cxx) |
---|
30 | SGLOBJFILES := $(CXXFILES:%.cxx=%.o) |
---|
31 | |
---|
32 | # There is no default behaviour, so remind user. |
---|
33 | all: Pythia8Sgluon |
---|
34 | |
---|
35 | %.o : %.cxx |
---|
36 | $(CXX) $(CXXFLAGS) -I$(PYTHIA8LOCATION)/$(INCDIR) -I$(HEPMCLOCATION)/$(INCDIR) -c $< -o $@ |
---|
37 | |
---|
38 | Pythia8Sgluon : 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 |
---|
45 | clean: |
---|
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.