17c478bd9Sstevel@tonic-gate# For <shared.h> and <stage1.h>.
27c478bd9Sstevel@tonic-gateINCLUDES = -I$(top_srcdir)/stage2 -I$(top_srcdir)/stage1
37c478bd9Sstevel@tonic-gate
47c478bd9Sstevel@tonic-gate# Don't build the netboot support by default.
57c478bd9Sstevel@tonic-gateif NETBOOT_SUPPORT
67c478bd9Sstevel@tonic-gateLIBDRIVERS = libdrivers.a
77c478bd9Sstevel@tonic-gateelse
87c478bd9Sstevel@tonic-gateLIBDRIVERS =
97c478bd9Sstevel@tonic-gateendif
107c478bd9Sstevel@tonic-gate
117c478bd9Sstevel@tonic-gatenoinst_LIBRARIES = $(LIBDRIVERS)
127c478bd9Sstevel@tonic-gate
137c478bd9Sstevel@tonic-gatelibdrivers_a_SOURCES = big_bswap.h bootp.h byteswap.h config.c cpu.h \
147c478bd9Sstevel@tonic-gate	dev.h elf.h endian.h etherboot.h fsys_tftp.c grub.h \
157c478bd9Sstevel@tonic-gate	i386_byteswap.h i386_elf.h i386_endian.h i386_timer.c \
167c478bd9Sstevel@tonic-gate	if_arp.h if_ether.h igmp.h in.h io.h ip.h isa.h latch.h \
177c478bd9Sstevel@tonic-gate	little_bswap.h misc.c nic.c nic.h osdep.h pci.c pci.h \
187c478bd9Sstevel@tonic-gate	pci_ids.h pci_io.c stdint.h tftp.h timer.c timer.h \
197c478bd9Sstevel@tonic-gate	types.h udp.h mii.h pic8259.c pic8259.h pxe.h basemem.c segoff.h
207c478bd9Sstevel@tonic-gateEXTRA_libdrivers_a_SOURCES = 3c595.c 3c595.h 3c90x.c davicom.c \
217c478bd9Sstevel@tonic-gate	e1000.c e1000_hw.h eepro100.c epic100.c epic100.h natsemi.c \
227c478bd9Sstevel@tonic-gate	ns8390.c ns8390.h pcnet32.c rtl8139.c sis900.c sis900.h \
237c478bd9Sstevel@tonic-gate	sundance.c tg3.c tg3.h tlan.c tlan.h tulip.c via-rhine.c \
247c478bd9Sstevel@tonic-gate	w89c840.c r8169.c forcedeth.c ns83820.c pnic.c pnic_api.c \
257c478bd9Sstevel@tonic-gate	undi.c undi.h
267c478bd9Sstevel@tonic-gatelibdrivers_a_CFLAGS = $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
277c478bd9Sstevel@tonic-gate	-DFSYS_TFTP=1 $(NET_CFLAGS) $(NET_EXTRAFLAGS)
287c478bd9Sstevel@tonic-gate# Filled by configure.
297c478bd9Sstevel@tonic-gatelibdrivers_a_LIBADD = @NETBOOT_DRIVERS@
307c478bd9Sstevel@tonic-gatelibdrivers_a_DEPENDENCIES = $(libdrivers_a_LIBADD)
317c478bd9Sstevel@tonic-gate
327c478bd9Sstevel@tonic-gateEXTRA_DIST = README.netboot
337c478bd9Sstevel@tonic-gate
347c478bd9Sstevel@tonic-gate# These below are several special rules for the device drivers.
357c478bd9Sstevel@tonic-gate# We cannot use a simple rule for them...
367c478bd9Sstevel@tonic-gate
377c478bd9Sstevel@tonic-gate# What objects are derived from a driver?
387c478bd9Sstevel@tonic-gate#3c509_drivers = 3c509.o 3c529.o
397c478bd9Sstevel@tonic-gate3c595_drivers = 3c595.o
407c478bd9Sstevel@tonic-gate3c90x_drivers = 3c90x.o
417c478bd9Sstevel@tonic-gate#cs89x0_drivers = cs89x0.o
427c478bd9Sstevel@tonic-gatedavicom_drivers = davicom.o
437c478bd9Sstevel@tonic-gate#depca_drivers = depca.o
447c478bd9Sstevel@tonic-gate#eepro_drivers = eepro.o
457c478bd9Sstevel@tonic-gatee1000_drivers = e1000.o
467c478bd9Sstevel@tonic-gateeepro100_drivers = eepro100.o
477c478bd9Sstevel@tonic-gateepic100_drivers = epic100.o
487c478bd9Sstevel@tonic-gate#fa311_drivers = fa311.o
497c478bd9Sstevel@tonic-gateforcedeth_drivers = forcedeth.o
507c478bd9Sstevel@tonic-gate#i82586_drivers = 3c507.o exos205.o ni5210.o
517c478bd9Sstevel@tonic-gate#lance_drivers = lance.o ne2100.o ni6510.o
527c478bd9Sstevel@tonic-gatenatsemi_drivers = natsemi.o
537c478bd9Sstevel@tonic-gate#ni5010_drivers = ni5010.o
547c478bd9Sstevel@tonic-gatens83820_drivers = ns83820.o
557c478bd9Sstevel@tonic-gatens8390_drivers = 3c503.o ne.o ns8390.o wd.o
567c478bd9Sstevel@tonic-gate#otulip_drivers = otulip.o
577c478bd9Sstevel@tonic-gatepcnet32_drivers = pcnet32.o
587c478bd9Sstevel@tonic-gatepnic_drivers = pnic.o
597c478bd9Sstevel@tonic-gater8169_drivers = r8169.o
607c478bd9Sstevel@tonic-gatertl8139_drivers = rtl8139.o
617c478bd9Sstevel@tonic-gatesis900_drivers = sis900.o
627c478bd9Sstevel@tonic-gate#sk_g16_drivers = sk_g16.o
637c478bd9Sstevel@tonic-gatesundance_drivers = sundance.o
647c478bd9Sstevel@tonic-gate#smc9000_drivers = smc9000.o
657c478bd9Sstevel@tonic-gatetg3_drivers = tg3.o
667c478bd9Sstevel@tonic-gate#tiara_drivers = tiara.o
677c478bd9Sstevel@tonic-gatetlan_drivers = tlan.o
687c478bd9Sstevel@tonic-gatetulip_drivers = tulip.o
697c478bd9Sstevel@tonic-gateundi_drivers = undi.o
707c478bd9Sstevel@tonic-gatevia_rhine_drivers = via_rhine.o
717c478bd9Sstevel@tonic-gatew89c840_drivers = w89c840.o
727c478bd9Sstevel@tonic-gate
737c478bd9Sstevel@tonic-gate
747c478bd9Sstevel@tonic-gate# Is it really necessary to specify dependecies explicitly?
757c478bd9Sstevel@tonic-gate#$(3c509_drivers): 3c509.c 3c509.h
767c478bd9Sstevel@tonic-gate#$(3c509_drivers): %.o: 3c509.c
777c478bd9Sstevel@tonic-gate#	$(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
787c478bd9Sstevel@tonic-gate#	  $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
797c478bd9Sstevel@tonic-gate
807c478bd9Sstevel@tonic-gate$(3c595_drivers): 3c595.c 3c595.h
817c478bd9Sstevel@tonic-gate$(3c595_drivers): %.o: 3c595.c
827c478bd9Sstevel@tonic-gate	$(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
837c478bd9Sstevel@tonic-gate	  $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
847c478bd9Sstevel@tonic-gate
857c478bd9Sstevel@tonic-gate$(3c90x_drivers): 3c90x.c
867c478bd9Sstevel@tonic-gate$(3c90x_drivers): %.o: 3c90x.c
877c478bd9Sstevel@tonic-gate	$(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
887c478bd9Sstevel@tonic-gate	  $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
897c478bd9Sstevel@tonic-gate
907c478bd9Sstevel@tonic-gate#$(cs89x0_drivers): cs89x0.c cs89x0.h
917c478bd9Sstevel@tonic-gate#$(cs89x0_drivers): %.o: cs89x0.c
927c478bd9Sstevel@tonic-gate#	$(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
937c478bd9Sstevel@tonic-gate#	  $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
947c478bd9Sstevel@tonic-gate
957c478bd9Sstevel@tonic-gate$(davicom_drivers): davicom.c
967c478bd9Sstevel@tonic-gate$(davicom_drivers): %.o: davicom.c
977c478bd9Sstevel@tonic-gate	$(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
987c478bd9Sstevel@tonic-gate	  $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
997c478bd9Sstevel@tonic-gate
1007c478bd9Sstevel@tonic-gate#$(depca_drivers): depca.c
1017c478bd9Sstevel@tonic-gate#$(depca_drivers): %.o: depca.c
1027c478bd9Sstevel@tonic-gate#	$(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
1037c478bd9Sstevel@tonic-gate#	  $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
1047c478bd9Sstevel@tonic-gate
1057c478bd9Sstevel@tonic-gate#$(eepro_drivers): eepro.c
1067c478bd9Sstevel@tonic-gate#$(eepro_drivers): %.o: eepro.c
1077c478bd9Sstevel@tonic-gate#	$(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
1087c478bd9Sstevel@tonic-gate#	  $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
1097c478bd9Sstevel@tonic-gate
1107c478bd9Sstevel@tonic-gate$(e1000_drivers): e1000.c e1000_hw.h
1117c478bd9Sstevel@tonic-gate$(e1000_drivers): %.o: e1000.c
1127c478bd9Sstevel@tonic-gate	$(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
1137c478bd9Sstevel@tonic-gate	  $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
1147c478bd9Sstevel@tonic-gate
1157c478bd9Sstevel@tonic-gate$(eepro100_drivers): eepro100.c
1167c478bd9Sstevel@tonic-gate$(eepro100_drivers): %.o: eepro100.c
1177c478bd9Sstevel@tonic-gate	$(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
1187c478bd9Sstevel@tonic-gate	  $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
1197c478bd9Sstevel@tonic-gate
1207c478bd9Sstevel@tonic-gate$(epic100_drivers): epic100.c epic100.h
1217c478bd9Sstevel@tonic-gate$(epic100_drivers): %.o: epic100.c
1227c478bd9Sstevel@tonic-gate	$(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
1237c478bd9Sstevel@tonic-gate	  $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
1247c478bd9Sstevel@tonic-gate
1257c478bd9Sstevel@tonic-gate$(forcedeth_drivers): forcedeth.c
1267c478bd9Sstevel@tonic-gate$(forcedeth_drivers): %.o: forcedeth.c
1277c478bd9Sstevel@tonic-gate	$(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
1287c478bd9Sstevel@tonic-gate	  $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
1297c478bd9Sstevel@tonic-gate
1307c478bd9Sstevel@tonic-gate#$(fa311_drivers): fa311.c
1317c478bd9Sstevel@tonic-gate#$(fa311_drivers): %.o: fa311.c
1327c478bd9Sstevel@tonic-gate#	$(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
1337c478bd9Sstevel@tonic-gate#	  $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
1347c478bd9Sstevel@tonic-gate
1357c478bd9Sstevel@tonic-gate#$(i82586_drivers): i82586.c
1367c478bd9Sstevel@tonic-gate#$(i82586_drivers): %.o: i82586.c
1377c478bd9Sstevel@tonic-gate#	$(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
1387c478bd9Sstevel@tonic-gate#	  $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
1397c478bd9Sstevel@tonic-gate
1407c478bd9Sstevel@tonic-gate#$(lance_drivers): lance.c
1417c478bd9Sstevel@tonic-gate#$(lance_drivers): %.o: lance.c
1427c478bd9Sstevel@tonic-gate#	$(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
1437c478bd9Sstevel@tonic-gate#	  $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
1447c478bd9Sstevel@tonic-gate
1457c478bd9Sstevel@tonic-gate$(natsemi_drivers): natsemi.c
1467c478bd9Sstevel@tonic-gate$(natsemi_drivers): %.o: natsemi.c
1477c478bd9Sstevel@tonic-gate	$(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
1487c478bd9Sstevel@tonic-gate	  $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
1497c478bd9Sstevel@tonic-gate
1507c478bd9Sstevel@tonic-gate#$(ni5010_drivers): ni5010.c
1517c478bd9Sstevel@tonic-gate#$(ni5010_drivers): %.o: ni5010.c
1527c478bd9Sstevel@tonic-gate#	$(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
1537c478bd9Sstevel@tonic-gate#	  $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
1547c478bd9Sstevel@tonic-gate
1557c478bd9Sstevel@tonic-gate$(ns83820_drivers): ns83820.c
1567c478bd9Sstevel@tonic-gate$(ns83820_drivers): %.o: ns83820.c
1577c478bd9Sstevel@tonic-gate	$(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
1587c478bd9Sstevel@tonic-gate	  $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
1597c478bd9Sstevel@tonic-gate
1607c478bd9Sstevel@tonic-gate$(ns8390_drivers): ns8390.c ns8390.h
1617c478bd9Sstevel@tonic-gate$(ns8390_drivers): %.o: ns8390.c
1627c478bd9Sstevel@tonic-gate	$(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
1637c478bd9Sstevel@tonic-gate	  $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
1647c478bd9Sstevel@tonic-gate
1657c478bd9Sstevel@tonic-gate#$(otulip_drivers): otulip.c otulip.h
1667c478bd9Sstevel@tonic-gate#$(otulip_drivers): %.o: otulip.c
1677c478bd9Sstevel@tonic-gate#	$(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
1687c478bd9Sstevel@tonic-gate#	  $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
1697c478bd9Sstevel@tonic-gate
1707c478bd9Sstevel@tonic-gate$(pcnet32_drivers): pcnet32.c
1717c478bd9Sstevel@tonic-gate$(pcnet32_drivers): %.o: pcnet32.c
1727c478bd9Sstevel@tonic-gate	$(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
1737c478bd9Sstevel@tonic-gate	  $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
1747c478bd9Sstevel@tonic-gate
1757c478bd9Sstevel@tonic-gate$(pnic_drivers): pnic.c
1767c478bd9Sstevel@tonic-gate$(pnic_drivers): %.o: pnic.c pnic_api.h
1777c478bd9Sstevel@tonic-gate	$(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
1787c478bd9Sstevel@tonic-gate	  $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
1797c478bd9Sstevel@tonic-gate
1807c478bd9Sstevel@tonic-gate$(rtl8139_drivers): rtl8139.c
1817c478bd9Sstevel@tonic-gate$(rtl8139_drivers): %.o: rtl8139.c
1827c478bd9Sstevel@tonic-gate	$(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
1837c478bd9Sstevel@tonic-gate	  $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
1847c478bd9Sstevel@tonic-gate
1857c478bd9Sstevel@tonic-gate$(r8169_drivers): r8169.c
1867c478bd9Sstevel@tonic-gate$(r8169_drivers): %.o: r8169.c
1877c478bd9Sstevel@tonic-gate	$(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
1887c478bd9Sstevel@tonic-gate	  $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
1897c478bd9Sstevel@tonic-gate
1907c478bd9Sstevel@tonic-gate$(sis900_drivers): sis900.c sis900.h
1917c478bd9Sstevel@tonic-gate$(sis900_drivers): %.o: sis900.c
1927c478bd9Sstevel@tonic-gate	$(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
1937c478bd9Sstevel@tonic-gate	  $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
1947c478bd9Sstevel@tonic-gate
1957c478bd9Sstevel@tonic-gate#$(sk_g16_drivers): sk_g16.c sk_g16.h
1967c478bd9Sstevel@tonic-gate#$(sk_g16_drivers): %.o: sk_g16.c
1977c478bd9Sstevel@tonic-gate#	$(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
1987c478bd9Sstevel@tonic-gate#	  $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
1997c478bd9Sstevel@tonic-gate
2007c478bd9Sstevel@tonic-gate#$(smc9000_drivers): smc9000.c smc9000.h
2017c478bd9Sstevel@tonic-gate#$(smc9000_drivers): %.o: smc9000.c
2027c478bd9Sstevel@tonic-gate#	$(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
2037c478bd9Sstevel@tonic-gate#	  $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
2047c478bd9Sstevel@tonic-gate
2057c478bd9Sstevel@tonic-gate$(sundance_drivers): sundance.c
2067c478bd9Sstevel@tonic-gate$(sundance_drivers): %.o: sundance.c
2077c478bd9Sstevel@tonic-gate	$(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
2087c478bd9Sstevel@tonic-gate	  $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
2097c478bd9Sstevel@tonic-gate
2107c478bd9Sstevel@tonic-gate$(tg3_drivers): tg3.c tg3.h
2117c478bd9Sstevel@tonic-gate$(tg3_drivers): %.o: tg3.c
2127c478bd9Sstevel@tonic-gate	$(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
2137c478bd9Sstevel@tonic-gate	  $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
2147c478bd9Sstevel@tonic-gate
2157c478bd9Sstevel@tonic-gate#$(tiara_drivers): tiara.c
2167c478bd9Sstevel@tonic-gate#$(tiara_drivers): %.o: tiara.c
2177c478bd9Sstevel@tonic-gate#	$(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
2187c478bd9Sstevel@tonic-gate#	  $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
2197c478bd9Sstevel@tonic-gate
2207c478bd9Sstevel@tonic-gate$(tlan_drivers): tlan.c tlan.h
2217c478bd9Sstevel@tonic-gate$(tlan_drivers): %.o: tlan.c
2227c478bd9Sstevel@tonic-gate	$(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
2237c478bd9Sstevel@tonic-gate	  $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
2247c478bd9Sstevel@tonic-gate
2257c478bd9Sstevel@tonic-gate$(tulip_drivers): tulip.c
2267c478bd9Sstevel@tonic-gate$(tulip_drivers): %.o: tulip.c
2277c478bd9Sstevel@tonic-gate	$(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
2287c478bd9Sstevel@tonic-gate	  $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
2297c478bd9Sstevel@tonic-gate
2307c478bd9Sstevel@tonic-gate$(undi_drivers): undi.c undi.h
2317c478bd9Sstevel@tonic-gate$(undi_drivers): %.o: undi.c
2327c478bd9Sstevel@tonic-gate	$(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
2337c478bd9Sstevel@tonic-gate          $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
2347c478bd9Sstevel@tonic-gate
2357c478bd9Sstevel@tonic-gate$(via_rhine_drivers): via-rhine.c
2367c478bd9Sstevel@tonic-gate$(via_rhine_drivers): %.o: via-rhine.c
2377c478bd9Sstevel@tonic-gate	$(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
2387c478bd9Sstevel@tonic-gate	  $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
2397c478bd9Sstevel@tonic-gate
2407c478bd9Sstevel@tonic-gate$(w89c840_drivers): w89c840.c
2417c478bd9Sstevel@tonic-gate$(w89c840_drivers): %.o: w89c840.c
2427c478bd9Sstevel@tonic-gate	$(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
2437c478bd9Sstevel@tonic-gate	  $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
2447c478bd9Sstevel@tonic-gate
2457c478bd9Sstevel@tonic-gate# Per-object flags.
2467c478bd9Sstevel@tonic-gate#3c509_o_CFLAGS = -DINCLUDE_3C509=1
2477c478bd9Sstevel@tonic-gate#3c529_o_CFLAGS = -DINCLUDE_3C529=1
2487c478bd9Sstevel@tonic-gate3c595_o_CFLAGS = -DINCLUDE_3C595=1
2497c478bd9Sstevel@tonic-gate3c90x_o_CFLAGS = -DINCLUDE_3C90X=1
2507c478bd9Sstevel@tonic-gate#cs89x0_o_CFLAGS = -DINCLUDE_CS89X0=1
2517c478bd9Sstevel@tonic-gatedavicom_o_CFLAGS = -DINCLUDE_DAVICOM=1
2527c478bd9Sstevel@tonic-gate#depca_o_CFLAGS = -DINCLUDE_DEPCA=1
2537c478bd9Sstevel@tonic-gate#eepro_o_CFLAGS = -DINCLUDE_EEPRO=1
2547c478bd9Sstevel@tonic-gatee1000_o_CFLAGS = -DINCLUDE_E1000=1
2557c478bd9Sstevel@tonic-gateeepro100_o_CFLAGS = -DINCLUDE_EEPRO100=1
2567c478bd9Sstevel@tonic-gateepic100_o_CFLAGS = -DINCLUDE_EPIC100=1
2577c478bd9Sstevel@tonic-gate#fa311_o_CFLAGS = -DINCLUDE_FA311=1
2587c478bd9Sstevel@tonic-gateforcedeth_o_CFLAGS = -DINCLUDE_FORCEDETH=1
2597c478bd9Sstevel@tonic-gate#3c507_o_CFLAGS = -DINCLUDE_3C507=1
2607c478bd9Sstevel@tonic-gate#exos205_o_CFLAGS = -DINCLUDE_EXOS205=1
2617c478bd9Sstevel@tonic-gate#ni5210_o_CFLAGS = -DINCLUDE_NI5210=1
2627c478bd9Sstevel@tonic-gate#lance_o_CFLAGS = -DINCLUDE_LANCE=1
2637c478bd9Sstevel@tonic-gate#ne2100_o_CFLAGS = -DINCLUDE_NE2100=1
2647c478bd9Sstevel@tonic-gate#ni6510_o_CFLAGS = -DINCLUDE_NI6510=1
2657c478bd9Sstevel@tonic-gatenatsemi_o_CFLAGS = -DINCLUDE_NATSEMI=1
2667c478bd9Sstevel@tonic-gate#ni5010_o_CFLAGS = -DINCLUDE_NI5010=1
2677c478bd9Sstevel@tonic-gate#3c503_o_CFLAGS = -DINCLUDE_3C503=1
2687c478bd9Sstevel@tonic-gate#ne_o_CFLAGS = -DINCLUDE_NE=1
2697c478bd9Sstevel@tonic-gatens83820_o_CFLAGS = -DINCLUDE_NS83820=1
2707c478bd9Sstevel@tonic-gatens8390_o_CFLAGS = -DINCLUDE_NS8390=1
2717c478bd9Sstevel@tonic-gate#wd_o_CFLAGS = -DINCLUDE_WD=1
2727c478bd9Sstevel@tonic-gate#otulip_o_CFLAGS = -DINCLUDE_OTULIP=1
2737c478bd9Sstevel@tonic-gatepcnet32_o_CFLAGS = -DINCLUDE_PCNET32=1
2747c478bd9Sstevel@tonic-gatepnic_o_CFLAGS = -DINCLUDE_PNIC=1
2757c478bd9Sstevel@tonic-gater8169_o_CFLAGS = -DINCLUDE_R8169=1
2767c478bd9Sstevel@tonic-gatertl8139_o_CFLAGS = -DINCLUDE_RTL8139=1
2777c478bd9Sstevel@tonic-gatesis900_o_CFLAGS = -DINCLUDE_SIS900=1
2787c478bd9Sstevel@tonic-gate#sk_g16_o_CFLAGS = -DINCLUDE_SK_G16=1
2797c478bd9Sstevel@tonic-gate#smc9000_o_CFLAGS = -DINCLUDE_SMC9000=1
2807c478bd9Sstevel@tonic-gatesundance_o_CFLAGS = -DINCLUDE_SUNDANCE=1
2817c478bd9Sstevel@tonic-gate#tiara_o_CFLAGS = -DINCLUDE_TIARA=1
2827c478bd9Sstevel@tonic-gatetg3_o_CFLAGS = -DINCLUDE_TG3=1
2837c478bd9Sstevel@tonic-gatetlan_o_CFLAGS = -DINCLUDE_TLAN=1
2847c478bd9Sstevel@tonic-gatetulip_o_CFLAGS = -DINCLUDE_TULIP=1
2857c478bd9Sstevel@tonic-gateundi_o_CFLAGS = -DINCLUDE_UNDI=1
2867c478bd9Sstevel@tonic-gatevia_rhine_o_CFLAGS = -DINCLUDE_VIA_RHINE=1
2877c478bd9Sstevel@tonic-gatew89c840_o_CFLAGS = -DINCLUDE_W89C840=1
288