Project

General

Profile

Statistics
| Branch: | Revision:

root / src / eventlog / Makefile @ 3e29b8a0

History | View | Annotate | Download (8.97 KB)

1
#
2
# Definitions to be customized by 'configure'
3
#
4

    
5
include ../../Makefile.inc
6

    
7
# Make sure that output locations are set
8
ifeq ("$(strip $(OMNETPP_BIN_DIR))","")
9
$(error OMNETPP_BIN_DIR must be correctly set)
10
endif
11
ifeq ("$(strip $(OMNETPP_OUT_DIR))","")
12
$(error OMNETPP_OUT_DIR must be correctly set)
13
endif
14
ifeq ("$(strip $(OMNETPP_LIB_DIR))","")
15
$(error OMNETPP_LIB_DIR must be correctly set)
16
endif
17

    
18
#
19
# Local definitions
20
#
21
LIBNAME=liboppeventlog$D
22
O=$(OMNETPP_OUT_DIR)/$(TOOLCHAIN_NAME)-$(MODE)/src/eventlog
23
L=$(OMNETPP_LIB_DIR)/$(TOOLCHAIN_NAME)
24

    
25
COPTS=$(CFLAGS) -I$(OMNETPP_INCL_DIR)/platdep -I. -I../common
26

    
27
IMPLIBS= -L$L -loppcommon$D
28

    
29
OBJS= $O/ievent.o $O/ieventlog.o $O/eventlogfacade.o $O/eventlogtablefacade.o $O/sequencechartfacade.o \
30
      $O/eventlog.o $O/eventlogindex.o $O/messagedependency.o $O/event.o $O/eventlogentry.o \
31
      $O/eventlogentries.o $O/filteredevent.o $O/filteredeventlog.o $O/eventlogentryfactory.o
32
LIBS= -loppeventlog$D -loppcommon$D
33

    
34
GENERATED_SOURCES= eventlogentries.cc eventlogentries.h eventlogfactory.cc
35

    
36
#
37
# Automatic rules
38
#
39
.SUFFIXES : .cc
40

    
41
$O/%.o: %.cc
42
	@mkdir -p $O
43
	$(CXX) -c $(COPTS) -o $@ $<
44

    
45
#
46
# Targets
47
#
48
all: eventlogentries.cc $L/$(LIBNAME)$(LIB_SUFFIX) $O/eventlogtool$(EXE_SUFFIX)
49
	cd $(OMNETPP_LIB_DIR) && rm -f $(LIBNAME).* && $(LN) $(TOOLCHAIN_NAME)/$(LIBNAME).* .
50

    
51
eventlogentries.cc eventlogentries.h eventlogfactory.cc : eventlogentries.txt eventlogentries.pl
52
	$(PERL) eventlogentries.pl
53

    
54
$L/$(LIBNAME)$(A_LIB_SUFFIX) : $(OBJS)
55
	@mkdir -p $L
56
	$(AR) $O/$(LIBNAME)$(A_LIB_SUFFIX) $(OBJS)
57
	$(RANLIB) $O/$(LIBNAME)$(A_LIB_SUFFIX)
58
	cd $O && $(OMNETPP_ROOT)/src/utils/install-lib $(LIBNAME)$(A_LIB_SUFFIX) $L
59

    
60
$L/$(LIBNAME)$(SO_LIB_SUFFIX) : $(OBJS)
61
	@mkdir -p $L
62
	$(SHLIB_LD) $(LDFLAGS) -o $O/$(LIBNAME)$(SO_LIB_SUFFIX) $(OBJS) $(IMPLIBS)
63
	$(SHLIB_POSTPROCESS) $O/$(LIBNAME)$(SO_LIB_SUFFIX)
64
	cd $O && $(OMNETPP_ROOT)/src/utils/install-lib $(LIBNAME)$(SO_LIB_SUFFIX) $L
65
	rm -f $(OMNETPP_LIB_DIR)/$(LIBNAME)$(SO_LIB_SUFFIX) && $(LN) $L/$(LIBNAME)$(SO_LIB_SUFFIX) $(OMNETPP_LIB_DIR)
66
	$(SHLIB_POSTPROCESS) $(OMNETPP_LIB_DIR)/$(LIBNAME)$(SO_LIB_SUFFIX)
67

    
68
$L/$(LIBNAME)$(DLL_LIB_SUFFIX) : $(OBJS)
69
	mkdir -p $L
70
	$(SHLIB_LD) $(LDFLAGS) -o $O/$(LIBNAME)$(DLL_LIB_SUFFIX) $(OBJS) $(IMPLIBS) -Wl,--out-implib,$O/$(LIBNAME)$(A_LIB_SUFFIX)
71
	cd $O && $(OMNETPP_ROOT)/src/utils/install-lib $(LIBNAME)$(A_LIB_SUFFIX) $L
72
	cp $O/$(LIBNAME)$(DLL_LIB_SUFFIX) $(OMNETPP_BIN_DIR)
73

    
74
$O/eventlogtool$(EXE_SUFFIX) : $O/eventlogtool.o  $L/$(LIBNAME)$(LIB_SUFFIX)
75
	$(CXX) $(LDFLAGS) -o $O/eventlogtool$(EXE_SUFFIX) $O/eventlogtool.o -L$L $(LIBS)
76
	cd $O && $(OMNETPP_ROOT)/src/utils/install-prog eventlogtool$(EXE_SUFFIX) $(OMNETPP_BIN_DIR)
77

    
78
depend: $(GENERATED_SOURCES)
79
	$(MAKEDEPEND) -I. -I../common -P\$$O/ -- *.cc
80

    
81
clean:
82
	rm -f $(GENERATED_SOURCES)
83
	rm -rf $O
84
	rm -f $L/$(LIBNAME).* $(OMNETPP_LIB_DIR)/$(LIBNAME).*
85
	cd $(OMNETPP_BIN_DIR) && rm -f eventlogtool$(EXE_SUFFIX)
86

    
87
# DO NOT DELETE THIS LINE -- make depend depends on it.
88
$O/event.o: event.cc \
89
  messagedependency.h \
90
  eventlogentry.h \
91
  ievent.h \
92
  ../common/commondefs.h \
93
  eventlog.h \
94
  eventlogindex.h \
95
  ../common/matchexpression.h \
96
  eventlogdefs.h \
97
  eventlogentries.h \
98
  ../common/commonutil.h \
99
  ../common/exception.h \
100
  ../common/linetokenizer.h \
101
  event.h \
102
  ../common/bigdecimal.h \
103
  ../common/stringpool.h \
104
  ../common/filereader.h \
105
  ieventlog.h
106
$O/eventlog.o: eventlog.cc \
107
  messagedependency.h \
108
  eventlogentry.h \
109
  ievent.h \
110
  ../common/commondefs.h \
111
  eventlog.h \
112
  eventlogindex.h \
113
  ../common/matchexpression.h \
114
  eventlogdefs.h \
115
  eventlogentries.h \
116
  ../common/commonutil.h \
117
  ../common/exception.h \
118
  ../common/linetokenizer.h \
119
  event.h \
120
  ../common/bigdecimal.h \
121
  ../common/stringpool.h \
122
  ieventlog.h \
123
  ../common/filereader.h
124
$O/eventlogentries.o: eventlogentries.cc \
125
  eventlogentry.h \
126
  messagedependency.h \
127
  ievent.h \
128
  ../common/commondefs.h \
129
  ../common/stringutil.h \
130
  ../common/matchexpression.h \
131
  eventlogdefs.h \
132
  eventlogentries.h \
133
  ../common/exception.h \
134
  ../common/commonutil.h \
135
  ../common/linetokenizer.h \
136
  event.h \
137
  ../common/bigdecimal.h \
138
  ../common/filereader.h
139
$O/eventlogentry.o: eventlogentry.cc \
140
  messagedependency.h \
141
  eventlogentry.h \
142
  ievent.h \
143
  ../common/commondefs.h \
144
  eventlog.h \
145
  eventlogentryfactory.h \
146
  eventlogindex.h \
147
  ../common/matchexpression.h \
148
  eventlogdefs.h \
149
  eventlogentries.h \
150
  ../common/commonutil.h \
151
  ../common/exception.h \
152
  ../common/linetokenizer.h \
153
  event.h \
154
  ../common/bigdecimal.h \
155
  ../common/stringpool.h \
156
  ../common/filereader.h \
157
  ieventlog.h
158
$O/eventlogentryfactory.o: eventlogentryfactory.cc \
159
  eventlogentry.h \
160
  messagedependency.h \
161
  ievent.h \
162
  ../common/commondefs.h \
163
  eventlogentryfactory.h \
164
  ../common/matchexpression.h \
165
  eventlogentries.h \
166
  eventlogdefs.h \
167
  ../common/exception.h \
168
  ../common/commonutil.h \
169
  ../common/linetokenizer.h \
170
  event.h \
171
  ../common/bigdecimal.h \
172
  ../common/filereader.h
173
$O/eventlogfacade.o: eventlogfacade.cc \
174
  eventlogentry.h \
175
  messagedependency.h \
176
  ievent.h \
177
  filteredeventlog.h \
178
  filteredevent.h \
179
  ../common/commondefs.h \
180
  eventlog.h \
181
  ../common/patternmatcher.h \
182
  eventlogindex.h \
183
  eventlogfacade.h \
184
  ../common/matchexpression.h \
185
  eventlogentries.h \
186
  eventlogdefs.h \
187
  ../common/commonutil.h \
188
  ../common/exception.h \
189
  ../common/linetokenizer.h \
190
  event.h \
191
  ../common/bigdecimal.h \
192
  ../common/stringpool.h \
193
  ../common/filereader.h \
194
  ieventlog.h
195
$O/eventlogindex.o: eventlogindex.cc \
196
  eventlogentry.h \
197
  ../common/commondefs.h \
198
  eventlogindex.h \
199
  ../common/matchexpression.h \
200
  eventlogdefs.h \
201
  ../common/commonutil.h \
202
  ../common/exception.h \
203
  ../common/linetokenizer.h \
204
  ../common/bigdecimal.h \
205
  ../common/filereader.h
206
$O/eventlogtablefacade.o: eventlogtablefacade.cc \
207
  eventlogentry.h \
208
  messagedependency.h \
209
  ievent.h \
210
  ../common/commondefs.h \
211
  eventlogfacade.h \
212
  ../common/matchexpression.h \
213
  eventlogentries.h \
214
  eventlogdefs.h \
215
  ../common/commonutil.h \
216
  ../common/exception.h \
217
  ../common/linetokenizer.h \
218
  event.h \
219
  ../common/bigdecimal.h \
220
  ../common/filereader.h \
221
  eventlogtablefacade.h \
222
  ieventlog.h
223
$O/eventlogtool.o: eventlogtool.cc \
224
  messagedependency.h \
225
  eventlogentry.h \
226
  ievent.h \
227
  filteredeventlog.h \
228
  filteredevent.h \
229
  ../common/commondefs.h \
230
  eventlog.h \
231
  ../common/patternmatcher.h \
232
  eventlogindex.h \
233
  ../common/matchexpression.h \
234
  eventlogentries.h \
235
  eventlogdefs.h \
236
  ../common/exception.h \
237
  ../common/commonutil.h \
238
  ../common/linetokenizer.h \
239
  event.h \
240
  ../common/ver.h \
241
  ../common/bigdecimal.h \
242
  ../common/stringpool.h \
243
  ieventlog.h \
244
  ../common/filereader.h
245
$O/filteredevent.o: filteredevent.cc \
246
  eventlogentry.h \
247
  messagedependency.h \
248
  ievent.h \
249
  filteredeventlog.h \
250
  filteredevent.h \
251
  ../common/commondefs.h \
252
  eventlog.h \
253
  ../common/patternmatcher.h \
254
  eventlogindex.h \
255
  ../common/matchexpression.h \
256
  eventlogentries.h \
257
  eventlogdefs.h \
258
  ../common/exception.h \
259
  ../common/commonutil.h \
260
  ../common/linetokenizer.h \
261
  event.h \
262
  ../common/bigdecimal.h \
263
  ../common/stringpool.h \
264
  ieventlog.h \
265
  ../common/filereader.h
266
$O/filteredeventlog.o: filteredeventlog.cc \
267
  eventlogentry.h \
268
  messagedependency.h \
269
  ievent.h \
270
  filteredeventlog.h \
271
  filteredevent.h \
272
  ../common/commondefs.h \
273
  eventlog.h \
274
  ../common/patternmatcher.h \
275
  eventlogindex.h \
276
  ../common/matchexpression.h \
277
  eventlogentries.h \
278
  eventlogdefs.h \
279
  ../common/commonutil.h \
280
  ../common/exception.h \
281
  ../common/linetokenizer.h \
282
  event.h \
283
  ../common/bigdecimal.h \
284
  ../common/stringpool.h \
285
  ../common/filereader.h \
286
  ieventlog.h
287
$O/ievent.o: ievent.cc \
288
  eventlogentry.h \
289
  messagedependency.h \
290
  ievent.h \
291
  ../common/commondefs.h \
292
  ../common/matchexpression.h \
293
  eventlogentries.h \
294
  eventlogdefs.h \
295
  ../common/commonutil.h \
296
  ../common/exception.h \
297
  ../common/linetokenizer.h \
298
  ../common/bigdecimal.h \
299
  ../common/filereader.h
300
$O/ieventlog.o: ieventlog.cc \
301
  messagedependency.h \
302
  eventlogentry.h \
303
  ievent.h \
304
  ../common/commondefs.h \
305
  ../common/matchexpression.h \
306
  eventlogdefs.h \
307
  eventlogentries.h \
308
  ../common/commonutil.h \
309
  ../common/exception.h \
310
  ../common/linetokenizer.h \
311
  ../common/bigdecimal.h \
312
  ../common/filereader.h \
313
  ieventlog.h
314
$O/messagedependency.o: messagedependency.cc \
315
  messagedependency.h \
316
  eventlogentry.h \
317
  ievent.h \
318
  ../common/commondefs.h \
319
  ../common/matchexpression.h \
320
  eventlogentries.h \
321
  eventlogdefs.h \
322
  ../common/exception.h \
323
  ../common/commonutil.h \
324
  ../common/linetokenizer.h \
325
  event.h \
326
  ../common/bigdecimal.h \
327
  ../common/filereader.h \
328
  ieventlog.h
329
$O/sequencechartfacade.o: sequencechartfacade.cc \
330
  eventlogentry.h \
331
  messagedependency.h \
332
  ievent.h \
333
  ../common/commondefs.h \
334
  sequencechartfacade.h \
335
  eventlogfacade.h \
336
  ../common/matchexpression.h \
337
  eventlogentries.h \
338
  eventlogdefs.h \
339
  ../common/commonutil.h \
340
  ../common/exception.h \
341
  ../common/linetokenizer.h \
342
  event.h \
343
  ../common/bigdecimal.h \
344
  ../common/filereader.h \
345
  ieventlog.h \
346
  ../common/lcgrandom.h