Subversion Repositories shark

Rev

Rev 471 | Rev 556 | 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
 
463 giacomo 41
INCL += -I$(BASE)/drivers/newpci/include -I$(BASE)/drivers/linuxc26/include
431 giacomo 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
 
471 giacomo 89
# Frame Buffer
90
# ----------------------------------------------------------------
91
ifeq ($(findstring __FB__,$(USELIB)) , __FB__)
92
 
93
INCL += -I$(BASE)/drivers/fb/include -I$(BASE)/drivers/linuxc26/include
94
 
95
ifeq ($(LIB_PATH)/libfb.a,$(wildcard $(LIB_PATH)/libfb.a))
96
LINK_LIB += -lfb
97
LIB_DEP += $(LIB_PATH)/libfb.a
98
endif
99
 
100
endif
110 giacomo 101
 
107 pj 102
# oldchar
103
# ----------------------------------------------------------------
104
ifeq ($(findstring __OLDCHAR__,$(USELIB)) , __OLDCHAR__)
105
 
106
INCL += -I$(BASE)/drivers/oldchar/include
107
 
108
ifeq ($(LIB_PATH)/liboldch.a,$(wildcard $(LIB_PATH)/liboldch.a))
109
LINK_LIB += -loldch
110
LIB_DEP += $(LIB_PATH)/liboldch.a
2 pj 111
endif
112
 
107 pj 113
endif
114
 
2 pj 115
# hsnd
116
ifeq ($(LIB_PATH)/libhsnd.a,$(wildcard $(LIB_PATH)/libhsnd.a))
117
LINK_LIB += -lhsnd
118
LIB_DEP += $(LIB_PATH)/libhsnd.a
119
endif
120
 
121
# mem
122
ifeq ($(LIB_PATH)/libmem.a,$(wildcard $(LIB_PATH)/libmem.a))
123
LINK_LIB += -lmem
124
LIB_DEP += $(LIB_PATH)/libmem.a
125
endif
126
 
127
# gkern
128
ifeq ($(LIB_PATH)/libgkern.a,$(wildcard $(LIB_PATH)/libgkern.a))
129
LINK_LIB += -lgkern
130
LIB_DEP += $(LIB_PATH)/libgkern.a
131
endif
132
 
133
# mod
134
ifeq ($(LIB_PATH)/libmod.a,$(wildcard $(LIB_PATH)/libmod.a))
135
LINK_LIB += -lmod
136
LIB_DEP += $(LIB_PATH)/libmod.a
137
endif
138
 
139
# kl
45 pj 140
ifeq ($(OSLIB_LIB)/libkl.a,$(wildcard $(OSLIB_LIB)/libkl.a))
2 pj 141
LINK_LIB += -lkl
45 pj 142
LIB_DEP += $(OSLIB_LIB)/libkl.a
2 pj 143
endif
144
 
145
# hx
45 pj 146
ifeq ($(OSLIB_LIB)/libhx.a,$(wildcard $(OSLIB_LIB)/libhx.a))
2 pj 147
LINK_LIB += -lhx
45 pj 148
LIB_DEP += $(OSLIB_LIB)/libhx.a
2 pj 149
endif
150
 
151
# hc
45 pj 152
ifeq ($(OSLIB_LIB)/libhc.a,$(wildcard $(OSLIB_LIB)/libhc.a))
2 pj 153
LINK_LIB += -lhc
45 pj 154
LIB_DEP += $(OSLIB_LIB)/libhc.a
2 pj 155
endif
156
 
157
# hm
45 pj 158
ifeq ($(OSLIB_LIB)/libhm.a,$(wildcard $(OSLIB_LIB)/libhm.a))
2 pj 159
LINK_LIB += -lhm
45 pj 160
LIB_DEP += $(OSLIB_LIB)/libhm.a
2 pj 161
endif
162
 
45 pj 163
# cons
164
ifeq ($(LIB_PATH)/libcons.a,$(wildcard $(LIB_PATH)/libcons.a))
165
LINK_LIB += -lcons
166
LIB_DEP += $(LIB_PATH)/libcons.a
167
endif
168
 
2 pj 169
# blk
170
ifeq ($(LIB_PATH)/libblk.a,$(wildcard $(LIB_PATH)/libblk.a))
171
LINK_LIB += -lblk
172
LIB_DEP += $(LIB_PATH)/libblk.a
173
endif
174
 
175
# fs
176
ifeq ($(LIB_PATH)/libfs.a,$(wildcard $(LIB_PATH)/libfs.a))
177
LINK_LIB += -lfs
178
LIB_DEP += $(LIB_PATH)/libfs.a
179
endif
180
 
181
# c
182
ifeq ($(LIB_PATH)/libc.a,$(wildcard $(LIB_PATH)/libc.a))
183
LINK_LIB += -lc
184
LIB_DEP += $(LIB_PATH)/libc.a
185
endif
186
 
496 giacomo 187
# linuxComp
188
# ----------------------------------------------------------------
189
ifeq ($(findstring __LINUXC26__,$(USELIB)) , __LINUXC26__)
190
 
191
INCL += -I$(BASE)/drivers/linuxc26/include
192
 
193
# Linux Emulation Layer 2.6
194
ifeq ($(LIB_PATH)/libcomp26.a,$(wildcard $(LIB_PATH)/libcomp26.a))
195
LINK_LIB += -lcomp26
196
LIB_DEP += $(LIB_PATH)/libcomp26.a
197
endif
198
 
199
else
200
 
2 pj 201
# comp
202
ifeq ($(LIB_PATH)/libcomp.a,$(wildcard $(LIB_PATH)/libcomp.a))
203
LINK_LIB += -lcomp
204
LIB_DEP += $(LIB_PATH)/libcomp.a
205
endif
206
 
439 giacomo 207
endif
496 giacomo 208
# ----------------------------------------------------------------
439 giacomo 209
 
2 pj 210
# mpeg
211
ifeq ($(LIB_PATH)/libmpeg.a,$(wildcard $(LIB_PATH)/libmpeg.a))
212
LINK_LIB += -lmpeg
213
LIB_DEP += $(LIB_PATH)/libmpeg.a
214
endif
215
 
216
# mp3
217
ifeq ($(LIB_PATH)/libmp3.a,$(wildcard $(LIB_PATH)/libmp3.a))
218
LINK_LIB += -lmp3
219
LIB_DEP += $(LIB_PATH)/libmp3.a
220
endif
221
 
222
# 6025e
107 pj 223
# ----------------------------------------------------------------
224
ifeq ($(findstring __6025E__,$(USELIB)) , __6025E__)
225
 
226
INCL += -I$(BASE)/drivers/pci6025e/include
227
 
2 pj 228
ifeq ($(LIB_PATH)/lib6025e.a,$(wildcard $(LIB_PATH)/lib6025e.a))
229
LINK_LIB += -l6025e
230
LIB_DEP += $(LIB_PATH)/lib6025e.a
231
endif
232
 
107 pj 233
endif
234
 
23 pj 235
# Parport
107 pj 236
# ----------------------------------------------------------------
237
ifeq ($(findstring __PPORT__,$(USELIB)) , __PPORT__)
238
 
239
INCL += -I$(BASE)/drivers/parport/include
240
 
23 pj 241
ifeq ($(LIB_PATH)/libpport.a,$(wildcard $(LIB_PATH)/libpport.a))
242
LINK_LIB += -lpport
243
LIB_DEP += $(LIB_PATH)/libpport.a
244
endif
2 pj 245
 
107 pj 246
endif
247
 
48 pj 248
# SVGA
110 giacomo 249
# ----------------------------------------------------------------
250
ifeq ($(findstring __SVGA__,$(USELIB)) , __SVGA__)
251
 
252
INCL += -I$(BASE)/drivers/svga/include
253
 
48 pj 254
ifeq ($(LIB_PATH)/libsvga.a,$(wildcard $(LIB_PATH)/libsvga.a))
255
LINK_LIB += -lsvga
256
LIB_DEP += $(LIB_PATH)/libsvga.a
257
endif
110 giacomo 258
 
48 pj 259
endif
2 pj 260
 
110 giacomo 261
 
107 pj 262
# PCLAB
263
# ----------------------------------------------------------------
264
ifeq ($(findstring __PCLAB__,$(USELIB)) , __PCLAB__)
265
 
266
INCL += -I$(BASE)/drivers/pcl812/include
267
 
268
ifeq ($(LIB_PATH)/libpclab.a,$(wildcard $(LIB_PATH)/libpclab.a))
269
LINK_LIB += -lpclab
270
LIB_DEP += $(LIB_PATH)/libpclab.a
271
endif
272
 
273
endif
274
 
275
 
276
# Ports
277
 
278
# FFT
279
# ----------------------------------------------------------------
280
ifeq ($(findstring __FFT__,$(USELIB)) , __FFT__)
281
 
282
INCL += -I$(BASE)/ports/fftw/include
283
 
284
#FFTR
285
ifeq ($(LIB_PATH)/libfftr.a,$(wildcard $(LIB_PATH)/libfftr.a))
286
LINK_LIB += -lfftr
287
LIB_DEP += $(LIB_PATH)/libfftr.a
288
endif
289
# FFTC
290
ifeq ($(LIB_PATH)/libfftc.a,$(wildcard $(LIB_PATH)/libfftc.a))
291
LINK_LIB += -lfftc
292
LIB_DEP += $(LIB_PATH)/libfftc.a
293
endif
294
endif
295
 
48 pj 296
# OSMESA
107 pj 297
# ----------------------------------------------------------------
298
ifeq ($(findstring __OSMESA__,$(USELIB)) , __OSMESA__)
299
 
300
INCL += -I$(BASE)/ports/mesa/include
301
 
48 pj 302
ifeq ($(LIB_PATH)/libosmesa.a,$(wildcard $(LIB_PATH)/libosmesa.a))
303
LINK_LIB += -losmesa
304
LIB_DEP += $(LIB_PATH)/libosmesa.a
305
endif
2 pj 306
 
48 pj 307
# GLUT
308
ifeq ($(LIB_PATH)/libglut.a,$(wildcard $(LIB_PATH)/libglut.a))
309
LINK_LIB += -lglut
310
LIB_DEP += $(LIB_PATH)/libglut.a
311
endif
2 pj 312
 
48 pj 313
# GLU
314
ifeq ($(LIB_PATH)/libglu.a,$(wildcard $(LIB_PATH)/libglu.a))
315
LINK_LIB += -lglu
316
LIB_DEP += $(LIB_PATH)/libglu.a
317
endif
2 pj 318
 
48 pj 319
endif
320
 
98 giacomo 321
# PNG
107 pj 322
# ----------------------------------------------------------------
323
ifeq ($(findstring __PNG__,$(USELIB)) , __PNG__)
324
 
325
INCL += -I$(BASE)/ports/png/include
326
 
327
# PNG
98 giacomo 328
ifeq ($(LIB_PATH)/libpng.a,$(wildcard $(LIB_PATH)/libpng.a))
329
LINK_LIB += -lpng
330
LIB_DEP += $(LIB_PATH)/libpng.a
331
endif
332
 
107 pj 333
endif
334
 
335
# ZLIB
336
# ----------------------------------------------------------------
337
ifeq ($(findstring __ZLIB__,$(USELIB)) , __ZLIB__)
338
 
339
INCL += -I$(BASE)/ports/zlib/include
340
 
341
# PNG
342
ifeq ($(LIB_PATH)/libzlib.a,$(wildcard $(LIB_PATH)/libzlib.a))
343
LINK_LIB += -lzlib
344
LIB_DEP += $(LIB_PATH)/libzlib.a
345
endif
346
 
347
endif
142 trimarchi 348
 
349
# DIDMA
350
# ----------------------------------------------------------------
351
ifeq ($(findstring __DIDMA__, $(USELIB)), __DIDMA__)
352
 
353
INCL += -I$(BASE)/ports/didma/include
354
 
355
# DIDMA
356
ifeq ($(LIB_PATH)/libdidma.a,$(wildcard $(LIB_PATH)/libdidma.a))
357
LINK_LIB += -ldidma
358
LINK_DEP += $(LIB_PATH)/libdidma.a
359
endif
360
 
361
endif
362
 
223 giacomo 363
# FIRST
364
# ----------------------------------------------------------------
365
ifeq ($(findstring __FIRST__, $(USELIB)), __FIRST__)
366
 
367
INCL += -I$(BASE)/ports/first/include
368
 
369
ifeq ($(LIB_PATH)/libfirst.a,$(wildcard $(LIB_PATH)/libfirst.a))
370
LINK_LIB += -lfirst
371
LINK_DEP += $(LIB_PATH)/libfirst.a
372
endif
373
 
374
endif
375
 
171 giacomo 376
# BTTV
377
# ----------------------------------------------------------------
378
ifeq ($(findstring __BTTV__, $(USELIB)), __BTTV__)
379
 
463 giacomo 380
INCL += -I$(BASE)/drivers/bttv/include -I$(BASE)/drivers/linuxc26/include
171 giacomo 381
 
382
# BTTV
383
ifeq ($(LIB_PATH)/libbttv.a,$(wildcard $(LIB_PATH)/libbttv.a))
384
LINK_LIB += -lbttv
385
LINK_DEP += $(LIB_PATH)/libbttv.a
386
endif
387
 
388
endif
389
 
461 giacomo 390
# I2C
391
# ----------------------------------------------------------------
392
ifeq ($(findstring __I2C__, $(USELIB)), __I2C__)
393
 
394
INCL += -I$(BASE)/drivers/i2c/include -I$(BASE)/drivers/linuxc26/include
395
 
396
ifeq ($(LIB_PATH)/libi2c.a,$(wildcard $(LIB_PATH)/libi2c.a))
397
LINK_LIB += -li2c
398
LINK_DEP += $(LIB_PATH)/libi2c.a
399
endif
400
 
401
endif
402
 
403
# CM7326
404
# ----------------------------------------------------------------
405
ifeq ($(findstring __CM7326__, $(USELIB)), __CM7326__)
406
 
463 giacomo 407
INCL += -I$(BASE)/drivers/cm7326/include
461 giacomo 408
 
409
ifeq ($(LIB_PATH)/libcm7326.a,$(wildcard $(LIB_PATH)/libcm7326.a))
410
LINK_LIB += -lcm7326
411
LINK_DEP += $(LIB_PATH)/libcm7326.a
412
endif
413
 
414
endif
415
 
259 giacomo 416
# TFTP
417
# ----------------------------------------------------------------
418
ifeq ($(findstring __TFTP__, $(USELIB)), __TFTP__)
171 giacomo 419
 
262 giacomo 420
INCL += -I$(BASE)/ports/tftp/include
259 giacomo 421
 
422
# TFTP
423
ifeq ($(LIB_PATH)/libtftp.a,$(wildcard $(LIB_PATH)/libtftp.a))
424
LINK_LIB += -ltftp
425
LINK_DEP += $(LIB_PATH)/libtftp.a
426
endif
427
 
428
endif
429
 
284 giacomo 430
# SERVO
431
# ----------------------------------------------------------------
432
ifeq ($(findstring __SERVO__, $(USELIB)), __SERVO__)
259 giacomo 433
 
284 giacomo 434
INCL += -I$(BASE)/ports/servo/include
435
 
436
# SERVO
437
ifeq ($(LIB_PATH)/libservo.a,$(wildcard $(LIB_PATH)/libservo.a))
438
LINK_LIB += -lservo
439
LINK_DEP += $(LIB_PATH)/libservo.a
440
endif
441
 
442
endif
360 giacomo 443
 
444
# JOY
445
# ----------------------------------------------------------------
446
ifeq ($(findstring __JOY__, $(USELIB)), __JOY__)
447
 
361 giacomo 448
INCL += -I$(BASE)/drivers/joy/include
360 giacomo 449
 
450
# JOY
451
ifeq ($(LIB_PATH)/libjoy.a,$(wildcard $(LIB_PATH)/libjoy.a))
452
LINK_LIB += -ljoy
453
LINK_DEP += $(LIB_PATH)/libjoy.a
454
endif
455
 
456
endif
457
 
496 giacomo 458
# INPUT
459
# ----------------------------------------------------------------
460
ifeq ($(findstring __INPUT__, $(USELIB)), __INPUT__)
461
 
462
INCL += -I$(BASE)/drivers/input/include
463
 
464
# JOY
465
ifeq ($(LIB_PATH)/libinput.a,$(wildcard $(LIB_PATH)/libinput.a))
466
LINK_LIB += -linput
467
LINK_DEP += $(LIB_PATH)/libinput.a
468
endif
469
 
470
endif