Subversion Repositories shark

Rev

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