* added 0.99 linux version
[mascara-docs.git] / i386 / linux / linux-2.3.21 / drivers / net / Makefile
blob4589d0ee31bde1c8b02482b8d33ab16278c3b061
1 # File: drivers/net/Makefile
3 # Makefile for the Linux network (ethercard) device drivers.
6 SUB_DIRS :=
7 MOD_SUB_DIRS := $(SUB_DIRS)
8 ALL_SUB_DIRS := $(SUB_DIRS) fc hamradio irda pcmcia tokenring wan
10 L_TARGET := net.a
11 L_OBJS := auto_irq.o
12 M_OBJS :=
13 MOD_LIST_NAME := NET_MODULES
15 # Need these to keep track of whether the 7990 (LANCE), 8390, PPP and SLHC
16 # modules should really go in the kernel or a module.
17 CONFIG_8390_BUILTIN :=
18 CONFIG_8390_MODULE :=
19 CONFIG_SLHC_BUILTIN :=
20 CONFIG_SLHC_MODULE :=
21 CONFIG_PPPDEF_BUILTIN :=
22 CONFIG_PPPDEF_MODULE :=
23 CONFIG_7990_BUILTIN :=
24 CONFIG_7990_MODULE :=
25 CONFIG_82596_BUILTIN :=
26 CONFIG_82596_MODULE :=
28 ifeq ($(CONFIG_PCMCIA),y)
29 SUB_DIRS += pcmcia
30 MOD_SUB_DIRS += pcmcia
31 else
32 ifeq ($(CONFIG_PCMCIA),m)
33 MOD_SUB_DIRS += pcmcia
34 endif
35 endif
37 ifeq ($(CONFIG_ISDN),y)
38 ifeq ($(CONFIG_ISDN_PPP),y)
39 CONFIG_SLHC_BUILTIN = y
40 CONFIG_PPPDEF_BUILTIN = y
41 endif
42 else
43 ifeq ($(CONFIG_ISDN),m)
44 ifeq ($(CONFIG_ISDN_PPP),y)
45 CONFIG_SLHC_MODULE = y
46 CONFIG_PPPDEF_MODULE = y
47 endif
48 endif
49 endif
51 ifeq ($(CONFIG_NET),y)
52 L_OBJS += Space.o net_init.o loopback.o
53 endif
55 ifeq ($(CONFIG_SEEQ8005),y)
56 L_OBJS += seeq8005.o
57 endif
59 ifeq ($(CONFIG_ETHERTAP),y)
60 L_OBJS += ethertap.o
61 else
62 ifeq ($(CONFIG_ETHERTAP),m)
63 M_OBJS += ethertap.o
64 endif
65 endif
67 ifeq ($(CONFIG_NET_SB1000),y)
68 L_OBJS += sb1000.o
69 else
70 ifeq ($(CONFIG_NET_SB1000),m)
71 M_OBJS += sb1000.o
72 endif
73 endif
75 ifeq ($(CONFIG_DAYNAPORT), y)
76 L_OBJS += daynaport.o
77 CONFIG_8390_BUILTIN = y
78 endif
80 ifeq ($(CONFIG_APNE),y)
81 L_OBJS += apne.o
82 CONFIG_8390_BUILTIN = y
83 else
84 ifeq ($(CONFIG_APNE),m)
85 M_OBJS += apne.o
86 CONFIG_8390_MODULE = y
87 endif
88 endif
90 ifeq ($(CONFIG_PCMCIA_PCNET),y)
91 CONFIG_8390_BUILTIN = y
92 else
93 ifeq ($(CONFIG_PCMCIA_PCNET),m)
94 CONFIG_8390_MODULE = y
95 endif
96 endif
98 ifeq ($(CONFIG_SHAPER),y)
99 L_OBJS += shaper.o
100 else
101 ifeq ($(CONFIG_SHAPER),m)
102 M_OBJS += shaper.o
103 endif
104 endif
106 ifeq ($(CONFIG_SK_G16),y)
107 L_OBJS += sk_g16.o
108 endif
110 ifeq ($(CONFIG_HP100),y)
111 L_OBJS += hp100.o
112 else
113 ifeq ($(CONFIG_HP100),m)
114 M_OBJS += hp100.o
115 endif
116 endif
118 ifeq ($(CONFIG_SMC9194),y)
119 L_OBJS += smc9194.o
120 else
121 ifeq ($(CONFIG_SMC9194),m)
122 M_OBJS += smc9194.o
123 endif
124 endif
126 ifeq ($(CONFIG_ARM_AM79C961A),y)
127 L_OBJS += am79c961a.o
128 else
129 ifeq ($(CONFIG_ARM_AM79C961A),m)
130 M_OBJS += am79c961a.o
131 endif
132 endif
134 ifeq ($(CONFIG_ARM_ETHERH),y)
135 CONFIG_8390_BUILTIN = y
136 else
137 ifeq ($(CONFIG_ARM_ETHERH),m)
138 CONFIG_8390_MODULE = y
139 endif
140 endif
142 ifeq ($(CONFIG_WD80x3),y)
143 L_OBJS += wd.o
144 CONFIG_8390_BUILTIN = y
145 else
146 ifeq ($(CONFIG_WD80x3),m)
147 CONFIG_8390_MODULE = y
148 M_OBJS += wd.o
149 endif
150 endif
152 ifeq ($(CONFIG_EL2),y)
153 L_OBJS += 3c503.o
154 CONFIG_8390_BUILTIN = y
155 else
156 ifeq ($(CONFIG_EL2),m)
157 CONFIG_8390_MODULE = y
158 M_OBJS += 3c503.o
159 endif
160 endif
162 ifeq ($(CONFIG_NE2K_PCI),y)
163 L_OBJS += ne2k-pci.o
164 CONFIG_8390_BUILTIN = y
165 else
166 ifeq ($(CONFIG_NE2K_PCI),m)
167 CONFIG_8390_MODULE = y
168 M_OBJS += ne2k-pci.o
169 endif
170 endif
172 ifeq ($(CONFIG_NE2000),y)
173 L_OBJS += ne.o
174 CONFIG_8390_BUILTIN = y
175 else
176 ifeq ($(CONFIG_NE2000),m)
177 CONFIG_8390_MODULE = y
178 M_OBJS += ne.o
179 endif
180 endif
182 ifeq ($(CONFIG_NE2_MCA),y)
183 L_OBJS += ne2.o
184 CONFIG_8390_BUILTIN = y
185 else
186 ifeq ($(CONFIG_NE2_MCA),m)
187 CONFIG_8390_MODULE = y
188 M_OBJS += ne2.o
189 endif
190 endif
192 ifeq ($(CONFIG_HPLAN),y)
193 L_OBJS += hp.o
194 CONFIG_8390_BUILTIN = y
195 else
196 ifeq ($(CONFIG_HPLAN),m)
197 CONFIG_8390_MODULE = y
198 M_OBJS += hp.o
199 endif
200 endif
202 ifeq ($(CONFIG_HPLAN_PLUS),y)
203 L_OBJS += hp-plus.o
204 CONFIG_8390_BUILTIN = y
205 else
206 ifeq ($(CONFIG_HPLAN_PLUS),m)
207 CONFIG_8390_MODULE = y
208 M_OBJS += hp-plus.o
209 endif
210 endif
212 ifeq ($(CONFIG_ULTRA),y)
213 L_OBJS += smc-ultra.o
214 CONFIG_8390_BUILTIN = y
215 else
216 ifeq ($(CONFIG_ULTRA),m)
217 CONFIG_8390_MODULE = y
218 M_OBJS += smc-ultra.o
219 endif
220 endif
222 ifeq ($(CONFIG_ULTRAMCA),y)
223 L_OBJS += smc-mca.o
224 CONFIG_8390_BUILTIN = y
225 else
226 ifeq ($(CONFIG_ULTRAMCA),m)
227 CONFIG_8390_MODULE = y
228 M_OBJS += smc-mca.o
229 endif
230 endif
232 ifeq ($(CONFIG_ULTRA32),y)
233 L_OBJS += smc-ultra32.o
234 CONFIG_8390_BUILTIN = y
235 else
236 ifeq ($(CONFIG_ULTRA32),m)
237 CONFIG_8390_MODULE = y
238 M_OBJS += smc-ultra32.o
239 endif
240 endif
242 ifeq ($(CONFIG_E2100),y)
243 L_OBJS += e2100.o
244 CONFIG_8390_BUILTIN = y
245 else
246 ifeq ($(CONFIG_E2100),m)
247 CONFIG_8390_MODULE = y
248 M_OBJS += e2100.o
249 endif
250 endif
252 ifeq ($(CONFIG_ES3210),y)
253 L_OBJS += es3210.o
254 CONFIG_8390_BUILTIN = y
255 else
256 ifeq ($(CONFIG_ES3210),m)
257 CONFIG_8390_MODULE = y
258 M_OBJS += es3210.o
259 endif
260 endif
262 ifeq ($(CONFIG_LNE390),y)
263 L_OBJS += lne390.o
264 CONFIG_8390_BUILTIN = y
265 else
266 ifeq ($(CONFIG_LNE390),m)
267 CONFIG_8390_MODULE = y
268 M_OBJS += lne390.o
269 endif
270 endif
272 ifeq ($(CONFIG_NE3210),y)
273 L_OBJS += ne3210.o
274 CONFIG_8390_BUILTIN = y
275 else
276 ifeq ($(CONFIG_NE3210),m)
277 CONFIG_8390_MODULE = y
278 M_OBJS += ne3210.o
279 endif
280 endif
282 ifeq ($(CONFIG_PLIP),y)
283 L_OBJS += plip.o
284 else
285 ifeq ($(CONFIG_PLIP),m)
286 M_OBJS += plip.o
287 endif
288 endif
290 # bsd_comp.o is *always* a module, for some documented reason
291 # (licensing).
292 ifeq ($(CONFIG_PPP),y)
293 LX_OBJS += ppp_generic.o
294 CONFIG_SLHC_BUILTIN = y
295 ifeq ($(CONFIG_PPP_ASYNC),y)
296 LX_OBJS += ppp_async.o
297 else
298 ifeq ($(CONFIG_PPP_ASYNC),m)
299 MX_OBJS += ppp_async.o
300 endif
301 endif
302 ifeq ($(CONFIG_PPP_DEFLATE),y)
303 CONFIG_PPPDEF_BUILTIN = y
304 else
305 ifeq ($(CONFIG_PPP_DEFLATE),m)
306 CONFIG_PPPDEF_MODULE = y
307 endif
308 endif
309 ifeq ($(CONFIG_PPP_BSDCOMP),m)
310 M_OBJS += bsd_comp.o
311 endif
312 else
313 ifeq ($(CONFIG_PPP),m)
314 MX_OBJS += ppp_generic.o
315 CONFIG_SLHC_MODULE = y
316 ifeq ($(CONFIG_PPP_ASYNC),m)
317 MX_OBJS += ppp_async.o
318 endif
319 ifeq ($(CONFIG_PPP_DEFLATE),m)
320 CONFIG_PPPDEF_MODULE = y
321 endif
322 ifeq ($(CONFIG_PPP_BSDCOMP),m)
323 M_OBJS += bsd_comp.o
324 endif
325 endif
326 endif
328 ifeq ($(CONFIG_SLIP),y)
329 L_OBJS += slip.o
330 ifeq ($(CONFIG_SLIP_COMPRESSED),y)
331 CONFIG_SLHC_BUILTIN = y
332 endif
333 else
334 ifeq ($(CONFIG_SLIP),m)
335 ifeq ($(CONFIG_SLIP_COMPRESSED),y)
336 CONFIG_SLHC_MODULE = y
337 endif
338 M_OBJS += slip.o
339 endif
340 endif
342 ifeq ($(CONFIG_STRIP),y)
343 L_OBJS += strip.o
344 else
345 ifeq ($(CONFIG_STRIP),m)
346 M_OBJS += strip.o
347 endif
348 endif
350 ifeq ($(CONFIG_DE650),y)
351 ETDRV_OBJS := $(L_OBJS) de650.o
352 CONFIG_8390_BUILTIN = y
353 endif
355 ifeq ($(CONFIG_3C589),y)
356 L_OBJS += 3c589.o
357 endif
359 ifeq ($(CONFIG_DUMMY),y)
360 L_OBJS += dummy.o
361 else
362 ifeq ($(CONFIG_DUMMY),m)
363 M_OBJS += dummy.o
364 endif
365 endif
367 ifeq ($(CONFIG_DE600),y)
368 L_OBJS += de600.o
369 else
370 ifeq ($(CONFIG_DE600),m)
371 M_OBJS += de600.o
372 endif
373 endif
375 ifeq ($(CONFIG_DE620),y)
376 L_OBJS += de620.o
377 else
378 ifeq ($(CONFIG_DE620),m)
379 M_OBJS += de620.o
380 endif
381 endif
383 ifeq ($(CONFIG_AT1500),y)
384 L_OBJS += lance.o
385 endif
387 ifeq ($(CONFIG_LANCE),y)
388 L_OBJS += lance.o
389 else
390 ifeq ($(CONFIG_LANCE),m)
391 M_OBJS += lance.o
392 endif
393 endif
395 ifeq ($(CONFIG_SUN3LANCE),y)
396 L_OBJS += sun3lance.o
397 endif
399 ifeq ($(CONFIG_PCNET32),y)
400 L_OBJS += pcnet32.o
401 else
402 ifeq ($(CONFIG_PCNET32),m)
403 M_OBJS += pcnet32.o
404 endif
405 endif
407 ifeq ($(CONFIG_DEFXX),y)
408 L_OBJS += defxx.o
409 endif
411 ifeq ($(CONFIG_SUNLANCE),y)
412 L_OBJS += sunlance.o
413 else
414 ifeq ($(CONFIG_SUNLANCE),m)
415 M_OBJS += sunlance.o
416 endif
417 endif
419 ifeq ($(CONFIG_SGISEEQ), y)
420 L_OBJS += sgiseeq.o
421 endif
423 ifeq ($(CONFIG_HAPPYMEAL),y)
424 L_OBJS += sunhme.o
425 else
426 ifeq ($(CONFIG_HAPPYMEAL),m)
427 M_OBJS += sunhme.o
428 endif
429 endif
431 ifeq ($(CONFIG_SUNQE),y)
432 L_OBJS += sunqe.o
433 else
434 ifeq ($(CONFIG_SUNQE),m)
435 M_OBJS += sunqe.o
436 endif
437 endif
439 ifeq ($(CONFIG_SUNBMAC),y)
440 L_OBJS += sunbmac.o
441 else
442 ifeq ($(CONFIG_SUNBMAC),m)
443 M_OBJS += sunbmac.o
444 endif
445 endif
447 ifeq ($(CONFIG_SUNBMAC),y)
448 L_OBJS += sunbmac.o
449 else
450 ifeq ($(CONFIG_SUNBMAC),m)
451 M_OBJS += sunbmac.o
452 endif
453 endif
455 ifeq ($(CONFIG_MYRI_SBUS),y)
456 L_OBJS += myri_sbus.o
457 else
458 ifeq ($(CONFIG_MYRI_SBUS),m)
459 M_OBJS += myri_sbus.o
460 endif
461 endif
463 ifeq ($(CONFIG_AT1700),y)
464 L_OBJS += at1700.o
465 else
466 ifeq ($(CONFIG_AT1700),m)
467 M_OBJS += at1700.o
468 endif
469 endif
471 ifeq ($(CONFIG_FMV18X),y)
472 L_OBJS += fmv18x.o
473 else
474 ifeq ($(CONFIG_FMV18X),m)
475 M_OBJS += fmv18x.o
476 endif
477 endif
479 ifeq ($(CONFIG_EL1),y)
480 L_OBJS += 3c501.o
481 else
482 ifeq ($(CONFIG_EL1),m)
483 M_OBJS += 3c501.o
484 endif
485 endif
487 ifeq ($(CONFIG_EL16),y)
488 L_OBJS += 3c507.o
489 else
490 ifeq ($(CONFIG_EL16),m)
491 M_OBJS += 3c507.o
492 endif
493 endif
495 ifeq ($(CONFIG_ELMC),y)
496 L_OBJS += 3c523.o
497 else
498 ifeq ($(CONFIG_ELMC),m)
499 M_OBJS += 3c523.o
500 endif
501 endif
503 ifeq ($(CONFIG_SKMC),y)
504 L_OBJS += sk_mca.o
505 else
506 ifeq ($(CONFIG_SKMC),m)
507 M_OBJS += sk_mca.o
508 endif
509 endif
511 ifeq ($(CONFIG_ELMC_II),y)
512 L_OBJS += 3c527.o
513 else
514 ifeq ($(CONFIG_ELMC_II),m)
515 M_OBJS += 3c527.o
516 endif
517 endif
519 ifeq ($(CONFIG_EL3),y)
520 L_OBJS += 3c509.o
521 else
522 ifeq ($(CONFIG_EL3),m)
523 M_OBJS += 3c509.o
524 endif
525 endif
527 ifeq ($(CONFIG_3C515),y)
528 L_OBJS += 3c515.o
529 else
530 ifeq ($(CONFIG_3C515),m)
531 M_OBJS += 3c515.o
532 endif
533 endif
535 ifeq ($(CONFIG_VORTEX),y)
536 L_OBJS += 3c59x.o
537 else
538 ifeq ($(CONFIG_VORTEX),m)
539 M_OBJS += 3c59x.o
540 endif
541 endif
543 ifeq ($(CONFIG_EEXPRESS),y)
544 L_OBJS += eexpress.o
545 else
546 ifeq ($(CONFIG_EEXPRESS),m)
547 M_OBJS += eexpress.o
548 endif
549 endif
551 ifeq ($(CONFIG_EEXPRESS_PRO),y)
552 L_OBJS += eepro.o
553 else
554 ifeq ($(CONFIG_EEXPRESS_PRO),m)
555 M_OBJS += eepro.o
556 endif
557 endif
559 ifeq ($(CONFIG_EEXPRESS_PRO100),y)
560 L_OBJS += eepro100.o
561 else
562 ifeq ($(CONFIG_EEXPRESS_PRO100),m)
563 M_OBJS += eepro100.o
564 endif
565 endif
567 ifeq ($(CONFIG_RTL8139),y)
568 L_OBJS += rtl8139.o
569 else
570 ifeq ($(CONFIG_RTL8139),m)
571 M_OBJS += rtl8139.o
572 endif
573 endif
575 ifeq ($(CONFIG_SIS900),y)
576 L_OBJS += sis900.o
577 else
578 ifeq ($(CONFIG_SIS900),m)
579 M_OBJS += sis900.o
580 endif
581 endif
583 ifeq ($(CONFIG_DM9102),y)
584 L_OBJS += dmfe.o
585 else
586 ifeq ($(CONFIG_DM9102),m)
587 M_OBJS += dmfe.o
588 endif
589 endif
592 ifeq ($(CONFIG_YELLOWFIN),y)
593 L_OBJS += yellowfin.o
594 else
595 ifeq ($(CONFIG_YELLOWFIN),m)
596 M_OBJS += yellowfin.o
597 endif
598 endif
600 ifeq ($(CONFIG_ACENIC),y)
601 L_OBJS += acenic.o
602 else
603 ifeq ($(CONFIG_ACENIC),m)
604 M_OBJS += acenic.o
605 endif
606 endif
608 ifeq ($(CONFIG_WAVELAN),y)
609 L_OBJS += wavelan.o
610 else
611 ifeq ($(CONFIG_WAVELAN),m)
612 M_OBJS += wavelan.o
613 endif
614 endif
616 ifeq ($(CONFIG_ARLAN),y)
617 LX_OBJS += arlan.o arlan-proc.o
618 else
619 ifeq ($(CONFIG_ARLAN),m)
620 MX_OBJS += arlan.o arlan-proc.o
621 endif
622 endif
624 ifeq ($(CONFIG_TLAN),y)
625 L_OBJS += tlan.o
626 else
627 ifeq ($(CONFIG_TLAN),m)
628 M_OBJS += tlan.o
629 endif
630 endif
632 ifeq ($(CONFIG_VIA_RHINE),y)
633 L_OBJS += via-rhine.o
634 else
635 ifeq ($(CONFIG_VIA_RHINE),m)
636 M_OBJS += via-rhine.o
637 endif
638 endif
640 ifeq ($(CONFIG_ZNET),y)
641 L_OBJS += znet.o
642 endif
644 ifeq ($(CONFIG_DEPCA),y)
645 L_OBJS += depca.o
646 else
647 ifeq ($(CONFIG_DEPCA),m)
648 M_OBJS += depca.o
649 endif
650 endif
652 ifeq ($(CONFIG_EWRK3),y)
653 L_OBJS += ewrk3.o
654 else
655 ifeq ($(CONFIG_EWRK3),m)
656 M_OBJS += ewrk3.o
657 endif
658 endif
660 ifeq ($(CONFIG_ATP),y)
661 L_OBJS += atp.o
662 endif
664 ifeq ($(CONFIG_DE4X5),y)
665 L_OBJS += de4x5.o
666 else
667 ifeq ($(CONFIG_DE4X5),m)
668 M_OBJS += de4x5.o
669 endif
670 endif
672 ifeq ($(CONFIG_NI5010),y)
673 L_OBJS += ni5010.o
674 else
675 ifeq ($(CONFIG_NI5010),m)
676 M_OBJS += ni5010.o
677 endif
678 endif
680 ifeq ($(CONFIG_NI52),y)
681 L_OBJS += ni52.o
682 else
683 ifeq ($(CONFIG_NI52),m)
684 M_OBJS += ni52.o
685 endif
686 endif
688 ifeq ($(CONFIG_NI65),y)
689 L_OBJS += ni65.o
690 else
691 ifeq ($(CONFIG_NI65),m)
692 M_OBJS += ni65.o
693 endif
694 endif
696 ifeq ($(CONFIG_ELPLUS),y)
697 L_OBJS += 3c505.o
698 else
699 ifeq ($(CONFIG_ELPLUS),m)
700 M_OBJS += 3c505.o
701 endif
702 endif
704 ifeq ($(CONFIG_AC3200),y)
705 L_OBJS += ac3200.o
706 CONFIG_8390_BUILTIN = y
707 else
708 ifeq ($(CONFIG_AC3200),m)
709 CONFIG_8390_MODULE = y
710 M_OBJS += ac3200.o
711 endif
712 endif
714 ifeq ($(CONFIG_APRICOT),y)
715 CONFIG_82596_BUILTIN = y
716 else
717 ifeq ($(CONFIG_APRICOT),m)
718 CONFIG_82596_MODULE = y
719 endif
720 endif
722 ifeq ($(CONFIG_MVME16x_NET),y)
723 CONFIG_82596_BUILTIN = y
724 else
725 ifeq ($(CONFIG_MVME16x_NET),m)
726 CONFIG_82596_MODULE = y
727 endif
728 endif
730 ifeq ($(CONFIG_BVME6000_NET),y)
731 CONFIG_82596_BUILTIN = y
732 else
733 ifeq ($(CONFIG_BVME6000_NET),m)
734 CONFIG_82596_MODULE = y
735 endif
736 endif
738 ifeq ($(CONFIG_DEC_ELCP),y)
739 L_OBJS += tulip.o
740 else
741 ifeq ($(CONFIG_DEC_ELCP),m)
742 M_OBJS += tulip.o
743 endif
744 endif
746 ifeq ($(CONFIG_ARCNET),y)
747 LX_OBJS += arcnet.o
748 else
749 ifeq ($(CONFIG_ARCNET),m)
750 MX_OBJS += arcnet.o
751 endif
752 endif
754 ifeq ($(CONFIG_ARCNET_COM90xx),y)
755 L_OBJS += com90xx.o
756 else
757 ifeq ($(CONFIG_ARCNET_COM90xx),m)
758 M_OBJS += com90xx.o
759 endif
760 endif
762 ifeq ($(CONFIG_ARCNET_COM90xxIO),y)
763 L_OBJS += com90io.o
764 else
765 ifeq ($(CONFIG_ARCNET_COM90xxIO),m)
766 M_OBJS += com90io.o
767 endif
768 endif
770 ifeq ($(CONFIG_ARCNET_RIM_I),y)
771 L_OBJS += arc-rimi.o
772 else
773 ifeq ($(CONFIG_ARCNET_RIM_I),m)
774 M_OBJS += arc-rimi.o
775 endif
776 endif
778 ifeq ($(CONFIG_ARCNET_COM20020),y)
779 L_OBJS += com20020.o
780 else
781 ifeq ($(CONFIG_ARCNET_COM20020),m)
782 M_OBJS += com20020.o
783 endif
784 endif
786 ifeq ($(CONFIG_ETH16I),y)
787 L_OBJS += eth16i.o
788 else
789 ifeq ($(CONFIG_ETH16I),m)
790 M_OBJS += eth16i.o
791 endif
792 endif
794 ifeq ($(CONFIG_EPIC100),y)
795 L_OBJS += epic100.o
796 else
797 ifeq ($(CONFIG_EPIC100),m)
798 M_OBJS += epic100.o
799 endif
800 endif
802 # If anything built-in uses slhc, then build it into the kernel also.
803 # If not, but a module uses it, build as a module.
804 ifdef CONFIG_SLHC_BUILTIN
805 LX_OBJS += slhc.o
806 else
807 ifdef CONFIG_SLHC_MODULE
808 MX_OBJS += slhc.o
809 endif
810 endif
812 # if anything built-in uses ppp_deflate, then build it into the kernel also.
813 # If not, but a module uses it, build as a module.
814 ifdef CONFIG_PPPDEF_BUILTIN
815 L_OBJS += ppp_deflate.o
816 else
817 ifdef CONFIG_PPPDEF_MODULE
818 M_OBJS += ppp_deflate.o
819 endif
820 endif
822 ifeq ($(CONFIG_ARIADNE2),y)
823 L_OBJS += ariadne2.o
824 CONFIG_8390_BUILTIN = y
825 else
826 ifeq ($(CONFIG_ARIADNE2),m)
827 M_OBJS += ariadne2.o
828 CONFIG_8390_MODULE = y
829 endif
830 endif
832 ifeq ($(CONFIG_PCMCIA_PCNET),y)
833 CONFIG_8390_BUILTIN = y
834 else
835 ifeq ($(CONFIG_PCMCIA_PCNET),m)
836 CONFIG_8390_MODULE = y
837 endif
838 endif
840 # If anything built-in uses the 8390, then build it into the kernel also.
841 # If not, but a module uses it, build as a module.
842 ifdef CONFIG_8390_BUILTIN
843 L_OBJS += 8390.o
844 else
845 ifdef CONFIG_8390_MODULE
846 MX_OBJS += 8390.o
847 endif
848 endif
850 ifeq ($(CONFIG_HPLANCE),y)
851 L_OBJS += hplance.o
852 CONFIG_7990_BUILTIN = y
853 else
854 ifeq ($(CONFIG_HPLANCE),m)
855 CONFIG_7990_MODULE = y
856 M_OBJS += hplance.o
857 endif
858 endif
860 ifeq ($(CONFIG_MVME147_NET),y)
861 L_OBJS += mvme147.o
862 CONFIG_7990_BUILTIN = y
863 else
864 ifeq ($(CONFIG_MVME147_NET),m)
865 CONFIG_7990_MODULE = y
866 M_OBJS += mvme147.o
867 endif
868 endif
870 # If we need generic LANCE support, either in the kernel or as a module,
871 # build it in the appropriate way.
872 ifdef CONFIG_7990_BUILTIN
873 L_OBJS += 7990.o
874 else
875 ifdef CONFIG_7990_MODULE
876 M_OBJS += 7990.o
877 endif
878 endif
880 # If anything built-in uses the 82596, then build it into the kernel also.
881 # If not, but a module uses it, build as a module.
882 ifdef CONFIG_82596_BUILTIN
883 L_OBJS += 82596.o
884 else
885 ifdef CONFIG_82596_MODULE
886 M_OBJS += 82596.o
887 endif
888 endif
890 ifeq ($(CONFIG_EQUALIZER),y)
891 L_OBJS += eql.o
892 else
893 ifeq ($(CONFIG_EQUALIZER),m)
894 M_OBJS += eql.o
895 endif
896 endif
898 ifeq ($(CONFIG_MIPS_JAZZ_SONIC),y)
899 L_OBJS += jazzsonic.o
900 else
901 ifeq ($(CONFIG_MIPS_JAZZ_SONIC),m)
902 M_OBJS += jazzsonic.o
903 endif
904 endif
906 ifeq ($(CONFIG_BAGETLANCE),y)
907 L_OBJS += bagetlance.o
908 else
909 ifeq ($(CONFIG_BAGETLANCE),m)
910 M_OBJS += bagetlance.o
911 endif
912 endif
914 ifeq ($(CONFIG_DECLANCE),y)
915 L_OBJS += declance.o
916 else
917 ifeq ($(CONFIG_DECLANCE),m)
918 M_OBJS += declance.o
919 endif
920 endif
922 ifeq ($(CONFIG_ATARILANCE),y)
923 L_OBJS += atarilance.o
924 else
925 ifeq ($(CONFIG_ATARILANCE),m)
926 M_OBJS += atarilance.o
927 endif
928 endif
930 ifeq ($(CONFIG_ATARI_BIONET),y)
931 L_OBJS += atari_bionet.o
932 else
933 ifeq ($(CONFIG_ATARI_BIONET),m)
934 M_OBJS += atari_bionet.o
935 endif
936 endif
938 ifeq ($(CONFIG_ATARI_PAMSNET),y)
939 L_OBJS += atari_pamsnet.o
940 else
941 ifeq ($(CONFIG_ATARI_PAMSNET),m)
942 M_OBJS += atari_pamsnet.o
943 endif
944 endif
946 ifeq ($(CONFIG_A2065),y)
947 L_OBJS += a2065.o
948 else
949 ifeq ($(CONFIG_A2065),m)
950 M_OBJS += a2065.o
951 endif
952 endif
954 ifeq ($(CONFIG_HYDRA),y)
955 L_OBJS += hydra.o
956 else
957 ifeq ($(CONFIG_HYDRA),m)
958 M_OBJS += hydra.o
959 endif
960 endif
962 ifeq ($(CONFIG_ARIADNE),y)
963 L_OBJS += ariadne.o
964 else
965 ifeq ($(CONFIG_ARIADNE),m)
966 M_OBJS += ariadne.o
967 endif
968 endif
970 ifeq ($(CONFIG_DGRS),y)
971 L_OBJS += dgrs.o
972 else
973 ifeq ($(CONFIG_DGRS),m)
974 M_OBJS += dgrs.o
975 endif
976 endif
978 ifeq ($(CONFIG_CS89x0),y)
979 L_OBJS += cs89x0.o
980 else
981 ifeq ($(CONFIG_CS89x0),m)
982 M_OBJS += cs89x0.o
983 endif
984 endif
986 ifeq ($(CONFIG_LTPC),y)
987 L_OBJS += ltpc.o
988 else
989 ifeq ($(CONFIG_LTPC),m)
990 M_OBJS += ltpc.o
991 endif
992 endif
994 ifeq ($(CONFIG_COPS),y)
995 L_OBJS += cops.o
996 else
997 ifeq ($(CONFIG_COPS),m)
998 M_OBJS += cops.o
999 endif
1000 endif
1002 ifeq ($(CONFIG_IPDDP),y)
1003 L_OBJS += ipddp.o
1004 else
1005 ifeq ($(CONFIG_IPDDP),m)
1006 M_OBJS += ipddp.o
1007 endif
1008 endif
1010 ifeq ($(CONFIG_RCPCI),y)
1011 L_OBJS += rcpci.o
1012 else
1013 ifeq ($(CONFIG_RCPCI),m)
1014 M_OBJS += rcpci.o
1015 endif
1016 endif
1018 ifeq ($(CONFIG_MACE),y)
1019 L_OBJS += mace.o
1020 else
1021 ifeq ($(CONFIG_MACE),m)
1022 M_OBJS += mace.o
1023 endif
1024 endif
1026 ifeq ($(CONFIG_MACSONIC),y)
1027 L_OBJS += macsonic.o
1028 endif
1030 ifeq ($(CONFIG_BMAC),y)
1031 L_OBJS += bmac.o
1032 else
1033 ifeq ($(CONFIG_BMAC),m)
1034 M_OBJS += bmac.o
1035 endif
1036 endif
1039 # HIPPI adapters
1042 ifeq ($(CONFIG_ROADRUNNER),y)
1043 L_OBJS += rrunner.o
1044 else
1045 ifeq ($(CONFIG_ROADRUNNER),m)
1046 M_OBJS += rrunner.o
1047 endif
1048 endif
1050 ifeq ($(CONFIG_IRDA),y)
1051 SUB_DIRS += irda
1052 MOD_IN_SUB_DIRS += irda
1053 else
1054 ifeq ($(CONFIG_IRDA),m)
1055 MOD_IN_SUB_DIRS += irda
1056 endif
1057 endif
1059 ifeq ($(CONFIG_TR),y)
1060 SUB_DIRS += tokenring
1061 MOD_IN_SUB_DIRS += tokenring
1062 else
1063 ifeq ($(CONFIG_TR),m)
1064 MOD_IN_SUB_DIRS += tokenring
1065 endif
1066 endif
1068 ifeq ($(CONFIG_WAN),y)
1069 SUB_DIRS += wan
1070 MOD_IN_SUB_DIRS += wan
1071 else
1072 ifeq ($(CONFIG_WAN),m)
1073 MOD_IN_SUB_DIRS += wan
1074 endif
1075 endif
1077 ifeq ($(CONFIG_NET_FC),y)
1078 SUB_DIRS += fc
1079 MOD_IN_SUB_DIRS += fc
1080 else
1081 ifeq ($(CONFIG_NET_FC),m)
1082 MOD_IN_SUB_DIRS += fc
1083 endif
1084 endif
1086 include $(TOPDIR)/Rules.make
1088 clean:
1089 rm -f core *.o *.a *.s
1091 rcpci.o: rcpci45.o rclanmtl.o
1092 $(LD) -r -o rcpci.o rcpci45.o rclanmtl.o