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