Revision 35131ff2428bec232a3898ecac368378a5d207f4 authored by Vassil Vassilev on 27 March 2014, 10:13:43 UTC, committed by Vassil Vassilev on 27 March 2014, 10:13:50 UTC
1 parent cfce73f
Module.mk
# Module.mk for geocad module
# Copyright (c) 2000 Rene Brun and Fons Rademakers
#
# Author: Cinzia Luzzi 2/7/2012
MODNAME := geocad
MODDIR := $(ROOT_SRCDIR)/geom/$(MODNAME)
MODDIRS := $(MODDIR)/src
MODDIRI := $(MODDIR)/inc
GEOCADDIR := $(MODDIR)
GEOCADDIRS := $(GEOCADDIR)/src
GEOCADDIRI := $(GEOCADDIR)/inc
##### libGeoCad #####
GEOCADL := $(MODDIRI)/LinkDef.h
GEOCADDS := $(call stripsrc,$(MODDIRS)/G__GeoCad.cxx)
GEOCADDO := $(GEOCADDS:.cxx=.o)
GEOCADDH := $(GEOCADDS:.cxx=.h)
GEOCADH1 := TGeoToOCC.h TOCCToStep.h
GEOCADH2 := TGeoToStep.h
GEOCADH1 := $(patsubst %,$(MODDIRI)/%,$(GEOCADH1))
GEOCADH2 := $(patsubst %,$(MODDIRI)/%,$(GEOCADH2))
GEOCADH := $(GEOCADH1) $(GEOCADH2)
GEOCADS := $(filter-out $(MODDIRS)/G__%,$(wildcard $(MODDIRS)/*.cxx))
GEOCADO := $(call stripsrc,$(GEOCADS:.cxx=.o))
GEOCADDEP := $(GEOCADO:.o=.d) $(GEOCADDO:.o=.d)
GEOCADLIB := $(LPATH)/libGeoCad.$(SOEXT)
GEOCADMAP := $(GEOCADLIB:.$(SOEXT)=.rootmap)
# used in the main Makefile
ALLHDRS += $(patsubst $(MODDIRI)/%.h,include/%.h,$(GEOCADH))
ALLLIBS += $(GEOCADLIB)
ALLMAPS += $(GEOCADMAP)
# include all dependency files
INCLUDEFILES += $(GEOCADDEP)
##### local rules #####
.PHONY: all-$(MODNAME) clean-$(MODNAME) distclean-$(MODNAME)
include/%.h: $(GEOCADDIRI)/%.h
cp $< $@
$(GEOCADLIB): $(GEOCADO) $(GEOCADDO) $(ORDER_) $(MAINLIBS) $(GEOCADLIBDEP)
$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
"$(SOFLAGS)" libGeoCad.$(SOEXT) $@ "$(GEOCADO) $(GEOCADDO)" \
"$(GEOCADLIBEXTRA) $(OCCLIBDIR) $(OCCLIB)"
$(call pcmrule,GEOCAD)
$(noop)
$(GEOCADDS): $(GEOCADH1) $(GEOCADH2) $(GEOCADL) $(ROOTCINTTMPDEP) $(call pcmdep,GEOCAD)
$(MAKEDIR)
@echo "Generating dictionary $@..."
$(ROOTCINTTMP) -f $@ $(call dictModule,GEOCAD) -c $(GEOCADH2) $(GEOCADL)
$(GEOCADMAP): $(GEOCADH1) $(GEOCADH2) $(GEOCADL) $(ROOTCINTTMPDEP) $(call pcmdep,GEOCAD)
$(MAKEDIR)
@echo "Generating rootmap $@..."
$(ROOTCINTTMP) -r $(GEOCADDS) $(call dictModule,GEOCAD) -c $(GEOCADH2) $(GEOCADL)
all-$(MODNAME): $(GEOCADLIB)
clean-$(MODNAME):
@rm -f $(GEOCADO) $(GEOCADDO)
clean:: clean-$(MODNAME)
distclean-$(MODNAME): clean-$(MODNAME)
@rm -f $(GEOCADDEP) $(GEOCADDS) $(GEOCADDH) $(GEOCADLIB) $(GEOCADMAP)
distclean:: distclean-$(MODNAME)
##### extra rules ######
$(GEOCADO): CXXFLAGS := $(filter-out -Iinclude,$(CXXFLAGS))
$(GEOCADO): CXXFLAGS += -DHAVE_CONFIG_H $(OCCINCDIR:%=-I%) -Iinclude
$(GEOCADO) $(GEOCADDO): CXXFLAGS := $(filter-out -Wshadow,$(CXXFLAGS))
$(GEOCADO) $(GEOCADDO): CXXFLAGS := $(filter-out -Woverloaded-virtual,$(CXXFLAGS))
$(GEOCADO) $(GEOCADDO): CXXFLAGS := $(filter-out -Wall,$(CXXFLAGS))
$(GEOCADO) $(GEOCADDO): CXXFLAGS := $(filter-out -W,$(CXXFLAGS))
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...