forked from root-project/root
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Module.mk
68 lines (50 loc) · 1.88 KB
/
Module.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Module.mk for html module
# Copyright (c) 2000 Rene Brun and Fons Rademakers
#
# Author: Fons Rademakers, 29/2/2000
MODNAME := html
MODDIR := $(ROOT_SRCDIR)/$(MODNAME)
MODDIRS := $(MODDIR)/src
MODDIRI := $(MODDIR)/inc
HTMLDIR := $(MODDIR)
HTMLDIRS := $(HTMLDIR)/src
HTMLDIRI := $(HTMLDIR)/inc
##### libHtml #####
HTMLL := $(MODDIRI)/LinkDef.h
HTMLDS := $(call stripsrc,$(MODDIRS)/G__Html.cxx)
HTMLDO := $(HTMLDS:.cxx=.o)
HTMLDH := $(HTMLDS:.cxx=.h)
HTMLH := $(filter-out $(MODDIRI)/LinkDef%,$(wildcard $(MODDIRI)/*.h))
HTMLS := $(filter-out $(MODDIRS)/G__%,$(wildcard $(MODDIRS)/*.cxx))
HTMLO := $(call stripsrc,$(HTMLS:.cxx=.o))
HTMLDEP := $(HTMLO:.o=.d) $(HTMLDO:.o=.d)
HTMLLIB := $(LPATH)/libHtml.$(SOEXT)
HTMLMAP := $(HTMLLIB:.$(SOEXT)=.rootmap)
# used in the main Makefile
ALLHDRS += $(patsubst $(MODDIRI)/%.h,include/%.h,$(HTMLH))
ALLLIBS += $(HTMLLIB)
ALLMAPS += $(HTMLMAP)
# include all dependency files
INCLUDEFILES += $(HTMLDEP)
##### local rules #####
.PHONY: all-$(MODNAME) clean-$(MODNAME) distclean-$(MODNAME)
include/%.h: $(HTMLDIRI)/%.h
cp $< $@
$(HTMLLIB): $(HTMLO) $(HTMLDO) $(ORDER_) $(MAINLIBS) $(HTMLLIBDEP)
@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
"$(SOFLAGS)" libHtml.$(SOEXT) $@ "$(HTMLO) $(HTMLDO)" \
"$(HTMLLIBEXTRA)"
$(HTMLDS): $(HTMLH) $(HTMLL) $(ROOTCINTTMPDEP)
$(MAKEDIR)
@echo "Generating dictionary $@..."
$(ROOTCINTTMP) -f $@ -c $(HTMLH) $(HTMLL)
$(HTMLMAP): $(RLIBMAP) $(MAKEFILEDEP) $(HTMLL)
$(RLIBMAP) -o $@ -l $(HTMLLIB) \
-d $(HTMLLIBDEPM) -c $(HTMLL)
all-$(MODNAME): $(HTMLLIB) $(HTMLMAP)
clean-$(MODNAME):
@rm -f $(HTMLO) $(HTMLDO)
clean:: clean-$(MODNAME)
distclean-$(MODNAME): clean-$(MODNAME)
@rm -f $(HTMLDEP) $(HTMLDS) $(HTMLDH) $(HTMLLIB) $(HTMLMAP)
distclean:: distclean-$(MODNAME)