Subversion Repositories shark

Rev

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