Commit f7e572d3 authored by teresa's avatar teresa

Adding mythen

parent 274313e1
......@@ -321,9 +321,33 @@ build_targets += $(adsc-full)
endif
############################
# LIMA - MYTHEN
############################
ifneq ($(COMPILE_MYTHEN),0)
MYTHEN_LDLIBS := -lSlsDetector
name := mythen
mythen-objs := ../camera/mythen/src/Mythen.o
version-file := ../camera/mythen/VERSION
mythen-flags := $(LDFLAGS)
mythen-deps := $(MYTHEN_LDLIBS)
full-version := $(shell cat $(version-file))
maj-version := $(shell echo $(full-version) | cut -f1 -d.)
mythen-base := liblima$(name).so
mythen-full := $(mythen-base).$(full-version)
mythen-maj := $(mythen-base).$(maj-version)
mythen-flags += -fPIC -Wl,-soname,$(mythen-maj)
$(mythen-full): $(mythen-objs)
$(CXX) -shared -o $@ $(mythen-flags) $+ $(mythen-deps)
rm -f $(mythen-maj); ln -s $(mythen-full) $(mythen-maj)
rm -f $(mythen-base); ln -s $(mythen-maj) $(mythen-base)
build_targets += $(mythen-full)
src: $(build_targets)
......
......@@ -80,4 +80,12 @@ ifneq ($(COMPILE_ADSC),0)
sub-dirs += adsc
endif
ifndef COMPILE_MYTHEN
COMPILE_MYTHEN = 0
endif
ifneq ($(COMPILE_MYTHEN),0)
sub-dirs += mythen
endif
include ../global.inc
......@@ -58,6 +58,11 @@ ifneq ($(COMPILE_ADSC), 0)
sip-modules += adsc
endif
ifneq ($(COMPILE_MYTHEN), 0)
sip-modules += mythen
endif
all: src
src:
......
......@@ -35,7 +35,8 @@ modules = [('core', ['common', 'hardware', 'control']),
('basler', [os.path.join('camera','basler')]),
('prosilica', [os.path.join('camera','prosilica')]),
('roperscientific', [os.path.join('camera','roperscientific')]),
('adsc', [os.path.join('camera','adsc')])]
('adsc', [os.path.join('camera','adsc')]),
('mythen', [os.path.join('camera','mythen')])]
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