add Xpad in makefile compilation

parent 27f26312
tango @ 3e2845b7
Subproject commit 3a191fd13f523cdccc27af9ea6934e9163b21026
Subproject commit 3e2845b7d8da38ad96a406018ad3a9495ee85df1
......@@ -380,6 +380,36 @@ build_targets += $(mythen-full)
endif
############################
# LIMA - XPAD
############################
ifneq ($(COMPILE_XPAD),0)
XPAD_LDLIBS :=
name := xpad
xpad-objs := ../camera/xpad/src/Xpad.o
version-file := ../camera/xpad/VERSION
xpad-flags := $(LDFLAGS)
xpad-deps := $(XPAD_LDLIBS)
full-version := $(shell cat $(version-file))
maj-version := $(shell echo $(full-version) | cut -f1 -d.)
xpad-base := liblima$(name).so
xpad-full := $(xpad-base).$(full-version)
xpad-maj := $(xpad-base).$(maj-version)
xpad-flags += -fPIC -Wl,-soname,$(xpad-maj)
$(xpad-full): $(xpad-objs)
$(CXX) -shared -o $@ $(xpad-flags) $+ $(xpad-deps)
rm -f $(xpad-maj); ln -s $(xpad-full) $(xpad-maj)
rm -f $(xpad-base); ln -s $(xpad-maj) $(xpad-base)
build_targets += $(xpad-full)
endif
src: $(build_targets)
test:
......
......@@ -92,4 +92,8 @@ ifneq ($(COMPILE_UEYE),0)
sub-dirs += ueye
endif
ifneq ($(COMPILE_XPAD),0)
sub-dirs += xpad
endif
include ../global.inc
xpad @ b177de77
Subproject commit ea742112af4ac652411e10d92c19501bfae155fb
Subproject commit b177de77f45cab28aeaf00f7b8f2e1f8908c36d9
......@@ -33,11 +33,12 @@ COMPILE_ROPERSCIENTIFIC=0
COMPILE_MYTHEN=0
COMPILE_ADSC=0
COMPILE_UEYE=0
COMPILE_XPAD=0
COMPILE_PERKINELMER=0
COMPILE_CBF_SAVING=0
COMPILE_NXS_SAVING=0
export COMPILE_CORE COMPILE_SPS_IMAGE COMPILE_SIMULATOR \
COMPILE_ESPIA COMPILE_FRELON COMPILE_MAXIPIX COMPILE_PILATUS \
COMPILE_BASLER COMPILE_PROSILICA COMPILE_ROPERSCIENTIFIC COMPILE_ADSC \
COMPILE_MYTHEN COMPILE_UEYE COMPILE_PERKINELMER COMPILE_CBF_SAVING COMPILE_NXS_SAVING
COMPILE_MYTHEN COMPILE_UEYE COMPILE_XPAD COMPILE_PERKINELMER COMPILE_CBF_SAVING COMPILE_NXS_SAVING
......@@ -18,6 +18,7 @@ mythen
ueye
pco
perkinelmer
xpad
*.obj
lima*.exp
lima*.lib
......
......@@ -40,6 +40,7 @@ modules = [('core', ['common', 'hardware', 'control']),
('adsc', [os.path.join('camera','adsc')]),
('mythen', [os.path.join('camera','mythen')]),
('perkinelmer', [os.path.join('camera','perkinelmer')]),
('xpad', [os.path.join('camera','xpad')]),
]
espiaModules = ['espia', 'frelon', 'maxipix']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment