source: trunk/MagicSoft/Mars/Makefile@ 712

Last change on this file since 712 was 712, checked in by tbretz, 23 years ago
*** empty log message ***
File size: 2.6 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
22PROGRAMS = merpp readraw mars
23SOLIB = mars.so
24CINT = M
25
26#
27# connect the include files defined in the config.mk file
28#
29# WARNING: the result (whether the linkage works or not) depends on the
30# order of the libraries. It seems, that the most base library
31# must be the last one
32#
33
34#
35# ----->>> mars libraries
36#
37SUBDIRS = mgui \
38 manalysis \
39 meventdisp \
40 mdatacheck \
41 mmontecarlo \
42 mhist \
43 mbase \
44 mraw \
45 mmc
46
47LIBRARIES = $(SUBDIRS:=.a)
48
49#------------------------------------------------------------------------------
50
51.SUFFIXES: .c .cc .h .o
52
53SRCFILES =
54
55SRCS = $(SRCFILES)
56HEADERS = $(SRCFILES:.cc=.h)
57OBJS = $(SRCFILES:.cc=.o)
58
59############################################################
60
61all: rmlib $(PROGRAMS) $(SOLIB)
62
63# Use $(CXX) -v ... for a more verbose output
64$(PROGRAMS): $(LIBRARIES) mars.so $(HEADERS) MCint.o $(PROGRAMS:=.o)
65 @echo " Linking $@ ..."
66 $(CXX) $(CXXFLAGS) $@.o lib/mars.so $(MARS_LIB) MCint.o $(ROOTGLIBS) -o $@
67
68$(SOLIB): $(LIBRARIES) $(OBJS) $(HEADERS) MCint.o
69 @echo " Linking $(SOLIB) ..."
70 $(CXX) -shared $(CXXFLAGS) $(SUBDIRS:=/*.o) $(ROOTGLIBS) -o $@
71 mv mars.so lib
72
73$(LIBRARIES):
74 @echo " "
75 @echo " Creating lib$@:"
76 (cd $*; make; cd ..; mv $*/$@ lib/lib$@)
77
78dox:
79 @echo " Creating html documentation:"
80 root -b -q dohtml.C
81
82include Makefile.rules
83
84clean: rmlib rmcint rmobjs rmcore rmbin
85
86mrproper: clean rmbak
87 @rm -f macros/*~
88 @rm -rf htmldoc
89 @echo "cd mbase"
90 @cd mbase; make mrproper; cd ..
91 @echo "cd .."
92 @echo "cd mraw"
93 @cd mraw; make mrproper; cd ..
94 @echo "cd .."
95 @echo "cd mhist"
96 @cd mhist; make mrproper; cd ..
97 @echo "cd .."
98 @echo "cd mgui"
99 @cd mgui; make mrproper; cd ..
100 @echo "cd .."
101 @echo "cd mdatacheck"
102 @cd mdatacheck; make mrproper; cd ..
103 @echo "cd .."
104 @echo "cd mmc"
105 @cd mmc; make mrproper; cd ..
106 @echo "cd .."
107 @echo "cd meventdisp"
108 @cd meventdisp; make mrproper; cd ..
109 @echo "cd .."
110 @echo "cd manalysis"
111 @cd manalysis; make mrproper; cd ..
112 @echo "cd .."
113 @echo "cd mmontecarlo"
114 @cd mmontecarlo; make mrproper; cd ..
115 @echo "cd .."
116
117tar: mrproper
118 @echo "Making tar-file"
119 @tar -cvf ../mars.tar *
120 @gzip -9 ../mars.tar
121
122# @endcode
Note: See TracBrowser for help on using the repository browser.