source: trunk/MagicSoft/Mars/Makefile@ 713

Last change on this file since 713 was 713, checked in by tbretz, 24 years ago
*** empty log message ***
File size: 2.8 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#
65# We could link mars.so instead of all libraries. This would need
66# some MBs less space on the HD. But this means, that the Shared
67# Library Path in your system must be set properly to be able to start
68# 'mars'
69#
70$(PROGRAMS): $(LIBRARIES) $(OBJS) $(HEADERS) MCint.o $(PROGRAMS:=.o)
71 @echo " Linking $@ ..."
72 $(CXX) $(CXXFLAGS) $@.o $(OBJS) $(MARS_LIB) MCint.o $(ROOTGLIBS) -o $@
73
74$(SOLIB): $(LIBRARIES) $(OBJS) $(HEADERS) MCint.o
75 @echo " Linking $(SOLIB) ..."
76 $(CXX) -shared $(CXXFLAGS) $(SUBDIRS:=/*.o) $(ROOTGLIBS) -o $@
77 mv mars.so lib
78
79$(LIBRARIES):
80 @echo " "
81 @echo " Creating lib$@:"
82 (cd $*; make; cd ..; mv $*/$@ lib/lib$@)
83
84dox:
85 @echo " Creating html documentation:"
86 root -b -q dohtml.C
87
88include Makefile.rules
89
90clean: rmlib rmcint rmobjs rmcore rmbin
91
92mrproper: clean rmbak
93 @rm -f macros/*~
94 @rm -rf htmldoc
95 @echo "cd mbase"
96 @cd mbase; make mrproper; cd ..
97 @echo "cd .."
98 @echo "cd mraw"
99 @cd mraw; make mrproper; cd ..
100 @echo "cd .."
101 @echo "cd mhist"
102 @cd mhist; make mrproper; cd ..
103 @echo "cd .."
104 @echo "cd mgui"
105 @cd mgui; make mrproper; cd ..
106 @echo "cd .."
107 @echo "cd mdatacheck"
108 @cd mdatacheck; make mrproper; cd ..
109 @echo "cd .."
110 @echo "cd mmc"
111 @cd mmc; make mrproper; cd ..
112 @echo "cd .."
113 @echo "cd meventdisp"
114 @cd meventdisp; make mrproper; cd ..
115 @echo "cd .."
116 @echo "cd manalysis"
117 @cd manalysis; make mrproper; cd ..
118 @echo "cd .."
119 @echo "cd mmontecarlo"
120 @cd mmontecarlo; make mrproper; cd ..
121 @echo "cd .."
122
123tar: mrproper
124 @echo "Making tar-file"
125 @tar -cvf ../mars.tar *
126 @gzip -9 ../mars.tar
127
128# @endcode
Note: See TracBrowser for help on using the repository browser.