slsDetectorPackage/Makefile.include
l_maliakal_d 2eb798840d root sls
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorsPackage@73 08cae9ef-cb74-4d14-b03a-d7ea46f178d7
2014-04-09 15:57:09 +00:00

51 lines
1.6 KiB
Makefile

##############################################################
# Generic
##############################################################
CC = g++
CXX = $(CC)
ASM=$(shell echo "/lib/modules/`uname -r`/build/include")
LDFLAG = -L$(LIBDIR) -lSlsDetector -L/usr/lib64/ -lpthread
FLAGS= -Wall -DVERBOSE
##############################################################
# EigerSLS specific. Set this to yes, if you want to compile
# EigerSLS code: in this case, you need also POCO and JsonBox
# libraries
##############################################################
EIGERSLS = no
#POCODIR = /afs/psi.ch/user/s/sala/public/poco-slp_5.7-32bit
#JSONBOXDIR = /afs/psi.ch/user/s/sala/public/JsonBox-slp_5.7-32bit
#POCODIR = /afs/psi.ch/user/s/sala/public/poco-slp_6.4-64bit
#JSONBOXDIR = /afs/psi.ch/user/s/sala/public/JsonBox-slp_6.4-64bit
POCODIR = /home/sala/Programs/poco-ubuntu_13.10-64bit
JSONBOXDIR = /home/sala/Programs/JsonBox-ubuntu_13.10-64bit
EIGERFLAGS = -L$(POCODIR)/lib -Wl,-rpath=$(POCODIR)/lib -I$(POCODIR)/include -L$(JSONBOXDIR) -Wl,-rpath=$(JSONBOXDIR)/lib -I$(JSONBOXDIR)/include -lPocoNet -lPocoFoundation -lJsonBox
ifeq ($(EIGERSLS),yes)
LDFLAG = -L$(LIBDIR) -lSlsDetector $(EIGERFLAGS) -DEIGERSLS
endif
##############################################################
# ROOTSLS specific. Set this to yes, if you want to compile
# ROOTSLS code: in this case, you need also root libraries
##############################################################
ROOTSLS = no
ROOTFLAGS = $(shell root-config --cflags --glibs) -DMYROOT1 #-DALLFILE_DEBUG #-DMYROOT1
ifeq ($(ROOTSLS),yes)
LDFLAG = -L$(LIBDIR) -lSlsDetector $(ROOTFLAGS) -DROOTSLS
endif