Revision 77ab7cb4f88c0a4fd2f86b974eb5f08a6cdf8ccc authored by Ilka Antcheva on 28 August 2006, 09:30:47 UTC, committed by Ilka Antcheva on 28 August 2006, 09:30:47 UTC
git-svn-id: http://root.cern.ch/svn/root/trunk@16140 27541ba8-7e3a-0410-8455-c3a389f83636
1 parent c5acb10
Module.mk
# Module.mk for proofd module
# Copyright (c) 2000 Rene Brun and Fons Rademakers
#
# Author: Fons Rademakers, 29/2/2000
MODDIR := proofd
MODDIRS := $(MODDIR)/src
MODDIRI := $(MODDIR)/inc
PROOFDDIR := $(MODDIR)
PROOFDDIRS := $(PROOFDDIR)/src
PROOFDDIRI := $(PROOFDDIR)/inc
ifeq ($(PLATFORM),win32)
##### XrdProofd plugin ####
XPDH := $(wildcard $(MODDIRI)/X*.h)
XPDS := $(wildcard $(MODDIRS)/X*.cxx)
XPDO := $(XPDS:.cxx=.o)
XPDO := $(MODDIRS)/XProofProtUtils.o
##### Object files used by libProofx #####
XPCONNH := $(MODDIRI)/XrdProofConn.h $(MODDIRI)/XrdProofPhyConn.h \
$(MODDIRI)/XProofProtUtils.h
XPCONNS := $(MODDIRS)/XrdProofConn.cxx $(MODDIRS)/XrdProofPhyConn.cxx \
$(MODDIRS)/XProofProtUtils.cxx
XPCONNO := $(MODDIRS)/XrdProofConn.o $(MODDIRS)/XrdProofPhyConn.o \
$(MODDIRS)/XProofProtUtils.o
XPDDEP := $(XPCONNO:.o=.d)
XPDLIB := $(LPATH)/libXrdProofd.$(SOEXT)
# Extra include paths and libs
XPDINCEXTRA := $(XROOTDDIRI:%=-I%)
XPDINCEXTRA += $(PROOFDDIRI:%=-I%)
XPDLIBEXTRA += $(XROOTDDIRL)/libXrdClient.lib
# used in the main Makefile
PROOFDEXEH := $(MODDIRI)/proofdp.h
ALLHDRS += $(patsubst $(MODDIRI)/%.h,include/%.h,$(PROOFDEXEH))
ALLLIBS += $(XPDLIB)
# include all dependency files
INCLUDEFILES += $(XPDDEP)
##### local rules #####
include/%.h: $(PROOFDDIRI)/%.h
cp $< $@
$(XPDLIB): $(XPCONNO) $(XPCONNH) $(XRDPLUGINS) $(ORDER_) $(MAINLIBS)
@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
"$(SOFLAGS)" libXrdProofd.$(SOEXT) $@ "$(XPDO)" \
"$(XPDLIBEXTRA)"
all-proofd: $(XPDLIB)
clean-proofd:
@rm -f $(XPCONNO)
clean:: clean-proofd
distclean-proofd: clean-proofd
@rm -f $(XPDDEP) $(XPDLIB)
distclean:: distclean-proofd
##### extra rules ######
$(XPCONNO): CXXFLAGS += $(XPDINCEXTRA)
else
##### proofd #####
PROOFDEXEH := $(MODDIRI)/proofdp.h
PROOFDEXES := $(MODDIRS)/proofd.cxx
PROOFDEXEO := $(PROOFDEXES:.cxx=.o)
PROOFDDEP := $(PROOFDEXEO:.o=.d)
PROOFDEXE := bin/proofd
##### XrdProofd plugin ####
XPDH := $(wildcard $(MODDIRI)/X*.h)
XPDS := $(wildcard $(MODDIRS)/X*.cxx)
XPDO := $(XPDS:.cxx=.o)
XPDDEP := $(XPDO:.o=.d)
XPDLIB := $(LPATH)/libXrdProofd.$(SOEXT)
##### Object files used by libProofx #####
XPCONNO := $(MODDIRS)/XrdProofConn.o $(MODDIRS)/XrdProofPhyConn.o \
$(MODDIRS)/XProofProtUtils.o
# These are undefined if using an external XROOTD distribution
# The new XROOTD build system based on autotools installs the headers
# under <dir>/include/xrootd, while the old system under <dir>/src
ifneq ($(XROOTDDIR),)
ifeq ($(XROOTDDIRI),)
XROOTDDIRI := $(XROOTDDIR)/include/xrootd
ifeq ($(wildcard $(XROOTDDIRI)/*.hh),)
XROOTDDIRI := $(XROOTDDIR)/src
endif
XROOTDDIRL := $(XROOTDDIR)/lib
endif
endif
# Extra include paths and libs
ifeq ($(BUILDXRD),yes)
XPDINCEXTRA := $(XROOTDDIRI:%=-I%)
XPDINCEXTRA += $(PROOFDDIRI:%=-I%)
XPDLIBEXTRA += $(XROOTDDIRL)/libXrdClient.a $(XROOTDDIRL)/libXrdOuc.a \
$(XROOTDDIRL)/libXrdNet.a $(XROOTDDIRL)/libXrdSys.a
endif
# used in the main Makefile
ALLHDRS += $(patsubst $(MODDIRI)/%.h,include/%.h,$(PROOFDEXEH))
ALLEXECS += $(PROOFDEXE)
ifeq ($(BUILDXRD),yes)
ALLLIBS += $(XPDLIB)
endif
# include all dependency files
ifeq ($(BUILDXRD),yes)
INCLUDEFILES += $(PROOFDDEP) $(XPDDEP)
else
INCLUDEFILES += $(PROOFDDEP)
endif
##### local rules #####
include/%.h: $(PROOFDDIRI)/%.h
cp $< $@
$(PROOFDEXE): $(PROOFDEXEO) $(RSAO) $(SNPRINTFO) $(GLBPATCHO) $(RPDUTILO)
$(LD) $(LDFLAGS) -o $@ $(PROOFDEXEO) $(RPDUTILO) $(GLBPATCHO) \
$(RSAO) $(SNPRINTFO) $(CRYPTLIBS) $(AUTHLIBS) $(SYSLIBS)
$(XPDLIB): $(XPDO) $(XPDH) $(ORDER_) $(MAINLIBS) $(XRDPLUGINS)
@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
"$(SOFLAGS)" libXrdProofd.$(SOEXT) $@ "$(XPDO)" \
"$(XPDLIBEXTRA)"
all-proofd: $(PROOFDEXE) $(XPDLIB)
clean-proofd:
@rm -f $(PROOFDEXEO) $(XPDO)
clean:: clean-proofd
distclean-proofd: clean-proofd
@rm -f $(PROOFDDEP) $(PROOFDEXE) $(XPDDEP) $(XPDLIB)
distclean:: distclean-proofd
##### extra rules ######
$(PROOFDEXEO): CXXFLAGS += $(AUTHFLAGS)
$(XPDO): $(XRDPLUGINS)
ifeq ($(ICC_MAJOR),9)
# remove when xrootd has moved from strstream.h -> sstream.
$(XPDO): CXXFLAGS += -Wno-deprecated $(XPDINCEXTRA)
else
ifneq ($(GCC_MAJOR),2)
# remove when xrootd has moved from strstream.h -> sstream.
$(XPDO): CXXFLAGS += -Wno-deprecated $(XPDINCEXTRA)
else
$(XPDO): CXXFLAGS += $(XPDINCEXTRA)
endif
endif
endif
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...