1 | include $(CINT)Dep.d
|
---|
2 |
|
---|
3 | $(MRPROPERS):
|
---|
4 | @echo " Doing Mr.Proper in $(@:.mrproper=)"
|
---|
5 | (cd $(@:.mrproper=); ($(MAKE) -f Makefile mrproper > /dev/null); cd ..;)
|
---|
6 |
|
---|
7 | $(CLEANERS):
|
---|
8 | @echo "Cleaning $(@:.clean=):"
|
---|
9 | (cd $(@:.clean=); $(MAKE) -f Makefile clean; cd ..;)
|
---|
10 |
|
---|
11 | $(LIBRARIES):
|
---|
12 | @echo " Calling make in $(@:.a=)"
|
---|
13 | (cd $*; $(MAKE) -f Makefile all)
|
---|
14 |
|
---|
15 | $(LIB): $(OBJS) $(CINT)Cint.o
|
---|
16 | @echo " - Building Library $(LIB)"
|
---|
17 | $(CXX) $(CXXFLAGS) $(DYNLIB) $(OBJS) $(CINT)Cint.o -o $(LIB)
|
---|
18 | @echo " "
|
---|
19 |
|
---|
20 | $(CINT)Cint.cc: $(HEADERS) $(CINT)LinkDef.h
|
---|
21 | @echo " - Generating dictionary $(CINT)Cint.cc"
|
---|
22 | $(ROOTSYS)/bin/rootcint -f $(CINT)Cint.cc \
|
---|
23 | -c $(INCLUDES) $(DEFINES) $(HEADERS) $(CINT)Incl.h $(CINT)LinkDef.h
|
---|
24 |
|
---|
25 | %.d:
|
---|
26 | @echo " - Generating dependencies" $@
|
---|
27 | $(ROOTSYS)/bin/rmkdepend -f- -Y -w 3000 -- $(INCLUDES) -- $(SRCFILES) 2> /dev/null | \
|
---|
28 | sed 's/^\(.*\).o:/$@ \1.o:/' > $@
|
---|
29 | echo "$@: Makefile" >> $@
|
---|
30 |
|
---|
31 | %.o: %.cxx
|
---|
32 | @echo " - Compiling" $<
|
---|
33 | $(CXX) $(CXXFLAGS) -c $< -o $@
|
---|
34 |
|
---|
35 | %.o: %.cc
|
---|
36 | @echo " - Compiling" $<
|
---|
37 | $(CXX) $(CXXFLAGS) -c $< -o $@
|
---|
38 |
|
---|
39 | %.o: %.c
|
---|
40 | @echo " - Compiling" $<
|
---|
41 | $(CC) $(CFLAGS) -c $< -o $@
|
---|
42 |
|
---|
43 | #
|
---|
44 | # The cleaning facility
|
---|
45 | #
|
---|
46 |
|
---|
47 | rmcint:
|
---|
48 | @echo " Removing cint-stuff..."
|
---|
49 | @rm -f *Cint.*
|
---|
50 |
|
---|
51 | rmlib:
|
---|
52 | @echo " Removing libraries..."
|
---|
53 | @echo " "
|
---|
54 | @rm -f lib/lib*.a lib*.a
|
---|
55 |
|
---|
56 | rmobjs:
|
---|
57 | @echo " Removing object files..."
|
---|
58 | @rm -f *.o
|
---|
59 |
|
---|
60 | rmdep:
|
---|
61 | @echo " Removing dependency files..."
|
---|
62 | @rm -f *Dep.d */*Dep.d
|
---|
63 |
|
---|
64 | rmcore:
|
---|
65 | @echo " Removing core files..."
|
---|
66 | @rm -f core*
|
---|
67 |
|
---|
68 | rmbin:
|
---|
69 | @echo " Removing binary files..."
|
---|
70 | @rm -f $(PROGRAMS) $(SOLIB) $(DYLIB) so_locations
|
---|
71 |
|
---|
72 | rmbak:
|
---|
73 | @echo " Removing backup files..."
|
---|
74 | @rm -f *~ kk.kk *.bak .#* .*~
|
---|
75 |
|
---|
76 | rmbakmac:
|
---|
77 | @echo " Removing backup files in macros"
|
---|
78 | @rm -f macros/*~
|
---|
79 |
|
---|
80 | rmhtml:
|
---|
81 | @echo " Removing htmldoc-tree"
|
---|
82 | rm -rf htmldoc/examples
|
---|
83 | rm -rf htmldoc/src
|
---|
84 | ls htmldoc/* | grep "htmldoc/" | grep -v images | grep -v CVS | xargs rm -f
|
---|
85 |
|
---|
86 | clean: rmcint rmobjs rmdep rmcore rmlib
|
---|
87 |
|
---|
88 | cflags:
|
---|
89 | @echo $(INCLUDES) $(CXXFLAGS)
|
---|
90 |
|
---|
91 | diff:
|
---|
92 | @cvs diff | grep -v "^? " > mars.diff
|
---|