https://github.com/root-project/root
Tip revision: 0b0c2fca8416e9c9603519f929f8c1bed322f175 authored by Fons Rademakers on 24 October 2007, 16:05:14 UTC
patch release v5-14-00i.
patch release v5-14-00i.
Tip revision: 0b0c2fc
Module.mk
# Module.mk for ldap module
# Copyright (c) 2002 Rene Brun and Fons Rademakers
#
# Author: Fons Rademakers, 20/11/2002
MODDIR := ldap
MODDIRS := $(MODDIR)/src
MODDIRI := $(MODDIR)/inc
LDAPDIR := $(MODDIR)
LDAPDIRS := $(LDAPDIR)/src
LDAPDIRI := $(LDAPDIR)/inc
##### libRLDAP #####
LDAPL := $(MODDIRI)/LinkDef.h
LDAPDS := $(MODDIRS)/G__LDAP.cxx
LDAPDO := $(LDAPDS:.cxx=.o)
LDAPDH := $(LDAPDS:.cxx=.h)
LDAPH := $(filter-out $(MODDIRI)/LinkDef%,$(wildcard $(MODDIRI)/*.h))
LDAPS := $(filter-out $(MODDIRS)/G__%,$(wildcard $(MODDIRS)/*.cxx))
LDAPO := $(LDAPS:.cxx=.o)
LDAPDEP := $(LDAPO:.o=.d) $(LDAPDO:.o=.d)
LDAPLIB := $(LPATH)/libRLDAP.$(SOEXT)
# used in the main Makefile
ALLHDRS += $(patsubst $(MODDIRI)/%.h,include/%.h,$(LDAPH))
ALLLIBS += $(LDAPLIB)
# include all dependency files
INCLUDEFILES += $(LDAPDEP)
##### local rules #####
include/%.h: $(LDAPDIRI)/%.h
cp $< $@
$(LDAPLIB): $(LDAPO) $(LDAPDO) $(ORDER_) $(MAINLIBS)
@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
"$(SOFLAGS)" libRLDAP.$(SOEXT) $@ "$(LDAPO) $(LDAPDO)" \
"$(LDAPLIBEXTRA) $(LDAPLIBDIR) $(LDAPCLILIB)"
$(LDAPDS): $(LDAPH) $(LDAPL) $(ROOTCINTTMPEXE)
@echo "Generating dictionary $@..."
$(ROOTCINTTMP) -f $@ -c $(LDAPH) $(LDAPL)
all-ldap: $(LDAPLIB)
map-ldap: $(RLIBMAP)
$(RLIBMAP) -r $(ROOTMAP) -l $(LDAPLIB) \
-d $(LDAPLIBDEP) -c $(LDAPL)
map:: map-ldap
clean-ldap:
@rm -f $(LDAPO) $(LDAPDO)
clean:: clean-ldap
distclean-ldap: clean-ldap
@rm -f $(LDAPDEP) $(LDAPDS) $(LDAPDH) $(LDAPLIB)
distclean:: distclean-ldap
##### extra rules ######
$(LDAPO): CXXFLAGS += -DLDAP_DEPRECATED $(LDAPINCDIR:%=-I%)