bergamaschi ee36cdf9e4 functions splitted in many sub-files
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@167 951219d9-93cf-4727-9268-0efd64621fa3
2012-04-02 15:16:32 +00:00

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