source: tags/Mars-V0.8.4/Makefile.rules@ 9764

Last change on this file since 9764 was 3445, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 1.6 KB
Line 
1include $(CINT)Dep.d
2
3$(LIB): $(OBJS) $(CINT)Cint.o
4 @echo " - Building Library lib$(LIB)"
5 $(AR) $(LIB) $(OBJS) $(CINT)Cint.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
36rmcint:
37 @echo " Removing cint-stuff..."
38 @rm -f *Cint.*
39
40rmlib:
41 @echo " Removing libraries..."
42 @echo " "
43 @rm -f lib/lib*.a lib*.a
44
45rmobjs:
46 @echo " Removing object files..."
47 @rm -f *.o
48
49rmdep:
50 @echo " Removing dependency files..."
51 @rm -f *Dep.d */*Dep.d
52
53rmcore:
54 @echo " Removing core files..."
55 @rm -f core*
56
57rmbin:
58 @echo " Removing binary files..."
59 @rm -f $(PROGRAMS) $(SOLIB) so_locations
60
61rmbak:
62 @echo " Removing backup files..."
63 @rm -f *~ kk.kk *.bak .#* .*~
64
65rmbakmac:
66 @echo " Removing backup files in macros"
67 @rm -f macros/*~
68
69rmhtml:
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
75clean: rmcint rmobjs rmdep rmcore rmlib
76
77cflags:
78 @echo $(INCLUDES) $(CXXFLAGS)
79
80diff:
81 @cvs diff | grep -v "^? " > mars.diff
Note: See TracBrowser for help on using the repository browser.