Makefile revision 109412
10Sstevel@tonic-gate# $FreeBSD: head/sys/modules/Makefile 109412 2003-01-17 08:10:18Z mdodd $ 20Sstevel@tonic-gate 30Sstevel@tonic-gate.if exists(${.CURDIR}/../opencrypto) && !defined(NOCRYPT) 40Sstevel@tonic-gate_crypto= crypto 50Sstevel@tonic-gate_cryptodev= cryptodev 60Sstevel@tonic-gate.endif 70Sstevel@tonic-gate.if exists(${.CURDIR}/../crypto) && !defined(NOCRYPT) 80Sstevel@tonic-gate_random= random 90Sstevel@tonic-gate.endif 100Sstevel@tonic-gate 110Sstevel@tonic-gate# Removed while KSE settles in: 120Sstevel@tonic-gate# ncp \ 130Sstevel@tonic-gate# nwfs \ 140Sstevel@tonic-gate 150Sstevel@tonic-gateSUBDIR= accf_data \ 160Sstevel@tonic-gate accf_http \ 170Sstevel@tonic-gate agp \ 180Sstevel@tonic-gate aha \ 190Sstevel@tonic-gate aic7xxx \ 200Sstevel@tonic-gate aio \ 210Sstevel@tonic-gate amr \ 220Sstevel@tonic-gate an \ 230Sstevel@tonic-gate aue \ 240Sstevel@tonic-gate bge \ 250Sstevel@tonic-gate bridge \ 260Sstevel@tonic-gate cam \ 270Sstevel@tonic-gate ccd \ 280Sstevel@tonic-gate cd9660 \ 290Sstevel@tonic-gate coda \ 300Sstevel@tonic-gate ${_crypto} \ 310Sstevel@tonic-gate ${_cryptodev} \ 320Sstevel@tonic-gate cue \ 330Sstevel@tonic-gate dc \ 340Sstevel@tonic-gate de \ 350Sstevel@tonic-gate digi \ 360Sstevel@tonic-gate dummynet \ 370Sstevel@tonic-gate fdc \ 380Sstevel@tonic-gate fdescfs \ 390Sstevel@tonic-gate firewire \ 400Sstevel@tonic-gate fxp \ 410Sstevel@tonic-gate gx \ 420Sstevel@tonic-gate hifn \ 430Sstevel@tonic-gate if_disc \ 440Sstevel@tonic-gate if_ef \ 450Sstevel@tonic-gate if_faith \ 460Sstevel@tonic-gate if_gif \ 470Sstevel@tonic-gate if_gre \ 480Sstevel@tonic-gate if_ppp \ 490Sstevel@tonic-gate if_sl \ 500Sstevel@tonic-gate if_stf \ 510Sstevel@tonic-gate if_tap \ 520Sstevel@tonic-gate if_tun \ 530Sstevel@tonic-gate if_vlan \ 540Sstevel@tonic-gate ip6fw \ 550Sstevel@tonic-gate ip_mroute_mod \ 560Sstevel@tonic-gate ipfw \ 570Sstevel@tonic-gate isp \ 580Sstevel@tonic-gate ispfw \ 590Sstevel@tonic-gate joy \ 600Sstevel@tonic-gate kue \ 610Sstevel@tonic-gate lge \ 620Sstevel@tonic-gate libiconv \ 630Sstevel@tonic-gate libmchain \ 640Sstevel@tonic-gate lpt \ 650Sstevel@tonic-gate mac_biba \ 660Sstevel@tonic-gate mac_bsdextended \ 670Sstevel@tonic-gate mac_ifoff \ 680Sstevel@tonic-gate mac_lomac \ 690Sstevel@tonic-gate mac_mls \ 700Sstevel@tonic-gate mac_none \ 710Sstevel@tonic-gate mac_partition \ 720Sstevel@tonic-gate mac_seeotheruids \ 730Sstevel@tonic-gate mac_test \ 740Sstevel@tonic-gate mcd \ 750Sstevel@tonic-gate md \ 760Sstevel@tonic-gate mii \ 770Sstevel@tonic-gate mlx \ 780Sstevel@tonic-gate mpt \ 790Sstevel@tonic-gate msdosfs \ 800Sstevel@tonic-gate nfsclient \ 810Sstevel@tonic-gate nfsserver \ 820Sstevel@tonic-gate nge \ 830Sstevel@tonic-gate nmdm \ 840Sstevel@tonic-gate ntfs \ 850Sstevel@tonic-gate nullfs \ 860Sstevel@tonic-gate pcn \ 870Sstevel@tonic-gate plip \ 880Sstevel@tonic-gate portalfs \ 890Sstevel@tonic-gate ppbus \ 900Sstevel@tonic-gate ppi \ 910Sstevel@tonic-gate pps \ 920Sstevel@tonic-gate procfs \ 930Sstevel@tonic-gate pseudofs \ 940Sstevel@tonic-gate raidframe \ 950Sstevel@tonic-gate ${_random} \ 960Sstevel@tonic-gate rc \ 970Sstevel@tonic-gate rc4 \ 980Sstevel@tonic-gate rl \ 990Sstevel@tonic-gate rp \ 1000Sstevel@tonic-gate sf \ 1010Sstevel@tonic-gate sis \ 1020Sstevel@tonic-gate sk \ 1030Sstevel@tonic-gate sn \ 1040Sstevel@tonic-gate snp \ 1050Sstevel@tonic-gate ste \ 1060Sstevel@tonic-gate sym \ 1070Sstevel@tonic-gate sysvipc \ 1080Sstevel@tonic-gate ti \ 1090Sstevel@tonic-gate tl \ 1100Sstevel@tonic-gate trm \ 1110Sstevel@tonic-gate twe \ 1120Sstevel@tonic-gate tx \ 1130Sstevel@tonic-gate txp \ 1140Sstevel@tonic-gate ubsa \ 1150Sstevel@tonic-gate ubsec \ 1160Sstevel@tonic-gate ucom \ 1170Sstevel@tonic-gate udbp \ 1180Sstevel@tonic-gate udf \ 1190Sstevel@tonic-gate ufm \ 1200Sstevel@tonic-gate uftdi \ 1210Sstevel@tonic-gate ugen \ 1220Sstevel@tonic-gate uhid \ 1230Sstevel@tonic-gate ukbd \ 1240Sstevel@tonic-gate ulpt \ 1250Sstevel@tonic-gate umapfs \ 1260Sstevel@tonic-gate umass \ 1270Sstevel@tonic-gate umodem \ 1280Sstevel@tonic-gate ums \ 1290Sstevel@tonic-gate unionfs \ 1300Sstevel@tonic-gate uplcom \ 1310Sstevel@tonic-gate urio \ 1320Sstevel@tonic-gate usb \ 1330Sstevel@tonic-gate uscanner \ 1340Sstevel@tonic-gate uvisor \ 1350Sstevel@tonic-gate uvscom \ 1360Sstevel@tonic-gate vpo \ 1370Sstevel@tonic-gate vr \ 1380Sstevel@tonic-gate vx \ 1390Sstevel@tonic-gate wb \ 1400Sstevel@tonic-gate wlan \ 1410Sstevel@tonic-gate xl 1420Sstevel@tonic-gate 1430Sstevel@tonic-gate.if defined(WANT_EXT2FS_MODULE) 1440Sstevel@tonic-gateSUBDIR+=ext2fs 1450Sstevel@tonic-gate.endif 1460Sstevel@tonic-gate 1470Sstevel@tonic-gate.if !defined(NO_IPFILTER) 1480Sstevel@tonic-gateSUBDIR+=ipfilter 1490Sstevel@tonic-gate.endif 1500Sstevel@tonic-gate 1510Sstevel@tonic-gate.if ${MACHINE_ARCH} != "sparc64" 1520Sstevel@tonic-gateSUBDIR+=syscons 1530Sstevel@tonic-gate.endif 1540Sstevel@tonic-gate 1550Sstevel@tonic-gate# XXX some of these can move to the general case when de-i386'ed 1560Sstevel@tonic-gate# XXX some of these can move now, but are untested on other architectures. 1570Sstevel@tonic-gate.if ${MACHINE_ARCH} == "i386" 1580Sstevel@tonic-gateSUBDIR+=3dfx \ 1590Sstevel@tonic-gate aic \ 1600Sstevel@tonic-gate aout \ 1610Sstevel@tonic-gate apm \ 1620Sstevel@tonic-gate ar \ 1630Sstevel@tonic-gate arcnet \ 1640Sstevel@tonic-gate awi \ 1650Sstevel@tonic-gate bktr \ 1660Sstevel@tonic-gate coff \ 1670Sstevel@tonic-gate ed \ 1680Sstevel@tonic-gate em \ 1690Sstevel@tonic-gate ep \ 1700Sstevel@tonic-gate fe \ 1710Sstevel@tonic-gate fpu \ 1720Sstevel@tonic-gate gnufpu \ 1730Sstevel@tonic-gate hea \ 1740Sstevel@tonic-gate hfa \ 1750Sstevel@tonic-gate ibcs2 \ 1760Sstevel@tonic-gate linprocfs \ 1770Sstevel@tonic-gate linux \ 1780Sstevel@tonic-gate lnc \ 1790Sstevel@tonic-gate ncv \ 1800Sstevel@tonic-gate netgraph \ 1810Sstevel@tonic-gate nsp \ 1820Sstevel@tonic-gate oltr \ 1830Sstevel@tonic-gate pccard \ 1840Sstevel@tonic-gate pecoff \ 1850Sstevel@tonic-gate ray \ 1860Sstevel@tonic-gate sbni \ 1870Sstevel@tonic-gate scsi_low \ 1880Sstevel@tonic-gate smbfs \ 1890Sstevel@tonic-gate sound \ 1900Sstevel@tonic-gate splash \ 1910Sstevel@tonic-gate sppp \ 1920Sstevel@tonic-gate sr \ 1930Sstevel@tonic-gate stg \ 1940Sstevel@tonic-gate streams \ 1950Sstevel@tonic-gate vinum \ 1960Sstevel@tonic-gate wi \ 1970Sstevel@tonic-gate xe 1980Sstevel@tonic-gate 1990Sstevel@tonic-gate.if ${MACHINE} == "i386" 2000Sstevel@tonic-gateSUBDIR+=aac \ 2010Sstevel@tonic-gate acpi \ 2020Sstevel@tonic-gate asr \ 2030Sstevel@tonic-gate atspeaker \ 2040Sstevel@tonic-gate cardbus \ 2050Sstevel@tonic-gate cbb \ 2060Sstevel@tonic-gate ciss \ 2070Sstevel@tonic-gate cm \ 2080Sstevel@tonic-gate drm \ 2090Sstevel@tonic-gate el \ 2100Sstevel@tonic-gate exca \ 2110Sstevel@tonic-gate iir \ 2120Sstevel@tonic-gate mly \ 2130Sstevel@tonic-gate s3 \ 2140Sstevel@tonic-gate smapi \ 2150Sstevel@tonic-gate vesa 2160Sstevel@tonic-gate 2170Sstevel@tonic-gate.elif ${MACHINE} == "pc98" 2180Sstevel@tonic-gateSUBDIR+=pcspeaker \ 2190Sstevel@tonic-gate pmc \ 2200Sstevel@tonic-gate snc 2210Sstevel@tonic-gate.endif 2220Sstevel@tonic-gate.endif 2230Sstevel@tonic-gate 2240Sstevel@tonic-gate.if ${MACHINE_ARCH} == "ia64" 2250Sstevel@tonic-gate# Modules not enabled on ia64 (as compared to i386) include: 2260Sstevel@tonic-gate# aac acpi aout apm atspeaker drm fpu gnufpu ibcs2 linprocfs linux ncv 2270Sstevel@tonic-gate# nsp oltr pecoff s3 sbni stg vesa 2280Sstevel@tonic-gateSUBDIR+=aic \ 2290Sstevel@tonic-gate ar \ 2300Sstevel@tonic-gate arcnet \ 2310Sstevel@tonic-gate asr \ 2320Sstevel@tonic-gate bktr \ 2330Sstevel@tonic-gate cardbus \ 2340Sstevel@tonic-gate cbb \ 2350Sstevel@tonic-gate ciss \ 2360Sstevel@tonic-gate cm \ 2370Sstevel@tonic-gate coff \ 2380Sstevel@tonic-gate el \ 2390Sstevel@tonic-gate em \ 2400Sstevel@tonic-gate ep \ 2410Sstevel@tonic-gate exca \ 2420Sstevel@tonic-gate fe \ 2430Sstevel@tonic-gate hea \ 2440Sstevel@tonic-gate hfa \ 2450Sstevel@tonic-gate iir \ 2460Sstevel@tonic-gate mly \ 2470Sstevel@tonic-gate netgraph \ 2480Sstevel@tonic-gate pccard \ 2490Sstevel@tonic-gate ray \ 2500Sstevel@tonic-gate rc \ 2510Sstevel@tonic-gate scsi_low \ 2520Sstevel@tonic-gate smbfs \ 2530Sstevel@tonic-gate sound \ 2540Sstevel@tonic-gate splash \ 2550Sstevel@tonic-gate sppp \ 2560Sstevel@tonic-gate sr \ 2570Sstevel@tonic-gate streams \ 2580Sstevel@tonic-gate vinum \ 2590Sstevel@tonic-gate wi \ 2600Sstevel@tonic-gate xe 2610Sstevel@tonic-gate.endif 2620Sstevel@tonic-gate 2630Sstevel@tonic-gate.if ${MACHINE_ARCH} == "alpha" 2640Sstevel@tonic-gateSUBDIR+=linprocfs \ 2650Sstevel@tonic-gate linux \ 2660Sstevel@tonic-gate osf1 \ 2670Sstevel@tonic-gate sound \ 2680Sstevel@tonic-gate sppp \ 2690Sstevel@tonic-gate vinum 2700Sstevel@tonic-gate.endif 2710Sstevel@tonic-gate 2720Sstevel@tonic-gate.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "sparc64" 2730Sstevel@tonic-gateSUBDIR+=gem 2740Sstevel@tonic-gate.endif 2750Sstevel@tonic-gate 2760Sstevel@tonic-gate.if ${MACHINE_ARCH} == "sparc64" 2770Sstevel@tonic-gateSUBDIR+=hme 2780Sstevel@tonic-gate.endif 2790Sstevel@tonic-gate 2800Sstevel@tonic-gate.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES) 2810Sstevel@tonic-gateSUBDIR=${MODULES_OVERRIDE} 2820Sstevel@tonic-gate.endif 283 284# Calling kldxref(8) for each module is expensive. 285.if !defined(NO_XREF) && ${MACHINE_ARCH} != "sparc64" 286.MAKEFLAGS:= ${.MAKEFLAGS} -DNO_XREF 287afterinstall: 288 @if type kldxref >/dev/null 2>&1; then \ 289 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \ 290 kldxref ${DESTDIR}${KMODDIR}; \ 291 fi 292.endif 293 294.include <bsd.subdir.mk> 295