source: tags/Mars-V0.9.6/Makefile.rules@ 12052

Last change on this file since 12052 was 7682, checked in by tbretz, 19 years ago
*** empty log message ***
File size: 2.1 KB
Line 
1include $(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$(CONDOR):
8 @echo " Starting make in $(@:.condor=) via condor"
9 (cd $(@:.condor=); (condor_run $(MAKE) &); cd ..;)
10
11$(CLEANERS):
12 @echo "Cleaning $(@:.clean=):"
13 (cd $(@:.clean=); $(MAKE) -f Makefile clean; cd ..;)
14
15$(LIBRARIES):
16 @echo " Calling make in $(@:.a=)"
17 (cd $*; $(MAKE) -f Makefile all)
18
19$(LIB): $(OBJS) $(CINT)Cint.o
20 @echo " - Building Library $(LIB)"
21 $(CXX) $(CXXFLAGS) $(DYNLIB) $(OBJS) $(CINT)Cint.o -o $(LIB)
22 @echo " "
23
24$(CINT)Cint.cc: $(HEADERS) $(CINT)LinkDef.h
25 @echo " - Generating dictionary $(CINT)Cint.cc"
26 $(ROOTSYS)/bin/rootcint -f $(CINT)Cint.cc \
27 -c $(INCLUDES) $(DEFINES) $(HEADERS) $(CINT)Incl.h $(CINT)LinkDef.h
28
29%.d:
30 @echo " - Generating dependencies" $@
31 $(ROOTSYS)/bin/rmkdepend -f- -Y -w 3000 -- $(INCLUDES) -- $(SRCFILES) -- $(PROGRAMS:=.cc) 2> /dev/null | \
32 sed 's/^\(.*\).o:/$@ \1.o:/' > $@
33 echo "$@: Makefile" >> $@
34
35%.o: %.cxx
36 @echo " - Compiling" $<
37 $(CXX) $(CXXFLAGS) -c $< -o $@
38
39%.o: %.cc
40 @echo " - Compiling" $<
41 $(CXX) $(CXXFLAGS) -c $< -o $@
42
43%.o: %.c
44 @echo " - Compiling" $<
45 $(CC) $(CFLAGS) -c $< -o $@
46
47#
48# The cleaning facility
49#
50
51rmcint:
52 @echo " Removing cint-stuff..."
53 @rm -f *Cint.*
54
55rmlib:
56 @echo " Removing libraries..."
57 @echo " "
58 @rm -f lib/lib*.a lib*.a
59
60rmobjs:
61 @echo " Removing object files..."
62 @rm -f *.o
63
64rmdep:
65 @echo " Removing dependency files..."
66 @rm -f *Dep.d */*Dep.d
67
68rmcore:
69 @echo " Removing core files..."
70 @rm -f core*
71
72rmbin:
73 @echo " Removing binary files..."
74 @rm -f $(PROGRAMS) $(SOLIB) $(DYLIB) so_locations
75
76rmbak:
77 @echo " Removing backup files..."
78 @rm -f *~ kk.kk *.bak .#* .*~
79
80rmbakmac:
81 @echo " Removing backup files in macros"
82 @rm -f macros/*~
83
84rmhtml:
85 @echo " Removing htmldoc-tree"
86 rm -rf htmldoc/examples
87 rm -rf htmldoc/src
88 ls htmldoc/* | grep "htmldoc/" | grep -v images | grep -v CVS | xargs rm -f
89
90clean: rmcint rmobjs rmdep rmcore rmlib
91
92cflags:
93 @echo $(INCLUDES) $(CXXFLAGS)
94
95diff:
96 @cvs diff | grep -v "^? " > mars.diff
97
98zdiff:
99 @cvs -z9 diff | grep -v "^? " > mars.diff
Note: See TracBrowser for help on using the repository browser.