Page MenuHomeHEPForge

MakefileCommonOpt
No OneTemporary

MakefileCommonOpt

# 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

Mime Type
text/x-makefile
Expires
Thu, Apr 24, 6:40 AM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4874870
Default Alt Text
MakefileCommonOpt (1 KB)

Event Timeline