Subversion Repositories shark

Rev

Rev 431 | Rev 461 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 pj 1
#
2
# this file contains the library dependencies
3
#
4
 
45 pj 5
OSLIB_LIB=$(OSLIB)/lib
2 pj 6
 
45 pj 7
LINK_STARTUP = $(OSLIB_LIB)/x0.o
2 pj 8
 
9
LINK_LIB =
10
LIB_DEP =
11
 
107 pj 12
 
13
# Dependencies
14
# -------------------------------------------------------
15
 
16
# these are the libraries the use wants to use
17
USELIB = $(SHARKOPT)
18
 
19
ifeq ($(findstring __PNG__,$(SHARKOPT)) , __PNG__)
20
USELIB += __ZLIB__
21
endif
22
 
23
 
24
# PXC (Framegrabber)
25
# ----------------------------------------------------------------
26
ifeq ($(findstring __PXC__,$(USELIB)) , __PXC__)
27
 
28
INCL += -I$(BASE)/drivers/pxc/include
29
 
2 pj 30
ifeq ($(LIB_PATH)/libhpxc.a,$(wildcard $(LIB_PATH)/libhpxc.a))
31
LINK_LIB += -lhpxc
32
LIB_DEP += $(LIB_PATH)/libhpxc.a
33
endif
34
 
35
endif
36
 
431 giacomo 37
# newpci
38
# ----------------------------------------------------------------
39
ifeq ($(findstring __NEWPCI__,$(USELIB)) , __NEWPCI__)
40
 
41
INCL += -I$(BASE)/drivers/newpci/include
42
 
43
ifeq ($(LIB_PATH)/libnewpci.a,$(wildcard $(LIB_PATH)/libnewpci.a))
44
LINK_LIB += -lnewpci
45
LIB_DEP += $(LIB_PATH)/libnewpci.a
46
endif
47
 
48
else
49
 
2 pj 50
# HPCI
51
ifeq ($(LIB_PATH)/libhpci.a,$(wildcard $(LIB_PATH)/libhpci.a))
52
LINK_LIB += -lhpci
53
LIB_DEP += $(LIB_PATH)/libhpci.a
54
endif
55
 
431 giacomo 56
# hnet
57
ifeq ($(LIB_PATH)/libhnet.a,$(wildcard $(LIB_PATH)/libhnet.a))
58
LINK_LIB += -lhnet
59
LIB_DEP += $(LIB_PATH)/libhnet.a
60
endif
61
 
62
endif
63
 
64
# tracer
65
ifeq ($(LIB_PATH)/libtracer.a,$(wildcard $(LIB_PATH)/libtracer.a))
66
LINK_LIB += -ltracer
67
LIB_DEP += $(LIB_PATH)/libtracer.a
68
endif
69
 
2 pj 70
# hgd
71
ifeq ($(LIB_PATH)/libhgd.a,$(wildcard $(LIB_PATH)/libhgd.a))
72
LINK_LIB += -lhgd
73
LIB_DEP += $(LIB_PATH)/libhgd.a
74
endif
75
 
76
# grx
110 giacomo 77
# ----------------------------------------------------------------
78
ifeq ($(findstring __GRX__,$(USELIB)) , __GRX__)
79
 
80
INCL += -I$(BASE)/drivers/grx/include
81
 
2 pj 82
ifeq ($(LIB_PATH)/libgrx.a,$(wildcard $(LIB_PATH)/libgrx.a))
83
LINK_LIB += -lgrx
84
LIB_DEP += $(LIB_PATH)/libgrx.a
85
endif
110 giacomo 86
 
48 pj 87
endif
2 pj 88
 
110 giacomo 89
 
107 pj 90
# oldchar
91
# ----------------------------------------------------------------
92
ifeq ($(findstring __OLDCHAR__,$(USELIB)) , __OLDCHAR__)
93
 
94
INCL += -I$(BASE)/drivers/oldchar/include
95
 
96
ifeq ($(LIB_PATH)/liboldch.a,$(wildcard $(LIB_PATH)/liboldch.a))
97
LINK_LIB += -loldch
98
LIB_DEP += $(LIB_PATH)/liboldch.a
2 pj 99
endif
100
 
107 pj 101
endif
102
 
2 pj 103
# hsnd
104
ifeq ($(LIB_PATH)/libhsnd.a,$(wildcard $(LIB_PATH)/libhsnd.a))
105
LINK_LIB += -lhsnd
106
LIB_DEP += $(LIB_PATH)/libhsnd.a
107
endif
108
 
109
# mem
110
ifeq ($(LIB_PATH)/libmem.a,$(wildcard $(LIB_PATH)/libmem.a))
111
LINK_LIB += -lmem
112
LIB_DEP += $(LIB_PATH)/libmem.a
113
endif
114
 
115
# gkern
116
ifeq ($(LIB_PATH)/libgkern.a,$(wildcard $(LIB_PATH)/libgkern.a))
117
LINK_LIB += -lgkern
118
LIB_DEP += $(LIB_PATH)/libgkern.a
119
endif
120
 
121
# mod
122
ifeq ($(LIB_PATH)/libmod.a,$(wildcard $(LIB_PATH)/libmod.a))
123
LINK_LIB += -lmod
124
LIB_DEP += $(LIB_PATH)/libmod.a
125
endif
126
 
127
# kl
45 pj 128
ifeq ($(OSLIB_LIB)/libkl.a,$(wildcard $(OSLIB_LIB)/libkl.a))
2 pj 129
LINK_LIB += -lkl
45 pj 130
LIB_DEP += $(OSLIB_LIB)/libkl.a
2 pj 131
endif
132
 
133
# hx
45 pj 134
ifeq ($(OSLIB_LIB)/libhx.a,$(wildcard $(OSLIB_LIB)/libhx.a))
2 pj 135
LINK_LIB += -lhx
45 pj 136
LIB_DEP += $(OSLIB_LIB)/libhx.a
2 pj 137
endif
138
 
139
# hc
45 pj 140
ifeq ($(OSLIB_LIB)/libhc.a,$(wildcard $(OSLIB_LIB)/libhc.a))
2 pj 141
LINK_LIB += -lhc
45 pj 142
LIB_DEP += $(OSLIB_LIB)/libhc.a
2 pj 143
endif
144
 
145
# hm
45 pj 146
ifeq ($(OSLIB_LIB)/libhm.a,$(wildcard $(OSLIB_LIB)/libhm.a))
2 pj 147
LINK_LIB += -lhm
45 pj 148
LIB_DEP += $(OSLIB_LIB)/libhm.a
2 pj 149
endif
150
 
45 pj 151
# cons
152
ifeq ($(LIB_PATH)/libcons.a,$(wildcard $(LIB_PATH)/libcons.a))
153
LINK_LIB += -lcons
154
LIB_DEP += $(LIB_PATH)/libcons.a
155
endif
156
 
2 pj 157
# blk
158
ifeq ($(LIB_PATH)/libblk.a,$(wildcard $(LIB_PATH)/libblk.a))
159
LINK_LIB += -lblk
160
LIB_DEP += $(LIB_PATH)/libblk.a
161
endif
162
 
163
# fs
164
ifeq ($(LIB_PATH)/libfs.a,$(wildcard $(LIB_PATH)/libfs.a))
165
LINK_LIB += -lfs
166
LIB_DEP += $(LIB_PATH)/libfs.a
167
endif
168
 
169
# c
170
ifeq ($(LIB_PATH)/libc.a,$(wildcard $(LIB_PATH)/libc.a))
171
LINK_LIB += -lc
172
LIB_DEP += $(LIB_PATH)/libc.a
173
endif
174
 
175
# comp
176
ifeq ($(LIB_PATH)/libcomp.a,$(wildcard $(LIB_PATH)/libcomp.a))
177
LINK_LIB += -lcomp
178
LIB_DEP += $(LIB_PATH)/libcomp.a
179
endif
180
 
439 giacomo 181
# comp
182
ifeq ($(LIB_PATH)/libcomp26.a,$(wildcard $(LIB_PATH)/libcomp26.a))
183
LINK_LIB += -lcomp26
184
LIB_DEP += $(LIB_PATH)/libcomp26.a
185
endif
186
 
2 pj 187
# mpeg
188
ifeq ($(LIB_PATH)/libmpeg.a,$(wildcard $(LIB_PATH)/libmpeg.a))
189
LINK_LIB += -lmpeg
190
LIB_DEP += $(LIB_PATH)/libmpeg.a
191
endif
192
 
193
# mp3
194
ifeq ($(LIB_PATH)/libmp3.a,$(wildcard $(LIB_PATH)/libmp3.a))
195
LINK_LIB += -lmp3
196
LIB_DEP += $(LIB_PATH)/libmp3.a
197
endif
198
 
199
# 6025e
107 pj 200
# ----------------------------------------------------------------
201
ifeq ($(findstring __6025E__,$(USELIB)) , __6025E__)
202
 
203
INCL += -I$(BASE)/drivers/pci6025e/include
204
 
2 pj 205
ifeq ($(LIB_PATH)/lib6025e.a,$(wildcard $(LIB_PATH)/lib6025e.a))
206
LINK_LIB += -l6025e
207
LIB_DEP += $(LIB_PATH)/lib6025e.a
208
endif
209
 
107 pj 210
endif
211
 
23 pj 212
# Parport
107 pj 213
# ----------------------------------------------------------------
214
ifeq ($(findstring __PPORT__,$(USELIB)) , __PPORT__)
215
 
216
INCL += -I$(BASE)/drivers/parport/include
217
 
23 pj 218
ifeq ($(LIB_PATH)/libpport.a,$(wildcard $(LIB_PATH)/libpport.a))
219
LINK_LIB += -lpport
220
LIB_DEP += $(LIB_PATH)/libpport.a
221
endif
2 pj 222
 
107 pj 223
endif
224
 
48 pj 225
# SVGA
110 giacomo 226
# ----------------------------------------------------------------
227
ifeq ($(findstring __SVGA__,$(USELIB)) , __SVGA__)
228
 
229
INCL += -I$(BASE)/drivers/svga/include
230
 
48 pj 231
ifeq ($(LIB_PATH)/libsvga.a,$(wildcard $(LIB_PATH)/libsvga.a))
232
LINK_LIB += -lsvga
233
LIB_DEP += $(LIB_PATH)/libsvga.a
234
endif
110 giacomo 235
 
48 pj 236
endif
2 pj 237
 
110 giacomo 238
 
107 pj 239
# PCLAB
240
# ----------------------------------------------------------------
241
ifeq ($(findstring __PCLAB__,$(USELIB)) , __PCLAB__)
242
 
243
INCL += -I$(BASE)/drivers/pcl812/include
244
 
245
ifeq ($(LIB_PATH)/libpclab.a,$(wildcard $(LIB_PATH)/libpclab.a))
246
LINK_LIB += -lpclab
247
LIB_DEP += $(LIB_PATH)/libpclab.a
248
endif
249
 
250
endif
251
 
252
 
253
# Ports
254
 
255
# FFT
256
# ----------------------------------------------------------------
257
ifeq ($(findstring __FFT__,$(USELIB)) , __FFT__)
258
 
259
INCL += -I$(BASE)/ports/fftw/include
260
 
261
#FFTR
262
ifeq ($(LIB_PATH)/libfftr.a,$(wildcard $(LIB_PATH)/libfftr.a))
263
LINK_LIB += -lfftr
264
LIB_DEP += $(LIB_PATH)/libfftr.a
265
endif
266
# FFTC
267
ifeq ($(LIB_PATH)/libfftc.a,$(wildcard $(LIB_PATH)/libfftc.a))
268
LINK_LIB += -lfftc
269
LIB_DEP += $(LIB_PATH)/libfftc.a
270
endif
271
endif
272
 
48 pj 273
# OSMESA
107 pj 274
# ----------------------------------------------------------------
275
ifeq ($(findstring __OSMESA__,$(USELIB)) , __OSMESA__)
276
 
277
INCL += -I$(BASE)/ports/mesa/include
278
 
48 pj 279
ifeq ($(LIB_PATH)/libosmesa.a,$(wildcard $(LIB_PATH)/libosmesa.a))
280
LINK_LIB += -losmesa
281
LIB_DEP += $(LIB_PATH)/libosmesa.a
282
endif
2 pj 283
 
48 pj 284
# GLUT
285
ifeq ($(LIB_PATH)/libglut.a,$(wildcard $(LIB_PATH)/libglut.a))
286
LINK_LIB += -lglut
287
LIB_DEP += $(LIB_PATH)/libglut.a
288
endif
2 pj 289
 
48 pj 290
# GLU
291
ifeq ($(LIB_PATH)/libglu.a,$(wildcard $(LIB_PATH)/libglu.a))
292
LINK_LIB += -lglu
293
LIB_DEP += $(LIB_PATH)/libglu.a
294
endif
2 pj 295
 
48 pj 296
endif
297
 
98 giacomo 298
# PNG
107 pj 299
# ----------------------------------------------------------------
300
ifeq ($(findstring __PNG__,$(USELIB)) , __PNG__)
301
 
302
INCL += -I$(BASE)/ports/png/include
303
 
304
# PNG
98 giacomo 305
ifeq ($(LIB_PATH)/libpng.a,$(wildcard $(LIB_PATH)/libpng.a))
306
LINK_LIB += -lpng
307
LIB_DEP += $(LIB_PATH)/libpng.a
308
endif
309
 
107 pj 310
endif
311
 
312
# ZLIB
313
# ----------------------------------------------------------------
314
ifeq ($(findstring __ZLIB__,$(USELIB)) , __ZLIB__)
315
 
316
INCL += -I$(BASE)/ports/zlib/include
317
 
318
# PNG
319
ifeq ($(LIB_PATH)/libzlib.a,$(wildcard $(LIB_PATH)/libzlib.a))
320
LINK_LIB += -lzlib
321
LIB_DEP += $(LIB_PATH)/libzlib.a
322
endif
323
 
324
endif
142 trimarchi 325
 
326
# DIDMA
327
# ----------------------------------------------------------------
328
ifeq ($(findstring __DIDMA__, $(USELIB)), __DIDMA__)
329
 
330
INCL += -I$(BASE)/ports/didma/include
331
 
332
# DIDMA
333
ifeq ($(LIB_PATH)/libdidma.a,$(wildcard $(LIB_PATH)/libdidma.a))
334
LINK_LIB += -ldidma
335
LINK_DEP += $(LIB_PATH)/libdidma.a
336
endif
337
 
338
endif
339
 
223 giacomo 340
# FIRST
341
# ----------------------------------------------------------------
342
ifeq ($(findstring __FIRST__, $(USELIB)), __FIRST__)
343
 
344
INCL += -I$(BASE)/ports/first/include
345
 
346
ifeq ($(LIB_PATH)/libfirst.a,$(wildcard $(LIB_PATH)/libfirst.a))
347
LINK_LIB += -lfirst
348
LINK_DEP += $(LIB_PATH)/libfirst.a
349
endif
350
 
351
endif
352
 
171 giacomo 353
# BTTV
354
# ----------------------------------------------------------------
355
ifeq ($(findstring __BTTV__, $(USELIB)), __BTTV__)
356
 
357
INCL += -I$(BASE)/drivers/bttv/include -I$(BASE)/drivers/linuxc24/include
358
 
359
# BTTV
360
ifeq ($(LIB_PATH)/libbttv.a,$(wildcard $(LIB_PATH)/libbttv.a))
361
LINK_LIB += -lbttv
362
LINK_DEP += $(LIB_PATH)/libbttv.a
363
endif
364
 
365
endif
366
 
259 giacomo 367
# TFTP
368
# ----------------------------------------------------------------
369
ifeq ($(findstring __TFTP__, $(USELIB)), __TFTP__)
171 giacomo 370
 
262 giacomo 371
INCL += -I$(BASE)/ports/tftp/include
259 giacomo 372
 
373
# TFTP
374
ifeq ($(LIB_PATH)/libtftp.a,$(wildcard $(LIB_PATH)/libtftp.a))
375
LINK_LIB += -ltftp
376
LINK_DEP += $(LIB_PATH)/libtftp.a
377
endif
378
 
379
endif
380
 
284 giacomo 381
# SERVO
382
# ----------------------------------------------------------------
383
ifeq ($(findstring __SERVO__, $(USELIB)), __SERVO__)
259 giacomo 384
 
284 giacomo 385
INCL += -I$(BASE)/ports/servo/include
386
 
387
# SERVO
388
ifeq ($(LIB_PATH)/libservo.a,$(wildcard $(LIB_PATH)/libservo.a))
389
LINK_LIB += -lservo
390
LINK_DEP += $(LIB_PATH)/libservo.a
391
endif
392
 
393
endif
360 giacomo 394
 
395
# JOY
396
# ----------------------------------------------------------------
397
ifeq ($(findstring __JOY__, $(USELIB)), __JOY__)
398
 
361 giacomo 399
INCL += -I$(BASE)/drivers/joy/include
360 giacomo 400
 
401
# JOY
402
ifeq ($(LIB_PATH)/libjoy.a,$(wildcard $(LIB_PATH)/libjoy.a))
403
LINK_LIB += -ljoy
404
LINK_DEP += $(LIB_PATH)/libjoy.a
405
endif
406
 
407
endif
408