Subversion Repositories shark

Rev

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