source: trunk/MagicSoft/MarsOctober/mocttest/Makefile@ 450

Last change on this file since 450 was 450, checked in by harald, 25 years ago
added a few for functionalities. Also some spectras for TDCs are implemented.
  • Property svn:executable set to *
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#
17INCLUDEMK = ../Makefile.conf.${OSTYPE}
18include ${INCLUDEMK}
19
20# @endcode
21
22# @code
23
24LIB = libmocttest.a
25
26#
27# connect the include files defined in the config.mk file
28#
29INCLUDES = -I./ -I../ -I../mbase/ -I../mrootformat/
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 = MGOctMain.cc \
55 MOctTest.cc \
56 MHistosAdc.cc \
57 MHistosTdc.cc \
58 MAdcSpect.cc \
59 MTdcSpect.cc \
60 MShowSpect.cc \
61 MGDisplayAdc.cc
62
63SRCS = $(SRCFILES)
64HEADERS = $(SRCFILES:.cc=.h)
65OBJS = $(SRCFILES:.cc=.o)
66
67############################################################
68
69all: $(LIB)
70
71depend:
72 @makedepend $(SRCS) $(INCLUDES) $(ROOTCFLAGS) \
73 -fMakefile.depend 2> kk.kk ; cat kk.kk
74
75$(LIB): $(OBJS) OcttestCint.o
76 @echo "Building Library $(LIB) ... "
77 @ar -r $(LIB) *.o
78
79OcttestCint.cc: $(HEADERS)
80 @echo
81 @echo "Generating dictionary OcttestCint.cc ..."
82
83 @$(ROOTSYS)/bin/rootcint -f OcttestCint.cc \
84 -c $(INCLUDES) $(HEADERS) BaseLinkDef.h
85
86.cxx.o:
87 @echo "Compiling " $<
88 $(CXX) $(CXXFLAGS) -c $< -o $@
89
90.cc.o:
91 @echo "Compiling " $<
92 $(CXX) $(CXXFLAGS) -c $< -o $@
93
94.c.o:
95 @echo "Compiling " $<
96 $(CC) $(CFLAGS) -c $< -o $@
97
98#
99# The cleaning facility
100#
101
102rmlib:
103 @echo "Removing libraries..."
104 @rm -f lib*.a
105
106rmcint:
107 @echo "Removing cint-stuff..."
108 @rm -f OcttestCint.*
109
110rmobjs:
111 @echo "Removing object files..."
112 @rm -f *.o
113
114rmbin:
115 @echo "Removing binary files..."
116 @rm -f core
117
118
119clean: rmlib rmcint rmobjs rmbin
120
121mrproper: clean
122 @echo "Removing *~ kk.kk html/..."
123 @rm -f *~ kk.kk
124
125cflags:
126 @echo $(INCLUDES) $(CXXFLAGS)
127
128# @endcode
129
130
131
132
Note: See TracBrowser for help on using the repository browser.