source: branches/start/MagicSoft/MarsOctober/mbase/Makefile@ 9223

Last change on this file since 9223 was 447, checked in by harald, 24 years ago
Bringing the sources for the octobertest under CVS controll. (november, 3rd, 2000)
  • 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 = libmbase.a
25
26#
27# connect the include files defined in the config.mk file
28#
29INCLUDES = -I./
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 = MTask.cc \
55 MTaskList.cc \
56 MParContainer.cc \
57 MParList.cc \
58 MParRead.cc \
59 MParWrite.cc \
60 MTime.cc \
61 MInputStreamID.cc \
62 MObjBuffer.cc \
63 MFile.cc \
64 MFileDescr.cc \
65 MEvtLoop.cc
66
67SRCS = $(SRCFILES)
68HEADERS = $(SRCFILES:.cc=.h)
69OBJS = $(SRCFILES:.cc=.o)
70
71############################################################
72
73all: $(LIB)
74
75depend:
76 @makedepend $(SRCS) $(INCLUDES) $(ROOTCFLAGS) \
77 -fMakefile.depend 2> kk.kk ; cat kk.kk
78
79$(LIB): $(OBJS) BaseCint.o
80 @echo "Building Library $(LIB) ... "
81 @ar -r $(LIB) *.o
82
83BaseCint.cc: $(HEADERS)
84 @echo
85 @echo "Generating dictionary BaseCint.cc ..."
86
87 @$(ROOTSYS)/bin/rootcint -f BaseCint.cc \
88 -c $(INCLUDES) $(HEADERS) BaseLinkDef.h
89
90.cxx.o:
91 @echo "Compiling " $<
92 $(CXX) $(CXXFLAGS) -c $< -o $@
93
94.cc.o:
95 @echo "Compiling " $<
96 $(CXX) $(CXXFLAGS) -c $< -o $@
97
98.c.o:
99 @echo "Compiling " $<
100 $(CC) $(CFLAGS) -c $< -o $@
101
102#
103# The cleaning facility
104#
105
106rmlib:
107 @echo "Removing libraries..."
108 @rm -f lib*.a
109
110rmcint:
111 @echo "Removing cint-stuff..."
112 @rm -f BaseCint.*
113
114rmobjs:
115 @echo "Removing object files..."
116 @rm -f *.o
117
118rmbin:
119 @echo "Removing binary files..."
120 @rm -f core
121
122
123clean: rmlib rmcint rmobjs rmbin
124
125mrproper: clean
126 @echo "Removing *~ kk.kk html/..."
127 @rm -f *~ kk.kk
128
129cflags:
130 @echo $(INCLUDES) $(CXXFLAGS)
131
132# @endcode
133
Note: See TracBrowser for help on using the repository browser.