Subversion Repositories shark

Rev

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