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

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