Revision a794a6590d1184c57f65760f9e382c5c6c9bfb03 authored by Unknown Author on 31 May 2006, 07:48:57 UTC, committed by Unknown Author on 31 May 2006, 07:48:57 UTC
git-svn-id: http://root.cern.ch/svn/root/tags/v5-11-04@15252 27541ba8-7e3a-0410-8455-c3a389f83636
1 parent ca81efd
Module.mk
# Module.mk for reflex module
# Copyright (c) 2000 Rene Brun and Fons Rademakers
#
# Author: Fons Rademakers, 29/2/2000
MODDIR := cintex
MODDIRS := $(MODDIR)/src
MODDIRI := $(MODDIR)/inc
CINTEXDIR := $(MODDIR)
CINTEXDIRS := $(CINTEXDIR)/src
CINTEXDIRI := $(CINTEXDIR)/inc
##### libCintex #####
CINTEXL := $(CINTEXDIRI)/LinkDef.h
CINTEXH := $(wildcard $(MODDIRI)/Cintex/*.h)
CINTEXS := $(wildcard $(MODDIRS)/*.cxx)
CINTEXO := $(CINTEXS:.cxx=.o)
CINTEXDEP := $(CINTEXO:.o=.d)
CINTEXLIB := $(LPATH)/libCintex.$(SOEXT)
CINTEXPYS := $(wildcard $(MODDIR)/python/*.py)
ifeq ($(PLATFORM),win32)
CINTEXPY := $(subst $(MODDIR)/python,bin,$(CINTEXPYS))
bin/%.py: $(MODDIR)/python/%.py; cp $< $@
else
CINTEXPY := $(subst $(MODDIR)/python,$(LPATH),$(CINTEXPYS))
$(LPATH)/%.py: $(MODDIR)/python/%.py; cp $< $@
endif
ifneq ($(BUILDPYTHON),no)
CINTEXPYC := $(CINTEXPY:.py=.pyc)
CINTEXPYO := $(CINTEXPY:.py=.pyo)
endif
# used in the main Makefile
ALLHDRS += $(patsubst $(MODDIRI)/Cintex/%.h,include/Cintex/%.h,$(CINTEXH))
ALLLIBS += $(CINTEXLIB)
# include all dependency files
INCLUDEFILES += $(CINTEXDEP)
# test suite
ifeq ($(PLATFORM),win32)
REFLEXLL = lib/libReflex.lib
CINTEXLL = lib/libCintex.lib
SHEXT = .bat
else
REFLEXLL = -Llib -lReflex -ldl
CINTEXLL = -Llib -lCintex
SHEXT = .sh
endif
GENREFLEX_CMD2 = python ../../../lib/python/genreflex/genreflex.py
CINTEXTESTD = $(CINTEXDIR)/test
CINTEXTESTDICTD = $(CINTEXTESTD)/dict
CINTEXTESTDICTH = $(CINTEXTESTDICTD)/CintexTest.h
CINTEXTESTDICTS = $(subst .h,_rflx.cpp,$(CINTEXTESTDICTH))
CINTEXTESTDICTO = $(subst .cpp,.o,$(CINTEXTESTDICTS))
CINTEXTESTDICT = $(subst $(CINTEXTESTDICTD)/,lib/test_,$(subst _rflx.o,Rflx.$(SOEXT),$(CINTEXTESTDICTO)))
##### local rules #####
include/Cintex/%.h: $(CINTEXDIRI)/Cintex/%.h
@(if [ ! -d "include/Cintex" ]; then \
mkdir -p include/Cintex; \
fi)
cp $< $@
%.pyc: %.py; python -c 'import py_compile; py_compile.compile( "$<" )'
%.pyo: %.py; python -O -c 'import py_compile; py_compile.compile( "$<" )'
$(CINTEXLIB): $(CINTEXO) $(CINTEXPY) $(CINTEXPYC) $(CINTEXPYO) \
$(ORDER_) $(subst $(CINTEXLIB),,$(MAINLIBS)) $(CINTEXLIBDEP)
@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
"$(SOFLAGS)" libCintex.$(SOEXT) $@ "$(CINTEXO)" \
"$(CINTEXLIBEXTRA)"
all-cintex: $(CINTEXLIB)
map-cintex: $(RLIBMAP)
$(RLIBMAP) -r $(ROOTMAP) -l $(CINTEXLIB) \
-d $(CINTEXLIBDEP) -c $(CINTEXL)
map:: map-cintex
clean-cintex: clean-check-cintex
@rm -f $(CINTEXO)
clean-check-cintex:
@rm -f $(CINTEXTESTDICTS) $(CINTEXTESTDICTO)
clean:: clean-cintex
distclean-cintex: clean-cintex
@rm -f $(CINTEXDEP) $(CINTEXLIB) $(CINTEXPY) $(CINTEXPYC) $(CINTEXPYO)
@rm -rf include/Cintex
distclean:: distclean-cintex
#### test suite ####
check-cintex: $(REFLEXLIB) $(CINTEXLIB) $(CINTEXTESTDICT)
@echo "Running all Cintex tests"
@cintex/test/test_all$(SHEXT) $(PYTHONINCDIR)
$(CINTEXTESTDICT): $(CINTEXTESTDICTO)
echo $(REFLEXLL)
@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" "$(SOFLAGS)" $@ $@ $< "$(REFLEXLL)"
$(CINTEXTESTDICTO): CXXFLAGSPCH =
$(CINTEXTESTDICTS): $(CINTEXTESTDICTH) $(CINTEXTESTDICTD)/selection.xml
cd $(CINTEXTESTDICTD); $(GENREFLEX_CMD2) CintexTest.h -s selection.xml --rootmap=./rootmap --rootmap-lib=$(CINTEXTESTDICT) --quiet --comments
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...