source: trunk/MagicSoft/Mars/mgui/Makefile@ 587

Last change on this file since 587 was 587, checked in by harald, 25 years ago
The integration of the class MGFadcDisp in the mars code. Now one is able to see at least the high gain samples with this gui. I hope that also Razmik is now able to look to the data.
File size: 2.1 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# @endcode
21
22# @code
23
24LIB = mgui.a
25
26#
27# connect the include files defined in the config.mk file
28#
29INCLUDES = -I. -I../mbase -I../mraw -I../mdatacheck -I../meventdisp
30
31#
32# ----->>> root libraries
33#
34
35ROOTLIBS = `root-config --libs`
36ROOTGLIBS = `root-config --glibs`
37ROOTCFLAGS = `root-config --cflags`
38
39#
40# compiler flags
41#
42
43CXXFLAGS = $(ROOTCFLAGS) $(INCLUDES) $(OPTIM) $(DEBUG)
44CFLAGS = $(CXXFLAGS)
45FFLAGS = $(CXXFLAGS)
46
47#------------------------------------------------------------------------------
48
49#.SILENT:
50
51.SUFFIXES: .c .cc .cxx .h .hxx .o
52
53
54SRCFILES = MGMarsMain.cc \
55 MGEventDispMain.cc \
56 MGDataCheckMain.cc \
57 MGMonteCarloMain.cc \
58 MGPrototyp.cc
59
60
61SRCS = $(SRCFILES)
62HEADERS = $(SRCFILES:.cc=.h)
63OBJS = $(SRCFILES:.cc=.o)
64
65############################################################
66
67all: $(LIB)
68
69depend:
70 @makedepend $(SRCS) $(INCLUDES) $(ROOTCFLAGS) \
71 -f../Makefile.depend 2> kk.kk ; cat kk.kk
72
73$(LIB): $(OBJS) GuiCint.o
74 @echo " - Building Library $(LIB) ... "
75 $(AR) $(LIB) *.o
76
77GuiCint.cc: $(HEADERS)
78 @echo
79 @echo " - Generating dictionary GuiCint.cc ..."
80
81 $(ROOTSYS)/bin/rootcint -f GuiCint.cc \
82 -c $(INCLUDES) $(HEADERS) GuiIncl.h GuiLinkDef.h
83
84.cxx.o:
85 @echo " - Compiling " $<
86 $(CXX) $(CXXFLAGS) -c $< -o $@
87
88.cc.o:
89 @echo " - Compiling " $<
90 $(CXX) $(CXXFLAGS) -c $< -o $@
91
92.c.o:
93 @echo " - Compiling " $<
94 $(CC) $(CFLAGS) -c $< -o $@
95
96#
97# The cleaning facility
98#
99
100rmlib:
101 @echo "Removing libraries..."
102 @rm -f lib*.a
103
104rmcint:
105 @echo "Removing cint-stuff..."
106 @rm -f GuiCint.*
107
108rmobjs:
109 @echo "Removing object files..."
110 @rm -f *.o
111
112rmbin:
113 @echo "Removing binary files..."
114 @rm -f core
115
116
117clean: rmlib rmcint rmobjs rmbin
118
119mrproper: clean
120 @echo "Removing *~ kk.kk html/..."
121 @rm -f *~ kk.kk
122
123cflags:
124 @echo $(INCLUDES) $(CXXFLAGS)
125
126# @endcode
127
Note: See TracBrowser for help on using the repository browser.