mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-05-05 12:20:02 +02:00

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@30 951219d9-93cf-4727-9268-0efd64621fa3
71 lines
3.2 KiB
Makefile
71 lines
3.2 KiB
Makefile
CFLAGS= -DC_ONLY
|
|
FLAGS=-DVERBOSE
|
|
INCLUDES= -I commonFiles -I slsDetector -I MySocketTCP -I eigerDetector -ImythenDetector -I usersFunctions
|
|
|
|
|
|
#SRC_H= slsDetector/slsDetector.h mythenDetector/mythenDetector.h eigerDetector/eigerDetector.h MySocketTCP/MySocketTCP.h usersFunctions/usersFunctions.h commonFiles/sls_detector_defs.h
|
|
|
|
#mythenDetectorServer/communication_funcs.h mythenDetectorServer/firmware_funcs.h mythenDetectorServer/mcb_funcs.h mythenDetectorServer/registers.h mythenDetectorServer/server_defs.h mythenDetectorServer/server_funcs.h mythenDetectorServer/trimming_funcs.h
|
|
|
|
|
|
SRC_CLNT= slsDetector/slsDetector.cpp MySocketTCP/MySocketTCP.cxx usersFunctions/usersFunctions.c mythenDetector/mythenDetector.cpp eigerDetector/eigerDetector.cpp
|
|
|
|
SRC_MYTHEN_SVC = mythenDetectorServer/server.c mythenDetectorServer/server_funcs.c mythenDetectorServer/communication_funcs.c mythenDetectorServer/firmware_funcs.c mythenDetectorServer/mcb_funcs.c mythenDetectorServer/trimming_funcs.c
|
|
#mythenDetectorServer/sharedmemory.c
|
|
|
|
all: package mythenServer doc picassoServer
|
|
|
|
doc: $(SRC_H) $(SRC_CLNT)
|
|
doxygen doxy.config
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mythenServer: $(SRC_MYTHEN_SVC)
|
|
$(CC) $(SRC_MYTHEN_SVC) $(CFLAGS) $(FLAGS) $(INCLUDES) -ImythenDetectorServer -D VIRTUAL -lm -D MCB_FUNCS -D C_ONLY
|
|
mv a.out mythenServer
|
|
|
|
|
|
picassoServer: $(SRC_MYTHEN_SVC)
|
|
$(CXX) $(SRC_MYTHEN_SVC) $(CFLAGS) $(FLAGS) $(INCLUDES) -ImythenDetectorServer -D VIRTUAL -lm -D MCB_FUNCS -DPICASSOD
|
|
mv a.out picassoServer
|
|
|
|
|
|
|
|
package: $(SRC_CLNT)
|
|
$(CXX) -fPIC -g -o objs/slsDetector.o -c -Wall slsDetector/slsDetector.cpp $(INCLUDES) $(FLAGS)
|
|
# $(CXX) -fPIC -g -o objs/eigerDetector.o -c -Wall eigerDetector/eigerDetector.cpp $(INCLUDES) $(FLAGS)
|
|
$(CXX) -fPIC -g -o objs/mythenDetector.o -c -Wall mythenDetector/mythenDetector.cpp $(INCLUDES) $(FLAGS)
|
|
$(CXX) -fPIC -g -o objs/usersFunctions.o -c -Wall usersFunctions/usersFunctions.c $(INCLUDES) $(FLAGS)
|
|
$(CXX) -fPIC -g -o objs/MySocketTCP.o -c -Wall MySocketTCP/MySocketTCP.cxx $(INCLUDES) $(FLAGS)
|
|
$(CXX) -shared -Wl,-soname,libSlsDetector.so.1 -o libSlsDetector.so.1.0.1 objs/slsDetector.o objs/mythenDetector.o objs/usersFunctions.o objs/MySocketTCP.o -lc $(INCLUDES) $(FLAGS)
|
|
ln -sf libSlsDetector.so.1.0.1 libSlsDetector.so
|
|
ar rcs libSlsDetector.a objs/slsDetector.o objs/mythenDetector.o objs/usersFunctions.o objs/MySocketTCP.o
|
|
|
|
clean:
|
|
rm -rf libSlsDetector.so.1.0.1 libSlsDetector.so core objs/* docs/*
|
|
|
|
#-------------------------------------------------------------------------------
|
|
lib: package
|
|
|
|
|
|
# added install target, HBl
|
|
install_lib: lib
|
|
$(shell test -d $(DESTDIR) || mkdir -p $(DESTDIR))
|
|
cp -P libSlsDetector.so.1.0.1 libSlsDetector.so $(DESTDIR)
|
|
|
|
install_inc:
|
|
$(shell test -d $(DESTDIR) || mkdir -p $(DESTDIR))
|
|
cp -P ../slsDetectorSoftware/MySocketTCP/MySocketTCP.h $(DESTDIR)
|
|
cp -P ../slsDetectorSoftware/eigerDetector/eigerDetector.h $(DESTDIR)
|
|
cp -P ../slsDetectorSoftware/mythenDetector/mythenDetector.h $(DESTDIR)
|
|
cp -P ../slsDetectorSoftware/slsDetector/slsDetector.h $(DESTDIR)
|
|
cp -P ../slsDetectorSoftware/commonFiles/sls_detector_defs.h $(DESTDIR)
|
|
cp -P ../slsDetectorSoftware/usersFunctions/usersFunctions.h $(DESTDIR)
|
|
|
|
install_doc:
|
|
$(shell test -d $(DESTDIR) || mkdir -p $(DESTDIR))
|
|
cp -Pr docs/* $(DESTDIR)
|