summaryrefslogtreecommitdiff
path: root/linux/Makefrag.am
blob: fccb8070198bb7efd5f23b6d40e4584c94b703e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
# Makefile fragment for Linux device drivers and the glue code.

# Copyright (C) 2006, 2007 Free Software Foundation, Inc.

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2, or (at your option) any later
# version.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
# 
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

#
# Files for device driver support.
#

if CODE_linux
noinst_LIBRARIES += \
	liblinux.a
gnumach_o_LDADD += \
	liblinux.a
endif

liblinux_a_CPPFLAGS = $(AM_CPPFLAGS) \
	-I$(srcdir)/$(systype)/linux/dev/include \
	-I$(top_builddir)/linux/dev/include \
	-I$(srcdir)/linux/dev/include \
	-I$(top_builddir)/linux/src/include \
	-I$(srcdir)/linux/src/include
# Because of the use of `extern inline' in some Linux header files without
# corresponding text segment definitions, we must always optimize.
liblinux_a_CFLAGS = -O2 $(AM_CFLAGS)
# TODO.  Do we really need `-traditional'?
liblinux_a_CCASFLAGS = $(AM_CCASFLAGS) \
	-D__ASSEMBLY__ -traditional \
	$(liblinux_a_CPPFLAGS)

liblinux_a_SOURCES = \
	linux/dev/init/version.c \
	linux/dev/kernel/softirq.c \
	linux/src/arch/i386/lib/delay.c \
	linux/dev/kernel/dma.c \
	linux/dev/kernel/resource.c \
	linux/dev/kernel/printk.c \
	linux/src/arch/i386/kernel/bios32.c \
	linux/dev/arch/i386/kernel/irq.c \
	linux/src/lib/ctype.c \
	linux/dev/lib/vsprintf.c \
	linux/dev/init/main.c \
	linux/dev/glue/misc.c \
	linux/dev/kernel/sched.c \
	linux/dev/glue/kmem.c \
	linux/dev/glue/block.c \
	linux/dev/arch/i386/kernel/setup.c

liblinux_a_SOURCES += \
	linux/src/drivers/pci/pci.c \
	linux/dev/drivers/block/genhd.c

#
# Linux device drivers.
#
if device_driver_floppy
liblinux_a_SOURCES += \
	linux/dev/drivers/block/floppy.c
endif

if device_driver_ide
liblinux_a_SOURCES += \
	linux/src/drivers/block/cmd640.c \
	linux/src/drivers/block/ide-cd.c \
	linux/src/drivers/block/ide.c \
	linux/src/drivers/block/ide.h \
	linux/src/drivers/block/ide_modes.h \
	linux/src/drivers/block/rz1000.c \
	linux/src/drivers/block/triton.c
endif

if device_driver_group_scsi
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/constants.c \
	linux/src/drivers/scsi/constants.h \
	linux/src/drivers/scsi/hosts.c \
	linux/src/drivers/scsi/hosts.h \
	linux/src/drivers/scsi/scsi.c \
	linux/src/drivers/scsi/scsi.h \
	linux/src/drivers/scsi/scsi_ioctl.c \
	linux/src/drivers/scsi/scsi_proc.c \
	linux/src/drivers/scsi/scsicam.c \
	linux/src/drivers/scsi/sd.c \
	linux/src/drivers/scsi/sd.h \
	linux/src/drivers/scsi/sd_ioctl.c \
	linux/src/drivers/scsi/sr.c \
	linux/src/drivers/scsi/sr.h \
	linux/src/drivers/scsi/sr_ioctl.c
endif

if device_driver_53c78xx
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/53c7,8xx.h \
	linux/src/drivers/scsi/53c78xx.c \
	linux/src/drivers/scsi/53c8xx_d.h \
	linux/src/drivers/scsi/53c8xx_u.h
endif

if device_driver_AM53C974
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/AM53C974.c \
	linux/src/drivers/scsi/AM53C974.h
endif

if device_driver_BusLogic
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/BusLogic.c \
	linux/src/drivers/scsi/BusLogic.h
EXTRA_DIST += \
	linux/src/drivers/scsi/FlashPoint.c
endif

if device_driver_NCR53c406a
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/NCR53c406a.c \
	linux/src/drivers/scsi/NCR53c406a.h
endif

if device_driver_advansys
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/advansys.c \
	linux/src/drivers/scsi/advansys.h
endif

if device_driver_aha152x
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/aha152x.c \
	linux/src/drivers/scsi/aha152x.h
endif

if device_driver_aha1542
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/aha1542.c \
	linux/src/drivers/scsi/aha1542.h
endif

if device_driver_aha1740
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/aha1740.c \
	linux/src/drivers/scsi/aha1740.h
endif

if device_driver_aic7xxx
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/aic7xxx.c \
	linux/src/drivers/scsi/aic7xxx.h \
	linux/src/drivers/scsi/aic7xxx/scsi_message.h \
	linux/src/drivers/scsi/aic7xxx/sequencer.h \
	linux/src/drivers/scsi/aic7xxx_reg.h
EXTRA_DIST += \
	linux/src/drivers/scsi/aic7xxx_proc.c \
	linux/src/drivers/scsi/aic7xxx_seq.c
endif

if device_driver_dtc
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/dtc.c \
	linux/src/drivers/scsi/dtc.h
endif

if device_driver_eata
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/eata.c \
	linux/src/drivers/scsi/eata.h \
	linux/src/drivers/scsi/eata_generic.h
endif

if device_driver_eata_dma
liblinux_a_SOURCES += \
	linux/dev/drivers/scsi/eata_dma.c \
	linux/src/drivers/scsi/eata_dma.h \
	linux/src/drivers/scsi/eata_dma_proc.h
EXTRA_DIST += \
	linux/src/drivers/scsi/eata_dma_proc.c
endif

if device_driver_eata_pio
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/eata_pio.c \
	linux/src/drivers/scsi/eata_pio.h
EXTRA_DIST += \
	linux/src/drivers/scsi/eata_pio_proc.c
endif

if device_driver_fdomain
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/fdomain.c \
	linux/src/drivers/scsi/fdomain.h
endif

if device_driver_g_NCR5380
liblinux_a_SOURCES += \
	linux/dev/drivers/scsi/g_NCR5380.c \
	linux/src/drivers/scsi/g_NCR5380.h
endif

if device_driver_gdth
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/gdth.c \
	linux/src/drivers/scsi/gdth.h \
	linux/src/drivers/scsi/gdth_ioctl.h \
	linux/src/drivers/scsi/gdth_proc.h
EXTRA_DIST += \
	linux/src/drivers/scsi/gdth_proc.c
endif

if device_driver_in2000
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/in2000.c \
	linux/src/drivers/scsi/in2000.h
endif

if device_driver_ncr53c8xx
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/ncr53c8xx.c \
	linux/src/drivers/scsi/ncr53c8xx.h
endif

if device_driver_pas16
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/pas16.c \
	linux/src/drivers/scsi/pas16.h
endif

if device_driver_ppa
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/ppa.c \
	linux/src/drivers/scsi/ppa.h
endif

if device_driver_qlogicfas
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/qlogicfas.c \
	linux/src/drivers/scsi/qlogicfas.h
endif

if device_driver_qlogicisp
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/qlogicisp.c \
	linux/src/drivers/scsi/qlogicisp.h
endif

if device_driver_seagate
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/seagate.c \
	linux/src/drivers/scsi/seagate.h
endif

if device_driver_t128
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/t128.c \
	linux/src/drivers/scsi/t128.h
endif

if device_driver_tmscsim
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/dc390.h \
	linux/src/drivers/scsi/tmscsim.c \
	linux/src/drivers/scsi/tmscsim.h
EXTRA_DIST += \
	linux/src/drivers/scsi/scsiiom.c
endif

if device_driver_u14_34f
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/u14-34f.c \
	linux/src/drivers/scsi/u14-34f.h
endif

if device_driver_ultrastor
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/ultrastor.c \
	linux/src/drivers/scsi/ultrastor.h
endif

if device_driver_wd7000
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/wd7000.c \
	linux/src/drivers/scsi/wd7000.h
endif

EXTRA_DIST += \
	linux/src/drivers/scsi/NCR5380.c \
	linux/src/drivers/scsi/NCR5380.h

if device_driver_group_net
liblinux_a_SOURCES += \
	linux/dev/drivers/net/auto_irq.c \
	linux/dev/glue/net.c \
	linux/dev/drivers/net/Space.c \
	linux/dev/net/core/dev.c \
	linux/dev/drivers/net/net_init.c \
	linux/src/drivers/net/pci-scan.c \
	linux/src/drivers/net/pci-scan.h
endif

if device_driver_3c501
liblinux_a_SOURCES += \
	linux/src/drivers/net/3c501.c
endif

if device_driver_3c503
liblinux_a_SOURCES += \
	linux/src/drivers/net/3c503.c \
	linux/src/drivers/net/3c503.h \
	linux/src/drivers/net/8390.c
endif

if device_driver_3c505
liblinux_a_SOURCES += \
	linux/src/drivers/net/3c505.c \
	linux/src/drivers/net/3c505.h
endif

if device_driver_3c507
liblinux_a_SOURCES += \
	linux/src/drivers/net/3c507.c
endif

if device_driver_3c509
liblinux_a_SOURCES += \
	linux/src/drivers/net/3c509.c
endif

if device_driver_3c59x
liblinux_a_SOURCES += \
	linux/src/drivers/net/3c59x.c
endif

if device_driver_3c515
liblinux_a_SOURCES += \
	linux/src/drivers/net/3c515.c
endif

if device_driver_ac3200
liblinux_a_SOURCES += \
	linux/src/drivers/net/ac3200.c \
	linux/src/drivers/net/8390.c
endif

if device_driver_apricot
liblinux_a_SOURCES += \
	linux/src/drivers/net/apricot.c
endif

if device_driver_at1700
liblinux_a_SOURCES += \
	linux/src/drivers/net/at1700.c
endif

if device_driver_atp
liblinux_a_SOURCES += \
	linux/src/drivers/net/atp.c \
	linux/src/drivers/net/atp.h
endif

#if device_driver_cb_shim
#liblinux_a_SOURCES += \
#	linux/src/drivers/net/cb_shim.c
#endif

if device_driver_de4x5
liblinux_a_SOURCES += \
	linux/src/drivers/net/de4x5.c \
	linux/src/drivers/net/de4x5.h
endif

if device_driver_de600
liblinux_a_SOURCES += \
	linux/src/drivers/net/de600.c
endif

if device_driver_de620
liblinux_a_SOURCES += \
	linux/src/drivers/net/de620.c \
	linux/src/drivers/net/de620.h
endif

if device_driver_depca
liblinux_a_SOURCES += \
	linux/src/drivers/net/depca.c \
	linux/src/drivers/net/depca.h
endif

if device_driver_e2100
liblinux_a_SOURCES += \
	linux/src/drivers/net/e2100.c \
	linux/src/drivers/net/8390.c
endif

if device_driver_eepro
liblinux_a_SOURCES += \
	linux/src/drivers/net/eepro.c
endif

if device_driver_eepro100
liblinux_a_SOURCES += \
	linux/src/drivers/net/eepro100.c
endif

if device_driver_eexpress
liblinux_a_SOURCES += \
	linux/src/drivers/net/eexpress.c \
	linux/src/drivers/net/eth82586.h
endif

if device_driver_epic100
liblinux_a_SOURCES += \
	linux/src/drivers/net/epic100.c
endif

if device_driver_eth16i
liblinux_a_SOURCES += \
	linux/src/drivers/net/eth16i.c
endif

if device_driver_ewrk3
liblinux_a_SOURCES += \
	linux/src/drivers/net/ewrk3.c \
	linux/src/drivers/net/ewrk3.h
endif

if device_driver_fmv18x
liblinux_a_SOURCES += \
	linux/src/drivers/net/fmv18x.c
endif

if device_driver_hamachi
liblinux_a_SOURCES += \
	linux/src/drivers/net/hamachi.c
endif

if device_driver_hp_plus
liblinux_a_SOURCES += \
	linux/src/drivers/net/hp-plus.c \
	linux/src/drivers/net/8390.c
endif

if device_driver_hp
liblinux_a_SOURCES += \
	linux/src/drivers/net/hp.c \
	linux/src/drivers/net/8390.c
endif

if device_driver_hp100
liblinux_a_SOURCES += \
	linux/src/drivers/net/hp100.c \
	linux/src/drivers/net/hp100.h
endif

if device_driver_intel_gige
liblinux_a_SOURCES += \
	linux/src/drivers/net/intel-gige.c
endif

if device_driver_lance
liblinux_a_SOURCES += \
	linux/src/drivers/net/lance.c
endif

if device_driver_myson803
liblinux_a_SOURCES += \
	linux/src/drivers/net/myson803.c
endif

if device_driver_natsemi
liblinux_a_SOURCES += \
	linux/src/drivers/net/natsemi.c
endif

if device_driver_ne
liblinux_a_SOURCES += \
	linux/src/drivers/net/ne.c \
	linux/src/drivers/net/8390.c
endif

if device_driver_ne2k_pci
liblinux_a_SOURCES += \
	linux/src/drivers/net/ne2k-pci.c \
	linux/src/drivers/net/8390.c
endif

if device_driver_ni52
liblinux_a_SOURCES += \
	linux/src/drivers/net/ni52.c \
	linux/src/drivers/net/ni52.h
endif

if device_driver_ni65
liblinux_a_SOURCES += \
	linux/src/drivers/net/ni65.c \
	linux/src/drivers/net/ni65.h
endif

if device_driver_ns820
liblinux_a_SOURCES += \
	linux/src/drivers/net/ns820.c
endif

if device_driver_pcnet32
liblinux_a_SOURCES += \
	linux/src/drivers/net/pcnet32.c
endif

if device_driver_rtl8139
liblinux_a_SOURCES += \
	linux/src/drivers/net/rtl8139.c
endif

if device_driver_seeq8005
liblinux_a_SOURCES += \
	linux/src/drivers/net/seeq8005.c \
	linux/src/drivers/net/seeq8005.h
endif

if device_driver_sis900
liblinux_a_SOURCES += \
	linux/src/drivers/net/sis900.c \
	linux/src/drivers/net/sis900.h
endif

if device_driver_sk_g16
liblinux_a_SOURCES += \
	linux/src/drivers/net/sk_g16.c \
	linux/src/drivers/net/sk_g16.h
endif

if device_driver_smc_ultra
liblinux_a_SOURCES += \
	linux/src/drivers/net/smc-ultra.c \
	linux/src/drivers/net/8390.c
endif

if device_driver_smc_ultra32
liblinux_a_SOURCES += \
	linux/src/drivers/net/smc-ultra32.c \
	linux/src/drivers/net/8390.c
endif

if device_driver_starfire
liblinux_a_SOURCES += \
	linux/src/drivers/net/starfire.c
endif

if device_driver_sundance
liblinux_a_SOURCES += \
	linux/src/drivers/net/sundance.c
endif

if device_driver_tlan
liblinux_a_SOURCES += \
	linux/src/drivers/net/tlan.c \
	linux/src/drivers/net/tlan.h
endif

if device_driver_tulip
liblinux_a_SOURCES += \
	linux/src/drivers/net/tulip.c
endif

if device_driver_via_rhine
liblinux_a_SOURCES += \
	linux/src/drivers/net/via-rhine.c
endif

if device_driver_wavelan
liblinux_a_SOURCES += \
	linux/src/drivers/net/i82586.h \
	linux/src/drivers/net/wavelan.c \
	linux/src/drivers/net/wavelan.h \
	linux/dev/drivers/net/wavelan.p.h
endif

if device_driver_wd
liblinux_a_SOURCES += \
	linux/src/drivers/net/wd.c
endif

if device_driver_winbond_840
liblinux_a_SOURCES += \
	linux/src/drivers/net/winbond-840.c \
	linux/src/drivers/net/8390.c
endif

if device_driver_yellowfin
liblinux_a_SOURCES += \
	linux/src/drivers/net/yellowfin.c
endif

if device_driver_znet
liblinux_a_SOURCES += \
	linux/src/drivers/net/znet.c
endif

EXTRA_DIST += \
	linux/src/drivers/net/8390.h \
	linux/src/drivers/net/kern_compat.h

# pcmcia-cs.

liblinux_pcmcia_cs_modules_a_CPPFLAGS = $(liblinux_a_CPPFLAGS) \
	-I$(srcdir)/linux/pcmcia-cs/include
liblinux_pcmcia_cs_modules_a_CFLAGS = $(liblinux_a_CFLAGS) \
	-include $(srcdir)/linux/pcmcia-cs/glue/pcmcia_glue.h
liblinux_pcmcia_cs_modules_a_SOURCES =
if device_driver_group_pcmcia
noinst_LIBRARIES += \
	liblinux_pcmcia_cs_modules.a
gnumach_o_LDADD += \
	liblinux_pcmcia_cs_modules.a
endif

liblinux_pcmcia_cs_modules_a_SOURCES += \
	linux/pcmcia-cs/glue/pcmcia.c \
	linux/pcmcia-cs/glue/pcmcia_glue.h \
	linux/pcmcia-cs/modules/cs.c \
	linux/pcmcia-cs/modules/cs_internal.h \
	linux/pcmcia-cs/modules/ds.c \
	linux/pcmcia-cs/modules/rsrc_mgr.c \
	linux/pcmcia-cs/modules/bulkmem.c \
	linux/pcmcia-cs/modules/cistpl.c \
	linux/pcmcia-cs/modules/pci_fixup.c
EXTRA_DIST += \
	linux/pcmcia-cs/glue/ds.c

if device_driver_i82365
liblinux_pcmcia_cs_modules_a_SOURCES += \
	linux/pcmcia-cs/modules/cirrus.h \
	linux/pcmcia-cs/modules/ene.h \
	linux/pcmcia-cs/modules/i82365.c \
	linux/pcmcia-cs/modules/i82365.h \
	linux/pcmcia-cs/modules/o2micro.h \
	linux/pcmcia-cs/modules/ricoh.h \
	linux/pcmcia-cs/modules/smc34c90.h \
	linux/pcmcia-cs/modules/ti113x.h \
	linux/pcmcia-cs/modules/topic.h \
	linux/pcmcia-cs/modules/vg468.h \
	linux/pcmcia-cs/modules/yenta.h
endif

liblinux_pcmcia_cs_clients_a_CPPFLAGS = $(liblinux_a_CPPFLAGS) \
	-DPCMCIA_CLIENT -I$(srcdir)/linux/pcmcia-cs/include
liblinux_pcmcia_cs_clients_a_CFLAGS = $(liblinux_a_CFLAGS) \
	-include $(srcdir)/linux/pcmcia-cs/glue/pcmcia_glue.h
liblinux_pcmcia_cs_clients_a_SOURCES =
if device_driver_group_pcmcia
noinst_LIBRARIES += \
	liblinux_pcmcia_cs_clients.a
gnumach_o_LDADD += \
	liblinux_pcmcia_cs_clients.a
endif

if device_driver_3c574_cs
liblinux_pcmcia_cs_clients_a_SOURCES += \
	linux/pcmcia-cs/clients/3c574_cs.c
endif

if device_driver_3c589_cs
liblinux_pcmcia_cs_clients_a_SOURCES += \
	linux/pcmcia-cs/clients/3c589_cs.c
endif

if device_driver_axnet_cs
liblinux_pcmcia_cs_clients_a_SOURCES += \
	linux/pcmcia-cs/clients/ax8390.h \
	linux/pcmcia-cs/clients/axnet_cs.c
endif

if device_driver_fmvj18x_cs
liblinux_pcmcia_cs_clients_a_SOURCES += \
	linux/pcmcia-cs/clients/fmvj18x_cs.c
endif

if device_driver_nmclan_cs
liblinux_pcmcia_cs_clients_a_SOURCES += \
	linux/pcmcia-cs/clients/nmclan_cs.c
endif

if device_driver_pcnet_cs
liblinux_pcmcia_cs_clients_a_SOURCES += \
	linux/pcmcia-cs/clients/pcnet_cs.c \
	linux/src/drivers/net/8390.c
endif

if device_driver_smc91c92_cs
liblinux_pcmcia_cs_clients_a_SOURCES += \
	linux/pcmcia-cs/clients/ositech.h \
	linux/pcmcia-cs/clients/smc91c92_cs.c
endif

if device_driver_xirc2ps_cs
liblinux_pcmcia_cs_clients_a_SOURCES += \
	linux/pcmcia-cs/clients/xirc2ps_cs.c
endif

liblinux_pcmcia_cs_wireless_a_CPPFLAGS = $(liblinux_a_CPPFLAGS) \
	-I$(srcdir)/linux/pcmcia-cs/include
liblinux_pcmcia_cs_wireless_a_CFLAGS = $(liblinux_a_CFLAGS) \
	-include $(srcdir)/linux/pcmcia-cs/glue/wireless_glue.h
liblinux_pcmcia_cs_wireless_a_SOURCES =
if device_driver_group_pcmcia
noinst_LIBRARIES += \
	liblinux_pcmcia_cs_wireless.a
gnumach_o_LDADD += \
	liblinux_pcmcia_cs_wireless.a
endif

if device_driver_orinoco_cs
liblinux_pcmcia_cs_wireless_a_SOURCES += \
	linux/pcmcia-cs/glue/wireless_glue.h \
	linux/pcmcia-cs/wireless/hermes.c \
	linux/pcmcia-cs/wireless/hermes.h \
	linux/pcmcia-cs/wireless/hermes_rid.h \
	linux/pcmcia-cs/wireless/ieee802_11.h \
	linux/pcmcia-cs/wireless/orinoco.c \
	linux/pcmcia-cs/wireless/orinoco.h \
	linux/pcmcia-cs/wireless/orinoco_cs.c
endif

#
# Building a distribution.
#

EXTRA_DIST += \
	linux/dev/README \
	linux/src/COPYING

# Instead of listing each file individually...
EXTRA_DIST += \
	linux/dev/include \
	linux/src/include
EXTRA_DIST += \
	linux/pcmcia-cs/include
dist-hook: dist-hook-linux
.PHONY: dist-hook-linux
dist-hook-linux:
# These symbolic links are copied from the build directory due to including
# `linux/dev/include linux/src/include' to `EXTRA_DIST' above.
	rm -f					\
	  $(distdir)/linux/dev/include/asm	\
	  $(distdir)/linux/src/include/asm

#
# Architecture specific parts.
#

if HOST_ix86
include i386/linux/Makefrag.am
endif