source: trunk/MagicSoft/Mars/meventdisp/Makefile@ 653

Last change on this file since 653 was 586, checked in by harald, 24 years ago
Added the files that are the starting point for the development of the EventDisplay. The first display I programmed was the class MGFadcDisp.cc that shows the content of the HighGain samples. Further investigations are neccessary.
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 = meventdisp.a
25
26#
27# connect the include files defined in the config.mk file
28#
29INCLUDES = -I. -I../ -I../mbase -I../mraw
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 = MGFadcDisp.cc
55
56
57SRCS = $(SRCFILES)
58HEADERS = $(SRCFILES:.cc=.h)
59OBJS = $(SRCFILES:.cc=.o)
60
61############################################################
62
63all: $(LIB)
64
65depend:
66 @makedepend $(SRCS) $(INCLUDES) $(ROOTCFLAGS) \
67 -f../Makefile.depend 2> kk.kk ; cat kk.kk
68
69$(LIB): $(OBJS) EvtDispCint.o
70 @echo " - Building Library $(LIB) ... "
71 $(AR) $(LIB) *.o
72
73EvtDispCint.cc: $(HEADERS)
74 @echo
75 @echo " - Generating dictionary EvtDispCint.cc ..."
76
77 $(ROOTSYS)/bin/rootcint -f EvtDispCint.cc \
78 -c $(INCLUDES) $(HEADERS) EvtDispIncl.h EvtDispLinkDef.h
79
80.cxx.o:
81 @echo " - Compiling " $<
82 $(CXX) $(CXXFLAGS) -c $< -o $@
83
84.cc.o:
85 @echo " - Compiling " $<
86 $(CXX) $(CXXFLAGS) -c $< -o $@
87
88.c.o:
89 @echo " - Compiling " $<
90 $(CC) $(CFLAGS) -c $< -o $@
91
92#
93# The cleaning facility
94#
95
96rmlib:
97 @echo "Removing libraries..."
98 @rm -f lib*.a
99
100rmcint:
101 @echo "Removing cint-stuff..."
102 @rm -f EvtDispCint.*
103
104rmobjs:
105 @echo "Removing object files..."
106 @rm -f *.o
107
108rmbin:
109 @echo "Removing binary files..."
110 @rm -f core
111
112
113clean: rmlib rmcint rmobjs rmbin
114
115mrproper: clean
116 @echo "Removing *~ kk.kk html/..."
117 @rm -f *~ kk.kk
118
119cflags:
120 @echo $(INCLUDES) $(CXXFLAGS)
121
122# @endcode
123
Note: See TracBrowser for help on using the repository browser.