mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-23 06:50:02 +02:00

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@167 951219d9-93cf-4727-9268-0efd64621fa3
88 lines
1.2 KiB
Makefile
88 lines
1.2 KiB
Makefile
#---------------------------------------------------
|
|
|
|
|
|
include Makefile.arch
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
SLSDETO = TSlsDetectorDict.$(ObjSuf) energyCalibration.$(ObjSuf) angularCalibration.$(ObjSuf)
|
|
|
|
SLSDETSO = libTSlsDetector.$(DllSuf)
|
|
|
|
CXXFLAGS += -Wno-deprecated
|
|
#LIBS += -L../slsDetectorSoftware -lSlsDetector -pthread
|
|
|
|
CXXFLAGS += -I ../usersFunctions
|
|
|
|
HEADERS= energyCalibration.h angularCalibration.h
|
|
#-------------------------------------------------------------------------------
|
|
|
|
#----------- do the shared library
|
|
$(SLSDETSO): $(SLSDETO)
|
|
@echo "Generating shared library $@..."
|
|
$(LD) $(SOFLAGS) $(LDFLAGS) -o $@ $(LIBS) $^
|
|
|
|
|
|
# ---------- Default rule
|
|
|
|
%.$(ObjSuf): %.cpp
|
|
@echo "Compiling source $@..."
|
|
$(CXX) $(CXXFLAGS) -c $<
|
|
|
|
|
|
#----------- do the dictionary
|
|
TSlsDetectorDict.$(SrcSuf): $(HEADERS)
|
|
@echo "Generating dictionary $@..."
|
|
rootcint -f $@ -c -p $^
|
|
|
|
#-------------------------------------------------------------------------------
|
|
all: $(SLSDETSO)
|
|
|
|
clean:
|
|
@rm -f $(SLSDETO) core
|
|
|
|
distclean: clean
|
|
@rm -f *Dict.* *.so *.o
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|