source: trunk/MagicSoft/Mars/Makefile@ 3927

Last change on this file since 3927 was 3927, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 3.0 KB
Line 
1##################################################################
2#
3# makefile
4#
5# for the MARS software
6#
7##################################################################
8# @maintitle
9
10# @code
11
12#
13# please change all system depend values in the
14# config.mk.${OSTYPE} file
15#
16#
17include Makefile.conf.$(OSTYPE)
18include Makefile.conf.general
19
20#
21
22#PROGRAMS = readraw merpp mars test mona status
23PROGRAMS = readdaq readraw merpp star status mars mona
24SOLIB = libmars.so
25CINT = M
26
27#
28# connect the include files defined in the config.mk file
29#
30# WARNING: the result (whether the linkage works or not) depends on the
31# order of the libraries. It seems, that the most base library
32# must be the last one
33#
34
35#
36# ----->>> mars libraries
37#
38SUBDIRS = mbase \
39 mastro \
40 mmain \
41 mfbase \
42 mfilter \
43 mdata \
44 mhbase \
45 mhvstime \
46 mhist \
47 manalysis \
48 msignal \
49 mbadpixels \
50 mcalib \
51 mpedestal \
52 mfileio \
53 mreflector \
54 mgeom \
55 msql \
56 mimage \
57 mmontecarlo \
58 mmc \
59 mraw \
60 mcamera \
61 mpointing \
62 mreport \
63 mgui \
64 mranforest \
65 mhistmc \
66 mjobs \
67 mtools
68
69#LIBRARIES = $(SUBDIRS:%=lib/lib%.a)
70LIBRARIES = $(SUBDIRS:=.a)
71MRPROPERS = $(SUBDIRS:=.mrproper)
72CLEANERS = $(SUBDIRS:=.clean)
73LIBS = $(SOLIB)
74
75#------------------------------------------------------------------------------
76.SUFFIXES: .c .cc .h .o
77
78SRCFILES =
79
80############################################################
81all: $(SOLIB) $(PROGRAMS)
82 @echo " Done. "
83 @echo " "
84
85static: LIBS=$(SUBDIRS:=/*.o) $(OBJS)
86#static: rmlib $(LIBRARIES) $(PROGRAMS)
87static: $(LIBRARIES) $(PROGRAMS)
88 @echo " Done. "
89 @echo " "
90
91include Makefile.rules
92
93#
94# Use $(CXX) -v ... for a more verbose output
95#
96# ROOTGLIBS must be there - why? How can I link the libraries?
97$(SOLIB): $(LIBRARIES) $(OBJS) $(HEADERS)
98 @echo " Linking $(SOLIB) ..."
99 $(CXX) $(CXXFLAGS) $(DYNLIB) $(OBJS) $(SUBDIRS:=/*.o) $(ROOTGLIBS) -o $@
100
101$(PROGRAMS): $(SOLIB) $(PROGRAMS:=.o)
102 @echo " Linking $@ ..."
103 $(CXX) $(CXXFLAGS) $(ROOTGLIBS) $(SOLIB) $@.o $(MARS_LIB) -o $@
104
105dox: $(SOLIB)
106 @echo
107 @echo " Creating html documentation and logfile dohtml.log..."
108 rm -f dohtml.log
109 root -b -q dohtml.C 2>&1 >> dohtml.log | tee -a dohtml.log
110 @echo " done."
111 @echo
112
113#clean: rmcint rmobjs rmdep rmcore rmlib
114
115mrproper: $(MRPROPERS) rmbin rmbak rmbakmac rmhtml clean
116 @echo " Done."
117 @echo " "
118
119tar: mrproper
120 @echo "Making tar-file"
121 root -b -q -l -n tar.C
122# @tar cvf ../mars.tar --exclude=Root .rootrc *
123# @gzip -9 ../mars.tar
124
125#Makefile.depend:
126# (! find ./ Makefile.depend -maxdepth 1 -empty 2> /dev/null && \
127# echo " Generating dependancies into Makefile.depend" && \
128# makedepend -- $(INCLUDES) -- $(PROGRAMS:=.cc) $(SRCS) $(SUBDIRS:=/*.cc) -w1024 -f- 2> /dev/null | grep -v Cint | grep -v "/usr/" > Makefile.depend && \
129# echo " ") || find -maxdepth 0 -true > /dev/null
130#
131#depend: Makefile.depend
132
133# @endcode
Note: See TracBrowser for help on using the repository browser.