source: branches/start/MagicSoft/Mars/mdatacheck/Makefile@ 9223

Last change on this file since 9223 was 462, checked in by harald, 24 years ago
Import the files for the datacheck section in this subdir.
File size: 2.2 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 = libmdatacheck.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 = MViewAdcSpectra.cc \
55 MFillAdcSpect.cc \
56 MDumpEvtHeader.cc \
57 MShowSpect.cc \
58 MHistosAdc.cc \
59 MGDisplayAdc.cc
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) DataCheckCint.o
74 @echo " - Building Library $(LIB) ... "
75 $(AR) $(LIB) *.o
76
77DataCheckCint.cc: $(HEADERS)
78 @echo
79 @echo " - Generating dictionary DataCheckCint.cc ..."
80
81 $(ROOTSYS)/bin/rootcint -f DataCheckCint.cc \
82 -c $(INCLUDES) $(HEADERS) DataCheckIncl.h DataCheckLinkDef.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 DataCheckCint.*
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.