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