source: branches/start/MagicSoft/Mars/mraw/Makefile@ 9492

Last change on this file since 9492 was 454, checked in by harald, 24 years ago
Import the first sources of the MAGIC Analysis and Reconstruction Software. T. Bretz and H. Kornmayer 20.December 2000
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 = libmraw.a
25
26#
27# connect the include files defined in the config.mk file
28#
29INCLUDES = -I. -I../mbase
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 = MRawRunHeader.cc \
55 MRawEvtHeader.cc \
56 MRawEvtData.cc \
57 MRawEvtPixelIter.cc \
58 MRawCrateArray.cc \
59 MRawCrateData.cc \
60 MRawFileRead.cc \
61 MRawFileWrite.cc
62
63
64
65SRCS = $(SRCFILES)
66HEADERS = $(SRCFILES:.cc=.h)
67OBJS = $(SRCFILES:.cc=.o)
68
69############################################################
70
71all: $(LIB)
72
73depend:
74 @makedepend $(SRCS) $(INCLUDES) $(ROOTCFLAGS) \
75 -f../Makefile.depend 2> kk.kk ; cat kk.kk
76
77$(LIB): $(OBJS) RawCint.o
78 @echo " - Building Library $(LIB) ... "
79 @$(AR) $(LIB) *.o
80
81RawCint.cc: $(HEADERS)
82 @echo
83 @echo " - Generating dictionary RawCint.cc ..."
84
85 @$(ROOTSYS)/bin/rootcint -f RawCint.cc \
86 -c $(INCLUDES) $(HEADERS) RawIncl.h RawLinkDef.h
87
88.cxx.o:
89 @echo " - Compiling " $<
90 $(CXX) $(CXXFLAGS) -c $< -o $@
91
92.cc.o:
93 @echo " - Compiling " $<
94 $(CXX) $(CXXFLAGS) -c $< -o $@
95
96.c.o:
97 @echo " - Compiling " $<
98 $(CC) $(CFLAGS) -c $< -o $@
99
100#
101# The cleaning facility
102#
103
104rmlib:
105 @echo "Removing libraries..."
106 @rm -f lib*.a
107
108rmcint:
109 @echo "Removing cint-stuff..."
110 @rm -f RawCint.*
111
112rmobjs:
113 @echo "Removing object files..."
114 @rm -f *.o
115
116rmbin:
117 @echo "Removing binary files..."
118 @rm -f core
119
120
121clean: rmlib rmcint rmobjs rmbin
122
123mrproper: clean
124 @echo "Removing *~ kk.kk html/..."
125 @rm -f *~ kk.kk
126
127cflags:
128 @echo $(INCLUDES) $(CXXFLAGS)
129
130# @endcode
131
Note: See TracBrowser for help on using the repository browser.