source: trunk/MagicSoft/Mars/Makefile.rules@ 2844

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