source: trunk/MagicSoft/Mars/Makefile@ 655

Last change on this file since 655 was 654, checked in by tbretz, 24 years ago
*** empty log message ***
File size: 2.3 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 manalysis meventdisp mdatacheck mbase mraw mmc
38
39LIBRARIES = $(SUBDIRS:=.a)
40
41#------------------------------------------------------------------------------
42
43.SUFFIXES: .c .cc .h .o
44
45SRCFILES =
46
47SRCS = $(SRCFILES)
48HEADERS = $(SRCFILES:.cc=.h)
49OBJS = $(SRCFILES:.cc=.o)
50
51############################################################
52
53all: rmlib $(PROGRAMS) $(SOLIB)
54
55# Use $(CXX) -v ... for a more verbose output
56$(PROGRAMS): $(LIBRARIES) $(OBJS) $(HEADERS) MCint.o $(PROGRAMS:=.o)
57 @echo " Linking $@ ..."
58 $(CXX) $(CXXFLAGS) $@.o $(OBJS) $(MARS_LIB) MCint.o $(ROOTGLIBS) -o $@
59
60$(SOLIB): $(LIBRARIES) $(OBJS) $(HEADERS) MCint.o
61 @echo " Linking $(SOLIB) ..."
62 $(CXX) -shared $(CXXFLAGS) $(SUBDIRS:=/*.o) $(ROOTGLIBS) -o $@
63 mv mars.so lib
64
65$(LIBRARIES):
66 @echo " "
67 @echo " Creating lib$@:"
68 (cd $*; make; cd ..; mv $*/$@ lib/lib$@)
69
70dox:
71 @echo " Creating html documentation:"
72 root -b -q dohtml.C
73
74include Makefile.rules
75
76clean: rmlib rmcint rmobjs rmcore rmbin
77
78mrproper: clean rmbak
79 @rm -f macros/*~
80 @rm -rf htmldoc
81 @echo "cd mbase"
82 @cd mbase; make mrproper; cd ..
83 @echo "cd .."
84 @echo "cd mraw"
85 @cd mraw; make mrproper; cd ..
86 @echo "cd .."
87 @echo "cd mgui"
88 @cd mgui; make mrproper; cd ..
89 @echo "cd .."
90 @echo "cd mdatacheck"
91 @cd mdatacheck; make mrproper; cd ..
92 @echo "cd .."
93 @echo "cd mmc"
94 @cd mmc; make mrproper; cd ..
95 @echo "cd .."
96 @echo "cd meventdisp"
97 @cd meventdisp; make mrproper; cd ..
98 @echo "cd .."
99 @echo "cd manalysis"
100 @cd manalysis; make mrproper; cd ..
101 @echo "cd .."
102
103tar: mrproper
104 @echo "Making tar-file"
105 @tar -cvf ../mars.tar *
106 @gzip -9 ../mars.tar
107
108# @endcode
Note: See TracBrowser for help on using the repository browser.