File tree Expand file tree Collapse file tree 7 files changed +91
-55
lines changed
unordered_multiset/nested Expand file tree Collapse file tree 7 files changed +91
-55
lines changed Original file line number Diff line number Diff line change 1- ROOT_EXE : = $(shell which root.exe)
1+ ROOT_EXE ? = $(shell which root.exe)
22ifeq ($(ROOT_EXE ) ,)
33$(error Could not find root.exe)
44endif
Original file line number Diff line number Diff line change 1- CXX =g++
2- CXXFLAGS_ROOT =$(shell root-config --cflags)
3- ifeq ($(CXXFLAGS_ROOT ) ,)
4- $(error cannot find root-config : make sure to source thisroot.sh)
1+ ROOT_CONFIG ?= $(shell which root-config)
2+ ifeq ($(ROOT_CONFIG ) ,)
3+ $(error Could not find root-config)
54endif
6- CXXFLAGS =-Wall $(CXXFLAGS_ROOT )
7- LDFLAGS =$(shell root-config --libs)
5+ ROOTCLING ?= $(shell which rootcling)
6+ ifeq ($(ROOTCLING ) ,)
7+ $(error Could not find rootcling)
8+ endif
9+
10+ CXX := $(shell $(ROOT_CONFIG ) --cxx)
11+ CXXFLAGS_ROOT := $(shell $(ROOT_CONFIG ) --cflags)
12+ CXXFLAGS := -Wall $(CXXFLAGS_ROOT )
13+ LDFLAGS := $(shell $(ROOT_CONFIG ) --libs)
814
915.PHONY : all clean
1016
11- all : NestedMultiset.cxx libNestedMultiset.so
17+ all : libNestedMultiset.so
1218
1319NestedMultiset.cxx : NestedMultiset.hxx LinkDef.h
14- rootcling -f $@ $^
20+ $( ROOTCLING ) -f $@ $^
1521
1622libNestedMultiset.so : NestedMultiset.cxx
1723 $(CXX ) -shared -fPIC -o $@ $^ $(CXXFLAGS ) $(LDFLAGS )
1824
1925clean :
20- rm -f NestedMultiset.cxx NestedMultiset_rdict.pcm libNestedMultiset.so
26+ $( RM ) NestedMultiset.cxx NestedMultiset_rdict.pcm libNestedMultiset.so
Original file line number Diff line number Diff line change 1- CXX =g++
2- CXXFLAGS_ROOT =$(shell root-config --cflags)
3- ifeq ($(CXXFLAGS_ROOT ) ,)
4- $(error cannot find root-config : make sure to source thisroot.sh)
1+ ROOT_CONFIG ?= $(shell which root-config)
2+ ifeq ($(ROOT_CONFIG ) ,)
3+ $(error Could not find root-config)
54endif
6- CXXFLAGS =-Wall $(CXXFLAGS_ROOT )
7- LDFLAGS =$(shell root-config --libs)
5+ ROOTCLING ?= $(shell which rootcling)
6+ ifeq ($(ROOTCLING ) ,)
7+ $(error Could not find rootcling)
8+ endif
9+
10+ CXX := $(shell $(ROOT_CONFIG ) --cxx)
11+ CXXFLAGS_ROOT := $(shell $(ROOT_CONFIG ) --cflags)
12+ CXXFLAGS := -Wall $(CXXFLAGS_ROOT )
13+ LDFLAGS := $(shell $(ROOT_CONFIG ) --libs)
814
915.PHONY : all clean
1016
11- all : NestedSet.cxx libNestedSet.so
17+ all : libNestedSet.so
1218
1319NestedSet.cxx : NestedSet.hxx LinkDef.h
14- rootcling -f $@ $^
20+ $( ROOTCLING ) -f $@ $^
1521
1622libNestedSet.so : NestedSet.cxx
1723 $(CXX ) -shared -fPIC -o $@ $^ $(CXXFLAGS ) $(LDFLAGS )
1824
1925clean :
20- rm -f NestedSet.cxx NestedSet_rdict.pcm libNestedSet.so
26+ $( RM ) NestedSet.cxx NestedSet_rdict.pcm libNestedSet.so
Original file line number Diff line number Diff line change 1- CXX =g++
2- CXXFLAGS_ROOT =$(shell root-config --cflags)
3- ifeq ($(CXXFLAGS_ROOT ) ,)
4- $(error cannot find root-config : make sure to source thisroot.sh)
1+ ROOT_CONFIG ?= $(shell which root-config)
2+ ifeq ($(ROOT_CONFIG ) ,)
3+ $(error Could not find root-config)
54endif
6- CXXFLAGS =-Wall $(CXXFLAGS_ROOT )
7- LDFLAGS =$(shell root-config --libs)
5+ ROOTCLING ?= $(shell which rootcling)
6+ ifeq ($(ROOTCLING ) ,)
7+ $(error Could not find rootcling)
8+ endif
9+
10+ CXX := $(shell $(ROOT_CONFIG ) --cxx)
11+ CXXFLAGS_ROOT := $(shell $(ROOT_CONFIG ) --cflags)
12+ CXXFLAGS := -Wall $(CXXFLAGS_ROOT )
13+ LDFLAGS := $(shell $(ROOT_CONFIG ) --libs)
814
915.PHONY : all clean
1016
11- all : NestedUnorderedMultiset.cxx libNestedUnorderedMultiset.so
17+ all : libNestedUnorderedMultiset.so
1218
1319NestedUnorderedMultiset.cxx : NestedUnorderedMultiset.hxx LinkDef.h
14- rootcling -f $@ $^
20+ $( ROOTCLING ) -f $@ $^
1521
1622libNestedUnorderedMultiset.so : NestedUnorderedMultiset.cxx
1723 $(CXX ) -shared -fPIC -o $@ $^ $(CXXFLAGS ) $(LDFLAGS )
1824
1925clean :
20- rm -f NestedUnorderedMultiset.cxx NestedUnorderedMultiset_rdict.pcm libNestedUnorderedMultiset.so
26+ $( RM ) NestedUnorderedMultiset.cxx NestedUnorderedMultiset_rdict.pcm libNestedUnorderedMultiset.so
Original file line number Diff line number Diff line change 1- CXX =g++
2- CXXFLAGS_ROOT =$(shell root-config --cflags)
3- ifeq ($(CXXFLAGS_ROOT ) ,)
4- $(error cannot find root-config : make sure to source thisroot.sh)
1+ ROOT_CONFIG ?= $(shell which root-config)
2+ ifeq ($(ROOT_CONFIG ) ,)
3+ $(error Could not find root-config)
54endif
6- CXXFLAGS =-Wall $(CXXFLAGS_ROOT )
7- LDFLAGS =$(shell root-config --libs)
5+ ROOTCLING ?= $(shell which rootcling)
6+ ifeq ($(ROOTCLING ) ,)
7+ $(error Could not find rootcling)
8+ endif
9+
10+ CXX := $(shell $(ROOT_CONFIG ) --cxx)
11+ CXXFLAGS_ROOT := $(shell $(ROOT_CONFIG ) --cflags)
12+ CXXFLAGS := -Wall $(CXXFLAGS_ROOT )
13+ LDFLAGS := $(shell $(ROOT_CONFIG ) --libs)
814
915.PHONY : all clean
1016
11- all : NestedUnorderedSet.cxx libNestedUnorderedSet.so
17+ all : libNestedUnorderedSet.so
1218
1319NestedUnorderedSet.cxx : NestedUnorderedSet.hxx LinkDef.h
14- rootcling -f $@ $^
20+ $( ROOTCLING ) -f $@ $^
1521
1622libNestedUnorderedSet.so : NestedUnorderedSet.cxx
1723 $(CXX ) -shared -fPIC -o $@ $^ $(CXXFLAGS ) $(LDFLAGS )
1824
1925clean :
20- rm -f NestedUnorderedSet.cxx NestedUnorderedSet_rdict.pcm libNestedUnorderedSet.so
26+ $( RM ) NestedUnorderedSet.cxx NestedUnorderedSet_rdict.pcm libNestedUnorderedSet.so
Original file line number Diff line number Diff line change 1- CXX =g++
2- CXXFLAGS_ROOT =$(shell root-config --cflags)
3- ifeq ($(CXXFLAGS_ROOT ) ,)
4- $(error cannot find root-config : make sure to source thisroot.sh)
1+ ROOT_CONFIG ?= $(shell which root-config)
2+ ifeq ($(ROOT_CONFIG ) ,)
3+ $(error Could not find root-config)
54endif
6- CXXFLAGS =-Wall $(CXXFLAGS_ROOT )
7- LDFLAGS =$(shell root-config --libs)
5+ ROOTCLING ?= $(shell which rootcling)
6+ ifeq ($(ROOTCLING ) ,)
7+ $(error Could not find rootcling)
8+ endif
9+
10+ CXX := $(shell $(ROOT_CONFIG ) --cxx)
11+ CXXFLAGS_ROOT := $(shell $(ROOT_CONFIG ) --cflags)
12+ CXXFLAGS := -Wall $(CXXFLAGS_ROOT )
13+ LDFLAGS := $(shell $(ROOT_CONFIG ) --libs)
814
915.PHONY : all clean
1016
11- all : UserClass.cxx libUserClass.so
17+ all : libUserClass.so
1218
1319UserClass.cxx : UserClass.hxx LinkDef.h
14- rootcling -f $@ $^
20+ $( ROOTCLING ) -f $@ $^
1521
1622libUserClass.so : UserClass.cxx
1723 $(CXX ) -shared -fPIC -o $@ $^ $(CXXFLAGS ) $(LDFLAGS )
1824
1925clean :
20- rm -f UserClass.cxx UserClass_rdict.pcm libUserClass.so
26+ $( RM ) UserClass.cxx UserClass_rdict.pcm libUserClass.so
Original file line number Diff line number Diff line change 1- CXX =g++
2- CXXFLAGS_ROOT =$(shell root-config --cflags)
3- ifeq ($(CXXFLAGS_ROOT ) ,)
4- $(error cannot find root-config : make sure to source thisroot.sh)
1+ ROOT_CONFIG ?= $(shell which root-config)
2+ ifeq ($(ROOT_CONFIG ) ,)
3+ $(error Could not find root-config)
54endif
6- CXXFLAGS =-Wall $(CXXFLAGS_ROOT )
7- LDFLAGS =$(shell root-config --libs)
5+ ROOTCLING ?= $(shell which rootcling)
6+ ifeq ($(ROOTCLING ) ,)
7+ $(error Could not find rootcling)
8+ endif
9+
10+ CXX := $(shell $(ROOT_CONFIG ) --cxx)
11+ CXXFLAGS_ROOT := $(shell $(ROOT_CONFIG ) --cflags)
12+ CXXFLAGS := -Wall $(CXXFLAGS_ROOT )
13+ LDFLAGS := $(shell $(ROOT_CONFIG ) --libs)
814
915.PHONY : all clean
1016
11- all : UserEnum.cxx libUserEnum.so
17+ all : libUserEnum.so
1218
1319UserEnum.cxx : UserEnum.hxx LinkDef.h
14- rootcling -f $@ $^
20+ $( ROOTCLING ) -f $@ $^
1521
1622libUserEnum.so : UserEnum.cxx
1723 $(CXX ) -shared -fPIC -o $@ $^ $(CXXFLAGS ) $(LDFLAGS )
1824
1925clean :
20- rm -f UserEnum.cxx UserEnum_rdict.pcm libUserEnum.so
26+ $( RM ) UserEnum.cxx UserEnum_rdict.pcm libUserEnum.so
You can’t perform that action at this time.
0 commit comments