* add p cc
[mascara-docs.git] / i386 / linux / linux-0.99 / drivers / net / Makefile
blob51c1c8d9e7fd8c9de9ca652f7e7f946d5b2aa044
1 # File: drivers/net/Makefile
3 # Makefile for the Linux network (ethercard) device drivers.
6 # This will go away in some future future: hidden configuration files
7 # are difficult for users to deal with.
8 include CONFIG
10 NETDRV_OBJS := net.a(Space.o) net.a(auto_irq.o) net.a(net_init.o)
11 CFLAGS := $(CFLAGS) -I../../net/inet
12 CPP := $(CPP) -I../../net/inet
14 # The point of the makefile...
15 all: net.a
17 Space.o: Space.c ../../include/linux/autoconf.h
18 $(CC) $(CFLAGS) $(OPTS) $(DL_OPTS) -c $< -o $@
20 net_init.o: ../../include/linux/autoconf.h
22 ifdef CONFIG_WD80x3
23 NETDRV_OBJS := $(NETDRV_OBJS) net.a(wd.o)
24 CONFIG_8390 = CONFIG_8390
25 wd.o: wd.c CONFIG
26 $(CC) $(CPPFLAGS) $(CFLAGS) $(WD_OPTS) -c $<
27 endif
29 ifdef CONFIG_EL2
30 NETDRV_OBJS := $(NETDRV_OBJS) net.a(3c503.o)
31 CONFIG_8390 = CONFIG_8390
32 3c503.o: 3c503.c CONFIG
33 $(CC) $(CPPFLAGS) $(CFLAGS) $(EL2_OPTS) -c $<
34 endif
36 ifdef CONFIG_NE2000
37 NETDRV_OBJS := $(NETDRV_OBJS) net.a(ne.o)
38 CONFIG_8390 = CONFIG_8390
39 ne.o: ne.c CONFIG
40 $(CC) $(CPPFLAGS) $(CFLAGS) $(NE_OPTS) -c $<
41 endif
43 ifdef CONFIG_HPLAN
44 NETDRV_OBJS := $(NETDRV_OBJS) net.a(hp.o)
45 CONFIG_8390 = CONFIG_8390
46 hp.o: hp.c CONFIG
47 $(CC) $(CPPFLAGS) $(CFLAGS) $(HP_OPTS) -c $<
48 endif
50 ifdef CONFIG_ULTRA
51 NETDRV_OBJS := $(NETDRV_OBJS) net.a(smc-ultra.o)
52 CONFIG_8390 = CONFIG_8390
53 endif
55 ifdef CONFIG_E2100
56 NETDRV_OBJS := $(NETDRV_OBJS) net.a(e2100.o)
57 CONFIG_8390 = CONFIG_8390
58 endif
60 ifdef CONFIG_PLIP
61 NETDRV_OBJS := $(NETDRV_OBJS) net.a(plip.o)
62 plip.o: plip.c CONFIG
63 $(CC) $(CPPFLAGS) $(CFLAGS) $(PLIP_OPTS) -c $<
64 endif
66 ifdef CONFIG_PPP
67 NETDRV_OBJS := $(NETDRV_OBJS) net.a(ppp.o) net.a(slhc.o)
68 endif
70 ifdef CONFIG_SLIP
71 NETDRV_OBJS := $(NETDRV_OBJS) net.a(slip.o) net.a(slhc.o)
72 slip.o: slip.c CONFIG
73 $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
74 endif
76 ifdef CONFIG_DE600
77 NETDRV_OBJS := $(NETDRV_OBJS) net.a(d_link.o)
78 d_link.o: d_link.c CONFIG
79 $(CC) $(CPPFLAGS) $(CFLAGS) $(DL_OPTS) -c $<
80 endif
82 ifdef CONFIG_AT1500
83 NETDRV_OBJS := $(NETDRV_OBJS) net.a(lance.o)
84 endif
85 ifdef CONFIG_LANCE
86 NETDRV_OBJS := $(NETDRV_OBJS) net.a(lance.o)
87 endif
88 ifdef CONFIG_AT1700
89 NETDRV_OBJS := $(NETDRV_OBJS) net.a(at1700.o)
90 endif
91 ifdef CONFIG_EL1
92 NETDRV_OBJS := $(NETDRV_OBJS) net.a(3c501.o)
93 endif
94 ifdef CONFIG_EL16
95 NETDRV_OBJS := $(NETDRV_OBJS) net.a(3c507.o)
96 endif
97 ifdef CONFIG_EL3
98 NETDRV_OBJS := $(NETDRV_OBJS) net.a(3c509.o)
99 endif
100 ifdef CONFIG_EEXPRESS
101 NETDRV_OBJS := $(NETDRV_OBJS) net.a(eexpress.o)
102 endif
103 ifdef CONFIG_ZNET
104 NETDRV_OBJS := $(NETDRV_OBJS) net.a(znet.o)
105 endif
106 ifdef CONFIG_DEPCA
107 NETDRV_OBJS := $(NETDRV_OBJS) net.a(depca.o)
108 endif
109 ifdef CONFIG_ATP
110 NETDRV_OBJS := $(NETDRV_OBJS) net.a(atp.o)
111 endif
112 ifdef CONFIG_NI52
113 NETDRV_OBJS := $(NETDRV_OBJS) net.a(ni52.o)
114 endif
115 ifdef CONFIG_NI65
116 NETDRV_OBJS := $(NETDRV_OBJS) net.a(ni65.o)
117 endif
118 ifdef CONFIG_ELPLUS
119 NETDRV_OBJS := $(NETDRV_OBJS) net.a(3c505.o)
120 endif
121 ifdef CONFIG_AC3200
122 NETDRV_OBJS := $(NETDRV_OBJS) net.a(ac3200.o)
123 CONFIG_8390 = CONFIG_8390
124 endif
126 ifdef CONFIG_8390
127 NETDRV_OBJS := $(NETDRV_OBJS) net.a(8390.o)
128 endif
130 ifdef CONFIG_IP_DEFRAG
131 NETDRV_OBJS := $(NETDRV_OBJS) net.a(ip-frag.o)
132 endif
134 net.a: $(NETDRV_OBJS)
135 ranlib net.a
137 clean:
138 rm -f core *.o *.a *.s
140 dep:
141 $(CPP) -M *.c > .depend
143 tar:
146 # include a dependency file if one exists
148 ifeq (.depend,$(wildcard .depend))
149 include .depend
150 endif