# Module.mk for quadp module # Copyright (c) 2000 Rene Brun and Fons Rademakers # # Author: Fons Rademakers, Eddy Offermann, 21/05/2003 MODNAME := quadp MODDIR := $(ROOT_SRCDIR)/math/$(MODNAME) MODDIRS := $(MODDIR)/src MODDIRI := $(MODDIR)/inc QUADPDIR := $(MODDIR) QUADPDIRS := $(QUADPDIR)/src QUADPDIRI := $(QUADPDIR)/inc ##### libQuadp ##### QUADPL := $(MODDIRI)/LinkDef.h QUADPDS := $(call stripsrc,$(MODDIRS)/G__Quadp.cxx) QUADPDO := $(QUADPDS:.cxx=.o) QUADPDH := $(QUADPDS:.cxx=.h) QUADPH := $(filter-out $(MODDIRI)/LinkDef%,$(wildcard $(MODDIRI)/*.h)) QUADPS := $(filter-out $(MODDIRS)/G__%,$(wildcard $(MODDIRS)/*.cxx)) QUADPO := $(call stripsrc,$(QUADPS:.cxx=.o)) QUADPDEP := $(QUADPO:.o=.d) $(QUADPDO:.o=.d) QUADPLIB := $(LPATH)/libQuadp.$(SOEXT) QUADPMAP := $(QUADPLIB:.$(SOEXT)=.rootmap) # used in the main Makefile ALLHDRS += $(patsubst $(MODDIRI)/%.h,include/%.h,$(QUADPH)) ALLLIBS += $(QUADPLIB) ALLMAPS += $(QUADPMAP) # include all dependency files INCLUDEFILES += $(QUADPDEP) ##### local rules ##### .PHONY: all-$(MODNAME) clean-$(MODNAME) distclean-$(MODNAME) include/%.h: $(QUADPDIRI)/%.h cp $< $@ $(QUADPLIB): $(QUADPO) $(QUADPDO) $(ORDER_) $(MAINLIBS) $(QUADPLIBDEP) @$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \ "$(SOFLAGS)" libQuadp.$(SOEXT) $@ "$(QUADPO) $(QUADPDO)" \ "$(QUADPLIBEXTRA)" $(QUADPDS): $(QUADPH) $(QUADPL) $(ROOTCINTTMPDEP) $(MAKEDIR) @echo "Generating dictionary $@..." $(ROOTCINTTMP) -f $@ -c $(QUADPH) $(QUADPL) $(QUADPMAP): $(RLIBMAP) $(MAKEFILEDEP) $(QUADPL) $(RLIBMAP) -o $@ -l $(QUADPLIB) \ -d $(QUADPLIBDEPM) -c $(QUADPL) all-$(MODNAME): $(QUADPLIB) $(QUADPMAP) clean-$(MODNAME): @rm -f $(QUADPO) $(QUADPDO) clean:: clean-$(MODNAME) distclean-$(MODNAME): clean-$(MODNAME) @rm -f $(QUADPDEP) $(QUADPDS) $(QUADPDH) $(QUADPLIB) $(QUADPMAP) distclean:: distclean-$(MODNAME)