Revision adf8d537b5ae4ac17d1024ada4435192aeb8a440 authored by Timur Pocheptsov on 28 March 2014, 11:05:08 UTC, committed by Timur Pocheptsov on 28 March 2014, 11:05:08 UTC
1 parent 3c7c8ab
Module.mk
# Module.mk for x3d module
# Copyright (c) 2000 Rene Brun and Fons Rademakers
#
# Author: Fons Rademakers, 29/2/2000
MODNAME := x3d
MODDIR := $(ROOT_SRCDIR)/graf3d/$(MODNAME)
MODDIRS := $(MODDIR)/src
MODDIRI := $(MODDIR)/inc
X3DDIR := $(MODDIR)
X3DDIRS := $(X3DDIR)/src
X3DDIRI := $(X3DDIR)/inc
##### libX3d #####
X3DL := $(MODDIRI)/LinkDef.h
X3DDS := $(call stripsrc,$(MODDIRS)/G__X3d.cxx)
X3DDO := $(X3DDS:.cxx=.o)
X3DDH := $(X3DDS:.cxx=.h)
X3DH1 := $(MODDIRI)/TViewerX3D.h $(MODDIRI)/TX3DFrame.h
#X3DH2 := $(MODDIRI)/x3d.h
X3DH := $(X3DH1) $(X3DH2)
X3DS1 := $(filter-out $(MODDIRS)/G__%,$(wildcard $(MODDIRS)/*.cxx))
X3DS2 := $(wildcard $(MODDIRS)/*.c)
X3DO := $(call stripsrc,$(X3DS1:.cxx=.o) $(X3DS2:.c=.o))
X3DDEP := $(X3DO:.o=.d) $(X3DDO:.o=.d)
X3DLIB := $(LPATH)/libX3d.$(SOEXT)
X3DMAP := $(X3DLIB:.$(SOEXT)=.rootmap)
# used in the main Makefile
ALLHDRS += $(patsubst $(MODDIRI)/%.h,include/%.h,$(X3DH))
ALLLIBS += $(X3DLIB)
ALLMAPS += $(X3DMAP)
# include all dependency files
INCLUDEFILES += $(X3DDEP)
##### local rules #####
.PHONY: all-$(MODNAME) clean-$(MODNAME) distclean-$(MODNAME)
include/%.h: $(X3DDIRI)/%.h
cp $< $@
$(X3DLIB): $(X3DO) $(X3DDO) $(ORDER_) $(MAINLIBS) $(X3DLIBDEP)
@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
"$(SOFLAGS)" libX3d.$(SOEXT) $@ "$(X3DO) $(X3DDO)" \
"$(X3DLIBEXTRA) $(XLIBS)"
$(call pcmrule,X3D)
$(noop)
$(X3DDS): $(X3DH1) $(X3DL) $(ROOTCINTTMPDEP) $(call pcmdep,X3D)
$(MAKEDIR)
@echo "Generating dictionary $@..."
$(ROOTCINTTMP) -f $@ $(call dictModule,X3D) -c $(X3DH1) $(X3DL)
$(X3DMAP): $(X3DH1) $(X3DL) $(ROOTCINTTMPDEP) $(call pcmdep,X3D)
$(MAKEDIR)
@echo "Generating rootmap $@..."
$(ROOTCINTTMP) -r $(X3DDS) $(call dictModule,X3D) -c $(X3DH1) $(X3DL)
all-$(MODNAME): $(X3DLIB)
clean-$(MODNAME):
@rm -f $(X3DO) $(X3DDO)
clean:: clean-$(MODNAME)
distclean-$(MODNAME): clean-$(MODNAME)
@rm -f $(X3DDEP) $(X3DDS) $(X3DDH) $(X3DLIB) $(X3DMAP)
distclean:: distclean-$(MODNAME)
##### extra rules ######
$(X3DO): CXXFLAGS += $(X11INCDIR:%=-I%)
$(X3DO): CFLAGS += $(X11INCDIR:%=-I%)
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...