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 -O3 $(DO_FPIC) -fno-strict-aliasing # in some cases, no flags produce faster code than -O ones !!
#CXXFLAGS = -g
LD = g++
LDFLAGS = -O3 $(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)
# Uncomment the following line to enable StdHEP input (needs g77)
#DO_STDHEP = 1
## FastJet options ----------------------------------------
# By default, use fastjet version shipped with spartyjet.
# To use an external fast jet version, uncomment the
# following line :
FASTJETDIR = $(PWD)/fastjet_build/
# At cern, on lxplus, one can use :
# FASTJETDIR = /afs/cern.ch/sw/lcg/external/fastjet/2.3.4/slc4_ia32_gcc34/
## ----------------------------------------

File Metadata

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

Event Timeline