diff --git a/slsDetectorSoftware/Makefile b/slsDetectorSoftware/Makefile index fef683c0d..939aaed10 100644 --- a/slsDetectorSoftware/Makefile +++ b/slsDetectorSoftware/Makefile @@ -3,9 +3,9 @@ CFLAGS= -DC_ONLY -fPIC DFLAGS= -DDACS_INT -ASM=$(shell echo "/lib/modules/`uname -r`/build/include") +#ASM=$(shell echo "/lib/modules/`uname -r`/build/include") -INCLUDES= -IcommonFiles -IslsDetector -IMySocketTCP -IusersFunctions -ImultiSlsDetector -IslsDetectorUtils -IslsDetectorCommand -IslsDetectorAnalysis -IslsReceiverInterface -I$(ASM) +#INCLUDES= -IcommonFiles -IslsDetector -IMySocketTCP -IusersFunctions -ImultiSlsDetector -IslsDetectorUtils -IslsDetectorCommand -IslsDetectorAnalysis -IslsReceiverInterface -I$(ASM) #EPICSFLAGS=-D EPICS -I/usr/local/epics/base/include/ -I /usr/local/epics/base/include/os/Linux/ -L /usr/local/epics/base/lib/SL5-x86/ -Wl,-R/usr/local/epics/base/lib/SL5-x86 -lca -lCom CC=g++ @@ -23,7 +23,8 @@ SRC_MYTHEN_SVC = mythenDetectorServer/server.c mythenDetectorServer/server_funcs - +DESTDIR ?= bin +DOCDIR ?= docs @@ -31,9 +32,29 @@ SRC_MYTHEN_SVC = mythenDetectorServer/server.c mythenDetectorServer/server_funcs all: package $(SRC_CLNT) echo "compiling all" -doc: $(SRC_H) $(SRC_CLNT) +intdoc: $(SRC_H) $(SRC_CLNT) doxygen doxy.config +doc: $(DOCDIR)/pdf/slsDetectorUsersDocs.pdf + mv slsDetectorUsersDocs/latex/refman.pdf $(DOCDIR)/pdf/slsDetectorUsersDocs.pdf + +$(DOCDIR)/pdf/slsDetectorUsersDocs.pdf: slsDetectorUsersDocs + cd slsDetectorUsersDocs/latex && make + $(shell test -d $(DOCDIR) || mkdir -p $(DOCDIR)) + $(shell test -d $(DOCDIR)/pdf || mkdir -p $(DOCDIR)/pdf) + cp slsDetectorUsersDocs/latex/refman.pdf $(DOCDIR)/pdf/slsDetectorUsersDocs.pdf + + +htmldoc: $(DOCDIR)/html/slsDetectorUsersDocs + +$(DOCDIR)/html/slsDetectorUsersDocs: slsDetectorUsersDocs + $(shell test -d $(DOCDIR) || mkdir -p $(DOCDIR)) + $(shell test -d $(DOCDIR)/html || mkdir -p $(DOCDIR)/html) + $(shell test -d $(DOCDIR)/html/slsDetectorUsersDocs && rm -r $(DOCDIR)/html/slsDetectorUsersDocs) + cp -r slsDetectorUsersDocs/html $(DOCDIR)/html/slsDetectorUsersDocs + +slsDetectorUsersDocs: slsDetectorUsers.doxy slsDetector/slsDetectorUsers.h slsDetector/slsDetectorUsers.cpp slsDetectorAnalysis/detectorData.h + doxygen slsDetectorUsers.doxy mythenServer: $(SRC_MYTHEN_SVC) @@ -52,28 +73,29 @@ picassoServer: $(SRC_MYTHEN_SVC) $(CXX) -Wall -o $@ -c $< $(INCLUDES) $(DFLAGS) $(FLAGS) -fPIC $(EPICSFLAGS) -L/usr/lib64/ -package: $(OBJS) + + +package: $(OBJS) $(DESTDIR)/libSlsDetector.so $(DESTDIR)/libSlsDetector.a + +$(DESTDIR)/libSlsDetector.so: $(OBJS) $(CXX) -shared -Wl,-soname,libSlsDetector.so -o libSlsDetector.so $(OBJS) -lc $(INCLUDES) $(DFLAGS) $(FLAGS) $(EPICSFLAGS) -L/usr/lib64/ + $(shell test -d $(DESTDIR) || mkdir -p $(DESTDIR)) + mv libSlsDetector.so $(DESTDIR) + +$(DESTDIR)/libSlsDetector.a: $(OBJS) ar rcs libSlsDetector.a $(OBJS) + mv libSlsDetector.a $(DESTDIR) clean: - rm -rf libSlsDetector.a libSlsDetector.so core docs/* $(OBJS) + rm -rf libSlsDetector.a libSlsDetector.so core docs/* slsDetectorUsersDocs $(OBJS) #------------------------------------------------------------------------------- -lib: package - -# added install target, HBl -install_lib: lib - $(shell test -d $(DESTDIR) || mkdir -p $(DESTDIR)) - cp -P libSlsDetector.so $(DESTDIR) +install: package install_inc: $(shell test -d $(DESTDIR) || mkdir -p $(DESTDIR)) - cp -P $(HEADERS) $(DESTDIR) + cp -P slsDetector/slsDetectorUsers.h slsDetectorAnalysis/detectorData.h $(DESTDIR) -install_doc: doc - $(shell test -d $(DESTDIR) || mkdir -p $(DESTDIR)) - cp -Pr docs/* $(DESTDIR) diff --git a/slsDetectorSoftware/slsDetector/slsDetectorUsers.h b/slsDetectorSoftware/slsDetector/slsDetectorUsers.h index ed7a38ac5..a0e1e76b2 100644 --- a/slsDetectorSoftware/slsDetector/slsDetectorUsers.h +++ b/slsDetectorSoftware/slsDetector/slsDetectorUsers.h @@ -23,14 +23,22 @@ class multiSlsDetector; using namespace std; -/** +/* \mainpage - Paul Scherrer Institut

API for SLS detectors data acquisition


+*/ +/** + \mainpage + Paul Scherrer Institut + +

API for SLS detectors data acquisition

+ +
+ Although the SLS detectors group delvelops several types of detectors (1/2D, counting/integrating etc.) it is common interest of the group to use a common platfor for data acquisition The architecture of the acquisitions system is intended as follows: diff --git a/slsDetectorSoftware/slsReceiver/Makefile b/slsDetectorSoftware/slsReceiver/Makefile index d2e83e968..68c4ff8a7 100644 --- a/slsDetectorSoftware/slsReceiver/Makefile +++ b/slsDetectorSoftware/slsReceiver/Makefile @@ -6,7 +6,7 @@ INCLUDES = -I ../MySocketTCP -I ../commonFiles -I . SRC_CLNT = slsReceiver.cpp ../MySocketTCP/MySocketTCP.cpp slsReceiver_funcs.cpp slsReceiverFunctionList.cpp PROGS = slsReceiver -INSTDIR = bin +DESTDIR ?= bin INSTMODE = 0777 OBJS = $(SRC_CLNT:.cpp=.o) @@ -18,11 +18,11 @@ boot: $(OBJS) $(PROGS): echo $(OBJS) - mkdir -p $(INSTDIR) + mkdir -p $(DESTDIR) gcc $(SRC_CLNT) $(INCLUDES) $(CLAGS) $(LDLIBS) -o $@ - mv $(PROGS) $(INSTDIR) - - -clean: - rm -rf $(PROGS) *.o $(INSTDIR)/* + mv $(PROGS) $(DESTDIR) + + +clean: + rm -rf $(PROGS) *.o