Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F10664458
MakefileCommonOpt
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
MakefileCommonOpt
View Options
# emacs, this is a -*- Makefile -*-
#--------------------------------------------------------------------
# Set Platform type: LINUX or MAC_OSX
PLATFORM_TYPE := $(shell uname -s)
ifeq ($(PLATFORM_TYPE), Linux)
DO_FPIC := -fpic
SOFLAGS := -shared
else
ifeq ($(PLATFORM_TYPE), Darwin)
DO_FPIC := -fPIC
SOFLAGS := -dynamiclib -undefined dynamic_lookup
endif
endif
CXX = g++
CXXFLAGS = -Wall -g -O0 $(DO_FPIC) -fno-strict-aliasing # in some cases, no flags produce faster code than -O ones !!
LD = g++
LDFLAGS = -O0 $(DO_FPIC)
cppExtension := .cc # File extension of source files
CPPFLAGS += # List flags to pass to C/C++ preprocessor
OutPutOpt = -o # keep whitespace after "-o"
ROOTCFLAGS := $(shell root-config --cflags)
ROOTLDFLAGS := $(shell root-config --ldflags)
ROOTLIBS := $(shell root-config --libs)
ROOTGLIBS := $(shell root-config --glibs)
ROOTAUXLIBS := $(shell root-config --auxlibs)
HASTHREAD := $(shell root-config --has-thread)
LDFLAGS += $(ROOTLDFLAGS)
INCLUDE := $(ROOTCFLAGS) -I$(SPARTYJETDIR) -I$(SPARTYJETDIR)/UserPlugins/FastPrune-0.4.1/include
# FastJet setup
ifeq (,$(shell which fastjet-config))
FASTJETDIR ?= $(SPARTYJETDIR)/External/fastjet-install
# To upgrade Fastjet edit the following line (careful not to include whitespace after version)
version := 2.4.3
else
FASTJETDIR := $(shell fastjet-config --prefix)
version := $(shell fastjet-config --version)
endif
INCLUDE += -I$(FASTJETDIR)/include
ifeq (,$(filter-out 3.%,$(version)))
FASTJET3=true
CXXFLAGS += -DFASTJET3
endif
# Do STDHEP or not
ifneq (,$(shell which $(F77)))
DO_STDHEP=True
endif
File Metadata
Details
Attached
Mime Type
text/x-makefile
Expires
Thu, Apr 24, 6:40 AM (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4874870
Default Alt Text
MakefileCommonOpt (1 KB)
Attached To
rSPARTYJETSVN spartyjetsvn
Event Timeline
Log In to Comment