Skip to content

Commit

Permalink
Add sensing of the sqlitecpp version and name the library directory a…
Browse files Browse the repository at this point in the history
…ccordingly.
  • Loading branch information
markito3 committed Sep 27, 2021
1 parent e66fb38 commit 8df9abe
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,20 @@ HDDS_sources := $(HDDS_HOME)/XString.cpp $(HDDS_HOME)/XParsers.cpp $(HDDS_HOME)/

ROOTLIBS = $(shell root-config --libs) -lGeom -lTMVA -lTreePlayer -ltbb

ifdef SQLITECPP_VERSION
SQLITECPP_MAJOR_VERSION := $(shell echo $(SQLITECPP_VERSION) | awk -F. '{print $$1}')
SQLITECPP_MINOR_VERSION := $(shell echo $(SQLITECPP_VERSION) | awk -F. '{print $$2}')
SQLITECPP_LIBDIR := $(shell if [[ $(SQLITECPP_MAJOR_VERSION) -ge 3 || $(SQLITECPP_MAJOR_VERSION) -eq 2 && $(SQLITECPP_MINOR_VERSION) -ge 5 ]]; then echo lib64; else echo lib; fi)
else
SQLITECPP_LIBDIR = lib64
endif

DANALIBS = -L$(HALLD_RECON_HOME)/$(BMS_OSNAME)/lib -lHDGEOMETRY -lDANA \
-lANALYSIS -lBCAL -lCCAL -lCDC -lCERE -lTRD -lDIRC -lFCAL \
-lFDC -lFMWPC -lHDDM -lPAIR_SPECTROMETER -lPID -lRF \
-lSTART_COUNTER -lTAGGER -lTOF -lTPOL -lTRACKING \
-lTRIGGER -lDAQ -lTTAB -lEVENTSTORE -lKINFITTER -lTAC \
-L$(SQLITECPP_HOME)/lib -lSQLiteCpp -L$(SQLITE_HOME)/lib -Wl,-rpath=$(SQLITE_HOME)/lib -lsqlite3 \
-L$(SQLITECPP_HOME)/$(SQLITECPP_LIBDIR) -lSQLiteCpp -L$(SQLITE_HOME)/lib -Wl,-rpath=$(SQLITE_HOME)/lib -lsqlite3 \
-lxstream -lbz2 -lz \
-L/usr/lib64/mysql -lmysqlclient\
-L$(JANA_HOME)/lib -lJANA \
Expand Down

0 comments on commit 8df9abe

Please sign in to comment.