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

Last change on this file since 654 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# @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 -I../manalysis
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 MHexagon.cc \
60 MGeomCam.cc \
61 MGeomPix.cc \
62 MCamNeighbor.cc \
63 MCamDisplay.cc
64
65
66SRCS = $(SRCFILES)
67HEADERS = $(SRCFILES:.cc=.h)
68OBJS = $(SRCFILES:.cc=.o)
69
70############################################################
71
72all: $(LIB)
73
74depend:
75 @makedepend $(SRCS) $(INCLUDES) $(ROOTCFLAGS) \
76 -f../Makefile.depend 2> kk.kk ; cat kk.kk
77
78$(LIB): $(OBJS) GuiCint.o
79 @echo " - Building Library $(LIB) ... "
80 $(AR) $(LIB) *.o
81
82GuiCint.cc: $(HEADERS)
83 @echo
84 @echo " - Generating dictionary GuiCint.cc ..."
85
86 $(ROOTSYS)/bin/rootcint -f GuiCint.cc \
87 -c $(INCLUDES) $(HEADERS) GuiIncl.h GuiLinkDef.h
88
89.cxx.o:
90 @echo " - Compiling " $<
91 $(CXX) $(CXXFLAGS) -c $< -o $@
92
93.cc.o:
94 @echo " - Compiling " $<
95 $(CXX) $(CXXFLAGS) -c $< -o $@
96
97.c.o:
98 @echo " - Compiling " $<
99 $(CC) $(CFLAGS) -c $< -o $@
100
101#
102# The cleaning facility
103#
104
105rmlib:
106 @echo "Removing libraries..."
107 @rm -f lib*.a
108
109rmcint:
110 @echo "Removing cint-stuff..."
111 @rm -f GuiCint.*
112
113rmobjs:
114 @echo "Removing object files..."
115 @rm -f *.o
116
117rmbin:
118 @echo "Removing binary files..."
119 @rm -f core
120
121
122clean: rmlib rmcint rmobjs rmbin
123
124mrproper: clean
125 @echo "Removing *~ kk.kk html/..."
126 @rm -f *~ kk.kk
127
128cflags:
129 @echo $(INCLUDES) $(CXXFLAGS)
130
131# @endcode
132
Note: See TracBrowser for help on using the repository browser.