Revision 49eea8418dde16dc15b5ac423f03927583720a46 authored by Rene Brun on 19 September 2006, 19:13:27 UTC, committed by Rene Brun on 19 September 2006, 19:13:27 UTC
git-svn-id: http://root.cern.ch/svn/root/trunk@16301 27541ba8-7e3a-0410-8455-c3a389f83636
1 parent e152260
Module.mk
# Module.mk for gl module
# Copyright (c) 2000 Rene Brun and Fons Rademakers
#
# Author: Fons Rademakers, 29/2/2000
MODDIR := gl
MODDIRS := $(MODDIR)/src
MODDIRI := $(MODDIR)/inc
GLDIR := $(MODDIR)
GLDIRS := $(GLDIR)/src
GLDIRI := $(GLDIR)/inc
##### libRGL #####
GLL := $(MODDIRI)/LinkDef.h
GLDS := $(MODDIRS)/G__GL.cxx
GLDO := $(GLDS:.cxx=.o)
GLDH := $(GLDS:.cxx=.h)
GLH := $(filter-out $(MODDIRI)/LinkDef%,$(wildcard $(MODDIRI)/*.h))
GLS := $(filter-out $(MODDIRS)/G__%,$(wildcard $(MODDIRS)/*.cxx))
GLS1 := $(wildcard $(MODDIRS)/*.c)
# Excluded from win32 builds
ifeq ($(ARCH),win32)
GLS := $(filter-out $(MODDIRS)/TX11GL.cxx, $(GLS))
GLH := $(filter-out $(MODDIRI)/TX11GL.h, $(GLH))
endif
# Excluded from rootcint
GLH1 := $(MODDIRI)/gl2ps.h $(MODDIRI)/CsgOps.h $(MODDIRI)/TGLKernel.h \
$(MODDIRI)/TGLIncludes.h $(MODDIRI)/TRootGLU.h \
$(MODDIRI)/TRootGLX.h
# Used by rootcint
GLH2 := $(filter-out $(GLH1), $(GLH))
ifneq ($(OPENGLLIB),)
GLLIBS := $(OPENGLLIBDIR) $(OPENGLULIB) $(OPENGLLIB) \
$(X11LIBDIR) -lX11 -lm
endif
ifeq ($(ARCH),win32)
GLLIBS := opengl32.lib glu32.lib
endif
GLO := $(GLS:.cxx=.o)
GLO1 := $(GLS1:.c=.o)
GLDEP := $(GLO:.o=.d) $(GLDO:.o=.d) $(GLO1:.o=.d)
GLLIB := $(LPATH)/libRGL.$(SOEXT)
# used in the main Makefile
ALLHDRS += $(patsubst $(MODDIRI)/%.h,include/%.h,$(GLH))
ALLLIBS += $(GLLIB)
# include all dependency files
INCLUDEFILES += $(GLDEP)
##### local rules #####
include/%.h: $(GLDIRI)/%.h
cp $< $@
$(GLLIB): $(GLO) $(GLO1) $(GLDO) $(ORDER_) $(MAINLIBS) $(GLLIBDEP)
@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
"$(SOFLAGS)" libRGL.$(SOEXT) $@ "$(GLO) $(GLO1) $(GLDO)" \
"$(GLLIBEXTRA) $(GLLIBS)"
$(GLDS): $(GLH2) $(GLL) $(ROOTCINTTMPEXE)
@echo "Generating dictionary $@..."
$(ROOTCINTTMP) -f $@ -c $(GLH2) $(GLL)
all-gl: $(GLLIB)
map-gl: $(RLIBMAP)
$(RLIBMAP) -r $(ROOTMAP) -l $(GLLIB) -d $(GLLIBDEP) -c $(GLL)
map:: map-gl
clean-gl:
@rm -f $(GLO) $(GLO1) $(GLDO)
clean:: clean-gl
distclean-gl: clean-gl
@rm -f $(GLDEP) $(GLLIB) $(GLDS) $(GLDH)
distclean:: distclean-gl
##### extra rules ######
ifeq ($(ARCH),win32)
$(GLO) $(GLDO): CXXFLAGS += $(OPENGLINCDIR:%=-I%) -I$(WIN32GDKDIR)/gdk/src \
$(GDKDIRI:%=-I%) $(GLIBDIRI:%=-I%)
else
$(GLO) $(GLDO): CXXFLAGS += $(OPENGLINCDIR:%=-I%)
endif
$(GLDIRS)/gl2ps.o: CFLAGS += $(OPENGLINCDIR:%=-I%)
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...