swh:1:snp:af87cd67498ef4fe47c76ed3e7caffe5b61facaf
Tip revision: aa5e852b2a8f426e0787fe56cdab324be01c44b4 authored by Unknown Author on 18 June 2002, 21:59:42 UTC
This commit was manufactured by cvs2svn to create tag 'v3-03-06'.
This commit was manufactured by cvs2svn to create tag 'v3-03-06'.
Tip revision: aa5e852
Module.mk
# Module.mk for thread module
# Copyright (c) 2000 Rene Brun and Fons Rademakers
#
# Author: Fons Rademakers, 29/2/2000
MODDIR := thread
MODDIRS := $(MODDIR)/src
MODDIRI := $(MODDIR)/inc
THREADDIR := $(MODDIR)
THREADDIRS := $(THREADDIR)/src
THREADDIRI := $(THREADDIR)/inc
##### libThread #####
THREADL := $(MODDIRI)/LinkDef.h
THREADDS := $(MODDIRS)/G__Thread.cxx
THREADDO := $(THREADDS:.cxx=.o)
THREADDH := $(THREADDS:.cxx=.h)
THREADH := $(filter-out $(MODDIRI)/LinkDef%,$(wildcard $(MODDIRI)/*.h))
THREADS := $(filter-out $(MODDIRS)/G__%,$(wildcard $(MODDIRS)/*.cxx))
THREADO := $(THREADS:.cxx=.o)
THREADDEP := $(THREADO:.o=.d) $(THREADDO:.o=.d)
THREADLIB := $(LPATH)/libThread.$(SOEXT)
# used in the main Makefile
ALLHDRS += $(patsubst $(MODDIRI)/%.h,include/%.h,$(THREADH))
ALLLIBS += $(THREADLIB)
CXXFLAGS += -D_REENTRANT
CFLAGS += -D_REENTRANT
CINTCXXFLAGS += -D_REENTRANT
CINTCFLAGS += -D_REENTRANT
# include all dependency files
INCLUDEFILES += $(THREADDEP)
##### local rules #####
include/%.h: $(THREADDIRI)/%.h
cp $< $@
$(THREADLIB): $(THREADO) $(THREADDO) $(MAINLIBS)
@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
"$(SOFLAGS)" libThread.$(SOEXT) $@ "$(THREADO) $(THREADDO)" \
"$(THREADLIBEXTRA) $(OSTHREADLIBDIR) $(OSTHREADLIB)"
$(THREADDS): $(THREADH) $(THREADL) $(ROOTCINTTMP)
@echo "Generating dictionary $@..."
$(ROOTCINTTMP) -f $@ -c $(THREADH) $(THREADL)
$(THREADDO): $(THREADDS)
$(CXX) $(NOOPT) $(CXXFLAGS) -I. -o $@ -c $<
all-thread: $(THREADLIB)
clean-thread:
@rm -f $(THREADO) $(THREADDO)
clean:: clean-thread
distclean-thread: clean-thread
@rm -f $(THREADDEP) $(THREADDS) $(THREADDH) $(THREADLIB)
distclean:: distclean-thread