Skip to content

Commit

Permalink
Remove graphic libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
usarica committed Oct 2, 2020
1 parent b1b2d22 commit c81ac33
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
14 changes: 7 additions & 7 deletions CandidateLOCaster/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@ TESTDIR = $(COMPILEPATH)test/
RUNDIR = $(COMPILEPATH)
LIB = libMelaAnalyticsCandidateLOCaster.so

ROOTCFLAGS = $(shell root-config --cflags) -Lrootlib -lEG
ROOTGLIBS = $(shell root-config --glibs) -Lrootlib -lEG
ROOTCFLAGS = $(shell root-config --cflags) -Lrootlib
ROOTLIBS = $(shell root-config --libs) -Lrootlib

ARCH := $(shell root-config --arch)

CXX = g++
CXXFLAGS = -fPIC -g -O2 $(ROOTCFLAGS) -I$(ROOFITSYS)/include/ -I$(INCLUDEDIR) -I$(MELADIR)/interface/
LINKERFLAGS = -Wl,-rpath=$(LIBDIR),-soname,$(LIB)

NGLIBS = $(ROOTGLIBS)
NLIBS = $(ROOTLIBS)
# Hack here, because RooFit is removed from ROOT:
NGLIBS += -L $(ROOFITSYS)/lib/ -lMinuit -lRooFitCore -lRooFit #-lboost_regex
NLIBS += -L $(ROOFITSYS)/lib/ -lMinuit -lRooFitCore -lRooFit #-lboost_regex
# Libraries for common user packages
NGLIBS += -lJHUGenMELAMELA
NLIBS += -lJHUGenMELAMELA
# Filter out libNew because it leads to floating-point exceptions in versions of ROOT prior to 6.08.02
# See the thread https://root-forum.cern.ch/t/linking-new-library-leads-to-a-floating-point-exception-at-startup/22404
GLIBS = $(filter-out -lNew, $(NGLIBS))
LIBS = $(filter-out -lNew, $(NLIBS))


SOURCES = $(wildcard $(SRCDIR)*.cc)
Expand All @@ -44,7 +44,7 @@ all: $(LIB)

%.o: $(SRCDIR)%.cc $(SRCDIR)%.cxx $(BINDIR)%.cc $(BINDIR)%.cxx
$(QUIET) echo "Compiling $<"; \
$(CXX) $(CXXFLAGS) $< -c -o $@ $(GLIBS)
$(CXX) $(CXXFLAGS) $< -c -o $@ $(LIBS)


$(LIB): $(OBJECTS)
Expand Down
14 changes: 7 additions & 7 deletions EventContainer/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@ TESTDIR = $(COMPILEPATH)test/
RUNDIR = $(COMPILEPATH)
LIB = libMelaAnalyticsEventContainer.so

ROOTCFLAGS = $(shell root-config --cflags) -Lrootlib -lEG
ROOTGLIBS = $(shell root-config --glibs) -Lrootlib -lEG
ROOTCFLAGS = $(shell root-config --cflags) -Lrootlib
ROOTLIBS = $(shell root-config --libs) -Lrootlib

ARCH := $(shell root-config --arch)

CXX = g++
CXXFLAGS = -fPIC -g -O2 $(ROOTCFLAGS) -I$(ROOFITSYS)/include/ -I$(INCLUDEDIR) -I$(MELADIR)/interface/
LINKERFLAGS = -Wl,-rpath=$(LIBDIR),-soname,$(LIB)

NGLIBS = $(ROOTGLIBS)
NLIBS = $(ROOTLIBS)
# Hack here, because RooFit is removed from ROOT:
NGLIBS += -L $(ROOFITSYS)/lib/ -lMinuit -lRooFitCore -lRooFit #-lboost_regex
NLIBS += -L $(ROOFITSYS)/lib/ -lMinuit -lRooFitCore -lRooFit #-lboost_regex
# Libraries for common user packages
NGLIBS += -lJHUGenMELAMELA
NLIBS += -lJHUGenMELAMELA
# Filter out libNew because it leads to floating-point exceptions in versions of ROOT prior to 6.08.02
# See the thread https://root-forum.cern.ch/t/linking-new-library-leads-to-a-floating-point-exception-at-startup/22404
GLIBS = $(filter-out -lNew, $(NGLIBS))
LIBS = $(filter-out -lNew, $(NLIBS))


SOURCES = $(wildcard $(SRCDIR)*.cc)
Expand All @@ -44,7 +44,7 @@ all: $(LIB)

%.o: $(SRCDIR)%.cc $(SRCDIR)%.cxx $(BINDIR)%.cc $(BINDIR)%.cxx
$(QUIET) echo "Compiling $<"; \
$(CXX) $(CXXFLAGS) $< -c -o $@ $(GLIBS)
$(CXX) $(CXXFLAGS) $< -c -o $@ $(LIBS)


$(LIB): $(OBJECTS)
Expand Down
14 changes: 7 additions & 7 deletions GenericMEComputer/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ TESTDIR = $(COMPILEPATH)test/
RUNDIR = $(COMPILEPATH)
LIB = libMelaAnalyticsGenericMEComputer.so

ROOTCFLAGS = $(shell root-config --cflags) -Lrootlib -lEG
ROOTGLIBS = $(shell root-config --glibs) -Lrootlib -lEG
ROOTCFLAGS = $(shell root-config --cflags) -Lrootlib
ROOTLIBS = $(shell root-config --libs) -Lrootlib

ARCH := $(shell root-config --arch)

CXX = g++
CXXFLAGS = -fPIC -g -O2 $(ROOTCFLAGS) -I$(ROOFITSYS)/include/ -I$(INCLUDEDIR) -I$(MELADIR)/interface/ -L$(MELALIBDIR)
LINKERFLAGS = -Wl,-rpath=$(LIBDIR),-soname,$(LIB)

NGLIBS = $(ROOTGLIBS)
NLIBS = $(ROOTLIBS)
# Hack here, because RooFit is removed from ROOT:
NGLIBS += -L $(ROOFITSYS)/lib/ -lMinuit -lRooFitCore -lRooFit #-lboost_regex
NLIBS += -L $(ROOFITSYS)/lib/ -lMinuit -lRooFitCore -lRooFit #-lboost_regex
# Libraries for common user packages
NGLIBS += -lJHUGenMELAMELA
NLIBS += -lJHUGenMELAMELA
# Filter out libNew because it leads to floating-point exceptions in versions of ROOT prior to 6.08.02
# See the thread https://root-forum.cern.ch/t/linking-new-library-leads-to-a-floating-point-exception-at-startup/22404
GLIBS = $(filter-out -lNew, $(NGLIBS))
LIBS = $(filter-out -lNew, $(NLIBS))


SOURCES = $(wildcard $(SRCDIR)*.cc)
Expand All @@ -45,7 +45,7 @@ all: $(LIB)

%.o: $(SRCDIR)%.cc $(SRCDIR)%.cxx $(BINDIR)%.cc $(BINDIR)%.cxx
$(QUIET) echo "Compiling $<"; \
$(CXX) $(CXXFLAGS) $< -c -o $@ $(GLIBS)
$(CXX) $(CXXFLAGS) $< -c -o $@ $(LIBS)


$(LIB): $(OBJECTS)
Expand Down

0 comments on commit c81ac33

Please sign in to comment.