source: tags/Mars-V2.3/Makefile.rules@ 19684

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