diff options
| author | cvs2svn <cvs2svn@FreeBSD.org> | 2006-11-14 20:42:41 +0000 |
|---|---|---|
| committer | cvs2svn <cvs2svn@FreeBSD.org> | 2006-11-14 20:42:41 +0000 |
| commit | 2e696f27e8a561dcc35ddb119783263ecc5482ab (patch) | |
| tree | fa6863701dfdb582cee37a4ac16243b4dc4e7e0e /sys/modules | |
| parent | ff0722cbd8a8f39ca6bf317088b8bce6496a3197 (diff) | |
| parent | d245b5915eaae1eea9ba999791a718614b8836aa (diff) | |
Notes
Diffstat (limited to 'sys/modules')
531 files changed, 7325 insertions, 0 deletions
diff --git a/sys/modules/3dfx/Makefile b/sys/modules/3dfx/Makefile new file mode 100644 index 000000000000..ac7730b276ee --- /dev/null +++ b/sys/modules/3dfx/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +MAINTAINER= cokane@FreeBSD.org + +.PATH: $(.CURDIR)/../../dev/tdfx + +KMOD= 3dfx +SRCS= bus_if.h pci_if.h device_if.h tdfx_pci.h tdfx_io.h\ + tdfx_vars.h tdfx_pci.c +INCSRC= ../../sys + +# Uncomment this for debugging messages +#CFLAGS+= -DDEBUG + +.include <bsd.kmod.mk> diff --git a/sys/modules/3dfx_linux/Makefile b/sys/modules/3dfx_linux/Makefile new file mode 100644 index 000000000000..8376037c954b --- /dev/null +++ b/sys/modules/3dfx_linux/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/tdfx + +KMOD= 3dfx_linux +SRCS= tdfx_linux.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/Makefile b/sys/modules/Makefile new file mode 100644 index 000000000000..a003d0e15887 --- /dev/null +++ b/sys/modules/Makefile @@ -0,0 +1,556 @@ +# $FreeBSD$ + +# oldcard -- specialized use for debugging only. +# owi -- totally unsupported for debugging only. + +SUBDIR= ${_3dfx} \ + ${_3dfx_linux} \ + ${_aac} \ + accf_data \ + accf_http \ + ${_acpi} \ + ${_agp} \ + aha \ + ${_ahb} \ + ${_aic} \ + aic7xxx \ + aio \ + ${_amd} \ + amr \ + an \ + ${_aout} \ + ${_apm} \ + ${_ar} \ + ${_arcmsr} \ + ${_arcnet} \ + ${_arl} \ + ${_asr} \ + ata \ + ath \ + ${_ath_hal} \ + ath_rate_amrr \ + ath_rate_onoe \ + ath_rate_sample \ + aue \ + ${_auxio} \ + ${_awi} \ + axe \ + bce \ + bfe \ + bge \ + ${_bios} \ + ${_bktr} \ + bridge \ + cam \ + ${_canbepm} \ + ${_canbus} \ + ${_cardbus} \ + ${_cbb} \ + cd9660 \ + cd9660_iconv \ + cdce \ + ${_ce} \ + ${_ciss} \ + ${_cm} \ + coda \ + coda5 \ + ${_coff} \ + ${_cp} \ + ${_cpufreq} \ + ${_crypto} \ + ${_cryptodev} \ + ${_cs} \ + ${_ctau} \ + cue \ + ${_cx} \ + dc \ + dcons \ + dcons_crom \ + de \ + ${_digi} \ + ${_dpt} \ + ${_drm} \ + dummynet \ + ${_ed} \ + ${_el} \ + ${_elink} \ + ${_em} \ + en \ + ${_ep} \ + ${_ex} \ + ${_exca} \ + ${_ext2fs} \ + fatm \ + fdc \ + fdescfs \ + ${_fe} \ + firewire \ + firmware \ + fxp \ + ${_gem} \ + geom \ + harp \ + hatm \ + ${_hfa} \ + hifn \ + hme \ + ${_hptmv} \ + hwpmc \ + ${_i2c} \ + ${_ibcs2} \ + ${_ichwd} \ + ${_ida} \ + ${_idt} \ + ${_ie} \ + if_bridge \ + if_disc \ + if_ef \ + if_faith \ + if_gif \ + if_gre \ + ${_if_ndis} \ + if_ppp \ + if_sl \ + if_stf \ + if_tap \ + if_tun \ + if_vlan \ + ${_iir} \ + ${_io} \ + ip6fw \ + ipdivert \ + ${_ipfilter} \ + ipfw \ + ip_mroute_mod \ + ${_ipmi} \ + ${_ips} \ + ${_ipw} \ + isp \ + ispfw \ + ${_iwi} \ + ${_ixgb} \ + joy \ + kbdmux \ + kue \ + le \ + lge \ + libalias \ + libiconv \ + libmbpool \ + libmchain \ + ${_linprocfs} \ + ${_linsysfs} \ + ${_linux} \ + ${_lnc} \ + lpt \ + mac_biba \ + mac_bsdextended \ + mac_ifoff \ + mac_lomac \ + mac_mls \ + mac_none \ + mac_partition \ + mac_portacl \ + mac_seeotheruids \ + mac_stub \ + mac_test \ + mcd \ + md \ + mem \ + mfi \ + mii \ + mlx \ + ${_mly} \ + mpt \ + msdosfs \ + msdosfs_iconv \ + ${_mse} \ + my \ + ${_ncp} \ + ${_ncv} \ + ${_ndis} \ + netgraph \ + nfsclient \ + nfsserver \ + nge \ + nmdm \ + ${_nsp} \ + ntfs \ + ntfs_iconv \ + nullfs \ + ${_nve} \ + ${_nwfs} \ + ${_oltr} \ + ${_osf1} \ + ${_padlock} \ + patm \ + ${_pccard} \ + ${_pcfclock} \ + pcn \ + ${_pecoff} \ + ${_pf} \ + ${_pflog} \ + plip \ + ${_pmc} \ + portalfs \ + ppbus \ + ${_ppc} \ + ppi \ + pps \ + procfs \ + pseudofs \ + ${_pst} \ + ${_puc} \ + ral \ + ${_random} \ + ${_ray} \ + rc \ + rc4 \ + re \ + reiserfs \ + rl \ + rp \ + ${_rr232x} \ + rue \ + ${_s3} \ + ${_safe} \ + ${_sbni} \ + sbsh \ + scd \ + ${_scsi_low} \ + sf \ + ${_sio} \ + sis \ + sk \ + ${_smbfs} \ + sn \ + ${_snc} \ + snp \ + ${_sound} \ + ${_speaker} \ + ${_splash} \ + ${_sppp} \ + ${_sr} \ + ste \ + ${_stg} \ + stge \ + ${_streams} \ + sym \ + ${_syscons} \ + sysvipc \ + ti \ + tl \ + trm \ + ${_twa} \ + twe \ + tx \ + txp \ + ${_uart} \ + ubsa \ + ubsec \ + ubser \ + ucom \ + ucycom \ + udav \ + udbp \ + udf \ + udf_iconv \ + ufm \ + ${_ufs} \ + uftdi \ + ugen \ + uhid \ + ukbd \ + ulpt \ + umass \ + umct \ + umodem \ + ums \ + unionfs \ + uplcom \ + ural \ + urio \ + usb \ + uscanner \ + utopia \ + uvisor \ + uvscom \ + ${_vesa} \ + vge \ + vkbd \ + ${_vpo} \ + vr \ + vx \ + wb \ + ${_wi} \ + wlan \ + wlan_acl \ + wlan_ccmp \ + wlan_tkip \ + wlan_wep \ + wlan_xauth \ + ${_xe} \ + xl \ + zlib + +.if ${MACHINE_ARCH} != "powerpc" +_syscons= syscons +_uart= uart +_vpo= vpo +.endif + +.if defined(ALL_MODULES) +_ufs= ufs +.endif + +.if !defined(NO_CRYPT) || defined(ALL_MODULES) +.if exists(${.CURDIR}/../opencrypto) +_crypto= crypto +_cryptodev= cryptodev +.endif +.if exists(${.CURDIR}/../crypto) +_random= random +.endif +.endif + +.if !defined(NO_IPFILTER) || defined(ALL_MODULES) +_ipfilter= ipfilter +.endif + +.if !defined(NO_PF) || defined(ALL_MODULES) +_pf= pf +_pflog= pflog +.endif + +.if ${MACHINE_ARCH} == "i386" +# XXX some of these can move to the general case when de-i386'ed +# XXX some of these can move now, but are untested on other architectures. +_3dfx= 3dfx +_3dfx_linux= 3dfx_linux +_agp= agp +_aic= aic +_amd= amd +_aout= aout +_apm= apm +_ar= ar +_arcnet= arcnet +_ath_hal= ath_hal +_awi= awi +_bktr= bktr +_cardbus= cardbus +_cbb= cbb +_ce= ce +_coff= coff +_cp= cp +_cpufreq= cpufreq +_digi= digi +_drm= drm +_ed= ed +_elink= elink +_em= em +_ep= ep +_exca= exca +_ext2fs= ext2fs +_fe= fe +_hfa= hfa +_i2c= i2c +_ibcs2= ibcs2 +_ie= ie +_if_ndis= if_ndis +_io= io +_linprocfs= linprocfs +_linsysfs= linsysfs +_linux= linux +_lnc= lnc +_mse= mse +_ncp= ncp +_ncv= ncv +_ndis= ndis +_nsp= nsp +_nwfs= nwfs +_oltr= oltr +_pccard= pccard +_pcfclock= pcfclock +_pecoff= pecoff +_pst= pst +_puc= puc +_ray= ray +_safe= safe +_sbni= sbni +_scsi_low= scsi_low +_sio= sio +_smbfs= smbfs +_sound= sound +_speaker= speaker +_splash= splash +_sppp= sppp +_sr= sr +_stg= stg +_streams= streams +_wi= wi +_xe= xe +.if ${MACHINE} == "i386" +_aac= aac +_acpi= acpi +_ahb= ahb +_arcmsr= arcmsr +_arl= arl +_asr= asr +_bios= bios +_ciss= ciss +_cm= cm +_cs= cs +_ctau= ctau +_cx= cx +_dpt= dpt +_el= el +_ex= ex +_hptmv= hptmv +_ichwd= ichwd +_ida= ida +_idt= idt +_iir= iir +_ipmi= ipmi +_ips= ips +_ipw= ipw +_iwi= iwi +_ixgb= ixgb +_mly= mly +_nve= nve +.if !defined(NO_CRYPT) || defined(ALL_MODULES) +.if exists(${.CURDIR}/../crypto/via) +_padlock= padlock +.endif +.endif +_ppc= ppc +_rr232x= rr232x +_s3= s3 +_twa= twa +_vesa= vesa +.elif ${MACHINE} == "pc98" +_canbepm= canbepm +_canbus= canbus +_pmc= pmc +_snc= snc +.endif +.endif + +.if ${MACHINE_ARCH} == "alpha" +_agp= agp +_ahb= ahb +_ath_hal= ath_hal +_ext2fs= ext2fs +_linprocfs= linprocfs +_linsysfs= linsysfs +_linux= linux +_osf1= osf1 +_sound= sound +_sppp= sppp +.endif + +.if ${MACHINE_ARCH} == "amd64" +_aac= aac +#_acpi= acpi # doesn't work on amd64 yet +_agp= agp +_arcmsr= arcmsr +_ath_hal= ath_hal +_ciss= ciss +_cpufreq= cpufreq +_digi= digi +_drm= drm +_em= em +_ext2fs= ext2fs +_hptmv= hptmv +_i2c= i2c +_ichwd= ichwd +_ida= ida +_if_ndis= if_ndis +_iir= iir +_io= io +_ipmi= ipmi +_ips= ips +_ipw= ipw +_ixgb= ixgb +#_lnc= lnc +_mly= mly +_ndis= ndis +_nve= nve +_ppc= ppc +_rr232x= rr232x +_safe= safe +_scsi_low= scsi_low +_smbfs= smbfs +_sound= sound +_speaker= speaker +_sppp= sppp +_twa= twa +.endif + +.if ${MACHINE_ARCH} == "ia64" +# Modules not enabled on ia64 (as compared to i386) include: +# aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv +# nsp oltr pecoff s3 sbni stg vesa +# acpi is not enabled because it is broken as a module on ia64 +_aic= aic +#_ar= ar not 64-bit clean +_arcnet= arcnet +_asr= asr +_bktr= bktr +_cardbus= cardbus +_cbb= cbb +_ciss= ciss +_cm= cm +_coff= coff +_cpufreq= cpufreq +_el= el +_em= em +_ep= ep +_exca= exca +_fe= fe +_hfa= hfa +_iir= iir +_mly= mly +_pccard= pccard +_scsi_low= scsi_low +_smbfs= smbfs +_sound= sound +_splash= splash +_sppp= sppp +#_sr= sr not 64bit clean +_streams= streams +_wi= wi +_xe= xe +.endif + +.if ${MACHINE_ARCH} == "powerpc" +_ath_hal= ath_hal +_gem= gem +.endif + +.if ${MACHINE_ARCH} == "sparc64" +_ath_hal= ath_hal +_auxio= auxio +_em= em +_gem= gem +_sound= sound +.endif + +.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES) +SUBDIR=${MODULES_OVERRIDE} +.endif + +.for reject in ${WITHOUT_MODULES} +SUBDIR:= ${SUBDIR:N${reject}} +.endfor + +# Calling kldxref(8) for each module is expensive. +.if !defined(NO_XREF) +.MAKEFLAGS+= -DNO_XREF +afterinstall: + @if type kldxref >/dev/null 2>&1; then \ + ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \ + kldxref ${DESTDIR}${KMODDIR}; \ + fi +.endif + +.include <bsd.subdir.mk> diff --git a/sys/modules/Makefile.inc b/sys/modules/Makefile.inc new file mode 100644 index 000000000000..9dc38af9623f --- /dev/null +++ b/sys/modules/Makefile.inc @@ -0,0 +1,6 @@ +# $FreeBSD$ + +.if ${MACHINE} == "pc98" +CFLAGS+= -DPC98 +.endif + diff --git a/sys/modules/aac/Makefile b/sys/modules/aac/Makefile new file mode 100644 index 000000000000..6964defc8203 --- /dev/null +++ b/sys/modules/aac/Makefile @@ -0,0 +1,18 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/aac + +.if ${MACHINE_ARCH} == "i386" +SUBDIR= aac_linux +.endif + +KMOD= aac +SRCS= aac.c aac_pci.c aac_disk.c aac_cam.c +SRCS+= opt_scsi.h opt_cam.h opt_aac.h +SRCS+= device_if.h bus_if.h pci_if.h + +# To enable debug output from the driver, uncomment these two lines. +#CFLAGS+= -DAAC_DEBUG=2 +#SRCS+= aac_debug.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/aac/Makefile.inc b/sys/modules/aac/Makefile.inc new file mode 100644 index 000000000000..265f86d1ed55 --- /dev/null +++ b/sys/modules/aac/Makefile.inc @@ -0,0 +1,3 @@ +# $FreeBSD$ + +.include "../Makefile.inc" diff --git a/sys/modules/aac/aac_linux/Makefile b/sys/modules/aac/aac_linux/Makefile new file mode 100644 index 000000000000..4247a2280878 --- /dev/null +++ b/sys/modules/aac/aac_linux/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/aac + +KMOD= aac_linux +SRCS= aac_linux.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/accf_data/Makefile b/sys/modules/accf_data/Makefile new file mode 100644 index 000000000000..6c5216c07a65 --- /dev/null +++ b/sys/modules/accf_data/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../netinet + +KMOD= accf_data +SRCS= accf_data.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/accf_http/Makefile b/sys/modules/accf_http/Makefile new file mode 100644 index 000000000000..b942d3e7639e --- /dev/null +++ b/sys/modules/accf_http/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../netinet + +KMOD= accf_http +SRCS= accf_http.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/acpi/Makefile b/sys/modules/acpi/Makefile new file mode 100644 index 000000000000..fbe2bdd3c4d6 --- /dev/null +++ b/sys/modules/acpi/Makefile @@ -0,0 +1,14 @@ +# $FreeBSD$ + +.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "ia64" +.error "ACPI can only be compiled into the kernel on the amd64 and ia64 platforms" +.endif + +.if ${MACHINE} != "i386" +.error "The ACPI module is only for i386" +.endif + +SUBDIR= acpi acpi_asus acpi_fujitsu acpi_ibm acpi_panasonic acpi_sony \ + acpi_toshiba acpi_video + +.include <bsd.subdir.mk> diff --git a/sys/modules/acpi/Makefile.inc b/sys/modules/acpi/Makefile.inc new file mode 100644 index 000000000000..265f86d1ed55 --- /dev/null +++ b/sys/modules/acpi/Makefile.inc @@ -0,0 +1,3 @@ +# $FreeBSD$ + +.include "../Makefile.inc" diff --git a/sys/modules/acpi/acpi/Makefile b/sys/modules/acpi/acpi/Makefile new file mode 100644 index 000000000000..dd302d8cc444 --- /dev/null +++ b/sys/modules/acpi/acpi/Makefile @@ -0,0 +1,95 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../contrib/dev/acpica \ + ${.CURDIR}/../../../pci \ + ${.CURDIR}/../../../dev/acpica \ + ${.CURDIR}/../../../dev/acpica/Osd \ + ${.CURDIR}/../../../${MACHINE_ARCH}/acpica + +KMOD= acpi +WARNS?= 2 + +# ACPI CA sources +CFLAGS+= -I${.CURDIR}/../../../contrib/dev/acpica +SRCS+= dsfield.c dsinit.c dsmethod.c dsmthdat.c +SRCS+= dsobject.c dsopcode.c dsutils.c dswexec.c dswload.c +SRCS+= dswscope.c dswstate.c evevent.c evgpe.c evgpeblk.c +SRCS+= evmisc.c evregion.c evrgnini.c evsci.c evxface.c +SRCS+= evxfevnt.c evxfregn.c exconfig.c exconvrt.c excreate.c +SRCS+= exdump.c exfield.c exfldio.c exmisc.c exmutex.c +SRCS+= exnames.c exoparg1.c exoparg2.c exoparg3.c exoparg6.c +SRCS+= exprep.c exregion.c exresnte.c exresolv.c exresop.c +SRCS+= exstore.c exstoren.c exstorob.c exsystem.c exutils.c +SRCS+= hwacpi.c hwgpe.c hwregs.c hwsleep.c hwtimer.c +SRCS+= nsaccess.c nsalloc.c nsdump.c nseval.c nsinit.c +SRCS+= nsload.c nsnames.c nsobject.c nsparse.c nssearch.c +SRCS+= nsutils.c nswalk.c nsxfeval.c nsxfname.c nsxfobj.c +SRCS+= psargs.c psopcode.c psparse.c psscope.c +SRCS+= pstree.c psutils.c pswalk.c psxface.c +SRCS+= rsaddr.c rscalc.c rscreate.c rsdump.c rsio.c +SRCS+= rsirq.c rslist.c rsmemory.c rsmisc.c rsutils.c +SRCS+= rsxface.c tbconvrt.c tbget.c tbgetall.c tbinstal.c +SRCS+= tbrsdt.c tbutils.c tbxface.c tbxfroot.c utalloc.c +SRCS+= utclib.c utcopy.c utdebug.c utdelete.c uteval.c +SRCS+= utglobal.c utinit.c utmath.c utmisc.c utobject.c +SRCS+= utxface.c + +# OSPM layer and core hardware drivers +SRCS+= acpi.c acpi_button.c acpi_isab.c +SRCS+= acpi_package.c acpi_pci.c acpi_pcib.c acpi_pcib_acpi.c +SRCS+= acpi_pcib_pci.c acpi_powerres.c acpi_quirk.c acpi_resource.c +SRCS+= acpi_timer.c acpi_pci_link.c acpi_thermal.c + +# ACPI hardware drivers, mostly used for mobile systems. +SRCS+= acpi_acad.c acpi_battery.c acpi_cmbat.c acpi_cpu.c +SRCS+= acpi_ec.c acpi_lid.c acpi_perf.c acpi_smbat.c acpi_throttle.c + +# OSD layer +SRCS+= OsdDebug.c +SRCS+= OsdHardware.c OsdInterrupt.c OsdMemory.c OsdSchedule.c +SRCS+= OsdStream.c OsdSynch.c OsdTable.c OsdEnvironment.c +SRCS+= opt_acpi.h opt_bus.h opt_ddb.h +SRCS+= acpi_if.h acpi_quirks.h bus_if.h cpufreq_if.h device_if.h +SRCS+= isa_if.h pci_if.h pcib_if.h + +# XXX ACPI should not depend on the following headers but this is currently +# needed for the build of assym.s. +# This obviously needs a better and more structural fix. +SRCS+= opt_kstack_pages.h opt_nfs.h opt_apic.h opt_compat.h + +# Debugging support +DBSRC= dbcmds.c dbdisply.c dbexec.c dbfileio.c dbhistry.c +DBSRC+= dbinput.c dbstats.c dbutils.c dbxface.c +DBSRC+= dmbuffer.c dmnames.c dmopcode.c dmobject.c dmresrc.c dmresrcl.c +DBSRC+= dmresrcs.c dmutils.c dmwalk.c + +.if !defined(KERNBUILDDIR) +.if ACPI_MAX_THREADS +CFLAGS+=-DACPI_MAX_THREADS=${ACPI_MAX_THREADS} +.endif +.if ACPI_NO_SEMAPHORES +CFLAGS+=-DACPI_NO_SEMAPHORES +.endif +.if ACPI_DEBUG +CFLAGS+=-DACPI_DEBUG +SRCS+= ${DBSRC} +opt_ddb.h: Makefile + echo "#define DDB 1" > ${.TARGET} +.else +opt_ddb.h: Makefile + echo -n > ${.TARGET} +.endif +.endif + +# Machine-specific code such as sleep/wakeup +SRCS+= acpi_machdep.c acpi_wakecode.h acpi_wakeup.c +.if ${MACHINE} == "i386" +SRCS+= madt.c assym.s +.endif +CLEANFILES+= acpi_wakecode.h acpi_wakecode.o acpi_wakecode.bin ${DBSRC:.c=.o} + +acpi_wakecode.h: acpi_wakecode.S assym.s + ${MAKE} -f ${.CURDIR}/../../../${MACHINE_ARCH}/acpica/Makefile \ + MAKESRCPATH=${.CURDIR}/../../../${MACHINE_ARCH}/acpica + +.include <bsd.kmod.mk> diff --git a/sys/modules/acpi/acpi_asus/Makefile b/sys/modules/acpi/acpi_asus/Makefile new file mode 100644 index 000000000000..17ba482ae494 --- /dev/null +++ b/sys/modules/acpi/acpi_asus/Makefile @@ -0,0 +1,11 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/acpi_support + +KMOD= acpi_asus +WARNS?= 2 +CFLAGS+= -I${.CURDIR}/../../../contrib/dev/acpica +SRCS= acpi_asus.c opt_acpi.h acpi_if.h bus_if.h device_if.h +SRCS+= opt_ddb.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/acpi/acpi_fujitsu/Makefile b/sys/modules/acpi/acpi_fujitsu/Makefile new file mode 100644 index 000000000000..03bf3c7ea674 --- /dev/null +++ b/sys/modules/acpi/acpi_fujitsu/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/acpi_support + +KMOD= acpi_fujitsu +CFLAGS+=-I${.CURDIR}/../../../dev/acpi_support \ + -I${.CURDIR}/../../../contrib/dev/acpica +SRCS= acpi_fujitsu.c opt_acpi.h acpi_if.h device_if.h bus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/acpi/acpi_ibm/Makefile b/sys/modules/acpi/acpi_ibm/Makefile new file mode 100644 index 000000000000..75c22e7a2ea0 --- /dev/null +++ b/sys/modules/acpi/acpi_ibm/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/acpi_support +KMOD= acpi_ibm +CFLAGS+= -I${.CURDIR}/../../../contrib/dev/acpica +SRCS= acpi_ibm.c opt_acpi.h device_if.h bus_if.h acpi_if.h +SRCS+= opt_ddb.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/acpi/acpi_panasonic/Makefile b/sys/modules/acpi/acpi_panasonic/Makefile new file mode 100644 index 000000000000..20f33b05a3cb --- /dev/null +++ b/sys/modules/acpi/acpi_panasonic/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/acpi_support + +KMOD= acpi_panasonic +WARNS?= 2 +CFLAGS+= -I${.CURDIR}/../../../contrib/dev/acpica +SRCS= acpi_panasonic.c opt_acpi.h acpi_if.h bus_if.h device_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/acpi/acpi_sony/Makefile b/sys/modules/acpi/acpi_sony/Makefile new file mode 100644 index 000000000000..3974094ea136 --- /dev/null +++ b/sys/modules/acpi/acpi_sony/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/acpi_support + +KMOD= acpi_sony +CFLAGS+= -I${.CURDIR}/../../../contrib/dev/acpica +SRCS= acpi_sony.c opt_acpi.h device_if.h bus_if.h acpi_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/acpi/acpi_toshiba/Makefile b/sys/modules/acpi/acpi_toshiba/Makefile new file mode 100644 index 000000000000..9ab04fe3f6a8 --- /dev/null +++ b/sys/modules/acpi/acpi_toshiba/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/acpi_support + +KMOD= acpi_toshiba +WARNS?= 2 +CFLAGS+= -I${.CURDIR}/../../../contrib/dev/acpica +SRCS= acpi_toshiba.c opt_acpi.h acpi_if.h bus_if.h device_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/acpi/acpi_video/Makefile b/sys/modules/acpi/acpi_video/Makefile new file mode 100644 index 000000000000..5ee3ab44bfed --- /dev/null +++ b/sys/modules/acpi/acpi_video/Makefile @@ -0,0 +1,12 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/acpica + +KMOD= acpi_video +WARNS?= 2 +CFLAGS+= -I@/contrib/dev/acpica +SRCS= acpi_video.c +SRCS+= opt_acpi.h acpi_if.h bus_if.h device_if.h +NO_MAN= + +.include <bsd.kmod.mk> diff --git a/sys/modules/agp/Makefile b/sys/modules/agp/Makefile new file mode 100644 index 000000000000..2fc3b738dd20 --- /dev/null +++ b/sys/modules/agp/Makefile @@ -0,0 +1,36 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../pci + +KMOD= agp +SRCS= agp.c agp_if.c +.if ${MACHINE_ARCH} == "i386" +SRCS+= agp_i810.c agp_intel.c agp_via.c agp_sis.c agp_ali.c agp_amd.c \ + agp_nvidia.c agp_ati.c +.endif +.if ${MACHINE} == "i386" +SRCS+= agp_amd64.c +.endif +.if ${MACHINE_ARCH} == "alpha" +SRCS+= agp_amd.c +.endif +.if ${MACHINE_ARCH} == "amd64" +SRCS+= agp_amd64.c +.endif +SRCS+= device_if.h bus_if.h agp_if.h pci_if.h +SRCS+= opt_bdg.h opt_bus.h +MFILES= kern/device_if.m kern/bus_if.m pci/agp_if.m dev/pci/pci_if.m +WERROR= + +EXPORT_SYMS= agp_find_device \ + agp_state \ + agp_acquire \ + agp_release \ + agp_enable \ + agp_alloc_memory \ + agp_free_memory \ + agp_bind_memory \ + agp_unbind_memory \ + agp_memory_info + +.include <bsd.kmod.mk> diff --git a/sys/modules/aha/Makefile b/sys/modules/aha/Makefile new file mode 100644 index 000000000000..36c7359d2aa6 --- /dev/null +++ b/sys/modules/aha/Makefile @@ -0,0 +1,14 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/aha + +KMOD= aha +SRCS= aha.c aha_isa.c ahareg.h opt_cam.h device_if.h bus_if.h \ + opt_scsi.h isa_if.h + +.if !defined(KERNBUILDDIR) +opt_scsi.h: + echo "#define SCSI_DELAY 15000" > opt_scsi.h +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/ahb/Makefile b/sys/modules/ahb/Makefile new file mode 100644 index 000000000000..d015237b3bf4 --- /dev/null +++ b/sys/modules/ahb/Makefile @@ -0,0 +1,14 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/ahb + +KMOD= ahb +SRCS= ahb.c opt_cam.h device_if.h bus_if.h \ + eisa_if.h opt_scsi.h + +.if !defined(KERNBUILDDIR) +opt_scsi.h: + echo "#define SCSI_DELAY 15000" > opt_scsi.h +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/aic/Makefile b/sys/modules/aic/Makefile new file mode 100644 index 000000000000..860d9a8a9499 --- /dev/null +++ b/sys/modules/aic/Makefile @@ -0,0 +1,16 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/aic + +KMOD= aic +SRCS= aic.c aic_pccard.c +SRCS+= device_if.h bus_if.h pci_if.h isa_if.h card_if.h pccarddevs.h +SRCS+= opt_cam.h opt_scsi.h + +.if ${MACHINE} == "pc98" +SRCS+= aic_cbus.c +.else +SRCS+= aic_isa.c +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/aic7xxx/Makefile b/sys/modules/aic7xxx/Makefile new file mode 100644 index 000000000000..47550f0de2c4 --- /dev/null +++ b/sys/modules/aic7xxx/Makefile @@ -0,0 +1,6 @@ + +# $FreeBSD$ + +SUBDIR= aicasm ahc ahd + +.include <bsd.subdir.mk> diff --git a/sys/modules/aic7xxx/Makefile.inc b/sys/modules/aic7xxx/Makefile.inc new file mode 100644 index 000000000000..265f86d1ed55 --- /dev/null +++ b/sys/modules/aic7xxx/Makefile.inc @@ -0,0 +1,3 @@ +# $FreeBSD$ + +.include "../Makefile.inc" diff --git a/sys/modules/aic7xxx/ahc/Makefile b/sys/modules/aic7xxx/ahc/Makefile new file mode 100644 index 000000000000..66780d8ccaad --- /dev/null +++ b/sys/modules/aic7xxx/ahc/Makefile @@ -0,0 +1,38 @@ + +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/aic7xxx +KMOD= ahc +SUBDIR= ahc_eisa ahc_isa ahc_pci + +GENSRCS= aic7xxx_seq.h aic7xxx_reg.h +AHC_REG_PRETTY_PRINT=1 +REG_PRINT_OPT= +.ifdef AHC_REG_PRETTY_PRINT +GENSRCS+= aic7xxx_reg_print.c +CFLAGS+= -DAHC_REG_PRETTY_PRINT=1 +REG_PRINT_OPT= -p aic7xxx_reg_print.c +.endif +BEFORE_DEPEND = ${GENSRCS} + +../aicasm/aicasm: ${.CURDIR}/../../../dev/aci7xxx/aicasm/*.[chyl] + ( cd ${.CURDIR}/../aicasm; ${MAKE} aicasm; ) + +${GENSRCS}: \ + ${.CURDIR}/../../../dev/aic7xxx/aic7xxx.{reg,seq} \ + ${.CURDIR}/../../../cam/scsi/scsi_message.h ../aicasm/aicasm + ../aicasm/aicasm ${INCLUDES} -I${.CURDIR}/../../../cam/scsi \ + -I${.CURDIR}/../../../dev/aic7xxx \ + -o aic7xxx_seq.h -r aic7xxx_reg.h \ + ${REG_PRINT_OPT} \ + -i ${.CURDIR}/../../../dev/aic7xxx/aic7xxx_osm.h \ + ${.CURDIR}/../../../dev/aic7xxx/aic7xxx.seq + +SRCS= ${GENSRCS} +SRCS+= aic7xxx.c aic7xxx_93cx6.c aic7xxx_osm.c aic7770.c +SRCS+= opt_scsi.h opt_aic7xxx.h opt_cam.h +SRCS+= device_if.h bus_if.h pci_if.h + +CLEANFILES= ${GENSRCS} + +.include <bsd.kmod.mk> diff --git a/sys/modules/aic7xxx/ahc/Makefile.inc b/sys/modules/aic7xxx/ahc/Makefile.inc new file mode 100644 index 000000000000..265f86d1ed55 --- /dev/null +++ b/sys/modules/aic7xxx/ahc/Makefile.inc @@ -0,0 +1,3 @@ +# $FreeBSD$ + +.include "../Makefile.inc" diff --git a/sys/modules/aic7xxx/ahc/ahc_eisa/Makefile b/sys/modules/aic7xxx/ahc/ahc_eisa/Makefile new file mode 100644 index 000000000000..5e5d9c208857 --- /dev/null +++ b/sys/modules/aic7xxx/ahc/ahc_eisa/Makefile @@ -0,0 +1,18 @@ + +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../dev/aic7xxx +KMOD= ahc_eisa + +../aic7xxx_reg.h: + ( cd .. ; ${MAKE} aic7xxx_reg.h ) + +SRCS= ahc_eisa.c ../aic7xxx_reg.h +SRCS+= device_if.h bus_if.h eisa_if.h +SRCS+= opt_scsi.h opt_cam.h opt_aic7xxx.h + +CFLAGS+= -I${.CURDIR}/../../../../dev/aic7xxx -I.. + +CLEANFILES= ../aic7xxx_reg.h ../aic7xxx_seq.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/aic7xxx/ahc/ahc_isa/Makefile b/sys/modules/aic7xxx/ahc/ahc_isa/Makefile new file mode 100644 index 000000000000..965e74db9c32 --- /dev/null +++ b/sys/modules/aic7xxx/ahc/ahc_isa/Makefile @@ -0,0 +1,18 @@ + +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../dev/aic7xxx +KMOD= ahc_isa + +../aic7xxx_reg.h: + ( cd .. ; ${MAKE} aic7xxx_reg.h ) + +SRCS= ahc_isa.c ../aic7xxx_reg.h +SRCS+= device_if.h bus_if.h pci_if.h isa_if.h +SRCS+= opt_scsi.h opt_cam.h opt_aic7xxx.h + +CFLAGS+= -I${.CURDIR}/../../../../dev/aic7xxx -I.. + +CLEANFILES= ../aic7xxx_reg.h ../aic7xxx_seq.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/aic7xxx/ahc/ahc_pci/Makefile b/sys/modules/aic7xxx/ahc/ahc_pci/Makefile new file mode 100644 index 000000000000..9a595806500d --- /dev/null +++ b/sys/modules/aic7xxx/ahc/ahc_pci/Makefile @@ -0,0 +1,16 @@ + +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../dev/aic7xxx +KMOD= ahc_pci + +../aic7xxx_reg.h: + ( cd .. ; ${MAKE} aic7xxx_reg.h ) + +SRCS= ahc_pci.c aic7xxx_pci.c ../aic7xxx_reg.h +SRCS+= device_if.h bus_if.h pci_if.h +SRCS+= opt_scsi.h opt_cam.h opt_aic7xxx.h + +CFLAGS+= -I${.CURDIR}/../../../../dev/aic7xxx -I.. + +.include <bsd.kmod.mk> diff --git a/sys/modules/aic7xxx/ahd/Makefile b/sys/modules/aic7xxx/ahd/Makefile new file mode 100644 index 000000000000..25f312fcd842 --- /dev/null +++ b/sys/modules/aic7xxx/ahd/Makefile @@ -0,0 +1,38 @@ + +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/aic7xxx +KMOD= ahd + +WERROR= +GENSRCS= aic79xx_seq.h aic79xx_reg.h +REG_PRINT_OPT= +AHD_REG_PRETTY_PRINT=1 +.ifdef AHD_REG_PRETTY_PRINT +GENSRCS += aic79xx_reg_print.c +CFLAGS+= -DAHD_REG_PRETTY_PRINT=1 +REG_PRINT_OPT= -p aic79xx_reg_print.c +.endif +BEFORE_DEPEND= ${GENSRCS} + +../aicasm/aicasm: ${.CURDIR}/../../../dev/aic7xxx/aicasm/*.[chyl] + ( cd ${.CURDIR}/../aicasm; ${MAKE} aicasm; ) + +${GENSRCS}: \ + ${.CURDIR}/../../../dev/aic7xxx/aic79xx.{reg,seq} \ + ${.CURDIR}/../../../cam/scsi/scsi_message.h ../aicasm/aicasm + ../aicasm/aicasm ${INCLUDES} -I${.CURDIR}/../../../cam/scsi \ + -I${.CURDIR}/../../../dev/aic7xxx \ + -o aic79xx_seq.h -r aic79xx_reg.h \ + ${REG_PRINT_OPT} \ + -i ${.CURDIR}/../../../dev/aic7xxx/aic79xx_osm.h \ + ${.CURDIR}/../../../dev/aic7xxx/aic79xx.seq + +SRCS= ${GENSRCS} +SRCS+= aic79xx.c aic79xx_osm.c aic79xx_pci.c ahd_pci.c +SRCS+= opt_scsi.h opt_aic79xx.h opt_cam.h opt_ddb.h +SRCS+= device_if.h bus_if.h pci_if.h + +CLEANFILES= ${GENSRCS} + +.include <bsd.kmod.mk> diff --git a/sys/modules/aic7xxx/aicasm/Makefile b/sys/modules/aic7xxx/aicasm/Makefile new file mode 100644 index 000000000000..b1b2cf7a293f --- /dev/null +++ b/sys/modules/aic7xxx/aicasm/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +MAKESRCPATH= ${.CURDIR}/../../../dev/aic7xxx/aicasm + +install: + +.include "${.CURDIR}/../../../dev/aic7xxx/aicasm/Makefile" + +build-tools: ${PROG} diff --git a/sys/modules/aio/Makefile b/sys/modules/aio/Makefile new file mode 100644 index 000000000000..4136135d7350 --- /dev/null +++ b/sys/modules/aio/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../kern + +KMOD= aio +SRCS= vfs_aio.c opt_vfs_aio.h vnode_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/amd/Makefile b/sys/modules/amd/Makefile new file mode 100644 index 000000000000..fbaae5c7b7f6 --- /dev/null +++ b/sys/modules/amd/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/amd + +KMOD= amd +SRCS= amd.c +SRCS+= opt_scsi.h opt_cam.h +SRCS+= device_if.h bus_if.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/amr/Makefile b/sys/modules/amr/Makefile new file mode 100644 index 000000000000..c87f9681cdd1 --- /dev/null +++ b/sys/modules/amr/Makefile @@ -0,0 +1,22 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/amr + +.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64" +SUBDIR= amr_linux +.endif + +KMOD= amr +SRCS= amr.c amr_pci.c amr_disk.c device_if.h bus_if.h pci_if.h + +# SCSI passthrough support for non-disk devices +#CFLAGS+= -DAMR_SCSI_PASSTHROUGH +SRCS+= amr_cam.c opt_cam.h opt_scsi.h + +# Enable a questionable optimisation for newer adapters +#CFLAGS+= -DAMR_QUARTZ_GOFASTER + +# Debugging +#CFLAGS+= -DAMR_DEBUG=3 + +.include <bsd.kmod.mk> diff --git a/sys/modules/amr/amr_linux/Makefile b/sys/modules/amr/amr_linux/Makefile new file mode 100644 index 000000000000..3df7eed5e446 --- /dev/null +++ b/sys/modules/amr/amr_linux/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/amr + +KMOD= amr_linux +SRCS= amr_linux.c device_if.h bus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/an/Makefile b/sys/modules/an/Makefile new file mode 100644 index 000000000000..7b7ad7898a5b --- /dev/null +++ b/sys/modules/an/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/an + +KMOD= if_an +SRCS= if_an.c if_an_pccard.c if_an_pci.c if_an_isa.c +SRCS+= opt_inet.h device_if.h bus_if.h pci_if.h isa_if.h card_if.h +SRCS+= pccarddevs.h + +.if !defined(KERNBUILDDIR) +opt_inet.h: + echo "#define INET 1" > opt_inet.h +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/aout/Makefile b/sys/modules/aout/Makefile new file mode 100644 index 000000000000..203d9cfca3dd --- /dev/null +++ b/sys/modules/aout/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../kern + +KMOD= aout +SRCS= imgact_aout.c \ + vnode_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/apm/Makefile b/sys/modules/apm/Makefile new file mode 100644 index 000000000000..96703b15fab6 --- /dev/null +++ b/sys/modules/apm/Makefile @@ -0,0 +1,18 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../i386/bios +.if ${MACHINE} == "pc98" +.PATH: ${.CURDIR}/../../pc98/apm +.endif + +KMOD= apm +SRCS= apm.c apm.h +.if ${MACHINE} == "pc98" +SRCS+= apm_bioscall.S +.endif +SRCS+= device_if.h bus_if.h + +EXPORT_SYMS= apm_display \ + apm_softc + +.include <bsd.kmod.mk> diff --git a/sys/modules/ar/Makefile b/sys/modules/ar/Makefile new file mode 100644 index 000000000000..78fe22e758b7 --- /dev/null +++ b/sys/modules/ar/Makefile @@ -0,0 +1,17 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/ar +KMOD = if_ar +SRCS = if_ar.c if_ar_isa.c if_ar_pci.c +SRCS += device_if.h bus_if.h pci_if.h isa_if.h opt_netgraph.h + +.if !defined(KERNBUILDDIR) +NETGRAPH?= 0 + +.if ${NETGRAPH} != 0 +opt_netgraph.h: + echo "#define NETGRAPH ${NETGRAPH}" > opt_netgraph.h +.endif +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/arcmsr/Makefile b/sys/modules/arcmsr/Makefile new file mode 100644 index 000000000000..0a186f883b6d --- /dev/null +++ b/sys/modules/arcmsr/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/arcmsr + +KMOD= arcmsr +SRCS= arcmsr.c +SRCS+= opt_scsi.h opt_cam.h +SRCS+= device_if.h bus_if.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/arcnet/Makefile b/sys/modules/arcnet/Makefile new file mode 100644 index 000000000000..281793f9fcdd --- /dev/null +++ b/sys/modules/arcnet/Makefile @@ -0,0 +1,30 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../net + +KMOD= arcnet +SRCS= if_arcsubr.c +SRCS+= opt_inet.h opt_inet6.h opt_ipx.h + +EXPORT_SYMS= arc_frag_init \ + arc_frag_next \ + arc_ifattach \ + arc_ifdetach \ + arc_input \ + arc_ioctl \ + arc_isphds \ + arc_output \ + arc_storelladdr + +.if !defined(KERNBUILDDIR) +opt_inet.h: + echo "#define INET 1" > ${.TARGET} + +opt_inet6.h: + echo "#define INET6 1" > ${.TARGET} + +opt_ipx.h: + echo "#define IPX 1" > ${.TARGET} +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/arl/Makefile b/sys/modules/arl/Makefile new file mode 100644 index 000000000000..011a66e214b3 --- /dev/null +++ b/sys/modules/arl/Makefile @@ -0,0 +1,16 @@ +# $RISS: if_arl/modules/if_arl/Makefile,v 1.3 2003/01/13 08:05:29 frol Exp $ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/arl + +KMOD= if_arl +SRCS= if_arl.c if_arl_isa.c +SRCS+= opt_inet.h device_if.h bus_if.h isa_if.h +CFLAGS+= -I${.CURDIR}/../.. + +.if !defined(KERNBUILDDIR) +opt_inet.h: + echo "#define INET 1" > opt_inet.h +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/asr/Makefile b/sys/modules/asr/Makefile new file mode 100644 index 000000000000..6b76cf714ecb --- /dev/null +++ b/sys/modules/asr/Makefile @@ -0,0 +1,18 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/asr + +KMOD= asr +SRCS= asr.c +SRCS+= opt_scsi.h opt_cam.h +SRCS+= device_if.h bus_if.h pci_if.h + +.if ${MACHINE_ARCH} == "alpha" +CFLAGS+= -O0 +.endif + +.if ${MACHINE_ARCH} == "i386" +SRCS+= opt_asr.h +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/ata/Makefile b/sys/modules/ata/Makefile new file mode 100644 index 000000000000..c67ade9d2c0d --- /dev/null +++ b/sys/modules/ata/Makefile @@ -0,0 +1,13 @@ +# $FreeBSD$ + +SUBDIR = ata +SUBDIR += atacard +.if ${MACHINE} == "pc98" +SUBDIR += atacbus +.else +SUBDIR += ataisa +.endif +SUBDIR += atapci +SUBDIR += atadisk atapicd atapifd atapist ataraid atapicam #atacam + +.include <bsd.subdir.mk> diff --git a/sys/modules/ata/Makefile.inc b/sys/modules/ata/Makefile.inc new file mode 100644 index 000000000000..265f86d1ed55 --- /dev/null +++ b/sys/modules/ata/Makefile.inc @@ -0,0 +1,3 @@ +# $FreeBSD$ + +.include "../Makefile.inc" diff --git a/sys/modules/ata/ata/Makefile b/sys/modules/ata/ata/Makefile new file mode 100644 index 000000000000..262984e35e27 --- /dev/null +++ b/sys/modules/ata/ata/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/ata + +KMOD= ata +SRCS= ata-all.c ata-queue.c ata-lowlevel.c ata_if.c +# ata-pci.c ata-dma.c ata-chipset.c +SRCS+= opt_ata.h ata_if.h device_if.h bus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ata/atacam/Makefile b/sys/modules/ata/atacam/Makefile new file mode 100644 index 000000000000..dcaf847a3561 --- /dev/null +++ b/sys/modules/ata/atacam/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/ata + +KMOD= atacam +SRCS= ata-cam.c +SRCS+= opt_ata.h opt_cam.h ata_if.h device_if.h bus_if.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ata/atacard/Makefile b/sys/modules/ata/atacard/Makefile new file mode 100644 index 000000000000..1bb8b5bcddb2 --- /dev/null +++ b/sys/modules/ata/atacard/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/ata + +KMOD= atacard +SRCS= ata-card.c +SRCS+= opt_ata.h pccarddevs.h ata_if.h device_if.h bus_if.h isa_if.h card_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ata/atacbus/Makefile b/sys/modules/ata/atacbus/Makefile new file mode 100644 index 000000000000..2b11a89137ee --- /dev/null +++ b/sys/modules/ata/atacbus/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/ata + +KMOD= atacbus +SRCS= ata-cbus.c +SRCS+= opt_ata.h ata_if.h device_if.h bus_if.h isa_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ata/atadisk/Makefile b/sys/modules/ata/atadisk/Makefile new file mode 100644 index 000000000000..c64cd3f79a07 --- /dev/null +++ b/sys/modules/ata/atadisk/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/ata + +KMOD= atadisk +SRCS= ata-disk.c +SRCS+= opt_ata.h ata_if.h device_if.h bus_if.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ata/ataisa/Makefile b/sys/modules/ata/ataisa/Makefile new file mode 100644 index 000000000000..b43fd2e34888 --- /dev/null +++ b/sys/modules/ata/ataisa/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/ata + +KMOD= ataisa +SRCS= ata-isa.c +SRCS+= opt_ata.h ata_if.h device_if.h bus_if.h isa_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ata/atapci/Makefile b/sys/modules/ata/atapci/Makefile new file mode 100644 index 000000000000..00d188bb9a8d --- /dev/null +++ b/sys/modules/ata/atapci/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/ata + +KMOD= atapci +SRCS= ata-pci.c ata-dma.c ata-chipset.c +SRCS+= opt_ata.h ata_if.h device_if.h bus_if.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ata/atapicam/Makefile b/sys/modules/ata/atapicam/Makefile new file mode 100644 index 000000000000..6dbaffe1e716 --- /dev/null +++ b/sys/modules/ata/atapicam/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/ata + +KMOD= atapicam +SRCS= atapi-cam.c +SRCS+= opt_ata.h opt_cam.h ata_if.h device_if.h bus_if.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ata/atapicd/Makefile b/sys/modules/ata/atapicd/Makefile new file mode 100644 index 000000000000..bcc23199d653 --- /dev/null +++ b/sys/modules/ata/atapicd/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/ata + +KMOD= atapicd +SRCS= atapi-cd.c +SRCS+= opt_ata.h ata_if.h device_if.h bus_if.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ata/atapifd/Makefile b/sys/modules/ata/atapifd/Makefile new file mode 100644 index 000000000000..f5637480a26d --- /dev/null +++ b/sys/modules/ata/atapifd/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/ata + +KMOD= atapifd +SRCS= atapi-fd.c +SRCS+= opt_ata.h ata_if.h device_if.h bus_if.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ata/atapist/Makefile b/sys/modules/ata/atapist/Makefile new file mode 100644 index 000000000000..86c19b5f7b89 --- /dev/null +++ b/sys/modules/ata/atapist/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/ata + +KMOD= atapist +SRCS= atapi-tape.c +SRCS+= opt_ata.h ata_if.h device_if.h bus_if.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ata/ataraid/Makefile b/sys/modules/ata/ataraid/Makefile new file mode 100644 index 000000000000..8f41bd7425b1 --- /dev/null +++ b/sys/modules/ata/ataraid/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/ata + +KMOD= ataraid +SRCS= ata-raid.c +SRCS+= opt_ata.h ata_if.h device_if.h bus_if.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ath/Makefile b/sys/modules/ath/Makefile new file mode 100644 index 000000000000..fdc015053fb6 --- /dev/null +++ b/sys/modules/ath/Makefile @@ -0,0 +1,51 @@ +# +# Copyright (c) 2002, 2003 Sam Leffler, Errno Consulting +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer, +# without modification. +# 2. Redistributions in binary form must reproduce at minimum a disclaimer +# similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any +# redistribution must be conditioned upon including a substantially +# similar Disclaimer requirement for further binary redistribution. +# 3. Neither the names of the above-listed copyright holders nor the names +# of any contributors may be used to endorse or promote products derived +# from this software without specific prior written permission. +# +# Alternatively, this software may be distributed under the terms of the +# GNU General Public License ("GPL") version 2 as published by the Free +# Software Foundation. +# +# NO WARRANTY +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY +# AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +# THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, +# OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF +# THE POSSIBILITY OF SUCH DAMAGES. +# +# $FreeBSD$ +# + +.PATH: ${.CURDIR}/../../dev/ath + +KMOD= if_ath +SRCS= if_ath.c if_ath_pci.c +SRCS+= device_if.h bus_if.h pci_if.h opt_inet.h opt_ath.h + +HAL= ${.CURDIR}/../../contrib/dev/ath +CFLAGS+= -I. -I${.CURDIR}/../../dev/ath -I${HAL} + +opt_ath.h: + echo > $@ + +.include <bsd.kmod.mk> diff --git a/sys/modules/ath_hal/Makefile b/sys/modules/ath_hal/Makefile new file mode 100644 index 000000000000..42837fc03d6e --- /dev/null +++ b/sys/modules/ath_hal/Makefile @@ -0,0 +1,75 @@ +# +# Copyright (c) 2002, 2003 Sam Leffler, Errno Consulting +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer, +# without modification. +# 2. Redistributions in binary form must reproduce at minimum a disclaimer +# similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any +# redistribution must be conditioned upon including a substantially +# similar Disclaimer requirement for further binary redistribution. +# 3. Neither the names of the above-listed copyright holders nor the names +# of any contributors may be used to endorse or promote products derived +# from this software without specific prior written permission. +# +# Alternatively, this software may be distributed under the terms of the +# GNU General Public License ("GPL") version 2 as published by the Free +# Software Foundation. +# +# NO WARRANTY +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY +# AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +# THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, +# OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF +# THE POSSIBILITY OF SUCH DAMAGES. +# +# $FreeBSD$ +# + +# +# Hardware Access Layer (HAL) for the Atheros Wireless NIC driver. +# +# This module contains the hardware-specific bits for the network +# interface driver. It is built as a separate module to simplify +# maintenance and isolate the bits that are not (currently) distributed +# in source form. +# +HAL?= ${.CURDIR}/../../contrib/dev/ath + +.PATH: ${.CURDIR}/../../dev/ath + +KMOD= ath_hal +SRCS= ah_osdep.c +SRCS+= bus_if.h device_if.h pci_if.h opt_ah.h +OBJS= hal.o +MFILES= kern/bus_if.m kern/device_if.m dev/pci/pci_if.m + +CFLAGS+= -I. -I${.CURDIR}/../../dev/ath -I${HAL} + +# patch for hal naming difference +.if ${MACHINE_ARCH} == "amd64" +ATH_MODULE_ARCH=x86_64 +.elif ${MACHINE_ARCH} == "sparc64" +ATH_MODULE_ARCH=sparc64-be +.elif ${MACHINE_ARCH} == "powerpc" +ATH_MODULE_ARCH=powerpc-be +.else +ATH_MODULE_ARCH=${MACHINE_ARCH} +.endif + +hal.o: ${HAL}/public/${ATH_MODULE_ARCH}-elf.hal.o.uu + uudecode -p < ${HAL}/public/${ATH_MODULE_ARCH}-elf.hal.o.uu > ${.TARGET} +opt_ah.h: ${HAL}/public/${ATH_MODULE_ARCH}-elf.opt_ah.h + cp ${HAL}/public/${ATH_MODULE_ARCH}-elf.opt_ah.h ${.TARGET} + +.include <bsd.kmod.mk> diff --git a/sys/modules/ath_rate_amrr/Makefile b/sys/modules/ath_rate_amrr/Makefile new file mode 100644 index 000000000000..e7fbee8177f5 --- /dev/null +++ b/sys/modules/ath_rate_amrr/Makefile @@ -0,0 +1,48 @@ +# +# Copyright (c) 2004 Sam Leffler, Errno Consulting +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer, +# without modification. +# 2. Redistributions in binary form must reproduce at minimum a disclaimer +# similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any +# redistribution must be conditioned upon including a substantially +# similar Disclaimer requirement for further binary redistribution. +# 3. Neither the names of the above-listed copyright holders nor the names +# of any contributors may be used to endorse or promote products derived +# from this software without specific prior written permission. +# +# Alternatively, this software may be distributed under the terms of the +# GNU General Public License ("GPL") version 2 as published by the Free +# Software Foundation. +# +# NO WARRANTY +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY +# AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +# THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, +# OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF +# THE POSSIBILITY OF SUCH DAMAGES. +# +# $FreeBSD$ +# + +.PATH: ${.CURDIR}/../../dev/ath/ath_rate/amrr + +KMOD= ath_rate +SRCS= amrr.c +SRCS+= opt_bdg.h device_if.h bus_if.h pci_if.h opt_inet.h + +HAL= ${.CURDIR}/../../contrib/dev/ath +CFLAGS+= -I. -I${.CURDIR}/../../dev/ath -I${HAL} + +.include <bsd.kmod.mk> diff --git a/sys/modules/ath_rate_onoe/Makefile b/sys/modules/ath_rate_onoe/Makefile new file mode 100644 index 000000000000..f0c98d5a685e --- /dev/null +++ b/sys/modules/ath_rate_onoe/Makefile @@ -0,0 +1,48 @@ +# +# Copyright (c) 2004 Sam Leffler, Errno Consulting +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer, +# without modification. +# 2. Redistributions in binary form must reproduce at minimum a disclaimer +# similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any +# redistribution must be conditioned upon including a substantially +# similar Disclaimer requirement for further binary redistribution. +# 3. Neither the names of the above-listed copyright holders nor the names +# of any contributors may be used to endorse or promote products derived +# from this software without specific prior written permission. +# +# Alternatively, this software may be distributed under the terms of the +# GNU General Public License ("GPL") version 2 as published by the Free +# Software Foundation. +# +# NO WARRANTY +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY +# AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +# THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, +# OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF +# THE POSSIBILITY OF SUCH DAMAGES. +# +# $FreeBSD$ +# + +.PATH: ${.CURDIR}/../../dev/ath/ath_rate/onoe + +KMOD= ath_rate +SRCS= onoe.c +SRCS+= opt_bdg.h device_if.h bus_if.h pci_if.h opt_inet.h + +HAL= ${.CURDIR}/../../contrib/dev/ath +CFLAGS+= -I. -I${.CURDIR}/../../dev/ath -I${HAL} + +.include <bsd.kmod.mk> diff --git a/sys/modules/ath_rate_sample/Makefile b/sys/modules/ath_rate_sample/Makefile new file mode 100644 index 000000000000..7db983d09488 --- /dev/null +++ b/sys/modules/ath_rate_sample/Makefile @@ -0,0 +1,48 @@ +# +# Copyright (c) 2004 Sam Leffler, Errno Consulting +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer, +# without modification. +# 2. Redistributions in binary form must reproduce at minimum a disclaimer +# similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any +# redistribution must be conditioned upon including a substantially +# similar Disclaimer requirement for further binary redistribution. +# 3. Neither the names of the above-listed copyright holders nor the names +# of any contributors may be used to endorse or promote products derived +# from this software without specific prior written permission. +# +# Alternatively, this software may be distributed under the terms of the +# GNU General Public License ("GPL") version 2 as published by the Free +# Software Foundation. +# +# NO WARRANTY +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY +# AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +# THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, +# OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF +# THE POSSIBILITY OF SUCH DAMAGES. +# +# $FreeBSD$ +# + +.PATH: ${.CURDIR}/../../dev/ath/ath_rate/sample + +KMOD= ath_rate +SRCS= sample.c +SRCS+= opt_bdg.h device_if.h bus_if.h pci_if.h opt_inet.h + +HAL= ${.CURDIR}/../../contrib/dev/ath +CFLAGS+= -I. -I${.CURDIR}/../../dev/ath -I${HAL} + +.include <bsd.kmod.mk> diff --git a/sys/modules/aue/Makefile b/sys/modules/aue/Makefile new file mode 100644 index 000000000000..c7bb645391e0 --- /dev/null +++ b/sys/modules/aue/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +S= ${.CURDIR}/../.. +.PATH: $S/dev/usb + +KMOD= if_aue +SRCS= if_aue.c opt_bdg.h opt_usb.h device_if.h bus_if.h +SRCS+= miibus_if.h usbdevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/auxio/Makefile b/sys/modules/auxio/Makefile new file mode 100644 index 000000000000..ead878cce503 --- /dev/null +++ b/sys/modules/auxio/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/auxio + +KMOD= auxio + +SRCS= auxio.c +SRCS+= device_if.h bus_if.h ofw_bus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/awi/Makefile b/sys/modules/awi/Makefile new file mode 100644 index 000000000000..228d9c13023b --- /dev/null +++ b/sys/modules/awi/Makefile @@ -0,0 +1,14 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/awi + +KMOD= if_awi +SRCS= am79c930.c awi.c if_awi_pccard.c +SRCS+= bus_if.h card_if.h device_if.h opt_inet.h pccarddevs.h + +.if !defined(KERNBUILDDIR) +opt_inet.h: + echo "#define INET 1" > opt_inet.h +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/axe/Makefile b/sys/modules/axe/Makefile new file mode 100644 index 000000000000..fa00d095fbac --- /dev/null +++ b/sys/modules/axe/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +S= ${.CURDIR}/../.. +.PATH: $S/dev/usb + +KMOD= if_axe +SRCS= if_axe.c opt_bdg.h opt_usb.h device_if.h bus_if.h +SRCS+= miibus_if.h usbdevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/bce/Makefile b/sys/modules/bce/Makefile new file mode 100644 index 000000000000..1be2a3f98ce2 --- /dev/null +++ b/sys/modules/bce/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ +.PATH: ${.CURDIR}/../../dev/bce +KMOD= if_bce +SRCS= opt_bce.h if_bce.c miibus_if.h miidevs.h device_if.h bus_if.h pci_if.h + +#CFLAGS += -DBCE_DEBUG=0 + +.include <bsd.kmod.mk> diff --git a/sys/modules/bfe/Makefile b/sys/modules/bfe/Makefile new file mode 100644 index 000000000000..6fbe93ab854a --- /dev/null +++ b/sys/modules/bfe/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/bfe + +KMOD= if_bfe +SRCS= if_bfe.c miibus_if.h miidevs.h opt_bdg.h device_if.h bus_if.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/bge/Makefile b/sys/modules/bge/Makefile new file mode 100644 index 000000000000..53d8e54a2657 --- /dev/null +++ b/sys/modules/bge/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/bge + +KMOD= if_bge +SRCS= opt_bge.h if_bge.c miibus_if.h miidevs.h opt_bdg.h device_if.h bus_if.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/bios/Makefile b/sys/modules/bios/Makefile new file mode 100644 index 000000000000..d150806c045d --- /dev/null +++ b/sys/modules/bios/Makefile @@ -0,0 +1,6 @@ +# $FreeBSD$ +# + +SUBDIR= smapi smbios vpd + +.include <bsd.subdir.mk> diff --git a/sys/modules/bios/smapi/Makefile b/sys/modules/bios/smapi/Makefile new file mode 100644 index 000000000000..a845c0adc970 --- /dev/null +++ b/sys/modules/bios/smapi/Makefile @@ -0,0 +1,11 @@ +# $FreeBSD$ +# + +.PATH: ${.CURDIR}/../../../i386/bios + +KMOD= smapi +SRCS= smapi.c smapi_bios.S \ + bus_if.h device_if.h +WERROR= + +.include <bsd.kmod.mk> diff --git a/sys/modules/bios/smbios/Makefile b/sys/modules/bios/smbios/Makefile new file mode 100644 index 000000000000..40df8e80db47 --- /dev/null +++ b/sys/modules/bios/smbios/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ +# + +.PATH: ${.CURDIR}/../../../i386/bios + +KMOD= smbios +SRCS= smbios.c \ + bus_if.h device_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/bios/vpd/Makefile b/sys/modules/bios/vpd/Makefile new file mode 100644 index 000000000000..d1dd8f1d9215 --- /dev/null +++ b/sys/modules/bios/vpd/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ +# + +.PATH: ${.CURDIR}/../../../i386/bios + +KMOD= vpd +SRCS= vpd.c \ + bus_if.h device_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/bktr/Makefile b/sys/modules/bktr/Makefile new file mode 100644 index 000000000000..1a9e0376921f --- /dev/null +++ b/sys/modules/bktr/Makefile @@ -0,0 +1,7 @@ +# $FreeBSD$ + +SUBDIR = +SUBDIR += bktr +SUBDIR += bktr_mem + +.include <bsd.subdir.mk> diff --git a/sys/modules/bktr/Makefile.inc b/sys/modules/bktr/Makefile.inc new file mode 100644 index 000000000000..265f86d1ed55 --- /dev/null +++ b/sys/modules/bktr/Makefile.inc @@ -0,0 +1,3 @@ +# $FreeBSD$ + +.include "../Makefile.inc" diff --git a/sys/modules/bktr/bktr/Makefile b/sys/modules/bktr/bktr/Makefile new file mode 100644 index 000000000000..4543994830d6 --- /dev/null +++ b/sys/modules/bktr/bktr/Makefile @@ -0,0 +1,14 @@ +# $FreeBSD$ + +# Makefile for the bktr Brooktree Bt848/Bt878 PCI video capture device + +.PATH: ${.CURDIR}/../../../dev/bktr + +KMOD= bktr +SRCS= bktr_core.c bktr_os.c bktr_audio.c bktr_tuner.c bktr_card.c msp34xx.c \ + opt_devfs.h opt_bktr.h bus_if.h device_if.h \ + pci_if.h + +CFLAGS+= -DBKTR_FREEBSD_MODULE + +.include <bsd.kmod.mk> diff --git a/sys/modules/bktr/bktr_mem/Makefile b/sys/modules/bktr/bktr_mem/Makefile new file mode 100644 index 000000000000..d5f619041b8d --- /dev/null +++ b/sys/modules/bktr/bktr_mem/Makefile @@ -0,0 +1,11 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/bktr + +KMOD= bktr_mem +SRCS= bktr_mem.c +EXPORT_SYMS= bktr_has_stored_addresses \ + bktr_store_address \ + bktr_retrieve_address + +.include <bsd.kmod.mk> diff --git a/sys/modules/bridge/Makefile b/sys/modules/bridge/Makefile new file mode 100644 index 000000000000..d2c1e32391da --- /dev/null +++ b/sys/modules/bridge/Makefile @@ -0,0 +1,7 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../net +KMOD= bridge +SRCS= bridge.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/cam/Makefile b/sys/modules/cam/Makefile new file mode 100644 index 000000000000..af908c77f1bb --- /dev/null +++ b/sys/modules/cam/Makefile @@ -0,0 +1,34 @@ +# $FreeBSD$ + +S= ${.CURDIR}/../.. + +.PATH: $S/cam $S/cam/scsi + +KMOD= cam + +# See sys/conf/options for the flags that go into the different opt_*.h files. +SRCS= opt_cam.h +SRCS+= opt_scsi.h +SRCS+= opt_cd.h +SRCS+= opt_pt.h +SRCS+= opt_sa.h +SRCS+= opt_ses.h +SRCS+= device_if.h bus_if.h vnode_if.h +SRCS+= cam.c cam_periph.c cam_queue.c +SRCS+= cam_sim.c cam_xpt.c +SRCS+= scsi_all.c scsi_cd.c scsi_ch.c +SRCS+= scsi_da.c +SRCS+= scsi_pass.c +SRCS+= scsi_pt.c +SRCS+= scsi_sa.c +SRCS+= scsi_ses.c +SRCS+= scsi_targ_bh.c scsi_target.c + +EXPORT_SYMS= YES # XXX evaluate + +.if !defined(KERNBUILDDIR) +opt_scsi.h: + echo "#define SCSI_DELAY 15000" > ${.TARGET} +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/canbepm/Makefile b/sys/modules/canbepm/Makefile new file mode 100644 index 000000000000..0eb911243eee --- /dev/null +++ b/sys/modules/canbepm/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../pc98/pc98 +KMOD = canbepm +SRCS = canbepm.c +SRCS += device_if.h bus_if.h canbus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/canbus/Makefile b/sys/modules/canbus/Makefile new file mode 100644 index 000000000000..19487e01ef3d --- /dev/null +++ b/sys/modules/canbus/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../pc98/pc98 +KMOD = canbus +SRCS = canbus.c +SRCS += device_if.h bus_if.h canbus_if.h canbus_if.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/cardbus/Makefile b/sys/modules/cardbus/Makefile new file mode 100644 index 000000000000..67019ee0dd4e --- /dev/null +++ b/sys/modules/cardbus/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/cardbus + +KMOD= cardbus +SRCS= cardbus.c cardbus_cis.c \ + device_if.h bus_if.h card_if.h power_if.h pci_if.h pcib_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/cbb/Makefile b/sys/modules/cbb/Makefile new file mode 100644 index 000000000000..a071485ccd73 --- /dev/null +++ b/sys/modules/cbb/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/pccbb + +KMOD= cbb +SRCS= pccbb.c pccbb_isa.c pccbb_pci.c \ + device_if.h bus_if.h power_if.h card_if.h isa_if.h pci_if.h pcib_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/cd9660/Makefile b/sys/modules/cd9660/Makefile new file mode 100644 index 000000000000..6dffbc9cabe9 --- /dev/null +++ b/sys/modules/cd9660/Makefile @@ -0,0 +1,11 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../isofs/cd9660 + +KMOD= cd9660 +SRCS= vnode_if.h \ + cd9660_bmap.c cd9660_lookup.c cd9660_node.c cd9660_rrip.c \ + cd9660_util.c cd9660_vfsops.c cd9660_vnops.c +EXPORT_SYMS= cd9660_iconv + +.include <bsd.kmod.mk> diff --git a/sys/modules/cd9660_iconv/Makefile b/sys/modules/cd9660_iconv/Makefile new file mode 100644 index 000000000000..49104d383cf2 --- /dev/null +++ b/sys/modules/cd9660_iconv/Makefile @@ -0,0 +1,7 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../isofs/cd9660 +KMOD= cd9660_iconv +SRCS= cd9660_iconv.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/cdce/Makefile b/sys/modules/cdce/Makefile new file mode 100644 index 000000000000..c82754d2bfce --- /dev/null +++ b/sys/modules/cdce/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +S= ${.CURDIR}/../.. +.PATH: $S/dev/usb + +KMOD= if_cdce +SRCS= if_cdce.c opt_bdg.h opt_usb.h device_if.h bus_if.h +SRCS+= usbdevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ce/Makefile b/sys/modules/ce/Makefile new file mode 100644 index 000000000000..9ab7a3d87c1d --- /dev/null +++ b/sys/modules/ce/Makefile @@ -0,0 +1,29 @@ +# $Cronyx: sys.modules.ce.Makefile,v 1.2 2005/04/23 20:10:22 rik Exp $ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/ce +KMOD = if_ce +SRCS = if_ce.c ceddk.c tau32-ddk.c +SRCS += opt_bpf.h opt_netgraph.h opt_ng_cronyx.h device_if.h bus_if.h \ + pci_if.h +NO_MAN= + +.if !defined(KERNBUILDDIR) +PROTOS?= -DINET +NG_CRONYX?= 0 +NETGRAPH= ${NG_CRONYX} + +CFLAGS+= ${PROTOS} + +.if ${NETGRAPH} != 0 +opt_netgraph.h: + echo "#define NETGRAPH ${NETGRAPH}" > opt_netgraph.h +.endif + +.if ${NG_CRONYX} != 0 +opt_ng_cronyx.h: + echo "#define NETGRAPH_CRONYX 1" > opt_ng_cronyx.h +.endif +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/ciss/Makefile b/sys/modules/ciss/Makefile new file mode 100644 index 000000000000..2ea619c5786c --- /dev/null +++ b/sys/modules/ciss/Makefile @@ -0,0 +1,11 @@ +# $FreeBSD$ + +KMOD = ciss +.PATH: ${.CURDIR}/../../dev/${KMOD} +SRCS = ciss.c +SRCS += opt_scsi.h opt_cam.h +SRCS += device_if.h bus_if.h pci_if.h + +#CFLAGS +=-DCISS_DEBUG + +.include <bsd.kmod.mk> diff --git a/sys/modules/cm/Makefile b/sys/modules/cm/Makefile new file mode 100644 index 000000000000..3f2067b46985 --- /dev/null +++ b/sys/modules/cm/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/cm + +KMOD= if_cm +SRCS= smc90cx6.c if_cm_isa.c + +SRCS+= bus_if.h device_if.h isa_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/coda/Makefile b/sys/modules/coda/Makefile new file mode 100644 index 000000000000..919213a0b5ea --- /dev/null +++ b/sys/modules/coda/Makefile @@ -0,0 +1,11 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../coda + +KMOD= coda +SRCS= vnode_if.h \ + coda_fbsd.c coda_namecache.c coda_psdev.c coda_subr.c \ + coda_venus.c coda_vfsops.c coda_vnops.c \ + opt_coda.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/coda5/Makefile b/sys/modules/coda5/Makefile new file mode 100644 index 000000000000..5634bffebae8 --- /dev/null +++ b/sys/modules/coda5/Makefile @@ -0,0 +1,13 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../coda + +KMOD= coda5 +SRCS= vnode_if.h \ + coda_fbsd.c coda_namecache.c coda_psdev.c coda_subr.c \ + coda_venus.c coda_vfsops.c coda_vnops.c \ + opt_coda.h + +CFLAGS+= -DCODA5_MODULE + +.include <bsd.kmod.mk> diff --git a/sys/modules/coff/Makefile b/sys/modules/coff/Makefile new file mode 100644 index 000000000000..95956e5c9784 --- /dev/null +++ b/sys/modules/coff/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../i386/ibcs2 + +KMOD= ibcs2_coff +SRCS= imgact_coff.c vnode_if.h + +CFLAGS+= -DCOMPAT_IBCS2 + +.include <bsd.kmod.mk> diff --git a/sys/modules/cp/Makefile b/sys/modules/cp/Makefile new file mode 100644 index 000000000000..92446329929d --- /dev/null +++ b/sys/modules/cp/Makefile @@ -0,0 +1,29 @@ +# $Cronyx: sys.modules.cp.Makefile,v 1.1.2.3 2004/04/28 16:17:57 rik Exp $ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/cp +KMOD = if_cp +SRCS = if_cp.c cpddk.c +SRCS += opt_netgraph.h opt_ng_cronyx.h device_if.h bus_if.h \ + pci_if.h +NO_MAN= + +.if !defined(KERNBUILDDIR) +PROTOS?= -DINET +NG_CRONYX?= 0 +NETGRAPH= ${NG_CRONYX} + +CFLAGS+= ${PROTOS} + +.if ${NETGRAPH} != 0 +opt_netgraph.h: + echo "#define NETGRAPH ${NETGRAPH}" > opt_netgraph.h +.endif + +.if ${NG_CRONYX} != 0 +opt_ng_cronyx.h: + echo "#define NETGRAPH_CRONYX 1" > opt_ng_cronyx.h +.endif +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/cpufreq/Makefile b/sys/modules/cpufreq/Makefile new file mode 100644 index 000000000000..8f675b29fa85 --- /dev/null +++ b/sys/modules/cpufreq/Makefile @@ -0,0 +1,23 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/cpufreq \ + ${.CURDIR}/../../${MACHINE_ARCH}/cpufreq + +KMOD= cpufreq +WARNS?= 2 +SRCS= ichss.c +SRCS+= bus_if.h cpufreq_if.h device_if.h pci_if.h + +.if ${MACHINE} == "i386" || ${MACHINE} == "amd64" +.PATH: ${.CURDIR}/../../i386/cpufreq +CFLAGS+= -I${.CURDIR}/../../contrib/dev/acpica + +SRCS+= acpi_if.h opt_acpi.h +SRCS+= est.c p4tcc.c powernow.c +.endif + +.if ${MACHINE} == "i386" +SRCS+= smist.c +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/crypto/Makefile b/sys/modules/crypto/Makefile new file mode 100644 index 000000000000..6d06004606e3 --- /dev/null +++ b/sys/modules/crypto/Makefile @@ -0,0 +1,19 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../opencrypto +.PATH: ${.CURDIR}/../../crypto +.PATH: ${.CURDIR}/../../crypto/blowfish +.PATH: ${.CURDIR}/../../crypto/des +.PATH: ${.CURDIR}/../../crypto/rijndael +.PATH: ${.CURDIR}/../../crypto/sha2 + +KMOD = crypto +SRCS = crypto.c +SRCS += criov.c cryptosoft.c xform.c +SRCS += cast.c deflate.c rmd160.c rijndael-alg-fst.c rijndael-api.c +SRCS += skipjack.c bf_enc.c bf_skey.c +SRCS += des_ecb.c des_enc.c des_setkey.c +SRCS += sha1.c sha2.c +SRCS += opt_param.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/cryptodev/Makefile b/sys/modules/cryptodev/Makefile new file mode 100644 index 000000000000..b2692a690218 --- /dev/null +++ b/sys/modules/cryptodev/Makefile @@ -0,0 +1,7 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../opencrypto +KMOD = cryptodev +SRCS = cryptodev.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/cs/Makefile b/sys/modules/cs/Makefile new file mode 100644 index 000000000000..39da53044b3f --- /dev/null +++ b/sys/modules/cs/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/cs + +KMOD= if_cs +SRCS= if_cs.c if_cs_isa.c if_cs_pccard.c +SRCS+= bus_if.h card_if.h device_if.h isa_if.h pccarddevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ctau/Makefile b/sys/modules/ctau/Makefile new file mode 100644 index 000000000000..2f210f8918cb --- /dev/null +++ b/sys/modules/ctau/Makefile @@ -0,0 +1,27 @@ +# Cronyx Id: sys.modules.ct.Makefile,v 1.1.2.2 2003/12/08 15:39:01 rik Exp $ +# $FreeBSD$ +.PATH: ${.CURDIR}/../../dev/ctau +KMOD= if_ct +SRCS= if_ct.c ctddk.c ctau.c opt_netgraph.h opt_ng_cronyx.h \ + device_if.h bus_if.h isa_if.h + +.if !defined(KERNBUILDDIR) +NCTAU?= 3 +PROTOS?= -DINET +NG_CRONYX?= 0 +NETGRAPH= ${NG_CRONYX} + +CFLAGS+= ${PROTOS} + +.if ${NETGRAPH} != 0 +opt_netgraph.h: + echo "#define NETGRAPH $(NETGRAPH)" > opt_netgraph.h +.endif + +.if ${NG_CRONYX} != 0 +opt_ng_cronyx.h: + echo "#define NETGRAPH_CRONYX 1" > opt_ng_cronyx.h +.endif +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/cue/Makefile b/sys/modules/cue/Makefile new file mode 100644 index 000000000000..939e714aacfd --- /dev/null +++ b/sys/modules/cue/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +S= ${.CURDIR}/../.. +.PATH: $S/dev/usb + +KMOD= if_cue +SRCS= if_cue.c opt_bdg.h opt_usb.h device_if.h bus_if.h +SRCS+= miibus_if.h usbdevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/cx/Makefile b/sys/modules/cx/Makefile new file mode 100644 index 000000000000..0716f9055b93 --- /dev/null +++ b/sys/modules/cx/Makefile @@ -0,0 +1,27 @@ +# Cronyx Id: sys.modules.cx.Makefile,v 1.1.2.2 2003/01/21 15:15:49 rik Exp $ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/cx +KMOD= if_cx +SRCS= if_cx.c cxddk.c csigma.c opt_netgraph.h opt_ng_cronyx.h \ + device_if.h bus_if.h isa_if.h + +.if !defined(KERNBUILDDIR) +PROTOS?= -DINET +NG_CRONYX?= 0 +NETGRAPH= ${NG_CRONYX} + +CFLAGS+= ${PROTOS} + +.if ${NETGRAPH} != 0 +opt_netgraph.h: + echo "#define NETGRAPH $(NETGRAPH)" > opt_netgraph.h +.endif + +.if ${NG_CRONYX} != 0 +opt_ng_cronyx.h: + echo "#define NETGRAPH_CRONYX 1" > opt_ng_cronyx.h +.endif +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/dc/Makefile b/sys/modules/dc/Makefile new file mode 100644 index 000000000000..ac56533935fb --- /dev/null +++ b/sys/modules/dc/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../pci + +KMOD= if_dc +SRCS= if_dc.c opt_bdg.h device_if.h bus_if.h pci_if.h +SRCS+= miibus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/dcons/Makefile b/sys/modules/dcons/Makefile new file mode 100644 index 000000000000..e430a6573614 --- /dev/null +++ b/sys/modules/dcons/Makefile @@ -0,0 +1,20 @@ +# $Id: Makefile,v 1.6 2003/10/24 15:41:26 simokawa Exp $ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/dcons + +KMOD = dcons +SRCS = dcons.c dcons.h dcons_os.c dcons_os.h \ + opt_dcons.h opt_ddb.h opt_comconsole.h + +.if !defined(KERNBUILDDIR) +opt_ddb.h: + echo "#define KDB 1" > $@ + +opt_comconsole.h: + echo "#define ALT_BREAK_TO_DEBUGGER 1" > $@ +.endif + +CFLAGS+= -I${.CURDIR}/../.. + +.include <bsd.kmod.mk> diff --git a/sys/modules/dcons_crom/Makefile b/sys/modules/dcons_crom/Makefile new file mode 100644 index 000000000000..258beaddf14b --- /dev/null +++ b/sys/modules/dcons_crom/Makefile @@ -0,0 +1,14 @@ +# $Id: Makefile,v 1.6 2003/10/24 15:43:24 simokawa Exp $ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/dcons + +KMOD = dcons_crom +SRCS = dcons_crom.c dcons.h dcons_os.h \ + bus_if.h device_if.h + +#KMODDEPS = firewire dcons + +CFLAGS+= -I${.CURDIR}/../.. + +.include <bsd.kmod.mk> diff --git a/sys/modules/de/Makefile b/sys/modules/de/Makefile new file mode 100644 index 000000000000..18ed0d27c77f --- /dev/null +++ b/sys/modules/de/Makefile @@ -0,0 +1,20 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../pci + +KMOD= if_de +SRCS= if_de.c opt_bdg.h opt_ddb.h device_if.h bus_if.h pci_if.h + +# Compile-time options. + +# Enable debugging: +#CFLAGS+= -DTULIP_DEBUG + +# Enable performance statistics: +#CFLAGS+= -DTULIP_PERFSTATS + +# Enable the use of a software interrupt to alleviate the occurrence of +# interrupt livelock when under heavy load: +#CFLAGS+= -DTULIP_USE_SOFTINTR + +.include <bsd.kmod.mk> diff --git a/sys/modules/digi/Makefile b/sys/modules/digi/Makefile new file mode 100755 index 000000000000..9d9aea61da70 --- /dev/null +++ b/sys/modules/digi/Makefile @@ -0,0 +1,12 @@ +# $FreeBSD$ + +SUBDIR= digi +SUBDIR+=digi_CX +SUBDIR+=digi_CX_PCI +SUBDIR+=digi_EPCX +SUBDIR+=digi_EPCX_PCI +SUBDIR+=digi_Xe +SUBDIR+=digi_Xem +SUBDIR+=digi_Xr + +.include <bsd.subdir.mk> diff --git a/sys/modules/digi/Makefile.inc b/sys/modules/digi/Makefile.inc new file mode 100755 index 000000000000..265f86d1ed55 --- /dev/null +++ b/sys/modules/digi/Makefile.inc @@ -0,0 +1,3 @@ +# $FreeBSD$ + +.include "../Makefile.inc" diff --git a/sys/modules/digi/digi/Makefile b/sys/modules/digi/digi/Makefile new file mode 100644 index 000000000000..6ba9c6ed219e --- /dev/null +++ b/sys/modules/digi/digi/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/digi +KMOD= digi +SRCS= digi.c digi_pci.c digi_isa.c +SRCS+= digi.h digi_pci.h digireg.h digi_mod.h +SRCS+= bus_if.h pci_if.h device_if.h +SRCS+= opt_compat.h + +.if !defined(KERNBUILDDIR) +opt_compat.h: + echo "#define COMPAT_43 1" > opt_compat.h +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/digi/digi_CX/Makefile b/sys/modules/digi/digi_CX/Makefile new file mode 100644 index 000000000000..2d833dec8fff --- /dev/null +++ b/sys/modules/digi/digi_CX/Makefile @@ -0,0 +1,7 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/digi +KMOD= digi_CX +SRCS= CX.c CX.bios.h CX.fepos.h digi_mod.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/digi/digi_CX_PCI/Makefile b/sys/modules/digi/digi_CX_PCI/Makefile new file mode 100644 index 000000000000..65afb17f2d6c --- /dev/null +++ b/sys/modules/digi/digi_CX_PCI/Makefile @@ -0,0 +1,7 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/digi +KMOD= digi_CX_PCI +SRCS= CX_PCI.c CX_PCI.bios.h CX_PCI.fepos.h digi_mod.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/digi/digi_EPCX/Makefile b/sys/modules/digi/digi_EPCX/Makefile new file mode 100644 index 000000000000..e9d95b01d147 --- /dev/null +++ b/sys/modules/digi/digi_EPCX/Makefile @@ -0,0 +1,7 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/digi +KMOD= digi_EPCX +SRCS= EPCX.c EPCX.bios.h EPCX.fepos.h digi_mod.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/digi/digi_EPCX_PCI/Makefile b/sys/modules/digi/digi_EPCX_PCI/Makefile new file mode 100644 index 000000000000..d1119cc0bb54 --- /dev/null +++ b/sys/modules/digi/digi_EPCX_PCI/Makefile @@ -0,0 +1,7 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/digi +KMOD= digi_EPCX_PCI +SRCS= EPCX_PCI.c EPCX_PCI.bios.h EPCX_PCI.fepos.h digi_mod.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/digi/digi_Xe/Makefile b/sys/modules/digi/digi_Xe/Makefile new file mode 100644 index 000000000000..4c8f9e53c62c --- /dev/null +++ b/sys/modules/digi/digi_Xe/Makefile @@ -0,0 +1,7 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/digi +KMOD= digi_Xe +SRCS= Xe.c Xe.bios.h Xe.fepos.h digi_mod.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/digi/digi_Xem/Makefile b/sys/modules/digi/digi_Xem/Makefile new file mode 100644 index 000000000000..0a49ddd07f75 --- /dev/null +++ b/sys/modules/digi/digi_Xem/Makefile @@ -0,0 +1,7 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/digi +KMOD= digi_Xem +SRCS= Xem.c Xem.bios.h Xem.fepos.h digi_mod.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/digi/digi_Xr/Makefile b/sys/modules/digi/digi_Xr/Makefile new file mode 100644 index 000000000000..786ce79a1c60 --- /dev/null +++ b/sys/modules/digi/digi_Xr/Makefile @@ -0,0 +1,7 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/digi +KMOD= digi_Xr +SRCS= Xr.c Xr.bios.h Xr.fepos.h digi_mod.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/dpt/Makefile b/sys/modules/dpt/Makefile new file mode 100644 index 000000000000..3f681b0c0dfb --- /dev/null +++ b/sys/modules/dpt/Makefile @@ -0,0 +1,14 @@ +# $FreeBSD$ +# + +.PATH: ${.CURDIR}/../../dev/dpt +KMOD= dpt +SRCS= dpt_scsi.c dpt.h \ + dpt_pci.c pci_if.h \ + opt_dpt.h \ + opt_cam.h opt_scsi.h \ + device_if.h bus_if.h +#SRCS+= dpt_eisa.c eisa_if.h \ +#SRCS+= dpt_isa.c isa_if.h \ + +.include <bsd.kmod.mk> diff --git a/sys/modules/drm/Makefile b/sys/modules/drm/Makefile new file mode 100644 index 000000000000..a953b3700ebb --- /dev/null +++ b/sys/modules/drm/Makefile @@ -0,0 +1,14 @@ +# $FreeBSD$ + +SUBDIR = \ + drm \ + i915 \ + mach64 \ + mga \ + r128 \ + radeon \ + savage \ + sis \ + tdfx + +.include <bsd.subdir.mk> diff --git a/sys/modules/drm/Makefile.inc b/sys/modules/drm/Makefile.inc new file mode 100644 index 000000000000..265f86d1ed55 --- /dev/null +++ b/sys/modules/drm/Makefile.inc @@ -0,0 +1,3 @@ +# $FreeBSD$ + +.include "../Makefile.inc" diff --git a/sys/modules/drm/drm/Makefile b/sys/modules/drm/drm/Makefile new file mode 100644 index 000000000000..faa30097553d --- /dev/null +++ b/sys/modules/drm/drm/Makefile @@ -0,0 +1,26 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/drm +KMOD = drm +SRCS = \ + ati_pcigart.c \ + drm_agpsupport.c \ + drm_auth.c \ + drm_bufs.c \ + drm_context.c \ + drm_dma.c \ + drm_drawable.c \ + drm_drv.c \ + drm_fops.c \ + drm_ioctl.c \ + drm_irq.c \ + drm_lock.c \ + drm_memory.c \ + drm_pci.c \ + drm_scatter.c \ + drm_sysctl.c \ + drm_vm.c + +SRCS +=device_if.h bus_if.h pci_if.h opt_drm.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/drm/i915/Makefile b/sys/modules/drm/i915/Makefile new file mode 100644 index 000000000000..a34695ad7870 --- /dev/null +++ b/sys/modules/drm/i915/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/drm +KMOD = i915 +SRCS = i915_dma.c i915_drv.c i915_irq.c i915_mem.c +SRCS +=device_if.h bus_if.h pci_if.h opt_drm.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/drm/mach64/Makefile b/sys/modules/drm/mach64/Makefile new file mode 100644 index 000000000000..4d5069c1e5eb --- /dev/null +++ b/sys/modules/drm/mach64/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/drm +KMOD = mach64 +SRCS = mach64_dma.c mach64_drv.c mach64_irq.c mach64_state.c +SRCS +=device_if.h bus_if.h pci_if.h opt_drm.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/drm/mga/Makefile b/sys/modules/drm/mga/Makefile new file mode 100644 index 000000000000..d88d12c78d03 --- /dev/null +++ b/sys/modules/drm/mga/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/drm +KMOD = mga +SRCS = mga_drv.c mga_state.c mga_warp.c mga_dma.c \ + mga_irq.c +SRCS +=device_if.h bus_if.h pci_if.h opt_drm.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/drm/r128/Makefile b/sys/modules/drm/r128/Makefile new file mode 100644 index 000000000000..e80a0d803f8b --- /dev/null +++ b/sys/modules/drm/r128/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/drm +KMOD = r128 +SRCS = r128_cce.c r128_drv.c r128_irq.c r128_state.c +SRCS +=device_if.h bus_if.h pci_if.h opt_drm.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/drm/radeon/Makefile b/sys/modules/drm/radeon/Makefile new file mode 100644 index 000000000000..575d11a2fd49 --- /dev/null +++ b/sys/modules/drm/radeon/Makefile @@ -0,0 +1,13 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/drm +KMOD = radeon +SRCS = r300_cmdbuf.c radeon_cp.c radeon_drv.c radeon_irq.c \ + radeon_mem.c radeon_state.c +SRCS +=device_if.h bus_if.h pci_if.h opt_drm.h + +.if ${CC} != "icc" +CFLAGS += --param large-function-growth=1000 +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/drm/savage/Makefile b/sys/modules/drm/savage/Makefile new file mode 100644 index 000000000000..f1c9b42a5f33 --- /dev/null +++ b/sys/modules/drm/savage/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/drm +KMOD= savage +CFLAGS += -I${.CURDIR}/../../../dev/drm +SRCS= savage_bci.c savage_drv.c savage_state.c +SRCS+= device_if.h bus_if.h pci_if.h opt_drm.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/drm/sis/Makefile b/sys/modules/drm/sis/Makefile new file mode 100644 index 000000000000..885ce2863bb4 --- /dev/null +++ b/sys/modules/drm/sis/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/drm +KMOD= sis +SRCS= sis_drv.c sis_ds.c sis_mm.c +SRCS+= device_if.h bus_if.h pci_if.h opt_drm.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/drm/tdfx/Makefile b/sys/modules/drm/tdfx/Makefile new file mode 100644 index 000000000000..2e015a7cead7 --- /dev/null +++ b/sys/modules/drm/tdfx/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/drm +KMOD = tdfx +SRCS = tdfx_drv.c +SRCS +=device_if.h bus_if.h pci_if.h opt_drm.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/dummynet/Makefile b/sys/modules/dummynet/Makefile new file mode 100644 index 000000000000..fbb111d97833 --- /dev/null +++ b/sys/modules/dummynet/Makefile @@ -0,0 +1,16 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../netinet +KMOD= dummynet +SRCS= ip_dummynet.c +SRCS+= opt_bdg.h opt_inet6.h + +.if !defined(KERNBUILDDIR) +.if !defined(NO_INET6) +opt_inet6.h: + echo "#define INET6 1" > ${.TARGET} +.endif +.endif + + +.include <bsd.kmod.mk> diff --git a/sys/modules/ed/Makefile b/sys/modules/ed/Makefile new file mode 100644 index 000000000000..723df349904a --- /dev/null +++ b/sys/modules/ed/Makefile @@ -0,0 +1,18 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/ed + +KMOD= if_ed +SRCS= if_ed.c +SRCS+= if_ed_novell.c if_ed_wd80x3.c if_ed_rtl80x9.c isa_if.h +.if ${MACHINE} == "pc98" +SRCS+= if_ed_cbus.c +.else +SRCS+= if_ed_isa.c if_ed_3c503.c if_ed_hpp.c if_ed_sic.c +.endif +SRCS+= if_ed_pccard.c pccarddevs.h card_if.h +SRCS+= if_ed_pci.c pci_if.h + +SRCS+= opt_ed.h bus_if.h device_if.h miibus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/el/Makefile b/sys/modules/el/Makefile new file mode 100644 index 000000000000..78394059226f --- /dev/null +++ b/sys/modules/el/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../i386/isa + +KMOD= if_el +SRCS= if_el.c +SRCS+= opt_bdg.h opt_inet.h opt_ipx.h device_if.h bus_if.h isa_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/elink/Makefile b/sys/modules/elink/Makefile new file mode 100644 index 000000000000..a7776578931b --- /dev/null +++ b/sys/modules/elink/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ +# + +.PATH: ${.CURDIR}/../../i386/isa + +KMOD= elink +SRCS= elink.c +EXPORT_SYMS= elink_reset elink_idseq + +.include <bsd.kmod.mk> diff --git a/sys/modules/em/Makefile b/sys/modules/em/Makefile new file mode 100644 index 000000000000..9518d6828975 --- /dev/null +++ b/sys/modules/em/Makefile @@ -0,0 +1,9 @@ +#$FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/em + +KMOD= if_em +SRCS= if_em.c if_em_hw.c +SRCS+= device_if.h bus_if.h pci_if.h opt_bdg.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/en/Makefile b/sys/modules/en/Makefile new file mode 100644 index 000000000000..8f342e32fb3b --- /dev/null +++ b/sys/modules/en/Makefile @@ -0,0 +1,22 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/en + +KMOD= if_en +SRCS= if_en_pci.c midway.c device_if.h bus_if.h pci_if.h +SRCS+= opt_inet.h opt_natm.h opt_ddb.h +CFLAGS+= -DENABLE_BPF +# CFLAGS+= -DINVARIANT_SUPPORT -DINVARIANTS -DEN_DEBUG=0 + +.if !defined(KERNBUILDDIR) +opt_inet.h: + echo "#define INET 1" > ${.TARGET} + +opt_natm.h: + echo "#define NATM 1" > ${.TARGET} + +# opt_ddb.h: +# echo "#define DDB 1" > ${.TARGET} +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/ep/Makefile b/sys/modules/ep/Makefile new file mode 100644 index 000000000000..39bb42f09d4e --- /dev/null +++ b/sys/modules/ep/Makefile @@ -0,0 +1,12 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/ep + +KMOD= if_ep +SRCS= if_ep.c if_ep_pccard.c pccarddevs.h +SRCS+= if_ep_isa.c +SRCS+= if_ep_eisa.c eisa_if.h +#SRCS+= if_ep_mca.c +SRCS+= opt_bdg.h bus_if.h card_if.h device_if.h isa_if.h pci_if.h pccarddevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/esp/Makefile b/sys/modules/esp/Makefile new file mode 100644 index 000000000000..2685b09ed298 --- /dev/null +++ b/sys/modules/esp/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/esp ${.CURDIR}/../../sparc64/sbus + +KMOD= esp + +SRCS= ncr53c9x.c +SRCS+= opt_ddb.h opt_cam.h +SRCS+= device_if.h bus_if.h + +.if ${MACHINE_ARCH} == "sparc64" +SRCS+= esp_sbus.c ofw_bus_if.h +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/ex/Makefile b/sys/modules/ex/Makefile new file mode 100644 index 000000000000..5c394aa5e11f --- /dev/null +++ b/sys/modules/ex/Makefile @@ -0,0 +1,12 @@ +# $FreeBSD$ +# + +.PATH: ${.CURDIR}/../../dev/ex + +KMOD= if_ex +SRCS= if_ex.c \ + if_ex_isa.c isa_if.h \ + if_ex_pccard.c card_if.h \ + bus_if.h device_if.h pccarddevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/exca/Makefile b/sys/modules/exca/Makefile new file mode 100644 index 000000000000..b7a8d522b283 --- /dev/null +++ b/sys/modules/exca/Makefile @@ -0,0 +1,8 @@ + # $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/exca + +KMOD= exca +SRCS= exca.c device_if.h bus_if.h power_if.h card_if.h pccarddevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ext2fs/Makefile b/sys/modules/ext2fs/Makefile new file mode 100644 index 000000000000..1ce8ab87aa28 --- /dev/null +++ b/sys/modules/ext2fs/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../gnu/fs/ext2fs +KMOD= ext2fs +SRCS= opt_ddb.h opt_quota.h opt_suiddir.h vnode_if.h \ + ext2_alloc.c ext2_balloc.c ext2_bmap.c ext2_inode.c \ + ext2_inode_cnv.c ext2_linux_balloc.c ext2_linux_ialloc.c \ + ext2_lookup.c ext2_subr.c ext2_vfsops.c ext2_vnops.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/fatm/Makefile b/sys/modules/fatm/Makefile new file mode 100644 index 000000000000..c77ea7109e34 --- /dev/null +++ b/sys/modules/fatm/Makefile @@ -0,0 +1,20 @@ +# $FreeBSD$ +# +# Author: Harti Brandt <harti@freebsd.org> +# +.PATH: ${.CURDIR}/../../dev/fatm + +KMOD= if_fatm +SRCS= if_fatm.c device_if.h bus_if.h pci_if.h opt_inet.h opt_natm.h + +# CFLAGS+= -DFATM_DEBUG=0 -DINVARIANT_SUPPORT -DINVARIANTS + +.if !defined(KERNBUILDDIR) +opt_inet.h: + echo "#define INET 1" > opt_inet.h + +opt_natm.h: + echo "#define NATM 1" > opt_natm.h +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/fdc/Makefile b/sys/modules/fdc/Makefile new file mode 100644 index 000000000000..b632dcd15896 --- /dev/null +++ b/sys/modules/fdc/Makefile @@ -0,0 +1,27 @@ +# $FreeBSD$ + +KMOD= fdc +WARNS?= 2 + +.if ${MACHINE} == "pc98" +.PATH: ${.CURDIR}/../../pc98/cbus +SRCS= fdc.c fdc_cbus.c +.else +.PATH: ${.CURDIR}/../../dev/fdc +SRCS= fdc.c fdc_isa.c fdc_pccard.c +.if ${MACHINE} == "i386" || ${MACHINE} == "amd64" +CFLAGS+= -I${.CURDIR}/../../contrib/dev/acpica +SRCS+= opt_acpi.h acpi_if.h fdc_acpi.c +.endif +.endif + +SRCS+= opt_fdc.h bus_if.h card_if.h device_if.h \ + isa_if.h pccarddevs.h + +FDC_DEBUG?= 0 # 0/1 + +.if ${FDC_DEBUG} > 0 + echo "#define FDC_DEBUG 1" >> ${.TARGET} +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/fdescfs/Makefile b/sys/modules/fdescfs/Makefile new file mode 100644 index 000000000000..eead3ec0862b --- /dev/null +++ b/sys/modules/fdescfs/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../fs/fdescfs + +KMOD= fdescfs +SRCS= vnode_if.h \ + fdesc_vfsops.c fdesc_vnops.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/fe/Makefile b/sys/modules/fe/Makefile new file mode 100644 index 000000000000..77af85bfd63b --- /dev/null +++ b/sys/modules/fe/Makefile @@ -0,0 +1,16 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/fe + +KMOD= if_fe +SRCS= if_fe.c if_fe_pccard.c + +.if ${MACHINE} == "pc98" +SRCS+= if_fe_cbus.c +.else +SRCS+= if_fe_isa.c +.endif + +SRCS+= bus_if.h card_if.h device_if.h isa_if.h pccarddevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/firewire/Makefile b/sys/modules/firewire/Makefile new file mode 100644 index 000000000000..379ad58ba0ea --- /dev/null +++ b/sys/modules/firewire/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +SUBDIR= firewire \ + fwe \ + fwip \ + sbp \ + sbp_targ + +.include <bsd.subdir.mk> diff --git a/sys/modules/firewire/Makefile.inc b/sys/modules/firewire/Makefile.inc new file mode 100644 index 000000000000..265f86d1ed55 --- /dev/null +++ b/sys/modules/firewire/Makefile.inc @@ -0,0 +1,3 @@ +# $FreeBSD$ + +.include "../Makefile.inc" diff --git a/sys/modules/firewire/firewire/Makefile b/sys/modules/firewire/firewire/Makefile new file mode 100644 index 000000000000..8e4e06f0fc91 --- /dev/null +++ b/sys/modules/firewire/firewire/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +# Makefile for the IEEE1394 OHCI chipset + +.PATH: ${.CURDIR}/../../../dev/firewire + +KMOD= firewire +SRCS = bus_if.h device_if.h pci_if.h \ + firewire.c firewire.h firewire_phy.h firewirereg.h \ + fwohci.c fwohci_pci.c fwohcireg.h fwohcivar.h \ + iec13213.h iec68113.h \ + fwcrom.c fwdev.c fwmem.c fwmem.h fwdma.c fwdma.h + +.include <bsd.kmod.mk> + diff --git a/sys/modules/firewire/fwe/Makefile b/sys/modules/firewire/fwe/Makefile new file mode 100644 index 000000000000..6b26606b04e0 --- /dev/null +++ b/sys/modules/firewire/fwe/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +# Makefile for the fwe(4) module (Ethernet over IEEE1394) + +.PATH: ${.CURDIR}/../../../dev/firewire + +KMOD = if_fwe +SRCS = bus_if.h device_if.h \ + opt_inet.h \ + if_fwe.c if_fwevar.h \ + firewire.h firewirereg.h +#CFLAGS += -DDEVICE_POLLING + +.include <bsd.kmod.mk> + diff --git a/sys/modules/firewire/fwip/Makefile b/sys/modules/firewire/fwip/Makefile new file mode 100644 index 000000000000..ed2ca4a02b91 --- /dev/null +++ b/sys/modules/firewire/fwip/Makefile @@ -0,0 +1,21 @@ +# $FreeBSD$ + +# Makefile for the fwip(4) module (IP over IEEE1394) + +.PATH: ${.CURDIR}/../../../dev/firewire ${.CURDIR}/../../../net + +KMOD = if_fwip +SRCS = bus_if.h device_if.h \ + opt_inet.h opt_inet6.h opt_mac.h \ + if_fwip.c if_fwipvar.h \ + firewire.h firewirereg.h \ + if_fwsubr.c + +.if !defined(KERNBUILDDIR) +opt_inet.h: + echo "#define INET 1" > ${.TARGET} +.endif + +#CFLAGS += -DDEVICE_POLLING + +.include <bsd.kmod.mk> diff --git a/sys/modules/firewire/sbp/Makefile b/sys/modules/firewire/sbp/Makefile new file mode 100644 index 000000000000..7acf1a39fb32 --- /dev/null +++ b/sys/modules/firewire/sbp/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +# Makefile for the SBP-II (Serial Bus Protocol 2/SCSI over IEEE1394) + +.PATH: ${.CURDIR}/../../../dev/firewire + +KMOD = sbp +SRCS = bus_if.h device_if.h \ + opt_cam.h opt_scsi.h \ + sbp.c sbp.h \ + firewire.h firewirereg.h \ + iec13213.h + +.include <bsd.kmod.mk> + diff --git a/sys/modules/firewire/sbp_targ/Makefile b/sys/modules/firewire/sbp_targ/Makefile new file mode 100644 index 000000000000..04eaa9466fb2 --- /dev/null +++ b/sys/modules/firewire/sbp_targ/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +# Makefile for the SBP-II Target mode + +.PATH: ${.CURDIR}/../../../dev/firewire + +KMOD = sbp_targ +SRCS = bus_if.h device_if.h \ + opt_cam.h opt_scsi.h \ + sbp_targ.c sbp.h \ + firewire.h firewirereg.h \ + iec13213.h + +.include <bsd.kmod.mk> + diff --git a/sys/modules/firmware/Makefile b/sys/modules/firmware/Makefile new file mode 100644 index 000000000000..82ed1026e47e --- /dev/null +++ b/sys/modules/firmware/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../kern + +KMOD= firmware +SRCS= subr_firmware.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/fxp/Makefile b/sys/modules/fxp/Makefile new file mode 100644 index 000000000000..0904e1a1b789 --- /dev/null +++ b/sys/modules/fxp/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/fxp + +KMOD= if_fxp +SRCS= if_fxp.c opt_bdg.h device_if.h bus_if.h pci_if.h miibus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/gem/Makefile b/sys/modules/gem/Makefile new file mode 100644 index 000000000000..4352bd636f86 --- /dev/null +++ b/sys/modules/gem/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/gem + +KMOD= if_gem +SRCS= if_gem.c if_gem_pci.c device_if.h bus_if.h pci_if.h miibus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/Makefile b/sys/modules/geom/Makefile new file mode 100644 index 000000000000..cf99e377f7c8 --- /dev/null +++ b/sys/modules/geom/Makefile @@ -0,0 +1,26 @@ +# $FreeBSD$ + +SUBDIR= geom_apple \ + geom_bde \ + geom_bsd \ + geom_ccd \ + geom_concat \ + geom_eli \ + geom_fox \ + geom_gate \ + geom_gpt \ + geom_label \ + geom_mbr \ + geom_mirror \ + geom_nop \ + geom_pc98 \ + geom_raid3 \ + geom_shsec \ + geom_stripe \ + geom_sunlabel \ + geom_uzip \ + geom_vinum \ + geom_vol_ffs \ + geom_zero + +.include <bsd.subdir.mk> diff --git a/sys/modules/geom/Makefile.inc b/sys/modules/geom/Makefile.inc new file mode 100644 index 000000000000..265f86d1ed55 --- /dev/null +++ b/sys/modules/geom/Makefile.inc @@ -0,0 +1,3 @@ +# $FreeBSD$ + +.include "../Makefile.inc" diff --git a/sys/modules/geom/geom_apple/Makefile b/sys/modules/geom/geom_apple/Makefile new file mode 100644 index 000000000000..4ec59a629289 --- /dev/null +++ b/sys/modules/geom/geom_apple/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../geom + +KMOD= geom_apple +SRCS= geom_apple.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_bde/Makefile b/sys/modules/geom/geom_bde/Makefile new file mode 100644 index 000000000000..089126e9a3eb --- /dev/null +++ b/sys/modules/geom/geom_bde/Makefile @@ -0,0 +1,11 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../geom/bde +.PATH: ${.CURDIR}/../../../crypto/rijndael +.PATH: ${.CURDIR}/../../../crypto/sha2 + +KMOD= geom_bde +SRCS= g_bde.c g_bde_crypt.c g_bde_lock.c g_bde_work.c +SRCS+= rijndael-alg-fst.c rijndael-api-fst.c sha2.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_bsd/Makefile b/sys/modules/geom/geom_bsd/Makefile new file mode 100644 index 000000000000..884ac6e98bad --- /dev/null +++ b/sys/modules/geom/geom_bsd/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../geom + +KMOD= geom_bsd +SRCS= geom_bsd.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_ccd/Makefile b/sys/modules/geom/geom_ccd/Makefile new file mode 100644 index 000000000000..18d6eeb04718 --- /dev/null +++ b/sys/modules/geom/geom_ccd/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../geom + +KMOD= geom_ccd +SRCS= geom_ccd.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_concat/Makefile b/sys/modules/geom/geom_concat/Makefile new file mode 100644 index 000000000000..3de201a79b48 --- /dev/null +++ b/sys/modules/geom/geom_concat/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../geom/concat + +KMOD= geom_concat +SRCS= g_concat.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_eli/Makefile b/sys/modules/geom/geom_eli/Makefile new file mode 100644 index 000000000000..7b4c506de62f --- /dev/null +++ b/sys/modules/geom/geom_eli/Makefile @@ -0,0 +1,16 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../geom/eli + +KMOD= geom_eli +SRCS= g_eli.c +SRCS+= g_eli_crypto.c +SRCS+= g_eli_ctl.c +SRCS+= g_eli_integrity.c +SRCS+= g_eli_key.c +SRCS+= g_eli_privacy.c +SRCS+= pkcs5v2.c +SRCS+= vnode_if.h +WARNS?= 2 + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_fox/Makefile b/sys/modules/geom/geom_fox/Makefile new file mode 100644 index 000000000000..adf8c2e8e8bf --- /dev/null +++ b/sys/modules/geom/geom_fox/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../geom + +KMOD= geom_fox +SRCS= geom_fox.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_gate/Makefile b/sys/modules/geom/geom_gate/Makefile new file mode 100644 index 000000000000..783a58ac2d82 --- /dev/null +++ b/sys/modules/geom/geom_gate/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../geom/gate + +KMOD= geom_gate +SRCS= g_gate.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_gpt/Makefile b/sys/modules/geom/geom_gpt/Makefile new file mode 100644 index 000000000000..ca074bda369c --- /dev/null +++ b/sys/modules/geom/geom_gpt/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../geom + +KMOD= geom_gpt +SRCS= geom_gpt.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_label/Makefile b/sys/modules/geom/geom_label/Makefile new file mode 100644 index 000000000000..e6e7d421590d --- /dev/null +++ b/sys/modules/geom/geom_label/Makefile @@ -0,0 +1,14 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../geom/label + +KMOD= geom_label +SRCS= g_label.c +SRCS+= g_label_ext2fs.c +SRCS+= g_label_iso9660.c +SRCS+= g_label_msdosfs.c +SRCS+= g_label_ntfs.c +SRCS+= g_label_reiserfs.c +SRCS+= g_label_ufs.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_mbr/Makefile b/sys/modules/geom/geom_mbr/Makefile new file mode 100644 index 000000000000..1820f3bc3bdd --- /dev/null +++ b/sys/modules/geom/geom_mbr/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../geom + +KMOD= geom_mbr +SRCS= geom_mbr.c geom_mbr_enc.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_mirror/Makefile b/sys/modules/geom/geom_mirror/Makefile new file mode 100644 index 000000000000..3e653ce540c4 --- /dev/null +++ b/sys/modules/geom/geom_mirror/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../geom/mirror + +KMOD= geom_mirror +SRCS= g_mirror.c +SRCS+= g_mirror_ctl.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_nop/Makefile b/sys/modules/geom/geom_nop/Makefile new file mode 100644 index 000000000000..139e12422ea2 --- /dev/null +++ b/sys/modules/geom/geom_nop/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../geom/nop + +KMOD= geom_nop +SRCS= g_nop.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_pc98/Makefile b/sys/modules/geom/geom_pc98/Makefile new file mode 100644 index 000000000000..2c5952d3e4f0 --- /dev/null +++ b/sys/modules/geom/geom_pc98/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../geom + +KMOD= geom_pc98 +SRCS= geom_pc98.c geom_pc98_enc.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_raid3/Makefile b/sys/modules/geom/geom_raid3/Makefile new file mode 100644 index 000000000000..b202237a611f --- /dev/null +++ b/sys/modules/geom/geom_raid3/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../geom/raid3 + +KMOD= geom_raid3 +SRCS= g_raid3.c +SRCS+= g_raid3_ctl.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_shsec/Makefile b/sys/modules/geom/geom_shsec/Makefile new file mode 100644 index 000000000000..f229203ad87a --- /dev/null +++ b/sys/modules/geom/geom_shsec/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../geom/shsec + +KMOD= geom_shsec +SRCS= g_shsec.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_stripe/Makefile b/sys/modules/geom/geom_stripe/Makefile new file mode 100644 index 000000000000..278d3accfdc6 --- /dev/null +++ b/sys/modules/geom/geom_stripe/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../geom/stripe + +KMOD= geom_stripe +SRCS= g_stripe.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_sunlabel/Makefile b/sys/modules/geom/geom_sunlabel/Makefile new file mode 100644 index 000000000000..840395aaf1de --- /dev/null +++ b/sys/modules/geom/geom_sunlabel/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../geom + +KMOD= geom_sunlabel +SRCS= geom_sunlabel.c geom_sunlabel_enc.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_uzip/Makefile b/sys/modules/geom/geom_uzip/Makefile new file mode 100644 index 000000000000..8e468451773b --- /dev/null +++ b/sys/modules/geom/geom_uzip/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../geom/uzip ${.CURDIR}/../../../net + +KMOD= geom_uzip +SRCS= g_uzip.c +#CFLAGS= -g + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_vinum/Makefile b/sys/modules/geom/geom_vinum/Makefile new file mode 100644 index 000000000000..fe14515d108f --- /dev/null +++ b/sys/modules/geom/geom_vinum/Makefile @@ -0,0 +1,12 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../geom/vinum + +KMOD= geom_vinum +SRCS= geom_vinum.c geom_vinum_drive.c geom_vinum_plex.c \ + geom_vinum_volume.c geom_vinum_subr.c geom_vinum_raid5.c \ + geom_vinum_share.c geom_vinum_list.c geom_vinum_rm.c \ + geom_vinum_init.c geom_vinum_state.c geom_vinum_rename.c \ + geom_vinum_move.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_vol_ffs/Makefile b/sys/modules/geom/geom_vol_ffs/Makefile new file mode 100644 index 000000000000..de9b75806dfe --- /dev/null +++ b/sys/modules/geom/geom_vol_ffs/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../geom + +KMOD= geom_vol_ffs +SRCS= geom_vol_ffs.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_zero/Makefile b/sys/modules/geom/geom_zero/Makefile new file mode 100644 index 000000000000..43dae09d3333 --- /dev/null +++ b/sys/modules/geom/geom_zero/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../geom/zero + +KMOD= geom_zero +SRCS= g_zero.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/harp/Makefile b/sys/modules/harp/Makefile new file mode 100644 index 000000000000..e6d75ed1d555 --- /dev/null +++ b/sys/modules/harp/Makefile @@ -0,0 +1,13 @@ +# $FreeBSD$ +# +# Author: Harti Brandt <brandt@fokus.gmd.de> +# +.PATH: ${.CURDIR}/../../dev/harp + +KMOD= if_harp +SRCS= if_harp.c device_if.h + +CFLAGS+= -I${.CURDIR} -I${.CURDIR}/../include +CFLAGS+= -DDEBUG -DINVARIANTS + +.include <bsd.kmod.mk> diff --git a/sys/modules/hatm/Makefile b/sys/modules/hatm/Makefile new file mode 100644 index 000000000000..5dcf113924e6 --- /dev/null +++ b/sys/modules/hatm/Makefile @@ -0,0 +1,22 @@ +# $FreeBSD$ +# +# Author: Harti Brandt <harti@freebsd.org> +# +.PATH: ${.CURDIR}/../../dev/hatm + +KMOD= if_hatm +SRCS= if_hatm.c if_hatm_intr.c if_hatm_ioctl.c if_hatm_tx.c if_hatm_rx.c \ + device_if.h bus_if.h pci_if.h opt_inet.h opt_natm.h + +CFLAGS+= -DENABLE_BPF +# CFLAGS+= -DHATM_DEBUG -DINVARIANT_SUPPORT -DINVARIANTS + +.if !defined(KERNBUILDDIR) +opt_inet.h: + echo "#define INET 1" > opt_inet.h + +opt_natm.h: + echo "#define NATM 1" > opt_natm.h +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/hfa/Makefile b/sys/modules/hfa/Makefile new file mode 100644 index 000000000000..964083090442 --- /dev/null +++ b/sys/modules/hfa/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +SUBDIR= hfa pci + +.ifdef notyet +.if ${MACHINE_ARCH} == "i386" +SUBDIR+=eisa +.endif + +.if ${MACHINE_ARCH} == "sparc64" +SUBDIR+=sbus +.endif +.endif + +.include <bsd.subdir.mk> diff --git a/sys/modules/hfa/Makefile.inc b/sys/modules/hfa/Makefile.inc new file mode 100644 index 000000000000..265f86d1ed55 --- /dev/null +++ b/sys/modules/hfa/Makefile.inc @@ -0,0 +1,3 @@ +# $FreeBSD$ + +.include "../Makefile.inc" diff --git a/sys/modules/hfa/eisa/Makefile b/sys/modules/hfa/eisa/Makefile new file mode 100644 index 000000000000..bc4f30de70cd --- /dev/null +++ b/sys/modules/hfa/eisa/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/hfa + +KMOD= hfa_eisa +SRCS= hfa_eisa.c eisa_if.h device_if.h bus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/hfa/hfa/Makefile b/sys/modules/hfa/hfa/Makefile new file mode 100644 index 000000000000..3c8694ca0684 --- /dev/null +++ b/sys/modules/hfa/hfa/Makefile @@ -0,0 +1,13 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/hfa + +KMOD= hfa +SRCS= hfa_freebsd.c \ + fore_buffer.c fore_init.c fore_receive.c fore_vcm.c \ + fore_command.c fore_intr.c fore_stats.c \ + fore_globals.c fore_timer.c \ + fore_if.c fore_output.c fore_transmit.c \ + device_if.h bus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/hfa/pci/Makefile b/sys/modules/hfa/pci/Makefile new file mode 100644 index 000000000000..3e62752b31cd --- /dev/null +++ b/sys/modules/hfa/pci/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/hfa + +KMOD= hfa_pci +SRCS= hfa_pci.c pci_if.h device_if.h bus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/hfa/sbus/Makefile b/sys/modules/hfa/sbus/Makefile new file mode 100644 index 000000000000..3862c296624a --- /dev/null +++ b/sys/modules/hfa/sbus/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/hfa + +KMOD= hfa_sbus +SRCS= hfa_sbus.c device_if.h bus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/hifn/Makefile b/sys/modules/hifn/Makefile new file mode 100644 index 000000000000..9b19db423f37 --- /dev/null +++ b/sys/modules/hifn/Makefile @@ -0,0 +1,14 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/hifn +KMOD = hifn +SRCS = hifn7751.c opt_hifn.h +SRCS += device_if.h bus_if.h pci_if.h +SRCS += opt_bdg.h opt_bus.h crypto_if.h + +.if !defined(KERNBUILDDIR) +opt_hifn.h: + echo "#define HIFN_DEBUG 1" > opt_hifn.h +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/hme/Makefile b/sys/modules/hme/Makefile new file mode 100644 index 000000000000..8f403710ce13 --- /dev/null +++ b/sys/modules/hme/Makefile @@ -0,0 +1,12 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/hme + +KMOD= if_hme +SRCS= bus_if.h device_if.h if_hme.c if_hme_pci.c miibus_if.h pci_if.h + +.if ${MACHINE_ARCH} == "sparc64" +SRCS+= if_hme_sbus.c ofw_bus_if.h +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/hpfs/Makefile b/sys/modules/hpfs/Makefile new file mode 100644 index 000000000000..750fda00dae0 --- /dev/null +++ b/sys/modules/hpfs/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../fs/hpfs + +KMOD= hpfs +SRCS= vnode_if.h \ + hpfs_vfsops.c hpfs_vnops.c hpfs_subr.c hpfs_lookup.c \ + hpfs_alsubr.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/hptmv/Makefile b/sys/modules/hptmv/Makefile new file mode 100644 index 000000000000..05ceac7bb1f6 --- /dev/null +++ b/sys/modules/hptmv/Makefile @@ -0,0 +1,52 @@ +# +# Makefile for RR182x FreeBSD driver +# Copyright (c) 2004-2005 HighPoint Technologies, Inc. All rights reserved +# +# $FreeBSD$ + +HPTMV= ${.CURDIR}/../../dev/hptmv +.PATH: ${HPTMV} + +KMOD= hptmv +SRCS= opt_scsi.h opt_cam.h +SRCS+= bus_if.h device_if.h pci_if.h +SRCS+= mv.c entry.c ioctl.c hptproc.c gui_lib.c +OBJS+= hptmvraid.o + +.if $(MACHINE_ARCH) == "amd64" +HPTMV_RAID_O = amd64-elf.raid.o.uu +.else +HPTMV_RAID_O = i386-elf.raid.o.uu +.endif + +hptmvraid.o: ${HPTMV}/$(HPTMV_RAID_O) + uudecode -p < ${HPTMV}/$(HPTMV_RAID_O) > ${.TARGET} + +# +# Debug Options: +# +# -DDEBUG: include debug code +# -DDEBUG_LEVEL=x: +# 0 - No debug output message +# 1 - print only error messages +# 2 - print error and warning +# 3 - print all messages (info, warning, error) +# +#DEBUGOPT = -O2 + +.if defined(DEBUG) && $(DEBUG) == 1 +DEBUGOPT += -DDEBUG +.if defined(DEBUG_LEVEL) +DEBUGOPT += -DDEBUG_LEVEL=$(DEBUG_LEVEL) +.else +DEBUGOPT += -DDEBUG_LEVEL=1 +.endif +.endif + +.if defined(FOR_DEMO) && $(FOR_DEMO) == 1 +DEBUGOPT += -DFOR_DEMO +.endif + +CFLAGS = ${DEBUGOPT} + +.include <bsd.kmod.mk> diff --git a/sys/modules/hwpmc/Makefile b/sys/modules/hwpmc/Makefile new file mode 100644 index 000000000000..9d7dfde6d5bd --- /dev/null +++ b/sys/modules/hwpmc/Makefile @@ -0,0 +1,43 @@ +# +# $FreeBSD$ +# + +.PATH: ${.CURDIR}/../../dev/hwpmc + +KMOD= hwpmc + +SRCS= hwpmc_mod.c hwpmc_logging.c vnode_if.h + +WARNS?= 2 + +.if ${MACHINE_ARCH} == "alpha" +SRCS+= hwpmc_alpha.c +.endif + +.if ${MACHINE_ARCH} == "amd64" +SRCS+= hwpmc_amd.c hwpmc_piv.c hwpmc_x86.c +SRCS+= device_if.h bus_if.h +.endif + +.if ${MACHINE_ARCH} == "arm" +SRCS+= hwpmc_arm.c +.endif + +.if ${MACHINE_ARCH} == "i386" +SRCS+= hwpmc_amd.c hwpmc_piv.c hwpmc_ppro.c hwpmc_pentium.c hwpmc_x86.c +SRCS+= device_if.h bus_if.h +.endif + +.if ${MACHINE_ARCH} == "ia64" +SRCS+= hwpmc_ia64.c +.endif + +.if ${MACHINE_ARCH} == "powerpc" +SRCS+= hwpmc_powerpc.c +.endif + +.if ${MACHINE_ARCH} == "sparc64" +SRCS+= hwpmc_sparc64.c +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/i2c/Makefile b/sys/modules/i2c/Makefile new file mode 100644 index 000000000000..7ba1f436f495 --- /dev/null +++ b/sys/modules/i2c/Makefile @@ -0,0 +1,6 @@ +# $FreeBSD$ + +SUBDIR = +SUBDIR += controllers if_ic smbus iicbus iicbb iicsmb iic smb + +.include <bsd.subdir.mk> diff --git a/sys/modules/i2c/Makefile.inc b/sys/modules/i2c/Makefile.inc new file mode 100644 index 000000000000..265f86d1ed55 --- /dev/null +++ b/sys/modules/i2c/Makefile.inc @@ -0,0 +1,3 @@ +# $FreeBSD$ + +.include "../Makefile.inc" diff --git a/sys/modules/i2c/controllers/Makefile b/sys/modules/i2c/controllers/Makefile new file mode 100644 index 000000000000..c9d9fbbbc73b --- /dev/null +++ b/sys/modules/i2c/controllers/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.if ${MACHINE} == "pc98" +SUBDIR = lpbb +.else +SUBDIR = alpm amdpm amdsmb ichsmb intpm nfsmb viapm lpbb pcf +.endif + +.include <bsd.subdir.mk> diff --git a/sys/modules/i2c/controllers/Makefile.inc b/sys/modules/i2c/controllers/Makefile.inc new file mode 100644 index 000000000000..265f86d1ed55 --- /dev/null +++ b/sys/modules/i2c/controllers/Makefile.inc @@ -0,0 +1,3 @@ +# $FreeBSD$ + +.include "../Makefile.inc" diff --git a/sys/modules/i2c/controllers/alpm/Makefile b/sys/modules/i2c/controllers/alpm/Makefile new file mode 100644 index 000000000000..5429b9cee4db --- /dev/null +++ b/sys/modules/i2c/controllers/alpm/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../pci +KMOD = alpm +CFLAGS += -DALPM_SMBIO_BASE_ADDR=0xbc00 +SRCS = device_if.h bus_if.h iicbus_if.h smbus_if.h pci_if.h \ + alpm.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/i2c/controllers/amdpm/Makefile b/sys/modules/i2c/controllers/amdpm/Makefile new file mode 100644 index 000000000000..5f6d7ed295ba --- /dev/null +++ b/sys/modules/i2c/controllers/amdpm/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../pci +KMOD = amdpm +SRCS = device_if.h bus_if.h pci_if.h smbus_if.h \ + amdpm.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/i2c/controllers/amdsmb/Makefile b/sys/modules/i2c/controllers/amdsmb/Makefile new file mode 100644 index 000000000000..d7306cebf689 --- /dev/null +++ b/sys/modules/i2c/controllers/amdsmb/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../pci + +KMOD= amdsmb +SRCS= amdsmb.c +SRCS+= device_if.h smbus_if.h pci_if.h bus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/i2c/controllers/ichsmb/Makefile b/sys/modules/i2c/controllers/ichsmb/Makefile new file mode 100644 index 000000000000..7cb9957384f5 --- /dev/null +++ b/sys/modules/i2c/controllers/ichsmb/Makefile @@ -0,0 +1,8 @@ +#$FreeBSD$ + +.PATH: ${.CURDIR}/../../../../dev/ichsmb +KMOD = ichsmb +SRCS = device_if.h bus_if.h iicbb_if.h pci_if.h smbus_if.h \ + ichsmb.c ichsmb_pci.c ichsmb_reg.h ichsmb_var.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/i2c/controllers/intpm/Makefile b/sys/modules/i2c/controllers/intpm/Makefile new file mode 100644 index 000000000000..7cef578707b9 --- /dev/null +++ b/sys/modules/i2c/controllers/intpm/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../pci +KMOD = intpm +SRCS = device_if.h bus_if.h iicbus_if.h smbus_if.h pci_if.h \ + opt_intpm.h intpmreg.h intpm.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/i2c/controllers/lpbb/Makefile b/sys/modules/i2c/controllers/lpbb/Makefile new file mode 100644 index 000000000000..77e84d2caf22 --- /dev/null +++ b/sys/modules/i2c/controllers/lpbb/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../dev/ppbus +KMOD = lpbb +SRCS = device_if.h bus_if.h iicbb_if.h ppbus_if.h \ + lpbb.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/i2c/controllers/nfsmb/Makefile b/sys/modules/i2c/controllers/nfsmb/Makefile new file mode 100644 index 000000000000..21b67f3196f9 --- /dev/null +++ b/sys/modules/i2c/controllers/nfsmb/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../pci + +KMOD= nfsmb +SRCS= nfsmb.c +SRCS+= device_if.h smbus_if.h pci_if.h bus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/i2c/controllers/pcf/Makefile b/sys/modules/i2c/controllers/pcf/Makefile new file mode 100644 index 000000000000..42d3adef8c69 --- /dev/null +++ b/sys/modules/i2c/controllers/pcf/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../i386/isa +KMOD = pcf +SRCS = device_if.h bus_if.h iicbus_if.h isa_if.h \ + pcf.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/i2c/controllers/viapm/Makefile b/sys/modules/i2c/controllers/viapm/Makefile new file mode 100644 index 000000000000..300744146093 --- /dev/null +++ b/sys/modules/i2c/controllers/viapm/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../pci +KMOD = viapm +SRCS = device_if.h bus_if.h isa_if.h iicbb_if.h pci_if.h smbus_if.h \ + opt_isa.h viapm.c +CFLAGS += -DVIAPM_BASE_ADDR=0x6000 + +.include <bsd.kmod.mk> diff --git a/sys/modules/i2c/if_ic/Makefile b/sys/modules/i2c/if_ic/Makefile new file mode 100644 index 000000000000..67dd7344585b --- /dev/null +++ b/sys/modules/i2c/if_ic/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/iicbus +KMOD = if_ic +SRCS = device_if.h bus_if.h iicbus_if.h \ + if_ic.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/i2c/iic/Makefile b/sys/modules/i2c/iic/Makefile new file mode 100644 index 000000000000..0ac8678c6d00 --- /dev/null +++ b/sys/modules/i2c/iic/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/iicbus +KMOD = iic +SRCS = device_if.h bus_if.h iicbus_if.h \ + iic.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/i2c/iicbb/Makefile b/sys/modules/i2c/iicbb/Makefile new file mode 100644 index 000000000000..ea991e082e06 --- /dev/null +++ b/sys/modules/i2c/iicbb/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/iicbus +KMOD = iicbb +SRCS = device_if.h bus_if.h iicbus_if.h \ + iicbb_if.h iicbb_if.c iicbb.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/i2c/iicbus/Makefile b/sys/modules/i2c/iicbus/Makefile new file mode 100644 index 000000000000..c3fc8e3f5225 --- /dev/null +++ b/sys/modules/i2c/iicbus/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/iicbus +KMOD = iicbus +SRCS = device_if.h bus_if.h iicbus_if.h iicbus_if.c \ + iiconf.h iiconf.c iicbus.h iicbus.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/i2c/iicsmb/Makefile b/sys/modules/i2c/iicsmb/Makefile new file mode 100644 index 000000000000..d0c676482e5c --- /dev/null +++ b/sys/modules/i2c/iicsmb/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/iicbus +KMOD = iicsmb +SRCS = device_if.h bus_if.h iicbus_if.h \ + smbus_if.h iicsmb.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/i2c/smb/Makefile b/sys/modules/i2c/smb/Makefile new file mode 100644 index 000000000000..f6f960c02126 --- /dev/null +++ b/sys/modules/i2c/smb/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/smbus +KMOD = smb +SRCS = device_if.h bus_if.h smbus_if.h \ + smb.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/i2c/smbus/Makefile b/sys/modules/i2c/smbus/Makefile new file mode 100644 index 000000000000..24462d038512 --- /dev/null +++ b/sys/modules/i2c/smbus/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/smbus +KMOD = smbus +SRCS = device_if.h bus_if.h smbus_if.h smbus_if.c \ + smbconf.h smbconf.c smbus.h smbus.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/ibcs2/Makefile b/sys/modules/ibcs2/Makefile new file mode 100644 index 000000000000..f258fa901933 --- /dev/null +++ b/sys/modules/ibcs2/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../i386/ibcs2 + +KMOD= ibcs2 +SRCS= ibcs2_errno.c ibcs2_ipc.c ibcs2_stat.c ibcs2_misc.c \ + ibcs2_fcntl.c ibcs2_signal.c ibcs2_sysent.c ibcs2_ioctl.c \ + ibcs2_socksys.c ibcs2_util.c ibcs2_xenix.c ibcs2_xenix_sysent.c \ + ibcs2_isc.c ibcs2_isc_sysent.c \ + ibcs2_msg.c ibcs2_other.c ibcs2_sysi86.c ibcs2_sysvec.c \ + vnode_if.h opt_mac.h opt_spx_hack.h + +CFLAGS+= -DCOMPAT_IBCS2 + +.include <bsd.kmod.mk> diff --git a/sys/modules/ichwd/Makefile b/sys/modules/ichwd/Makefile new file mode 100644 index 000000000000..880ec82a28ef --- /dev/null +++ b/sys/modules/ichwd/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/ichwd + +KMOD= ichwd +SRCS= ichwd.c device_if.h bus_if.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ida/Makefile b/sys/modules/ida/Makefile new file mode 100644 index 000000000000..e97ac69db123 --- /dev/null +++ b/sys/modules/ida/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/ida + +KMOD= ida +SRCS= ida.c ida_disk.c ida_pci.c \ + device_if.h bus_if.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/idt/Makefile b/sys/modules/idt/Makefile new file mode 100644 index 000000000000..8f1a08ee225b --- /dev/null +++ b/sys/modules/idt/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/idt + +KMOD= idt +SRCS= idt_pci.c idt_harp.c idt.c +SRCS+= pci_if.h device_if.h bus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ie/Makefile b/sys/modules/ie/Makefile new file mode 100644 index 000000000000..d6c611de3480 --- /dev/null +++ b/sys/modules/ie/Makefile @@ -0,0 +1,11 @@ +# $FreeBSD$ +# + +.PATH: ${.CURDIR}/../../dev/ie + +KMOD= if_ie +SRCS= if_ie.c if_ie_isa.c \ + isa_if.h bus_if.h device_if.h +WERROR= + +.include <bsd.kmod.mk> diff --git a/sys/modules/if_bridge/Makefile b/sys/modules/if_bridge/Makefile new file mode 100644 index 000000000000..6b10023bac3a --- /dev/null +++ b/sys/modules/if_bridge/Makefile @@ -0,0 +1,17 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../net +KMOD= if_bridge +SRCS= if_bridge.c bridgestp.c opt_inet.h opt_inet6.h opt_carp.h + +.if !defined(KERNBUILDDIR) +opt_inet.h: + echo "#define INET 1" > ${.TARGET} + +.if !defined(NO_INET6) +opt_inet6.h: + echo "#define INET6 1" > ${.TARGET} +.endif +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/if_disc/Makefile b/sys/modules/if_disc/Makefile new file mode 100644 index 000000000000..9dc5742eaa0b --- /dev/null +++ b/sys/modules/if_disc/Makefile @@ -0,0 +1,16 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../net + +KMOD= if_disc +SRCS= if_disc.c opt_inet.h opt_inet6.h + +.if !defined(KERNBUILDDIR) +opt_inet.h: + echo "#define INET 1" > ${.TARGET} + +#opt_inet6.h: +# echo "#define INET6 1" > ${.TARGET} +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/if_ef/Makefile b/sys/modules/if_ef/Makefile new file mode 100644 index 000000000000..dc40213c7181 --- /dev/null +++ b/sys/modules/if_ef/Makefile @@ -0,0 +1,36 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../net + +KMOD= if_ef +SRCS= if_ef.c opt_ipx.h opt_inet.h opt_ef.h + +.if defined(EFDEBUG) +CFLAGS+= -DEF_DEBUG +.endif + +.if !defined(KERNBUILDDIR) +# If you need only a limited number of frames, uncomment the needed ones. +# This will reduce the number of visible devices. Note that the module +# will support all frames by default, i.e., when all are commented here. +#ETHER_II= +#ETHER_8023= +#ETHER_8022= +#ETHER_SNAP= + +opt_inet.h: + echo "#define INET 1" > ${.TARGET} + +opt_ipx.h: + echo "#define IPX 1" > ${.TARGET} + +opt_ef.h: + :> ${.TARGET} +.for frame in ETHER_II ETHER_8023 ETHER_8022 ETHER_SNAP +.if defined(${frame}) + echo "#define ${frame} 1" >> ${.TARGET} +.endif +.endfor +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/if_faith/Makefile b/sys/modules/if_faith/Makefile new file mode 100644 index 000000000000..a46d5fd399d6 --- /dev/null +++ b/sys/modules/if_faith/Makefile @@ -0,0 +1,16 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../net + +KMOD= if_faith +SRCS= if_faith.c opt_inet.h opt_inet6.h + +.if !defined(KERNBUILDDIR) +opt_inet.h: + echo "#define INET 1" > ${.TARGET} + +opt_inet6.h: + echo "#define INET6 1" > ${.TARGET} +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/if_gif/Makefile b/sys/modules/if_gif/Makefile new file mode 100644 index 000000000000..c9d073b91b84 --- /dev/null +++ b/sys/modules/if_gif/Makefile @@ -0,0 +1,31 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../net ${.CURDIR}/../../netinet ${.CURDIR}/../../netinet6 + +KMOD= if_gif +SRCS= if_gif.c in_gif.c opt_inet.h opt_inet6.h opt_mac.h \ + opt_mrouting.h + +.if !defined(KERNBUILDDIR) +opt_inet.h: + echo "#define INET 1" > ${.TARGET} + +.if !defined(NO_INET6) +opt_inet6.h: + echo "#define INET6 1" > ${.TARGET} +.endif + +opt_mrouting.h: + echo "#define MROUTING 1" > ${.TARGET} +.else +OPT_INET6!= cat ${KERNBUILDDIR}/opt_inet6.h +.if empty(OPT_INET6) +NO_INET6= +.endif +.endif + +.if !defined(NO_INET6) +SRCS+= in6_gif.c +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/if_gre/Makefile b/sys/modules/if_gre/Makefile new file mode 100644 index 000000000000..87da7b037d03 --- /dev/null +++ b/sys/modules/if_gre/Makefile @@ -0,0 +1,19 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../net ${.CURDIR}/../../netinet ${.CURDIR}/../../netinet6 + +KMOD= if_gre +SRCS= if_gre.c ip_gre.c opt_inet.h opt_inet6.h opt_atalk.h + +.if !defined(KERNBUILDDIR) +opt_inet.h: + echo "#define INET 1" > ${.TARGET} + +opt_inet6.h: + echo "#define INET6 1" > ${.TARGET} + +opt_atalk.h: + echo "#define NETATALK 1" > ${.TARGET} +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/if_ndis/Makefile b/sys/modules/if_ndis/Makefile new file mode 100644 index 000000000000..cbc2ed0ee34c --- /dev/null +++ b/sys/modules/if_ndis/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/if_ndis + +KMOD= if_ndis +SRCS= if_ndis.c if_ndis_pci.c if_ndis_pccard.c if_ndis_usb.c +SRCS+= opt_bdg.h device_if.h bus_if.h pci_if.h card_if.h pccarddevs.h +SRCS+= opt_usb.h usbdevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/if_ppp/Makefile b/sys/modules/if_ppp/Makefile new file mode 100644 index 000000000000..5ba503905c65 --- /dev/null +++ b/sys/modules/if_ppp/Makefile @@ -0,0 +1,46 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../net + +KMOD= if_ppp +SRCS= if_ppp.c ppp_tty.c slcompress.c \ + opt_inet.h opt_ipx.h opt_mac.h opt_ppp.h + +PPP_BSDCOMP?= 1 # 0/1 +PPP_DEFLATE?= 1 # 0/1 +PPP_FILTER?= 1 # 0/1 - requires bpf to be configured in kernel +PPP_INET?= 1 # 0/1 - requires INET to be configured in kernel +PPP_IPX?= 0 # 0/1 - requires IPX to be configured in kernel + +.if ${PPP_BSDCOMP} > 0 +SRCS+= bsd_comp.c +.endif +.if ${PPP_DEFLATE} > 0 +SRCS+= ppp_deflate.c +.endif + +.if !defined(KERNBUILDDIR) +.if ${PPP_INET} > 0 +opt_inet.h: + echo "#define INET 1" > ${.TARGET} +.endif + +.if ${PPP_IPX} > 0 +opt_ipx.h: + echo "#define IPX ${PPP_IPX}" > ${.TARGET} +.endif + +opt_ppp.h: + :> ${.TARGET} +.if ${PPP_BSDCOMP} > 0 + echo "#define PPP_BSDCOMP ${PPP_BSDCOMP}" >> ${.TARGET} +.endif +.if ${PPP_DEFLATE} > 0 + echo "#define PPP_DEFLATE ${PPP_DEFLATE}" >> ${.TARGET} +.endif +.if ${PPP_FILTER} > 0 + echo "#define PPP_FILTER ${PPP_FILTER}" >> ${.TARGET} +.endif +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/if_sl/Makefile b/sys/modules/if_sl/Makefile new file mode 100644 index 000000000000..800a9847943c --- /dev/null +++ b/sys/modules/if_sl/Makefile @@ -0,0 +1,13 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../net + +KMOD= if_sl +SRCS= if_sl.c slcompress.c opt_inet.h opt_slip.h + +.if !defined(KERNBUILDDIR) +opt_inet.h: + echo "#define INET 1" > ${.TARGET} +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/if_stf/Makefile b/sys/modules/if_stf/Makefile new file mode 100644 index 000000000000..c231b002229c --- /dev/null +++ b/sys/modules/if_stf/Makefile @@ -0,0 +1,16 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../net + +KMOD= if_stf +SRCS= if_stf.c opt_inet.h opt_inet6.h opt_mac.h + +.if !defined(KERNBUILDDIR) +opt_inet.h: + echo "#define INET 1" > ${.TARGET} + +opt_inet6.h: + echo "#define INET6 1" > ${.TARGET} +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/if_tap/Makefile b/sys/modules/if_tap/Makefile new file mode 100644 index 000000000000..3b75586acd59 --- /dev/null +++ b/sys/modules/if_tap/Makefile @@ -0,0 +1,15 @@ +# Copyright (C) 1999-2000 by Maksim Yevmenkin <m_evmenkin@yahoo.com> +# +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../net + +KMOD= if_tap +SRCS= if_tap.c opt_inet.h vnode_if.h + +.if !defined(KERNBUILDDIR) +opt_inet.h: + echo "#define INET 1" > opt_inet.h +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/if_tun/Makefile b/sys/modules/if_tun/Makefile new file mode 100644 index 000000000000..17dbf33b9dd9 --- /dev/null +++ b/sys/modules/if_tun/Makefile @@ -0,0 +1,22 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../net + +KMOD= if_tun +SRCS= if_tun.c opt_atalk.h opt_inet.h opt_inet6.h opt_ipx.h opt_mac.h + +.if !defined(KERNBUILDDIR) +opt_atalk.h: + echo "#define NETATALK 1" > ${.TARGET} + +opt_inet.h: + echo "#define INET 1" > ${.TARGET} + +opt_inet6.h: + echo "#define INET6 1" > ${.TARGET} + +opt_ipx.h: + echo "#define IPX 1" > ${.TARGET} +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/if_vlan/Makefile b/sys/modules/if_vlan/Makefile new file mode 100644 index 000000000000..8b46e42fed32 --- /dev/null +++ b/sys/modules/if_vlan/Makefile @@ -0,0 +1,13 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../net + +KMOD= if_vlan +SRCS= if_vlan.c opt_inet.h + +.if !defined(KERNBUILDDIR) +opt_inet.h: + echo "#define INET 1" > ${.TARGET} +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/iir/Makefile b/sys/modules/iir/Makefile new file mode 100644 index 000000000000..591fef8c0e88 --- /dev/null +++ b/sys/modules/iir/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +KMOD = iir +.PATH: ${.CURDIR}/../../dev/${KMOD} +SRCS = iir.c iir_ctrl.c iir_pci.c +SRCS += opt_scsi.h opt_cam.h +SRCS += device_if.h bus_if.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/io/Makefile b/sys/modules/io/Makefile new file mode 100644 index 000000000000..d90a8e473b10 --- /dev/null +++ b/sys/modules/io/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/io +.PATH: ${.CURDIR}/../../${MACHINE_ARCH}/${MACHINE_ARCH} + +KMOD= io +SRCS= iodev.c io.c +SRCS+= bus_if.h device_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ip6fw/Makefile b/sys/modules/ip6fw/Makefile new file mode 100644 index 000000000000..42ca025507cc --- /dev/null +++ b/sys/modules/ip6fw/Makefile @@ -0,0 +1,17 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../netinet6 + +KMOD= ip6fw +SRCS= ip6_fw.c + +CFLAGS+= -DIPV6FIREWALL + +#If you want it verbose +#CFLAGS+= -DIPV6FIREWALL_VERBOSE +#CFLAGS+= -DIPV6FIREWALL_VERBOSE_LIMIT=100 +# +#If you want it to pass all packets by default +#CFLAGS+= -DIPV6FIREWALL_DEFAULT_TO_ACCEPT + +.include <bsd.kmod.mk> diff --git a/sys/modules/ip_mroute_mod/Makefile b/sys/modules/ip_mroute_mod/Makefile new file mode 100644 index 000000000000..b78d735b4e06 --- /dev/null +++ b/sys/modules/ip_mroute_mod/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../netinet + +KMOD= ip_mroute +SRCS= ip_mroute.c opt_mac.h opt_mrouting.h + +CFLAGS+= -DMROUTE_KLD + +.if !defined(KERNBUILDDIR) +opt_mrouting.h: + echo "#define MROUTING 1" > ${.TARGET} +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/ipdivert/Makefile b/sys/modules/ipdivert/Makefile new file mode 100644 index 000000000000..203b4bf6871d --- /dev/null +++ b/sys/modules/ipdivert/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../netinet + +KMOD= ipdivert +SRCS= ip_divert.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/ipfilter/Makefile b/sys/modules/ipfilter/Makefile new file mode 100644 index 000000000000..542af84efa3f --- /dev/null +++ b/sys/modules/ipfilter/Makefile @@ -0,0 +1,26 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../contrib/ipfilter/netinet + +KMOD= ipl +SRCS= mlfk_ipl.c ip_nat.c ip_frag.c ip_state.c ip_proxy.c ip_auth.c \ + ip_log.c ip_fil_freebsd.c fil.c ip_lookup.c ip_pool.c ip_htable.c \ + ip_sync.c +SRCS+= opt_bpf.h opt_inet6.h + +.if !defined(KERNBUILDDIR) +opt_bpf.h: + echo "#define DEV_BPF 1" > ${.TARGET} + +.if !defined(NO_INET6) +opt_inet6.h: + echo "#define INET6 1" > ${.TARGET} +.endif +.endif +CFLAGS+= -I${.CURDIR}/../../contrib/ipfilter +CFLAGS+= -DIPFILTER=1 -DIPFILTER_LKM -DIPFILTER_LOG -DIPFILTER_LOOKUP +# +# If you don't want log functionality remove -DIPFILTER_LOG +# + +.include <bsd.kmod.mk> diff --git a/sys/modules/ipfw/Makefile b/sys/modules/ipfw/Makefile new file mode 100644 index 000000000000..e2a2a76fc6d1 --- /dev/null +++ b/sys/modules/ipfw/Makefile @@ -0,0 +1,26 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../netinet + +KMOD= ipfw +SRCS= ip_fw2.c ip_fw_pfil.c +SRCS+= opt_inet6.h opt_ipsec.h opt_mac.h + +CFLAGS+= -DIPFIREWALL +# +#If you want it verbose +#CFLAGS+= -DIPFIREWALL_VERBOSE +#CFLAGS+= -DIPFIREWALL_VERBOSE_LIMIT=100 +# +#If you want it to pass all packets by default +#CFLAGS+= -DIPFIREWALL_DEFAULT_TO_ACCEPT +# + +.if !defined(KERNBUILDDIR) +.if !defined(NO_INET6) +opt_inet6.h: + echo "#define INET6 1" > ${.TARGET} +.endif +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/ipmi/Makefile b/sys/modules/ipmi/Makefile new file mode 100644 index 000000000000..3f45c73361ef --- /dev/null +++ b/sys/modules/ipmi/Makefile @@ -0,0 +1,13 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/ipmi + +# XXX - ipmi_smbus and ipmi_ssif depend on smbus +# XXX - ipmi_acpi depends on acpi +KMOD= ipmi +SRCS= ipmi.c ipmi_kcs.c ipmi_smic.c ipmi_smbios.c ipmi_ssif.c +SRCS+= ipmi_acpi.c ipmi_isa.c ipmi_pci.c ipmi_smbus.c +SRCS+= opt_acpi.h +SRCS+= acpi_if.h bus_if.h device_if.h isa_if.h pci_if.h smbus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ips/Makefile b/sys/modules/ips/Makefile new file mode 100644 index 000000000000..4ec20a3d05ba --- /dev/null +++ b/sys/modules/ips/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/ips +KMOD = ips +SRCS = ips.c ips_pci.c ips.h ips_disk.c ips_disk.h ips_commands.c \ + ips_ioctl.h ips_ioctl.c device_if.h bus_if.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ipw/Makefile b/sys/modules/ipw/Makefile new file mode 100644 index 000000000000..8ef81358b2be --- /dev/null +++ b/sys/modules/ipw/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/ipw + +KMOD = if_ipw +SRCS = if_ipw.c opt_bdg.h device_if.h bus_if.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/isp/Makefile b/sys/modules/isp/Makefile new file mode 100644 index 000000000000..b3ddc3910390 --- /dev/null +++ b/sys/modules/isp/Makefile @@ -0,0 +1,14 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/isp + +KMOD= isp +SRCS= bus_if.h device_if.h pci_if.h \ + opt_cam.h opt_ddb.h opt_isp.h \ + isp.c isp_target.c isp_freebsd.c isp_pci.c + +.if ${MACHINE_ARCH} == sparc64 +SRCS+= isp_sbus.c ofw_bus_if.h +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/ispfw/Makefile b/sys/modules/ispfw/Makefile new file mode 100644 index 000000000000..07b9f8b27b86 --- /dev/null +++ b/sys/modules/ispfw/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/ispfw + +KMOD= ispfw +SRCS= ispfw.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/iwi/Makefile b/sys/modules/iwi/Makefile new file mode 100644 index 000000000000..a5a960550add --- /dev/null +++ b/sys/modules/iwi/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/iwi + +KMOD = if_iwi +SRCS = if_iwi.c opt_bdg.h device_if.h bus_if.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ixgb/Makefile b/sys/modules/ixgb/Makefile new file mode 100644 index 000000000000..4396c2d3e7f8 --- /dev/null +++ b/sys/modules/ixgb/Makefile @@ -0,0 +1,9 @@ +#$FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/ixgb + +KMOD= if_ixgb +SRCS= if_ixgb.c ixgb_hw.c ixgb_ee.c +SRCS+= device_if.h bus_if.h pci_if.h opt_bdg.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/joy/Makefile b/sys/modules/joy/Makefile new file mode 100644 index 000000000000..71ba7f14692d --- /dev/null +++ b/sys/modules/joy/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/joy + +KMOD= joy +SRCS= bus_if.h device_if.h isa_if.h card_if.h joy.c joy_isa.c joy_pccard.c \ + pccarddevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/kbdmux/Makefile b/sys/modules/kbdmux/Makefile new file mode 100644 index 000000000000..2d64ddf7f5fb --- /dev/null +++ b/sys/modules/kbdmux/Makefile @@ -0,0 +1,14 @@ +# $Id: Makefile,v 1.1 2005/06/23 00:30:50 max Exp $ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/kbdmux + +KMOD= kbdmux +SRCS= kbdmux.c opt_kbd.h bus_if.h device_if.h + +.if !defined(KERNBUILDDIR) +opt_kbd.h: + echo "#define KBD_INSTALL_CDEV 1" > ${.TARGET} +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/kue/Makefile b/sys/modules/kue/Makefile new file mode 100644 index 000000000000..8569f16f5b41 --- /dev/null +++ b/sys/modules/kue/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +S= ${.CURDIR}/../.. +.PATH: $S/dev/usb + +KMOD= if_kue +SRCS= if_kue.c opt_bdg.h opt_usb.h device_if.h bus_if.h +SRCS+= miibus_if.h usbdevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/le/Makefile b/sys/modules/le/Makefile new file mode 100644 index 000000000000..23bb93b4b577 --- /dev/null +++ b/sys/modules/le/Makefile @@ -0,0 +1,14 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/le + +KMOD= if_le +SRCS= am7990.c am79900.c ${if_le_ledma} if_le_pci.c lance.c +SRCS+= bus_if.h device_if.h ${ofw_bus_if} pci_if.h + +.if ${MACHINE_ARCH} == "sparc64" +if_le_ledma= if_le_ledma.c +ofw_bus_if= ofw_bus_if.h +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/lge/Makefile b/sys/modules/lge/Makefile new file mode 100644 index 000000000000..0728e6e94bb4 --- /dev/null +++ b/sys/modules/lge/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/lge + +KMOD= if_lge +SRCS= if_lge.c miibus_if.h opt_bdg.h device_if.h bus_if.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/libalias/Makefile b/sys/modules/libalias/Makefile new file mode 100644 index 000000000000..6a2255e5de48 --- /dev/null +++ b/sys/modules/libalias/Makefile @@ -0,0 +1,33 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../netinet/libalias + +KMOD= libalias +SRCS= alias.c alias_cuseeme.c alias_db.c alias_ftp.c alias_irc.c \ + alias_nbt.c alias_pptp.c alias_proxy.c alias_skinny.c alias_smedia.c \ + alias_util.c +INCS= alias.h + +EXPORT_SYMS= LibAliasInit \ + LibAliasUninit \ + LibAliasSetAddress \ + LibAliasSetMode \ + LibAliasSkinnyPort \ + LibAliasIn \ + LibAliasOut \ + LibAliasRedirectPort \ + LibAliasRedirectAddr \ + LibAliasAddServer \ + LibAliasRedirectDynamic \ + LibAliasRedirectDelete \ + LibAliasProxyRule \ + LibAliasRedirectProto \ + LibAliasSaveFragment \ + LibAliasGetFragment \ + LibAliasFragmentIn \ + LibAliasSetTarget \ + LibAliasCheckNewLink \ + LibAliasInternetChecksum \ + LibAliasUnaliasOut + +.include <bsd.kmod.mk> diff --git a/sys/modules/libiconv/Makefile b/sys/modules/libiconv/Makefile new file mode 100644 index 000000000000..66460642104e --- /dev/null +++ b/sys/modules/libiconv/Makefile @@ -0,0 +1,21 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../libkern ${.CURDIR}/../../sys + +KMOD= libiconv +SRCS= iconv.c iconv_xlat.c iconv_xlat16.c +SRCS+= iconv.h +SRCS+= iconv_converter_if.c iconv_converter_if.h +MFILES= libkern/iconv_converter_if.m + +EXPORT_SYMS= iconv_open \ + iconv_close \ + iconv_conv \ + iconv_conv_case \ + iconv_convchr \ + iconv_convchr_case \ + iconv_convstr \ + iconv_convmem \ + iconv_vfs_refcount + +.include <bsd.kmod.mk> diff --git a/sys/modules/libmbpool/Makefile b/sys/modules/libmbpool/Makefile new file mode 100644 index 000000000000..efd15ec759c7 --- /dev/null +++ b/sys/modules/libmbpool/Makefile @@ -0,0 +1,19 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../kern + +KMOD= libmbpool +SRCS= subr_mbpool.c + +EXPORT_SYMS= mbp_create \ + mbp_destroy \ + mbp_alloc \ + mbp_free \ + mbp_ext_free \ + mbp_card_free \ + mbp_count \ + mbp_get \ + mbp_get_keep \ + mbp_sync + +.include <bsd.kmod.mk> diff --git a/sys/modules/libmchain/Makefile b/sys/modules/libmchain/Makefile new file mode 100644 index 000000000000..fd151ec6ab72 --- /dev/null +++ b/sys/modules/libmchain/Makefile @@ -0,0 +1,43 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../kern + +KMOD= libmchain +SRCS= subr_mchain.c + +EXPORT_SYMS= mb_init \ + mb_initm \ + mb_done \ + mb_detach \ + mb_fixhdr \ + mb_reserve \ + mb_put_uint8 \ + mb_put_uint16be \ + mb_put_uint16le \ + mb_put_uint32be \ + mb_put_uint32le \ + mb_put_int64be \ + mb_put_int64le \ + mb_put_mem \ + mb_put_mbuf \ + mb_put_uio \ + md_init \ + md_initm \ + md_done \ + md_append_record \ + md_next_record \ + md_get_uint8 \ + md_get_uint16 \ + md_get_uint16le \ + md_get_uint16be \ + md_get_uint32 \ + md_get_uint32be \ + md_get_uint32le \ + md_get_int64 \ + md_get_int64be \ + md_get_int64le \ + md_get_mem \ + md_get_mbuf \ + md_get_uio \ + +.include <bsd.kmod.mk> diff --git a/sys/modules/linprocfs/Makefile b/sys/modules/linprocfs/Makefile new file mode 100644 index 000000000000..e81a53f37785 --- /dev/null +++ b/sys/modules/linprocfs/Makefile @@ -0,0 +1,11 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../compat/linprocfs + +KMOD= linprocfs +SRCS= vnode_if.h \ + device_if.h bus_if.h \ + linprocfs.c \ + opt_compat.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/linsysfs/Makefile b/sys/modules/linsysfs/Makefile new file mode 100644 index 000000000000..084b82833c2e --- /dev/null +++ b/sys/modules/linsysfs/Makefile @@ -0,0 +1,11 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../compat/linsysfs + +KMOD= linsysfs +SRCS= vnode_if.h \ + device_if.h bus_if.h pci_if.h \ + linsysfs.c \ + opt_compat.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/linux/Makefile b/sys/modules/linux/Makefile new file mode 100644 index 000000000000..9bfef4152598 --- /dev/null +++ b/sys/modules/linux/Makefile @@ -0,0 +1,48 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../compat/linux ${.CURDIR}/../../${MACHINE_ARCH}/linux + +KMOD= linux +SRCS= linux_dummy.c linux_file.c linux_getcwd.c linux_ioctl.c linux_ipc.c \ + linux_machdep.c linux_mib.c linux_misc.c linux_signal.c linux_socket.c \ + linux_stats.c linux_sysctl.c linux_sysent.c linux_sysvec.c \ + linux_util.c opt_compat.h opt_inet6.h opt_mac.h \ + opt_vmpage.h vnode_if.h device_if.h bus_if.h +OBJS= linux_locore.o + +.if ${MACHINE_ARCH} == "i386" +SRCS+= linux_ptrace.c linux_uid16.c imgact_linux.c opt_cpu.h +.endif + +EXPORT_SYMS= +EXPORT_SYMS+= linux_emul_path +EXPORT_SYMS+= linux_get_osname +EXPORT_SYMS+= linux_get_osrelease +EXPORT_SYMS+= linux_ifname +EXPORT_SYMS+= linux_ioctl_register_handler +EXPORT_SYMS+= linux_ioctl_unregister_handler + +CLEANFILES= linux_assym.h linux_genassym.o + +linux_assym.h: linux_genassym.o +.if exists(@) +linux_assym.h: @/kern/genassym.sh +.endif + sh @/kern/genassym.sh linux_genassym.o > ${.TARGET} + +linux_locore.o: linux_locore.s linux_assym.h + ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ + ${.IMPSRC} -o ${.TARGET} + +linux_genassym.o: linux_genassym.c linux.h @ machine + ${CC} -c ${CFLAGS:N-fno-common} ${.IMPSRC} + +.if !defined(KERNBUILDDIR) +opt_compat.h: + echo "#define COMPAT_43 1" > opt_compat.h + +opt_inet6.h: + echo "#define INET6 1" > opt_inet6.h +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/lnc/Makefile b/sys/modules/lnc/Makefile new file mode 100644 index 000000000000..46225c349ebd --- /dev/null +++ b/sys/modules/lnc/Makefile @@ -0,0 +1,17 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/lnc + +KMOD= if_lnc +SRCS= if_lnc.c if_lnc_pci.c +.if ${MACHINE} == "pc98" +SRCS+= if_lnc_cbus.c +.else +SRCS+= if_lnc_isa.c +.endif +SRCS+= opt_inet.h device_if.h bus_if.h isa_if.h pci_if.h +#SRCS+= miibus_if.h + +CFLAGS+= -I${.CURDIR}/../../dev/lnc + +.include <bsd.kmod.mk> diff --git a/sys/modules/lpt/Makefile b/sys/modules/lpt/Makefile new file mode 100644 index 000000000000..b57960d572f4 --- /dev/null +++ b/sys/modules/lpt/Makefile @@ -0,0 +1,10 @@ + +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/ppbus +KMOD= lpt +SRCS= bus_if.h device_if.h ppbus_if.h \ + opt_lpt.h \ + lpt.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/mac_biba/Makefile b/sys/modules/mac_biba/Makefile new file mode 100644 index 000000000000..76ae8e8265ce --- /dev/null +++ b/sys/modules/mac_biba/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../security/mac_biba + +KMOD= mac_biba +SRCS= vnode_if.h \ + mac_biba.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/mac_bsdextended/Makefile b/sys/modules/mac_bsdextended/Makefile new file mode 100644 index 000000000000..93388fe03eb1 --- /dev/null +++ b/sys/modules/mac_bsdextended/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../security/mac_bsdextended + +KMOD= mac_bsdextended +SRCS= vnode_if.h \ + mac_bsdextended.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/mac_ifoff/Makefile b/sys/modules/mac_ifoff/Makefile new file mode 100644 index 000000000000..fc1a60037fc4 --- /dev/null +++ b/sys/modules/mac_ifoff/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../security/mac_ifoff + +KMOD= mac_ifoff +SRCS= vnode_if.h \ + mac_ifoff.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/mac_lomac/Makefile b/sys/modules/mac_lomac/Makefile new file mode 100644 index 000000000000..6216a578483c --- /dev/null +++ b/sys/modules/mac_lomac/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../security/mac_lomac + +KMOD= mac_lomac +SRCS= vnode_if.h \ + opt_mac.h \ + mac_lomac.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/mac_mls/Makefile b/sys/modules/mac_mls/Makefile new file mode 100644 index 000000000000..d4aa5cec7e30 --- /dev/null +++ b/sys/modules/mac_mls/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../security/mac_mls + +KMOD= mac_mls +SRCS= vnode_if.h \ + mac_mls.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/mac_none/Makefile b/sys/modules/mac_none/Makefile new file mode 100644 index 000000000000..b180f718794f --- /dev/null +++ b/sys/modules/mac_none/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../security/mac_none + +KMOD= mac_none +SRCS= vnode_if.h \ + mac_none.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/mac_partition/Makefile b/sys/modules/mac_partition/Makefile new file mode 100644 index 000000000000..b04d181777e5 --- /dev/null +++ b/sys/modules/mac_partition/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../security/mac_partition + +KMOD= mac_partition +SRCS= vnode_if.h \ + mac_partition.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/mac_portacl/Makefile b/sys/modules/mac_portacl/Makefile new file mode 100644 index 000000000000..f9bbe2355ef3 --- /dev/null +++ b/sys/modules/mac_portacl/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../security/mac_portacl + +KMOD= mac_portacl +SRCS= mac_portacl.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/mac_seeotheruids/Makefile b/sys/modules/mac_seeotheruids/Makefile new file mode 100644 index 000000000000..d27aefb947b9 --- /dev/null +++ b/sys/modules/mac_seeotheruids/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../security/mac_seeotheruids + +KMOD= mac_seeotheruids +SRCS= vnode_if.h \ + mac_seeotheruids.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/mac_stub/Makefile b/sys/modules/mac_stub/Makefile new file mode 100644 index 000000000000..3b98cb00e62d --- /dev/null +++ b/sys/modules/mac_stub/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../security/mac_stub + +KMOD= mac_stub +SRCS= vnode_if.h \ + mac_stub.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/mac_test/Makefile b/sys/modules/mac_test/Makefile new file mode 100644 index 000000000000..94b5aa87198f --- /dev/null +++ b/sys/modules/mac_test/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../security/mac_test + +KMOD= mac_test +SRCS= vnode_if.h \ + mac_test.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/mcd/Makefile b/sys/modules/mcd/Makefile new file mode 100644 index 000000000000..1602c0304c7f --- /dev/null +++ b/sys/modules/mcd/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/mcd + +KMOD= mcd +SRCS= mcd.c mcd_isa.c \ + bus_if.h device_if.h isa_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/md/Makefile b/sys/modules/md/Makefile new file mode 100644 index 000000000000..ac6932dda85f --- /dev/null +++ b/sys/modules/md/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/md + +KMOD= geom_md +SRCS= md.c opt_md.h opt_geom.h vnode_if.h +# create a link g_md.ko for backward compatibility +LINKS= ${KMODDIR}/geom_md.ko ${KMODDIR}/g_md.ko + +.include <bsd.kmod.mk> diff --git a/sys/modules/mem/Makefile b/sys/modules/mem/Makefile new file mode 100644 index 000000000000..b80ec3179dbd --- /dev/null +++ b/sys/modules/mem/Makefile @@ -0,0 +1,19 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/mem +.PATH: ${.CURDIR}/../../${MACHINE_ARCH}/${MACHINE_ARCH} + +KMOD= mem +SRCS= memdev.c mem.c +.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" +SRCS+= memutil.c +.endif +.if ${MACHINE_ARCH} == "i386" +SRCS+= i686_mem.c k6_mem.c +.endif +.if ${MACHINE_ARCH} == "amd64" +SRCS+= amd64_mem.c +.endif +SRCS+= bus_if.h device_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/mfi/Makefile b/sys/modules/mfi/Makefile new file mode 100644 index 000000000000..1adee89f006b --- /dev/null +++ b/sys/modules/mfi/Makefile @@ -0,0 +1,16 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/mfi + +.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64" +SUBDIR= mfi_linux +.endif + +KMOD= mfi +SRCS= mfi.c mfi_pci.c mfi_disk.c mfi_debug.c +SRCS+= opt_mfi.h +SRCS+= device_if.h bus_if.h pci_if.h + +#CFLAGS += -DMFI_DEBUG + +.include <bsd.kmod.mk> diff --git a/sys/modules/mfi/mfi_linux/Makefile b/sys/modules/mfi/mfi_linux/Makefile new file mode 100644 index 000000000000..cc33e7bd48da --- /dev/null +++ b/sys/modules/mfi/mfi_linux/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/mfi + +KMOD= mfi_linux +SRCS= mfi_linux.c device_if.h bus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/mii/Makefile b/sys/modules/mii/Makefile new file mode 100644 index 000000000000..47591a8f42f9 --- /dev/null +++ b/sys/modules/mii/Makefile @@ -0,0 +1,18 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/mii + +KMOD= miibus +SRCS= mii.c mii_physubr.c ukphy.c ukphy_subr.c bus_if.h pci_if.h +SRCS+= miibus_if.h miidevs.h device_if.h miibus_if.c e1000phy.c exphy.c nsphy.c +SRCS+= mlphy.c tlphy.c rlphy.c amphy.c dcphy.c pnphy.c inphy.c tdkphy.c +SRCS+= bmtphy.c brgphy.c xmphy.c pnaphy.c lxtphy.c qsphy.c acphy.c nsgphy.c +SRCS+= rgephy.c ruephy.c gentbi.c ip1000phy.c + +EXPORT_SYMS= mii_mediachg \ + mii_tick \ + mii_pollstat \ + mii_phy_probe \ + mii_phy_reset + +.include <bsd.kmod.mk> diff --git a/sys/modules/mlx/Makefile b/sys/modules/mlx/Makefile new file mode 100644 index 000000000000..ba0951ac4e67 --- /dev/null +++ b/sys/modules/mlx/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/mlx + +KMOD= mlx +SRCS= mlx.c mlx_pci.c mlx_disk.c device_if.h bus_if.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/mly/Makefile b/sys/modules/mly/Makefile new file mode 100644 index 000000000000..e8773def4b9a --- /dev/null +++ b/sys/modules/mly/Makefile @@ -0,0 +1,13 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/mly + +KMOD= mly +SRCS= mly.c +SRCS+= opt_scsi.h opt_cam.h +SRCS+= device_if.h bus_if.h pci_if.h + +#CFLAGS+= -DMLY_DEBUG=1 +CFLAGS+= -DMLY_MODULE + +.include <bsd.kmod.mk> diff --git a/sys/modules/mpt/Makefile b/sys/modules/mpt/Makefile new file mode 100644 index 000000000000..82f5e54f3209 --- /dev/null +++ b/sys/modules/mpt/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/mpt + +KMOD= mpt +SRCS= bus_if.h device_if.h pci_if.h \ + opt_cam.h opt_ddb.h \ + mpt.c mpt_cam.c mpt_debug.c mpt_pci.c mpt_raid.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/msdosfs/Makefile b/sys/modules/msdosfs/Makefile new file mode 100644 index 000000000000..cca7fa69d6f0 --- /dev/null +++ b/sys/modules/msdosfs/Makefile @@ -0,0 +1,11 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../fs/msdosfs + +KMOD= msdosfs +SRCS= opt_msdosfs.h vnode_if.h \ + msdosfs_conv.c msdosfs_denode.c msdosfs_fat.c msdosfs_lookup.c \ + msdosfs_vfsops.c msdosfs_vnops.c +EXPORT_SYMS= msdosfs_iconv + +.include <bsd.kmod.mk> diff --git a/sys/modules/msdosfs_iconv/Makefile b/sys/modules/msdosfs_iconv/Makefile new file mode 100644 index 000000000000..8d2e41da121e --- /dev/null +++ b/sys/modules/msdosfs_iconv/Makefile @@ -0,0 +1,7 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../fs/msdosfs +KMOD= msdosfs_iconv +SRCS= msdosfs_iconv.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/mse/Makefile b/sys/modules/mse/Makefile new file mode 100644 index 000000000000..4cc68c1f9c6d --- /dev/null +++ b/sys/modules/mse/Makefile @@ -0,0 +1,14 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/mse + +KMOD= mse +SRCS= mse.c device_if.h bus_if.h isa_if.h + +.if (${MACHINE} == "pc98") +SRCS+= mse_cbus.c +.else +SRCS+= mse_isa.c +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/my/Makefile b/sys/modules/my/Makefile new file mode 100644 index 000000000000..4b454a88722c --- /dev/null +++ b/sys/modules/my/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/my + +KMOD= if_my +SRCS= if_my.c device_if.h bus_if.h pci_if.h miibus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ncp/Makefile b/sys/modules/ncp/Makefile new file mode 100644 index 000000000000..fb9d9937c83c --- /dev/null +++ b/sys/modules/ncp/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../netncp + +KMOD= ncp + +SRCS= ncp_conn.c ncp_sock.c ncp_ncp.c ncp_subr.c ncp_crypt.c ncp_mod.c \ + ncp_rq.c ncp_login.c ncp_nls.c opt_ncp.h + +.if defined(NCPBURST) +SRCS+= ncp_burst.c +CFLAGS+= -DNCPBURST +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/ncv/Makefile b/sys/modules/ncv/Makefile new file mode 100644 index 000000000000..b1a273aae520 --- /dev/null +++ b/sys/modules/ncv/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/ncv + +KMOD= ncv +SRCS= ncr53c500_pccard.c ncr53c500.c +SRCS+= opt_bdg.h device_if.h bus_if.h pci_if.h isa_if.h card_if.h pccarddevs.h +SRCS+= opt_cam.h opt_scsi.h opt_ddb.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ndis/Makefile b/sys/modules/ndis/Makefile new file mode 100644 index 000000000000..688cf97e5db9 --- /dev/null +++ b/sys/modules/ndis/Makefile @@ -0,0 +1,18 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../compat/ndis + +KMOD= ndis +SRCS= subr_pe.c subr_ndis.c subr_hal.c subr_ntoskrnl.c kern_ndis.c +SRCS+= kern_windrv.c subr_usbd.c +SRCS+= opt_bdg.h device_if.h bus_if.h pci_if.h vnode_if.h + +.if ${MACHINE_ARCH} == "amd64" +SRCS+= winx64_wrap.S +.endif + +.if ${MACHINE_ARCH} == "i386" +SRCS+= winx32_wrap.S +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/Makefile b/sys/modules/netgraph/Makefile new file mode 100644 index 000000000000..41bdbff10e96 --- /dev/null +++ b/sys/modules/netgraph/Makefile @@ -0,0 +1,64 @@ +# $Whistle: Makefile,v 1.5 1999/01/24 06:48:37 archie Exp $ +# $FreeBSD$ + +SUBDIR= async \ + atm \ + atmllc \ + ${_bluetooth} \ + bpf \ + bridge \ + cisco \ + device \ + echo \ + eiface \ + etf \ + ether \ + fec \ + frame_relay \ + gif \ + gif_demux \ + hole \ + hub \ + iface \ + ip_input \ + ipfw \ + ksocket \ + l2tp \ + lmi \ + ${_mppc} \ + nat \ + netflow \ + netgraph \ + one2many \ + ppp \ + pppoe \ + pptpgre \ + rfc1490 \ + socket \ + source \ + split \ + sppp \ + ${_sync_ar} \ + ${_sync_sr} \ + tag \ + tcpmss \ + tee \ + tty \ + UI \ + vjc \ + vlan + +.if ${MACHINE_ARCH} == "i386" +_sync_ar= sync_ar +_sync_sr= sync_sr +.endif + +.if !defined(NO_BLUETOOTH) || defined(ALL_MODULES) +_bluetooth= bluetooth +.endif + +.if !defined(NO_CRYPT) && exists(${.CURDIR}/../../crypto/rc4/rc4.c) +_mppc= mppc +.endif + +.include <bsd.subdir.mk> diff --git a/sys/modules/netgraph/Makefile.inc b/sys/modules/netgraph/Makefile.inc new file mode 100644 index 000000000000..3d2fd195b5ce --- /dev/null +++ b/sys/modules/netgraph/Makefile.inc @@ -0,0 +1,8 @@ +# $FreeBSD$ +# $Whistle: Makefile.inc,v 1.4 1999/01/19 23:46:16 archie Exp $ + +.PATH: ${.CURDIR}/../../../netgraph + +SRCS+= opt_netgraph.h + +.include "../Makefile.inc" diff --git a/sys/modules/netgraph/UI/Makefile b/sys/modules/netgraph/UI/Makefile new file mode 100644 index 000000000000..413308c13812 --- /dev/null +++ b/sys/modules/netgraph/UI/Makefile @@ -0,0 +1,7 @@ +# $FreeBSD$ +# $Whistle: Makefile,v 1.2 1999/01/19 19:39:20 archie Exp $ + +KMOD= ng_UI +SRCS= ng_UI.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/async/Makefile b/sys/modules/netgraph/async/Makefile new file mode 100644 index 000000000000..921eabcf2727 --- /dev/null +++ b/sys/modules/netgraph/async/Makefile @@ -0,0 +1,7 @@ +# $FreeBSD$ +# $Whistle: Makefile,v 1.2 1999/01/19 19:39:20 archie Exp $ + +KMOD= ng_async +SRCS= ng_async.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/atm/Makefile b/sys/modules/netgraph/atm/Makefile new file mode 100644 index 000000000000..02de9774ffa7 --- /dev/null +++ b/sys/modules/netgraph/atm/Makefile @@ -0,0 +1,13 @@ +# $FreeBSD$ + +SUBDIR= \ + atm \ + atmbase \ + atmpif \ + ccatm \ + sscfu \ + sscop \ + uni + +.include <bsd.subdir.mk> + diff --git a/sys/modules/netgraph/atm/Makefile.inc b/sys/modules/netgraph/atm/Makefile.inc new file mode 100644 index 000000000000..265f86d1ed55 --- /dev/null +++ b/sys/modules/netgraph/atm/Makefile.inc @@ -0,0 +1,3 @@ +# $FreeBSD$ + +.include "../Makefile.inc" diff --git a/sys/modules/netgraph/atm/atm/Makefile b/sys/modules/netgraph/atm/atm/Makefile new file mode 100644 index 000000000000..ebd94e13f40e --- /dev/null +++ b/sys/modules/netgraph/atm/atm/Makefile @@ -0,0 +1,11 @@ +# $FreeBSD$ +# +# Author: Harti Brandt <harti@freebsd.org> +# +.PATH: ${.CURDIR}/../../../../netgraph/atm + +KMOD= ng_atm +SRCS= ng_atm.c +# CFLAGS+= -DNGATM_DEBUG + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/atm/atmbase/Makefile b/sys/modules/netgraph/atm/atmbase/Makefile new file mode 100644 index 000000000000..1ad4bb6b6079 --- /dev/null +++ b/sys/modules/netgraph/atm/atmbase/Makefile @@ -0,0 +1,18 @@ +# $FreeBSD$ +# +# Author: Harti Brandt <harti@freebsd.org> +# + +LIBBASE= ${.CURDIR}/../../../../contrib/ngatm + +.PATH: ${.CURDIR}/../../../../netgraph/atm +.PATH: ${LIBBASE}/netnatm/misc +.PATH: ${LIBBASE}/netnatm/msg + +KMOD= ngatmbase +SRCS= ngatmbase.c unimsg_common.c straddr.c \ + traffic.c uni_ie.c uni_msg.c + +CFLAGS+= -I${LIBBASE} # -DNGATM_DEBUG + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/atm/atmpif/Makefile b/sys/modules/netgraph/atm/atmpif/Makefile new file mode 100644 index 000000000000..324fbdfc922e --- /dev/null +++ b/sys/modules/netgraph/atm/atmpif/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ +# +# Author: Harti Brandt <harti@freebsd.org> +# +.PATH: ${.CURDIR}/../../../../netgraph/atm/atmpif + +KMOD= ng_atmpif +SRCS= ng_atmpif.c ng_atmpif_harp.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/atm/ccatm/Makefile b/sys/modules/netgraph/atm/ccatm/Makefile new file mode 100644 index 000000000000..562653611a2d --- /dev/null +++ b/sys/modules/netgraph/atm/ccatm/Makefile @@ -0,0 +1,17 @@ +# $FreeBSD$ +# +# Author: Harti Brandt <harti@freebsd.org> +# + +LIBBASE= ${.CURDIR}/../../../../contrib/ngatm + +.PATH: ${.CURDIR}/../../../../netgraph/atm/ccatm +.PATH: ${LIBBASE}/netnatm/api + +KMOD= ng_ccatm +SRCS= ng_ccatm.c cc_conn.c cc_data.c cc_dump.c cc_port.c cc_sig.c \ + cc_user.c unisap.c + +CFLAGS+= -I${LIBBASE} -I${LIBBASE}/netnatm/ccatm -DCCATM_DEBUG + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/atm/sscfu/Makefile b/sys/modules/netgraph/atm/sscfu/Makefile new file mode 100644 index 000000000000..278159f26797 --- /dev/null +++ b/sys/modules/netgraph/atm/sscfu/Makefile @@ -0,0 +1,14 @@ +# $FreeBSD$ +# +# Author: Harti Brandt <harti@freebsd.org> +# + +LIBBASE= ${.CURDIR}/../../../../contrib/ngatm + +.PATH: ${.CURDIR}/../../../../netgraph/atm/sscfu ${LIBBASE}/netnatm/saal + +KMOD= ng_sscfu +SRCS= ng_sscfu.c saal_sscfu.c +CFLAGS+= -I${LIBBASE} # -DSSCFU_DEBUG + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/atm/sscop/Makefile b/sys/modules/netgraph/atm/sscop/Makefile new file mode 100644 index 000000000000..b9334dd98ab3 --- /dev/null +++ b/sys/modules/netgraph/atm/sscop/Makefile @@ -0,0 +1,13 @@ +# $FreeBSD$ +# +# Author: Harti Brandt <harti@freebsd.org> + +LIBBASE= ${.CURDIR}/../../../../contrib/ngatm + +.PATH: ${.CURDIR}/../../../../netgraph/atm/sscop ${LIBBASE}/netnatm/saal + +KMOD= ng_sscop +SRCS= ng_sscop.c saal_sscop.c +CFLAGS+= -I${LIBBASE} # -DSSCOP_DEBUG + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/atm/uni/Makefile b/sys/modules/netgraph/atm/uni/Makefile new file mode 100644 index 000000000000..57c20b0265e3 --- /dev/null +++ b/sys/modules/netgraph/atm/uni/Makefile @@ -0,0 +1,17 @@ +# $FreeBSD$ +# +# Author: Harti Brandt <harti@freebsd.org> +# + +LIBBASE= ${.CURDIR}/../../../../contrib/ngatm + +.PATH: ${.CURDIR}/../../../../netgraph/atm/uni +.PATH: ${LIBBASE}/netnatm/sig + +KMOD= ng_uni +SRCS= ng_uni.c sig_call.c sig_uni.c sig_party.c sig_coord.c \ + sig_reset.c sig_verify.c sig_print.c sig_unimsgcpy.c + +CFLAGS+= -I${LIBBASE} -I${LIBBASE}/netnatm/sig # -DUNI_DEBUG + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/atmllc/Makefile b/sys/modules/netgraph/atmllc/Makefile new file mode 100644 index 000000000000..fd47b5c02958 --- /dev/null +++ b/sys/modules/netgraph/atmllc/Makefile @@ -0,0 +1,6 @@ +# $FreeBSD$ + +KMOD= ng_atmllc +SRCS= ng_atmllc.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/bluetooth/Makefile b/sys/modules/netgraph/bluetooth/Makefile new file mode 100644 index 000000000000..8fdd89643c97 --- /dev/null +++ b/sys/modules/netgraph/bluetooth/Makefile @@ -0,0 +1,15 @@ +# $Id: Makefile,v 1.2 2003/04/27 00:22:11 max Exp $ +# $FreeBSD$ + +SUBDIR= \ + bluetooth \ + hci \ + l2cap \ + socket \ + bt3c \ + h4 \ + ubt \ + ubtbcmfw + +.include <bsd.subdir.mk> + diff --git a/sys/modules/netgraph/bluetooth/Makefile.inc b/sys/modules/netgraph/bluetooth/Makefile.inc new file mode 100644 index 000000000000..265f86d1ed55 --- /dev/null +++ b/sys/modules/netgraph/bluetooth/Makefile.inc @@ -0,0 +1,3 @@ +# $FreeBSD$ + +.include "../Makefile.inc" diff --git a/sys/modules/netgraph/bluetooth/bluetooth/Makefile b/sys/modules/netgraph/bluetooth/bluetooth/Makefile new file mode 100644 index 000000000000..a3c951f6dfa3 --- /dev/null +++ b/sys/modules/netgraph/bluetooth/bluetooth/Makefile @@ -0,0 +1,12 @@ +# $Id: Makefile,v 1.1 2002/11/24 20:39:57 max Exp $ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../netgraph/bluetooth/common + +CFLAGS+= -I${.CURDIR}/../../../../netgraph/bluetooth/include + +KMOD= ng_bluetooth +SRCS= ng_bluetooth.c + +.include <bsd.kmod.mk> + diff --git a/sys/modules/netgraph/bluetooth/bt3c/Makefile b/sys/modules/netgraph/bluetooth/bt3c/Makefile new file mode 100644 index 000000000000..753400eddda5 --- /dev/null +++ b/sys/modules/netgraph/bluetooth/bt3c/Makefile @@ -0,0 +1,13 @@ +# $Id: Makefile,v 1.2 2002/11/24 20:50:56 max Exp $ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../netgraph/bluetooth/drivers/bt3c + +CFLAGS+= -I${.CURDIR}/../../../../netgraph/bluetooth/include \ + -I${.CURDIR}/../../../../netgraph/bluetooth/drivers/bt3c + +KMOD= ng_bt3c +SRCS= ng_bt3c_pccard.c bus_if.h card_if.h device_if.h pccarddevs.h + +.include <bsd.kmod.mk> + diff --git a/sys/modules/netgraph/bluetooth/h4/Makefile b/sys/modules/netgraph/bluetooth/h4/Makefile new file mode 100644 index 000000000000..849d899f490c --- /dev/null +++ b/sys/modules/netgraph/bluetooth/h4/Makefile @@ -0,0 +1,13 @@ +# $Id: Makefile,v 1.1 2002/11/24 20:40:04 max Exp $ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../netgraph/bluetooth/drivers/h4 + +CFLAGS+= -I${.CURDIR}/../../../../netgraph/bluetooth/include \ + -I${.CURDIR}/../../../../netgraph/bluetooth/drivers/h4 + +KMOD= ng_h4 +SRCS= ng_h4.c + +.include <bsd.kmod.mk> + diff --git a/sys/modules/netgraph/bluetooth/hci/Makefile b/sys/modules/netgraph/bluetooth/hci/Makefile new file mode 100644 index 000000000000..729ea7b5b234 --- /dev/null +++ b/sys/modules/netgraph/bluetooth/hci/Makefile @@ -0,0 +1,13 @@ +# $Id: Makefile,v 1.1 2002/11/24 20:40:05 max Exp $ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../netgraph/bluetooth/hci + +CFLAGS+= -I${.CURDIR}/../../../../netgraph/bluetooth/include \ + -I${.CURDIR}/../../../../netgraph/bluetooth/hci + +KMOD= ng_hci +SRCS= ng_hci_main.c ng_hci_cmds.c ng_hci_evnt.c \ + ng_hci_ulpi.c ng_hci_misc.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/bluetooth/l2cap/Makefile b/sys/modules/netgraph/bluetooth/l2cap/Makefile new file mode 100644 index 000000000000..5b66e0988f72 --- /dev/null +++ b/sys/modules/netgraph/bluetooth/l2cap/Makefile @@ -0,0 +1,13 @@ +# $Id: Makefile,v 1.1 2002/11/24 20:40:11 max Exp $ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../netgraph/bluetooth/l2cap + +CFLAGS+= -I${.CURDIR}/../../../../netgraph/bluetooth/include \ + -I${.CURDIR}/../../../../netgraph/bluetooth/l2cap + +KMOD= ng_l2cap +SRCS= ng_l2cap_main.c ng_l2cap_cmds.c ng_l2cap_evnt.c \ + ng_l2cap_ulpi.c ng_l2cap_llpi.c ng_l2cap_misc.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/bluetooth/socket/Makefile b/sys/modules/netgraph/bluetooth/socket/Makefile new file mode 100644 index 000000000000..5342c2aaba88 --- /dev/null +++ b/sys/modules/netgraph/bluetooth/socket/Makefile @@ -0,0 +1,15 @@ +# $Id: Makefile,v 1.2 2003/01/12 23:37:31 max Exp $ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../netgraph/bluetooth/socket + +CFLAGS+= -I${.CURDIR}/../../../../netgraph/bluetooth/include + +KMOD= ng_btsocket +SRCS= ng_btsocket.c \ + ng_btsocket_hci_raw.c \ + ng_btsocket_l2cap_raw.c \ + ng_btsocket_l2cap.c \ + ng_btsocket_rfcomm.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/bluetooth/ubt/Makefile b/sys/modules/netgraph/bluetooth/ubt/Makefile new file mode 100644 index 000000000000..c68961c80c33 --- /dev/null +++ b/sys/modules/netgraph/bluetooth/ubt/Makefile @@ -0,0 +1,13 @@ +# $Id: Makefile,v 1.2 2003/03/22 23:44:34 max Exp $ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../netgraph/bluetooth/drivers/ubt + +CFLAGS+= -I${.CURDIR}/../../../../netgraph/bluetooth/include \ + -I${.CURDIR}/../../../../netgraph/bluetooth/drivers/ubt + +KMOD= ng_ubt +SRCS= ng_ubt.c bus_if.h device_if.h opt_usb.h usbdevs.h + +.include <bsd.kmod.mk> + diff --git a/sys/modules/netgraph/bluetooth/ubtbcmfw/Makefile b/sys/modules/netgraph/bluetooth/ubtbcmfw/Makefile new file mode 100644 index 000000000000..908d2c361159 --- /dev/null +++ b/sys/modules/netgraph/bluetooth/ubtbcmfw/Makefile @@ -0,0 +1,13 @@ +# $Id: Makefile,v 1.1 2003/04/27 00:22:12 max Exp $ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../netgraph/bluetooth/drivers/ubtbcmfw + +CFLAGS+= -I${.CURDIR}/../../../../netgraph/bluetooth/include \ + -I${.CURDIR}/../../../../netgraph/bluetooth/drivers/ubtbcmfw + +KMOD= ubtbcmfw +SRCS= ubtbcmfw.c bus_if.h device_if.h opt_usb.h usbdevs.h + +.include <bsd.kmod.mk> + diff --git a/sys/modules/netgraph/bpf/Makefile b/sys/modules/netgraph/bpf/Makefile new file mode 100644 index 000000000000..0bde4f25e198 --- /dev/null +++ b/sys/modules/netgraph/bpf/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ +# $Whistle: Makefile,v 1.1 1999/12/03 01:44:28 archie Exp $ + +.PATH: ${.CURDIR}/../../../net + +KMOD= ng_bpf +SRCS= ng_bpf.c bpf_filter.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/bridge/Makefile b/sys/modules/netgraph/bridge/Makefile new file mode 100644 index 000000000000..318142900c91 --- /dev/null +++ b/sys/modules/netgraph/bridge/Makefile @@ -0,0 +1,6 @@ +# $FreeBSD$ + +KMOD= ng_bridge +SRCS= ng_bridge.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/cisco/Makefile b/sys/modules/netgraph/cisco/Makefile new file mode 100644 index 000000000000..2e3000dd3bf5 --- /dev/null +++ b/sys/modules/netgraph/cisco/Makefile @@ -0,0 +1,7 @@ +# $FreeBSD$ +# $Whistle: Makefile,v 1.2 1999/01/19 19:39:20 archie Exp $ + +KMOD= ng_cisco +SRCS= ng_cisco.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/device/Makefile b/sys/modules/netgraph/device/Makefile new file mode 100644 index 000000000000..92eaa9807ae3 --- /dev/null +++ b/sys/modules/netgraph/device/Makefile @@ -0,0 +1,7 @@ +# $FreeBSD$ +KMOD= ng_device +SRCS= ng_device.c + +SRCS+= device_if.h vnode_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/echo/Makefile b/sys/modules/netgraph/echo/Makefile new file mode 100644 index 000000000000..d7cce8d461ef --- /dev/null +++ b/sys/modules/netgraph/echo/Makefile @@ -0,0 +1,7 @@ +# $FreeBSD$ +# $Whistle: Makefile,v 1.2 1999/01/19 19:39:20 archie Exp $ + +KMOD= ng_echo +SRCS= ng_echo.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/eiface/Makefile b/sys/modules/netgraph/eiface/Makefile new file mode 100644 index 000000000000..6e8b800c8ec4 --- /dev/null +++ b/sys/modules/netgraph/eiface/Makefile @@ -0,0 +1,6 @@ +# $FreeBSD$ + +KMOD= ng_eiface +SRCS= ng_eiface.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/etf/Makefile b/sys/modules/netgraph/etf/Makefile new file mode 100644 index 000000000000..d807bc91c848 --- /dev/null +++ b/sys/modules/netgraph/etf/Makefile @@ -0,0 +1,7 @@ +# $FreeBSD$ +# Ethertype filter + +KMOD= ng_etf +SRCS= ng_etf.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/ether/Makefile b/sys/modules/netgraph/ether/Makefile new file mode 100644 index 000000000000..7a3950edae75 --- /dev/null +++ b/sys/modules/netgraph/ether/Makefile @@ -0,0 +1,6 @@ +# $FreeBSD$ + +KMOD= ng_ether +SRCS= ng_ether.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/fec/Makefile b/sys/modules/netgraph/fec/Makefile new file mode 100644 index 000000000000..1d437f58d869 --- /dev/null +++ b/sys/modules/netgraph/fec/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +KMOD= ng_fec +SRCS= ng_fec.c opt_inet.h opt_inet6.h + +CFLAGS += -DINET -DINET6 + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/frame_relay/Makefile b/sys/modules/netgraph/frame_relay/Makefile new file mode 100644 index 000000000000..81a2a96aeeb9 --- /dev/null +++ b/sys/modules/netgraph/frame_relay/Makefile @@ -0,0 +1,7 @@ +# $FreeBSD$ +# $Whistle: Makefile,v 1.1 1999/01/19 19:39:21 archie Exp $ + +KMOD= ng_frame_relay +SRCS= ng_frame_relay.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/gif/Makefile b/sys/modules/netgraph/gif/Makefile new file mode 100644 index 000000000000..acf4373f26bf --- /dev/null +++ b/sys/modules/netgraph/gif/Makefile @@ -0,0 +1,14 @@ +# $FreeBSD$ + +KMOD= ng_gif +SRCS= ng_gif.c opt_inet.h opt_inet6.h + +.if !defined(KERNBUILDDIR) +opt_inet.h: + echo "#define INET 1" > ${.TARGET} + +opt_inet6.h: + echo "#define INET6 1" > ${.TARGET} +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/gif_demux/Makefile b/sys/modules/netgraph/gif_demux/Makefile new file mode 100644 index 000000000000..56de5adf8ed0 --- /dev/null +++ b/sys/modules/netgraph/gif_demux/Makefile @@ -0,0 +1,6 @@ +# $FreeBSD$ + +KMOD= ng_gif_demux +SRCS= ng_gif_demux.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/hole/Makefile b/sys/modules/netgraph/hole/Makefile new file mode 100644 index 000000000000..c7502bfccf85 --- /dev/null +++ b/sys/modules/netgraph/hole/Makefile @@ -0,0 +1,7 @@ +# $FreeBSD$ +# $Whistle: Makefile,v 1.2 1999/01/19 19:39:21 archie Exp $ + +KMOD= ng_hole +SRCS= ng_hole.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/hub/Makefile b/sys/modules/netgraph/hub/Makefile new file mode 100644 index 000000000000..9ebb54de8f2c --- /dev/null +++ b/sys/modules/netgraph/hub/Makefile @@ -0,0 +1,6 @@ +# $FreeBSD$ + +KMOD= ng_hub +SRCS= ng_hub.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/iface/Makefile b/sys/modules/netgraph/iface/Makefile new file mode 100644 index 000000000000..2a6819bb709d --- /dev/null +++ b/sys/modules/netgraph/iface/Makefile @@ -0,0 +1,21 @@ +# $FreeBSD$ +# $Whistle: Makefile,v 1.2 1999/01/19 19:39:21 archie Exp $ + +KMOD= ng_iface +SRCS= ng_iface.c opt_atalk.h opt_inet.h opt_inet6.h opt_ipx.h + +.if !defined(KERNBUILDDIR) +opt_atalk.h: + echo "#define NETATALK 1" > ${.TARGET} + +opt_inet.h: + echo "#define INET 1" > ${.TARGET} + +opt_inet6.h: + echo "#define INET6 1" > ${.TARGET} + +opt_ipx.h: + echo "#define IPX 1" > ${.TARGET} +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/ip_input/Makefile b/sys/modules/netgraph/ip_input/Makefile new file mode 100644 index 000000000000..7a40c45c2dc8 --- /dev/null +++ b/sys/modules/netgraph/ip_input/Makefile @@ -0,0 +1,6 @@ +# $FreeBSD$ + +KMOD= ng_ip_input +SRCS= ng_ip_input.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/ipfw/Makefile b/sys/modules/netgraph/ipfw/Makefile new file mode 100644 index 000000000000..b40abcfbf57c --- /dev/null +++ b/sys/modules/netgraph/ipfw/Makefile @@ -0,0 +1,6 @@ +# $FreeBSD$ + +KMOD= ng_ipfw +SRCS= ng_ipfw.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/ksocket/Makefile b/sys/modules/netgraph/ksocket/Makefile new file mode 100644 index 000000000000..f8fd73f87568 --- /dev/null +++ b/sys/modules/netgraph/ksocket/Makefile @@ -0,0 +1,6 @@ +# $FreeBSD$ + +KMOD= ng_ksocket +SRCS= ng_ksocket.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/l2tp/Makefile b/sys/modules/netgraph/l2tp/Makefile new file mode 100644 index 000000000000..799437c4e70a --- /dev/null +++ b/sys/modules/netgraph/l2tp/Makefile @@ -0,0 +1,6 @@ +# $FreeBSD$ + +KMOD= ng_l2tp +SRCS= ng_l2tp.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/lmi/Makefile b/sys/modules/netgraph/lmi/Makefile new file mode 100644 index 000000000000..e1b08876d1b1 --- /dev/null +++ b/sys/modules/netgraph/lmi/Makefile @@ -0,0 +1,7 @@ +# $FreeBSD$ +# $Whistle: Makefile,v 1.1 1999/01/19 19:39:21 archie Exp $ + +KMOD= ng_lmi +SRCS= ng_lmi.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/mppc/Makefile b/sys/modules/netgraph/mppc/Makefile new file mode 100644 index 000000000000..40b3717136f4 --- /dev/null +++ b/sys/modules/netgraph/mppc/Makefile @@ -0,0 +1,32 @@ +# $Whistle: Makefile,v 1.1 1999/12/08 20:20:39 archie Exp $ +# $FreeBSD$ + +KMOD= ng_mppc +SRCS= ng_mppc.c opt_netgraph.h + +NETGRAPH_MPPC_COMPRESSION?= 0 +NETGRAPH_MPPC_ENCRYPTION?= 1 + +.if ${NETGRAPH_MPPC_COMPRESSION} > 0 +# XXX These files don't exist yet, but hopefully someday they will... +.PATH: ${.CURDIR}/../../../net +SRCS+= mppcc.c mppcd.c +.endif + +.if ${NETGRAPH_MPPC_ENCRYPTION} > 0 +.PATH: ${.CURDIR}/../../../crypto +SRCS+= sha1.c +.endif + +.if !defined(KERNBUILDDIR) +opt_netgraph.h: + :> ${.TARGET} +.if ${NETGRAPH_MPPC_COMPRESSION} > 0 + echo "#define NETGRAPH_MPPC_COMPRESSION 1" >> ${.TARGET} +.endif +.if ${NETGRAPH_MPPC_ENCRYPTION} > 0 + echo "#define NETGRAPH_MPPC_ENCRYPTION 1" >> ${.TARGET} +.endif +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/nat/Makefile b/sys/modules/netgraph/nat/Makefile new file mode 100644 index 000000000000..f51bbe0b139f --- /dev/null +++ b/sys/modules/netgraph/nat/Makefile @@ -0,0 +1,6 @@ +# $FreeBSD$ + +KMOD= ng_nat +SRCS= ng_nat.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/netflow/Makefile b/sys/modules/netgraph/netflow/Makefile new file mode 100644 index 000000000000..b1b9ba517f77 --- /dev/null +++ b/sys/modules/netgraph/netflow/Makefile @@ -0,0 +1,11 @@ +# $FreeBSD$ +# +# Author: Gleb Smirnoff <glebius@freebsd.org> +# + +.PATH: ${.CURDIR}/../../../netgraph/netflow + +KMOD= ng_netflow +SRCS= ng_netflow.c netflow.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/netgraph/Makefile b/sys/modules/netgraph/netgraph/Makefile new file mode 100644 index 000000000000..a34d6164c908 --- /dev/null +++ b/sys/modules/netgraph/netgraph/Makefile @@ -0,0 +1,7 @@ +# $FreeBSD$ +# $Whistle: Makefile,v 1.2 1999/01/19 19:39:22 archie Exp $ + +KMOD= netgraph +SRCS= ng_base.c ng_parse.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/one2many/Makefile b/sys/modules/netgraph/one2many/Makefile new file mode 100644 index 000000000000..74a0a6c6273e --- /dev/null +++ b/sys/modules/netgraph/one2many/Makefile @@ -0,0 +1,6 @@ +# $FreeBSD$ + +KMOD= ng_one2many +SRCS= ng_one2many.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/ppp/Makefile b/sys/modules/netgraph/ppp/Makefile new file mode 100644 index 000000000000..6ce720ab9587 --- /dev/null +++ b/sys/modules/netgraph/ppp/Makefile @@ -0,0 +1,7 @@ +# $FreeBSD$ +# $Whistle: Makefile,v 1.1 1999/01/24 02:52:12 archie Exp $ + +KMOD= ng_ppp +SRCS= ng_ppp.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/pppoe/Makefile b/sys/modules/netgraph/pppoe/Makefile new file mode 100644 index 000000000000..642dbdde2106 --- /dev/null +++ b/sys/modules/netgraph/pppoe/Makefile @@ -0,0 +1,7 @@ +# $FreeBSD$ +# $Whistle: Makefile,v 1.1 1999/01/19 19:39:21 archie Exp $ + +KMOD= ng_pppoe +SRCS= ng_pppoe.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/pptpgre/Makefile b/sys/modules/netgraph/pptpgre/Makefile new file mode 100644 index 000000000000..34cbbf6e2867 --- /dev/null +++ b/sys/modules/netgraph/pptpgre/Makefile @@ -0,0 +1,7 @@ +# $FreeBSD$ +# $Whistle: Makefile,v 1.1 1999/11/29 23:14:33 archie Exp $ + +KMOD= ng_pptpgre +SRCS= ng_pptpgre.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/rfc1490/Makefile b/sys/modules/netgraph/rfc1490/Makefile new file mode 100644 index 000000000000..6ba065345129 --- /dev/null +++ b/sys/modules/netgraph/rfc1490/Makefile @@ -0,0 +1,7 @@ +# $FreeBSD$ +# $Whistle: Makefile,v 1.2 1999/01/19 19:39:22 archie Exp $ + +KMOD= ng_rfc1490 +SRCS= ng_rfc1490.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/sample/Makefile b/sys/modules/netgraph/sample/Makefile new file mode 100644 index 000000000000..701752662ed5 --- /dev/null +++ b/sys/modules/netgraph/sample/Makefile @@ -0,0 +1,6 @@ +# $FreeBSD$ + +KMOD= ng_sample +SRCS= ng_sample.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/socket/Makefile b/sys/modules/netgraph/socket/Makefile new file mode 100644 index 000000000000..a44ba0ff6330 --- /dev/null +++ b/sys/modules/netgraph/socket/Makefile @@ -0,0 +1,7 @@ +# $FreeBSD$ +# $Whistle: Makefile,v 1.2 1999/01/19 19:39:22 archie Exp $ + +KMOD= ng_socket +SRCS= ng_socket.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/source/Makefile b/sys/modules/netgraph/source/Makefile new file mode 100644 index 000000000000..c70a6bb748f6 --- /dev/null +++ b/sys/modules/netgraph/source/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +KMOD= ng_source +SRCS= ng_source.c +# 4.x only +#KMODDEPS= netgraph + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/split/Makefile b/sys/modules/netgraph/split/Makefile new file mode 100644 index 000000000000..2eb4fa399b4a --- /dev/null +++ b/sys/modules/netgraph/split/Makefile @@ -0,0 +1,7 @@ +# $FreeBSD$ +# + +KMOD= ng_split +SRCS= ng_split.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/sppp/Makefile b/sys/modules/netgraph/sppp/Makefile new file mode 100644 index 000000000000..203e83e437ae --- /dev/null +++ b/sys/modules/netgraph/sppp/Makefile @@ -0,0 +1,7 @@ +# $FreeBSD$ +# Cronyx Id: ng_sppp.Makefile,v 1.1.2.1 2002/12/25 08:37:25 rik Exp $ + +KMOD= ng_sppp +SRCS= ng_sppp.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/sync_ar/Makefile b/sys/modules/netgraph/sync_ar/Makefile new file mode 100644 index 000000000000..11136c2a3bd7 --- /dev/null +++ b/sys/modules/netgraph/sync_ar/Makefile @@ -0,0 +1,13 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/ar +KMOD = ng_sync_ar +SRCS = if_ar.c if_ar_isa.c if_ar_pci.c +SRCS += device_if.h bus_if.h pci_if.h isa_if.h opt_netgraph.h + +.if !defined(KERNBUILDDIR) +opt_netgraph.h: + echo "#define NETGRAPH" > opt_netgraph.h +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/sync_sr/Makefile b/sys/modules/netgraph/sync_sr/Makefile new file mode 100644 index 000000000000..ae49a3a40bbc --- /dev/null +++ b/sys/modules/netgraph/sync_sr/Makefile @@ -0,0 +1,13 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/sr +KMOD = ng_sync_sr +SRCS = if_sr.c if_sr_isa.c if_sr_pci.c +SRCS += device_if.h bus_if.h pci_if.h isa_if.h opt_netgraph.h + +.if !defined(KERNBUILDDIR) +opt_netgraph.h: + echo "#define NETGRAPH" > opt_netgraph.h +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/tag/Makefile b/sys/modules/netgraph/tag/Makefile new file mode 100644 index 000000000000..3862c18518b6 --- /dev/null +++ b/sys/modules/netgraph/tag/Makefile @@ -0,0 +1,6 @@ +# $FreeBSD$ + +KMOD= ng_tag +SRCS= ng_tag.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/tcpmss/Makefile b/sys/modules/netgraph/tcpmss/Makefile new file mode 100644 index 000000000000..0379c88cec7d --- /dev/null +++ b/sys/modules/netgraph/tcpmss/Makefile @@ -0,0 +1,6 @@ +# $FreeBSD$ + +KMOD= ng_tcpmss +SRCS= ng_tcpmss.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/tee/Makefile b/sys/modules/netgraph/tee/Makefile new file mode 100644 index 000000000000..7d5115831a49 --- /dev/null +++ b/sys/modules/netgraph/tee/Makefile @@ -0,0 +1,7 @@ +# $FreeBSD$ +# $Whistle: Makefile,v 1.2 1999/01/19 19:39:22 archie Exp $ + +KMOD= ng_tee +SRCS= ng_tee.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/tty/Makefile b/sys/modules/netgraph/tty/Makefile new file mode 100644 index 000000000000..3f19a7cd4e41 --- /dev/null +++ b/sys/modules/netgraph/tty/Makefile @@ -0,0 +1,7 @@ +# $FreeBSD$ +# $Whistle: Makefile,v 1.2 1999/01/19 19:39:22 archie Exp $ + +KMOD= ng_tty +SRCS= ng_tty.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/vjc/Makefile b/sys/modules/netgraph/vjc/Makefile new file mode 100644 index 000000000000..4921ac953bb2 --- /dev/null +++ b/sys/modules/netgraph/vjc/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ +# $Whistle: Makefile,v 1.1 1999/01/24 06:48:07 archie Exp $ + +.PATH: ${.CURDIR}/../../../net + +KMOD= ng_vjc +SRCS= ng_vjc.c slcompress.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/vlan/Makefile b/sys/modules/netgraph/vlan/Makefile new file mode 100644 index 000000000000..e6cdf0dbbc16 --- /dev/null +++ b/sys/modules/netgraph/vlan/Makefile @@ -0,0 +1,6 @@ +# $FreeBSD$ + +KMOD= ng_vlan +SRCS= ng_vlan.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/nfs4client/Makefile b/sys/modules/nfs4client/Makefile new file mode 100644 index 000000000000..83c2017a8600 --- /dev/null +++ b/sys/modules/nfs4client/Makefile @@ -0,0 +1,37 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../nfsclient ${.CURDIR}/../../nfs4client \ + ${.CURDIR}/../../nfs ${.CURDIR}/../../rpc +KMOD= nfs4client +SRCS= vnode_if.h \ + nfs_bio.c nfs_lock.c nfs_node.c nfs_nfsiod.c \ + nfs_common.c \ + opt_inet.h opt_nfs.h opt_bootp.h opt_nfsroot.h \ + nfs4_dev.c nfs4_idmap.c nfs4_socket.c nfs4_subs.c \ + nfs4_vfs_subs.c nfs4_vfsops.c nfs4_vn_subs.c nfs4_vnops.c +SRCS+= opt_inet6.h + +# USE THE RPCCLNT: +CFLAGS+= -DRPCCLNT_DEBUG +SRCS+= rpcclnt.c + +# USE THE NEW IDMAPPER +CFLAGS+= -DUSE_NEW_IDMAPPER + +.if !defined(KERNBUILDDIR) +NFS_INET?= 1 # 0/1 - requires INET to be configured in kernel +NFS_INET6?= 1 # 0/1 - requires INET6 to be configured in kernel + +.if ${NFS_INET} > 0 +opt_inet.h: + echo "#define INET 1" > ${.TARGET} +.endif + +.if ${NFS_INET6} > 0 +opt_inet6.h: + echo "#define INET6 1" > ${.TARGET} +.endif +.endif + +.include <bsd.kmod.mk> + diff --git a/sys/modules/nfsclient/Makefile b/sys/modules/nfsclient/Makefile new file mode 100644 index 000000000000..4d1cddd5ac98 --- /dev/null +++ b/sys/modules/nfsclient/Makefile @@ -0,0 +1,55 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../nfsclient ${.CURDIR}/../../nfs4client \ + ${.CURDIR}/../../nfs ${.CURDIR}/../../rpc + +KMOD= nfsclient +SRCS= vnode_if.h \ + nfs_bio.c nfs_lock.c nfs_node.c nfs_socket.c nfs_subs.c nfs_nfsiod.c \ + nfs_vfsops.c nfs_vnops.c nfs_common.c \ + opt_inet.h opt_nfs.h opt_bootp.h opt_nfsroot.h +SRCS+= nfs4_dev.c nfs4_idmap.c nfs4_socket.c nfs4_subs.c \ + nfs4_vfs_subs.c nfs4_vfsops.c nfs4_vn_subs.c nfs4_vnops.c +SRCS+= opt_inet6.h + +# USE THE RPCCLNT: +CFLAGS+= -DRPCCLNT_DEBUG +SRCS+= rpcclnt.c + +# USE THE NEW IDMAPPER +CFLAGS+= -DUSE_NEW_IDMAPPER + +.if !defined(KERNBUILDDIR) +NFS_INET?= 1 # 0/1 - requires INET to be configured in kernel +NFS_INET6?= 1 # 0/1 - requires INET6 to be configured in kernel +NFS_ROOT?= 1 # 0/1 - requires NFS_ROOT to be configured in kernel + +.if ${NFS_INET} > 0 +opt_inet.h: + echo "#define INET 1" > ${.TARGET} +.endif + +.if ${NFS_INET6} > 0 +opt_inet6.h: + echo "#define INET6 1" > ${.TARGET} +.endif + +.if ${NFS_ROOT} > 0 +opt_nfsroot.h: + echo "#define NFS_ROOT 1" > ${.TARGET} +.endif +.else +OPT_NFS_ROOT!= cat ${KERNBUILDDIR}/opt_nfsroot.h +.if empty(OPT_NFS_ROOT) +NFS_ROOT= 0 +.else +NFS_ROOT= 1 +.endif +.endif + +.if ${NFS_ROOT} > 0 +SRCS+= nfs_diskless.c +.endif + +.include <bsd.kmod.mk> + diff --git a/sys/modules/nfsserver/Makefile b/sys/modules/nfsserver/Makefile new file mode 100644 index 000000000000..8e33c46cef31 --- /dev/null +++ b/sys/modules/nfsserver/Makefile @@ -0,0 +1,21 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../nfsserver ${.CURDIR}/../../nfs +KMOD= nfsserver +SRCS= vnode_if.h \ + nfs_serv.c nfs_srvsock.c nfs_srvcache.c nfs_srvsubs.c nfs_syscalls.c \ + nfs_common.c \ + opt_mac.h \ + opt_nfs.h +SRCS+= opt_inet6.h + +.if !defined(KERNBUILDDIR) +NFS_INET6?= 1 # 0/1 - requires INET6 to be configured in kernel + +.if ${NFS_INET6} > 0 +opt_inet6.h: + echo "#define INET6 1" > ${.TARGET} +.endif +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/nge/Makefile b/sys/modules/nge/Makefile new file mode 100644 index 000000000000..15dc9555e0df --- /dev/null +++ b/sys/modules/nge/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/nge + +KMOD= if_nge +SRCS= if_nge.c miibus_if.h opt_bdg.h device_if.h bus_if.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/nmdm/Makefile b/sys/modules/nmdm/Makefile new file mode 100644 index 000000000000..b788334869f0 --- /dev/null +++ b/sys/modules/nmdm/Makefile @@ -0,0 +1,17 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/nmdm + +KMOD= nmdm +SRCS= nmdm.c +SRCS+= opt_compat.h opt_tty.h vnode_if.h + +.if !defined(KERNBUILDDIR) +opt_compat.h: + echo "#define COMPAT_43 1" >opt_compat.h + +opt_tty.h: + echo "#define TTYHOG 8192" >opt_tty.h +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/nsp/Makefile b/sys/modules/nsp/Makefile new file mode 100644 index 000000000000..3cdc7051079f --- /dev/null +++ b/sys/modules/nsp/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/nsp + +KMOD= nsp +SRCS= nsp.c nsp_pccard.c +SRCS+= opt_bdg.h device_if.h bus_if.h pci_if.h isa_if.h card_if.h pccarddevs.h +SRCS+= opt_cam.h opt_scsi.h opt_ddb.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ntfs/Makefile b/sys/modules/ntfs/Makefile new file mode 100644 index 000000000000..367af98792d2 --- /dev/null +++ b/sys/modules/ntfs/Makefile @@ -0,0 +1,11 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../fs/ntfs + +KMOD= ntfs +SRCS= vnode_if.h \ + ntfs_vfsops.c ntfs_vnops.c ntfs_subr.c ntfs_ihash.c \ + ntfs_compr.c +EXPORT_SYMS= ntfs_iconv + +.include <bsd.kmod.mk> diff --git a/sys/modules/ntfs_iconv/Makefile b/sys/modules/ntfs_iconv/Makefile new file mode 100644 index 000000000000..33e6d42a155e --- /dev/null +++ b/sys/modules/ntfs_iconv/Makefile @@ -0,0 +1,7 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../fs/ntfs +KMOD= ntfs_iconv +SRCS= ntfs_iconv.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/nullfs/Makefile b/sys/modules/nullfs/Makefile new file mode 100644 index 000000000000..22cbf003afbd --- /dev/null +++ b/sys/modules/nullfs/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../fs/nullfs + +KMOD= nullfs +SRCS= vnode_if.h \ + null_subr.c null_vfsops.c null_vnops.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/nve/Makefile b/sys/modules/nve/Makefile new file mode 100644 index 000000000000..33d5c2d9f804 --- /dev/null +++ b/sys/modules/nve/Makefile @@ -0,0 +1,19 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/nve + +KMOD= if_nve +SRCS= if_nve.c if_nvereg.h miidevs.h \ + device_if.h bus_if.h pci_if.h miibus_if.h \ + os+%DIKED-nve.h +OBJS+= nvenetlib.o + +CLEANFILES+= nvenetlib.o os+%DIKED-nve.h +nvenetlib.o: ${.CURDIR}/../../contrib/dev/nve/${MACHINE}/${.TARGET}.bz2.uu + uudecode < ${.CURDIR}/../../contrib/dev/nve/${MACHINE}/${.TARGET}.bz2.uu + bzip2 -df ${.TARGET}.bz2 + +os+%DIKED-nve.h: ${.CURDIR}/../../contrib/dev/nve/os.h + sed -e 's/^.*#include.*phy\.h.*$$//' ${.OODATE} > ${.TARGET} + +.include <bsd.kmod.mk> diff --git a/sys/modules/nwfs/Makefile b/sys/modules/nwfs/Makefile new file mode 100644 index 000000000000..69349de44709 --- /dev/null +++ b/sys/modules/nwfs/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../fs/nwfs + +KMOD= nwfs + +SRCS= vnode_if.h \ + nwfs_node.c nwfs_ioctl.c nwfs_io.c nwfs_vfsops.c nwfs_vnops.c \ + nwfs_subr.c opt_vmpage.h + +.if defined(VNPRINT) +CFLAGS+= -DVNPRINT +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/oldcard/Makefile b/sys/modules/oldcard/Makefile new file mode 100644 index 000000000000..cbe92d776702 --- /dev/null +++ b/sys/modules/oldcard/Makefile @@ -0,0 +1,16 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../pccard ${.CURDIR}/../../pci + +KMOD= oldcard +SRCS= pccard.c pcic.c pccard_beep.c pccard_nbk.c pcic_pci.c pcic_isa.c \ + opt_pcic.h device_if.h bus_if.h isa_if.h pci_if.h \ + power_if.h card_if.h pccarddevs.h + +EXPORT_SYMS= YES # XXX evaluate + +.if ${MACHINE} == "pc98" +SRCS += mecia.c +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/oltr/Makefile b/sys/modules/oltr/Makefile new file mode 100644 index 000000000000..75c5cda04258 --- /dev/null +++ b/sys/modules/oltr/Makefile @@ -0,0 +1,14 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../contrib/dev/oltr +KMOD= if_oltr +SRCS= if_oltr.c trlldbm.c trlldhm.c trlldmac.c \ + device_if.h bus_if.h +SRCS+= if_oltr_isa.c isa_if.h +SRCS+= if_oltr_pci.c pci_if.h +OBJS+= trlld.o + +trlld.o: + uudecode < ${.CURDIR}/../../contrib/dev/oltr/i386-elf.trlld.o.uu + +.include <bsd.kmod.mk> diff --git a/sys/modules/osf1/Makefile b/sys/modules/osf1/Makefile new file mode 100644 index 000000000000..b03350ef4439 --- /dev/null +++ b/sys/modules/osf1/Makefile @@ -0,0 +1,16 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../alpha/osf1 + +KMOD= osf1 +SRCS= osf1_ioctl.c osf1_misc.c osf1_signal.c osf1_sysent.c \ + osf1_mount.c imgact_osf1.c osf1_sysvec.c opt_compat.h \ + opt_ddb.h opt_mac.h opt_nfs.h device_if.h bus_if.h \ + vnode_if.h + +.if !defined(KERNBUILDDIR) +opt_compat.h: + echo "#define COMPAT_43 1" > ${.TARGET} +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/owi/Makefile b/sys/modules/owi/Makefile new file mode 100644 index 000000000000..e3aef24de2c3 --- /dev/null +++ b/sys/modules/owi/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/owi + +KMOD= if_owi +SRCS= opt_wi.h if_owi.c if_owi_pccard.c \ + card_if.h device_if.h bus_if.h pci_if.h pccarddevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/padlock/Makefile b/sys/modules/padlock/Makefile new file mode 100644 index 000000000000..675d147cfe72 --- /dev/null +++ b/sys/modules/padlock/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../crypto/via + +KMOD= padlock +SRCS= padlock.c padlock_cipher.c padlock_hash.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/patm/Makefile b/sys/modules/patm/Makefile new file mode 100644 index 000000000000..7e33a36c0348 --- /dev/null +++ b/sys/modules/patm/Makefile @@ -0,0 +1,23 @@ +# $FreeBSD$ +# +# Author: Harti Brandt <harti@freebsd.org> +# +.PATH: ${.CURDIR}/../../dev/patm + +KMOD= if_patm +SRCS= if_patm.c if_patm_attach.c if_patm_ioctl.c if_patm_intr.c \ + if_patm_tx.c if_patm_rx.c if_patm_rtables.c \ + device_if.h bus_if.h pci_if.h opt_inet.h opt_natm.h + +CFLAGS+= -DENABLE_BPF +# CFLAGS+= -DPATM_DEBUG=0x0 -DINVARIANT_SUPPORT -DINVARIANTS -DDIAGNOSTIC + +.if !defined(KERNBUILDDIR) +opt_inet.h: + echo "#define INET 1" > opt_inet.h + +opt_natm.h: + echo "#define NATM 1" > opt_natm.h +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/pccard/Makefile b/sys/modules/pccard/Makefile new file mode 100644 index 000000000000..95bcf3fc344c --- /dev/null +++ b/sys/modules/pccard/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/pccard + +KMOD= pccard +SRCS= pccard.c pccard_cis.c pccard_cis_quirks.c pccard_device.c \ + device_if.h bus_if.h card_if.h power_if.h pccarddevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/pcfclock/Makefile b/sys/modules/pcfclock/Makefile new file mode 100644 index 000000000000..107a0674ba21 --- /dev/null +++ b/sys/modules/pcfclock/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/ppbus + +KMOD= pcfclock +SRCS= pcfclock.c opt_pcfclock.h +SRCS+= bus_if.h device_if.h ppbus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/pcn/Makefile b/sys/modules/pcn/Makefile new file mode 100644 index 000000000000..637692eb6ee9 --- /dev/null +++ b/sys/modules/pcn/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../pci + +KMOD= if_pcn +SRCS= if_pcn.c opt_bdg.h device_if.h bus_if.h pci_if.h +SRCS+= miibus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/pecoff/Makefile b/sys/modules/pecoff/Makefile new file mode 100644 index 000000000000..0f02f73bd94c --- /dev/null +++ b/sys/modules/pecoff/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../compat/pecoff + +KMOD= pecoff +SRCS= imgact_pecoff.c opt_pecoff.h vnode_if.h + +CFLAGS+= -DDEBUG + +.include <bsd.kmod.mk> diff --git a/sys/modules/pf/Makefile b/sys/modules/pf/Makefile new file mode 100644 index 000000000000..ca13a2e46be6 --- /dev/null +++ b/sys/modules/pf/Makefile @@ -0,0 +1,26 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../contrib/pf/net +.PATH: ${.CURDIR}/../../contrib/pf/netinet + +KMOD= pf +SRCS = pf.c pf_if.c pf_subr.c pf_osfp.c pf_ioctl.c pf_norm.c pf_table.c \ + in4_cksum.c \ + opt_pf.h opt_inet.h opt_inet6.h opt_bpf.h opt_mac.h + +CFLAGS+= -I${.CURDIR}/../../contrib/pf + +.if !defined(KERNBUILDDIR) +opt_inet.h: + echo "#define INET 1" > opt_inet.h + +.if !defined(NO_INET6) +opt_inet6.h: + echo "#define INET6 1" > opt_inet6.h +.endif + +opt_bpf.h: + echo "#define DEV_BPF 1" > opt_bpf.h +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/pflog/Makefile b/sys/modules/pflog/Makefile new file mode 100644 index 000000000000..f4a83df9708c --- /dev/null +++ b/sys/modules/pflog/Makefile @@ -0,0 +1,24 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../contrib/pf/net + +KMOD= pflog +SRCS = if_pflog.c \ + opt_pf.h opt_inet.h opt_inet6.h opt_bpf.h + +CFLAGS+= -I${.CURDIR}/../../contrib/pf + +.if !defined(KERNBUILDDIR) +opt_inet.h: + echo "#define INET 1" > opt_inet.h + +.if !defined(NO_INET6) +opt_inet6.h: + echo "#define INET6 1" > opt_inet6.h +.endif + +opt_bpf.h: + echo "#define DEV_BPF 1" > opt_bpf.h +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/plip/Makefile b/sys/modules/plip/Makefile new file mode 100644 index 000000000000..9aa5bd41c378 --- /dev/null +++ b/sys/modules/plip/Makefile @@ -0,0 +1,10 @@ + +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/ppbus +KMOD= plip +SRCS= bus_if.h device_if.h ppbus_if.h \ + opt_plip.h \ + if_plip.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/pmc/Makefile b/sys/modules/pmc/Makefile new file mode 100644 index 000000000000..60dd3503dfcd --- /dev/null +++ b/sys/modules/pmc/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../pc98/cbus + +KMOD= pmc +SRCS= pmc.c +SRCS+= bus_if.h device_if.h isa_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/portalfs/Makefile b/sys/modules/portalfs/Makefile new file mode 100644 index 000000000000..ef6955b5d141 --- /dev/null +++ b/sys/modules/portalfs/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../fs/portalfs + +KMOD= portalfs +SRCS= vnode_if.h \ + portal_vfsops.c portal_vnops.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/ppbus/Makefile b/sys/modules/ppbus/Makefile new file mode 100644 index 000000000000..1347e6482bcb --- /dev/null +++ b/sys/modules/ppbus/Makefile @@ -0,0 +1,22 @@ + +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/ppbus +KMOD= ppbus +SRCS= bus_if.h device_if.h ppbus_if.h ppbus_if.c \ + opt_ppb_1284.h \ + ppb_1284.c ppb_base.c ppb_msq.c ppbconf.c + +EXPORT_SYMS= ppb_attach_device \ + ppb_request_bus \ + ppb_release_bus \ + ppb_get_status \ + ppb_poll_bus \ + ppb_reset_epp_timeout \ + ppb_ecp_sync \ + ppb_get_epp_protocol \ + ppb_set_mode \ + ppb_get_mode \ + ppb_write + +.include <bsd.kmod.mk> diff --git a/sys/modules/ppc/Makefile b/sys/modules/ppc/Makefile new file mode 100644 index 000000000000..60297898357d --- /dev/null +++ b/sys/modules/ppc/Makefile @@ -0,0 +1,11 @@ +# $FreeBSD$ + +#.PATH: ${.CURDIR}/../../kern +.PATH: ${.CURDIR}/../../dev/ppc +.PATH: ${.CURDIR}/../../dev/ppbus + +KMOD= ppc +SRCS= bus_if.h ppbus_if.h opt_ppc.h device_if.h isa_if.h \ + ppc.c ppc_puc.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/ppi/Makefile b/sys/modules/ppi/Makefile new file mode 100644 index 000000000000..568fddfd4282 --- /dev/null +++ b/sys/modules/ppi/Makefile @@ -0,0 +1,10 @@ + +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/ppbus +KMOD= ppi +SRCS= bus_if.h device_if.h ppbus_if.h \ + opt_ppb_1284.h \ + ppi.c ppb_1284.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/pps/Makefile b/sys/modules/pps/Makefile new file mode 100644 index 000000000000..7e70bb2973ad --- /dev/null +++ b/sys/modules/pps/Makefile @@ -0,0 +1,9 @@ + +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/ppbus +KMOD= pps +SRCS= bus_if.h device_if.h ppbus_if.h \ + pps.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/procfs/Makefile b/sys/modules/procfs/Makefile new file mode 100644 index 000000000000..48a3e021f993 --- /dev/null +++ b/sys/modules/procfs/Makefile @@ -0,0 +1,41 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../fs/procfs + +KMOD= procfs +SRCS= +SRCS+= opt_compat.h +SRCS+= vnode_if.h +SRCS+= procfs_ctl.c +SRCS+= procfs_dbregs.c +SRCS+= procfs_fpregs.c +SRCS+= procfs_ioctl.c +SRCS+= procfs_map.c +SRCS+= procfs_mem.c +SRCS+= procfs_note.c +SRCS+= procfs_regs.c +SRCS+= procfs_rlimit.c +SRCS+= procfs_status.c +SRCS+= procfs_type.c +SRCS+= procfs.c + +EXPORT_SYMS= +EXPORT_SYMS+= procfs_attr +EXPORT_SYMS+= procfs_candebug +EXPORT_SYMS+= procfs_docurproc +EXPORT_SYMS+= procfs_doprocfile +EXPORT_SYMS+= procfs_doprocmem +EXPORT_SYMS+= procfs_notsystem + +.if !defined(KERNBUILDDIR) +opt_compat.h: + echo "#define COMPAT_43 1" > ${.TARGET} + echo "#define COMPAT_FREEBSD4 1" >> ${.TARGET} + echo "#define COMPAT_FREEBSD5 1" >> ${.TARGET} +.if ${MACHINE_ARCH} == "amd64" + echo "#define COMPAT_IA32 1" >> ${.TARGET} + echo "#define COMPAT_LINUX32 1" >> ${.TARGET} +.endif +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/pseudofs/Makefile b/sys/modules/pseudofs/Makefile new file mode 100644 index 000000000000..b04bffb0beaf --- /dev/null +++ b/sys/modules/pseudofs/Makefile @@ -0,0 +1,27 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../fs/pseudofs + +KMOD= pseudofs +SRCS= opt_mac.h \ + opt_pseudofs.h \ + vnode_if.h \ + pseudofs.c \ + pseudofs_fileno.c \ + pseudofs_vncache.c \ + pseudofs_vnops.c + +EXPORT_SYMS= pfs_mount \ + pfs_unmount \ + pfs_root \ + pfs_statfs \ + pfs_init \ + pfs_uninit \ + pfs_create_dir \ + pfs_create_file \ + pfs_create_link \ + pfs_disable \ + pfs_enable \ + pfs_destroy + +.include <bsd.kmod.mk> diff --git a/sys/modules/pst/Makefile b/sys/modules/pst/Makefile new file mode 100644 index 000000000000..46e552ddaf74 --- /dev/null +++ b/sys/modules/pst/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/pst + +KMOD= pst +SRCS= pst-pci.c pst-iop.c pst-raid.c +SRCS+= device_if.h bus_if.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/puc/Makefile b/sys/modules/puc/Makefile new file mode 100644 index 000000000000..b011db5117c9 --- /dev/null +++ b/sys/modules/puc/Makefile @@ -0,0 +1,10 @@ + +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/puc +KMOD= puc +SRCS= bus_if.h device_if.h pci_if.h card_if.h \ + puc.c puc_pci.c puc_pccard.c pucdata.c \ + opt_puc.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ral/Makefile b/sys/modules/ral/Makefile new file mode 100644 index 000000000000..002d1e87e616 --- /dev/null +++ b/sys/modules/ral/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/ral + +KMOD = if_ral +SRCS = if_ral.c if_ralrate.c if_ral_pccard.c if_ral_pci.c \ + opt_bdg.h device_if.h bus_if.h pci_if.h card_if.h pccarddevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/random/Makefile b/sys/modules/random/Makefile new file mode 100644 index 000000000000..37c4d829bc3b --- /dev/null +++ b/sys/modules/random/Makefile @@ -0,0 +1,18 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/random +.PATH: ${.CURDIR}/../../crypto/rijndael +.PATH: ${.CURDIR}/../../crypto/sha2 + +KMOD= random +SRCS= randomdev.c probe.c +.if ${MACHINE} == "i386" +SRCS+= nehemiah.c +.endif +SRCS+= randomdev_soft.c yarrow.c hash.c +SRCS+= rijndael-alg-fst.c rijndael-api-fst.c sha2.c +SRCS+= bus_if.h device_if.h vnode_if.h + +CFLAGS+= -I${.CURDIR}/../.. + +.include <bsd.kmod.mk> diff --git a/sys/modules/ray/Makefile b/sys/modules/ray/Makefile new file mode 100644 index 000000000000..84eb9d958568 --- /dev/null +++ b/sys/modules/ray/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/ray + +KMOD= if_ray +SRCS= if_ray.c +SRCS+= device_if.h bus_if.h card_if.h opt_inet.h pccarddevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/rc/Makefile b/sys/modules/rc/Makefile new file mode 100644 index 000000000000..cc8d22826a45 --- /dev/null +++ b/sys/modules/rc/Makefile @@ -0,0 +1,13 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/rc + +KMOD= rc +SRCS= rc.c device_if.h bus_if.h isa_if.h opt_tty.h + +.if !defined(KERNBUILDDIR) +opt_tty.h: + echo "#define TTYHOG 8192" >opt_tty.h +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/rc4/Makefile b/sys/modules/rc4/Makefile new file mode 100644 index 000000000000..95f609eac016 --- /dev/null +++ b/sys/modules/rc4/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../crypto/rc4 + +KMOD= rc4 +SRCS= rc4.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/re/Makefile b/sys/modules/re/Makefile new file mode 100644 index 000000000000..c28eb842c589 --- /dev/null +++ b/sys/modules/re/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/re + +KMOD= if_re +SRCS= if_re.c opt_bdg.h device_if.h bus_if.h pci_if.h +SRCS+= miibus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/reiserfs/Makefile b/sys/modules/reiserfs/Makefile new file mode 100644 index 000000000000..64d044039134 --- /dev/null +++ b/sys/modules/reiserfs/Makefile @@ -0,0 +1,11 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../gnu/fs/reiserfs +KMOD= reiserfs +SRCS= vnode_if.h \ + reiserfs_fs.h reiserfs_fs_i.h reiserfs_fs_sb.h reiserfs_hashes.c \ + reiserfs_inode.c reiserfs_item_ops.c reiserfs_mount.h \ + reiserfs_namei.c reiserfs_prints.c reiserfs_stree.c \ + reiserfs_vfsops.c reiserfs_vnops.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/rl/Makefile b/sys/modules/rl/Makefile new file mode 100644 index 000000000000..23a06a1daa61 --- /dev/null +++ b/sys/modules/rl/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../pci + +KMOD= if_rl +SRCS= if_rl.c opt_bdg.h device_if.h bus_if.h pci_if.h +SRCS+= miibus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/rndtest/Makefile b/sys/modules/rndtest/Makefile new file mode 100644 index 000000000000..f818704a861e --- /dev/null +++ b/sys/modules/rndtest/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/rndtest +KMOD = rndtest +SRCS = rndtest.c +SRCS += device_if.h bus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/rp/Makefile b/sys/modules/rp/Makefile new file mode 100644 index 000000000000..8c4c9d972bbc --- /dev/null +++ b/sys/modules/rp/Makefile @@ -0,0 +1,13 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/rp + +KMOD= rp +SRCS= rp.c rp_pci.c device_if.h bus_if.h pci_if.h opt_compat.h + +.if !defined(KERNBUILDDIR) +opt_compat.h: + echo "#define COMPAT_43 1" > opt_compat.h +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/rr232x/Makefile b/sys/modules/rr232x/Makefile new file mode 100644 index 000000000000..0321bf81b743 --- /dev/null +++ b/sys/modules/rr232x/Makefile @@ -0,0 +1,14 @@ +# $Id: Makefile.def,v 1.14 2006/04/06 09:23:49 gmm Exp $ +# $FreeBSD$ + +RR232X= ${.CURDIR}/../../dev/rr232x +.PATH: ${RR232X} + +KMOD = rr232x +SRCS = opt_scsi.h opt_cam.h bus_if.h device_if.h pci_if.h os_bsd.h os_bsd.c osm_bsd.c rr232x_config.c +OBJS = rr232x_lib.o + +rr232x_lib.o: + uudecode -p < ${RR232X}/$(MACHINE_ARCH)-elf.rr232x_lib.o.uu > ${.TARGET} + +.include <bsd.kmod.mk> diff --git a/sys/modules/rue/Makefile b/sys/modules/rue/Makefile new file mode 100644 index 000000000000..7e6175248335 --- /dev/null +++ b/sys/modules/rue/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +S= ${.CURDIR}/../.. +.PATH: $S/dev/usb + +KMOD= if_rue +SRCS= if_rue.c opt_bdg.h opt_usb.h device_if.h bus_if.h +SRCS+= miibus_if.h usbdevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/s3/Makefile b/sys/modules/s3/Makefile new file mode 100644 index 000000000000..c0babcbc3717 --- /dev/null +++ b/sys/modules/s3/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/fb + +KMOD= s3 +SRCS= device_if.h bus_if.h isa_if.h pci_if.h \ + s3_pci.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/safe/Makefile b/sys/modules/safe/Makefile new file mode 100644 index 000000000000..bd8c43c41596 --- /dev/null +++ b/sys/modules/safe/Makefile @@ -0,0 +1,40 @@ +#- +# Copyright (c) 2003 Sam Leffler, Errno Consulting +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND +# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. +# +# $FreeBSD$ +# + +.PATH: ${.CURDIR}/../../dev/safe +KMOD = safe +SRCS = safe.c opt_safe.h +SRCS += device_if.h bus_if.h pci_if.h +SRCS += opt_bdg.h opt_bus.h crypto_if.h + +.if !defined(KERNBUILDDIR) +opt_safe.h: + echo "#define SAFE_DEBUG 1" > opt_safe.h +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/sbni/Makefile b/sys/modules/sbni/Makefile new file mode 100644 index 000000000000..9dfab90f59ab --- /dev/null +++ b/sys/modules/sbni/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/sbni + +KMOD= if_sbni +SRCS= if_sbni.c if_sbni_isa.c if_sbni_pci.c + +SRCS+= bus_if.h device_if.h isa_if.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/sbsh/Makefile b/sys/modules/sbsh/Makefile new file mode 100644 index 000000000000..74569567c470 --- /dev/null +++ b/sys/modules/sbsh/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/sbsh + +KMOD= if_sbsh +SRCS= if_sbsh.c bus_if.h device_if.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/scd/Makefile b/sys/modules/scd/Makefile new file mode 100644 index 000000000000..4cf41456fa4e --- /dev/null +++ b/sys/modules/scd/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/scd + +KMOD= scd +SRCS= scd.c scd_isa.c +SRCS+= bus_if.h device_if.h isa_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/scsi_low/Makefile b/sys/modules/scsi_low/Makefile new file mode 100644 index 000000000000..d8e3cc36a7ce --- /dev/null +++ b/sys/modules/scsi_low/Makefile @@ -0,0 +1,28 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../cam/scsi +KMOD= scsi_low +SRCS= scsi_low.c scsi_low_pisa.c +SRCS+= opt_ddb.h opt_scsi.h opt_cam.h bus_if.h device_if.h + +EXPORT_SYMS= scsi_low_attach \ + scsi_low_dettach \ + scsi_low_is_busy \ + scsi_low_activate \ + scsi_low_deactivate \ + scsi_low_bus_idle \ + scsi_low_arbit_fail \ + scsi_low_arbit_win \ + scsi_low_msgout \ + scsi_low_msgin \ + scsi_low_statusin \ + scsi_low_data \ + scsi_low_data_finish \ + scsi_low_cmd \ + scsi_low_reselected \ + scsi_low_disconnected \ + scsi_low_restart \ + scsi_low_print \ + scsi_low_bus_reset + +.include <bsd.kmod.mk> diff --git a/sys/modules/sem/Makefile b/sys/modules/sem/Makefile new file mode 100644 index 000000000000..8b88444a995d --- /dev/null +++ b/sys/modules/sem/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../kern + +KMOD= sem +SRCS= uipc_sem.c opt_mac.h opt_posix.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/sf/Makefile b/sys/modules/sf/Makefile new file mode 100644 index 000000000000..1725f098267d --- /dev/null +++ b/sys/modules/sf/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../pci + +KMOD= if_sf +SRCS= if_sf.c opt_bdg.h device_if.h bus_if.h pci_if.h +SRCS+= miibus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/sio/Makefile b/sys/modules/sio/Makefile new file mode 100644 index 000000000000..59386e6b0efb --- /dev/null +++ b/sys/modules/sio/Makefile @@ -0,0 +1,29 @@ +# $FreeBSD$ + +.if ${MACHINE} == "pc98" +.PATH: ${.CURDIR}/../../pc98/cbus +.endif +.PATH: ${.CURDIR}/../../dev/sio + +KMOD= sio +SRCS= bus_if.h card_if.h device_if.h isa_if.h pci_if.h \ + opt_comconsole.h opt_compat.h opt_gdb.h opt_kdb.h opt_sio.h \ + sio.c sio_pccard.c sio_pci.c sio_puc.c pccarddevs.h +.if ${MACHINE} == "pc98" +SRCS+= sio_cbus.c +.else +SRCS+= sio_isa.c +.endif + +.if !defined(KERNBUILDDIR) +opt_compat.h: + echo "#define COMPAT_43 1" > ${.TARGET} + +.if ${MACHINE} == "pc98" +opt_sio.h: + echo "#define COM_MULTIPORT 1" > ${.TARGET} + echo "#define COM_ESP 1" >> ${.TARGET} +.endif +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/sis/Makefile b/sys/modules/sis/Makefile new file mode 100644 index 000000000000..8fa9ec46ed7e --- /dev/null +++ b/sys/modules/sis/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../pci + +KMOD= if_sis +SRCS= if_sis.c opt_bdg.h device_if.h bus_if.h pci_if.h +SRCS+= miibus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/sk/Makefile b/sys/modules/sk/Makefile new file mode 100644 index 000000000000..5737ae1d90bc --- /dev/null +++ b/sys/modules/sk/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/sk + +KMOD= if_sk +SRCS= if_sk.c opt_bdg.h device_if.h bus_if.h pci_if.h +SRCS+= miibus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/smbfs/Makefile b/sys/modules/smbfs/Makefile new file mode 100644 index 000000000000..4a0865bed59b --- /dev/null +++ b/sys/modules/smbfs/Makefile @@ -0,0 +1,54 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../crypto/des \ + ${.CURDIR}/../../crypto/des/arch/${MACHINE_ARCH} \ + ${.CURDIR}/../../kern \ + ${.CURDIR}/../../libkern \ + ${.CURDIR}/../../netsmb \ + ${.CURDIR}/../../fs/smbfs + +KMOD= smbfs + +SRCS= vnode_if.h \ + opt_inet.h opt_ipx.h \ + opt_netsmb.h opt_vmpage.h \ + iconv_converter_if.h \ + md4c.c \ + smb_conn.c smb_dev.c smb_trantcp.c smb_smb.c smb_subr.c smb_rq.c \ + smb_usr.c smb_crypt.c smb_iod.c \ + smbfs_vfsops.c smbfs_node.c smbfs_io.c smbfs_vnops.c \ + smbfs_subr.c smbfs_smb.c + +# NETSMBCRYPTO +SRCS+= des_ecb.c des_setkey.c +.if ${MACHINE_ARCH} == "i386" +SRCS+= des_enc.S +.else +SRCS+= des_enc.c +.endif + +# Build with IPX support (1|0) +SMB_IPX?= 0 + +# Build with INET support (1|0) +SMB_INET?= 1 + +CFLAGS+= ${KDEBUG} + +.if defined(VNPRINT) +CFLAGS+= -DVNPRINT +.endif + +.if !defined(KERNBUILDDIR) +.if ${SMB_INET} > 0 +opt_inet.h: + echo "#define INET 1" > ${.TARGET} +.endif + +.if ${SMB_IPX} > 0 +opt_ipx.h: + echo "#define IPX 1" > ${.TARGET} +.endif +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/sn/Makefile b/sys/modules/sn/Makefile new file mode 100644 index 000000000000..b248c757643c --- /dev/null +++ b/sys/modules/sn/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/sn + +KMOD= if_sn +SRCS= if_sn.c if_sn_isa.c if_sn_pccard.c device_if.h bus_if.h isa_if.h \ + card_if.h pccarddevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/snc/Makefile b/sys/modules/snc/Makefile new file mode 100644 index 000000000000..a40778182473 --- /dev/null +++ b/sys/modules/snc/Makefile @@ -0,0 +1,14 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/snc + +KMOD= if_snc +SRCS= if_snc.c if_snc_cbus.c if_snc_pccard.c dp83932.c dp83932subr.c +SRCS+= opt_inet.h opt_bdg.h device_if.h bus_if.h isa_if.h + +.if !defined(KERNBUILDDIR) +opt_inet.h: + echo "#define INET 1" > ${.TARGET} +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/snp/Makefile b/sys/modules/snp/Makefile new file mode 100644 index 000000000000..9cafd330e7b6 --- /dev/null +++ b/sys/modules/snp/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/snp + +KMOD= snp +SRCS= snp.c vnode_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/Makefile b/sys/modules/sound/Makefile new file mode 100644 index 000000000000..d6867331eb67 --- /dev/null +++ b/sys/modules/sound/Makefile @@ -0,0 +1,7 @@ +# $FreeBSD$ + +SUBDIR = +SUBDIR += sound +SUBDIR += driver + +.include <bsd.subdir.mk> diff --git a/sys/modules/sound/Makefile.inc b/sys/modules/sound/Makefile.inc new file mode 100644 index 000000000000..265f86d1ed55 --- /dev/null +++ b/sys/modules/sound/Makefile.inc @@ -0,0 +1,3 @@ +# $FreeBSD$ + +.include "../Makefile.inc" diff --git a/sys/modules/sound/driver/Makefile b/sys/modules/sound/driver/Makefile new file mode 100644 index 000000000000..096acf6f85a6 --- /dev/null +++ b/sys/modules/sound/driver/Makefile @@ -0,0 +1,12 @@ +# $FreeBSD$ + +.if ${MACHINE_ARCH} == "sparc64" +SUBDIR = audiocs es137x +.else +SUBDIR = als4000 ad1816 atiixp cmi cs4281 csa ds1 emu10k1 es137x ess +SUBDIR += fm801 ich maestro maestro3 mss neomagic sb16 sb8 sbc solo +SUBDIR += t4dwave via8233 via82c686 vibes +SUBDIR += driver uaudio +.endif + +.include <bsd.subdir.mk> diff --git a/sys/modules/sound/driver/Makefile.inc b/sys/modules/sound/driver/Makefile.inc new file mode 100644 index 000000000000..63bf7601dc36 --- /dev/null +++ b/sys/modules/sound/driver/Makefile.inc @@ -0,0 +1,5 @@ +# $FreeBSD$ + +SRCS+= ac97_if.h channel_if.h feeder_if.h mixer_if.h + +.include "../Makefile.inc" diff --git a/sys/modules/sound/driver/ad1816/Makefile b/sys/modules/sound/driver/ad1816/Makefile new file mode 100644 index 000000000000..9c7fa9ec5d85 --- /dev/null +++ b/sys/modules/sound/driver/ad1816/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../dev/sound/isa + +KMOD= snd_ad1816 +SRCS= device_if.h bus_if.h isa_if.h pci_if.h +SRCS+= ad1816.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/als4000/Makefile b/sys/modules/sound/driver/als4000/Makefile new file mode 100644 index 000000000000..59dc73ac05bd --- /dev/null +++ b/sys/modules/sound/driver/als4000/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../dev/sound/pci + +KMOD= snd_als4000 +SRCS= device_if.h bus_if.h pci_if.h +SRCS+= als4000.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/atiixp/Makefile b/sys/modules/sound/driver/atiixp/Makefile new file mode 100644 index 000000000000..db49eb2bf155 --- /dev/null +++ b/sys/modules/sound/driver/atiixp/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../dev/sound/pci + +KMOD= snd_atiixp +SRCS= device_if.h bus_if.h pci_if.h +SRCS+= atiixp.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/au88x0/Makefile b/sys/modules/sound/driver/au88x0/Makefile new file mode 100644 index 000000000000..b00a90f47309 --- /dev/null +++ b/sys/modules/sound/driver/au88x0/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../dev/sound/pci + +KMOD= snd_au88x0 +SRCS= device_if.h bus_if.h pci_if.h +SRCS+= au88x0.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/audiocs/Makefile b/sys/modules/sound/driver/audiocs/Makefile new file mode 100644 index 000000000000..ff67554f9e1f --- /dev/null +++ b/sys/modules/sound/driver/audiocs/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../dev/sound/sbus + +KMOD= snd_audiocs +SRCS= device_if.h bus_if.h ofw_bus_if.h +SRCS+= channel_if.h feeder_if.h mixer_if.h +SRCS+= cs4231.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/cmi/Makefile b/sys/modules/sound/driver/cmi/Makefile new file mode 100644 index 000000000000..85f9ba160b98 --- /dev/null +++ b/sys/modules/sound/driver/cmi/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../dev/sound/pci + +KMOD= snd_cmi +SRCS= device_if.h bus_if.h pci_if.h +SRCS+= cmi.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/cs4281/Makefile b/sys/modules/sound/driver/cs4281/Makefile new file mode 100644 index 000000000000..ed3ddbc1574b --- /dev/null +++ b/sys/modules/sound/driver/cs4281/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../dev/sound/pci + +KMOD= snd_cs4281 +SRCS= device_if.h bus_if.h pci_if.h +SRCS+= cs4281.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/csa/Makefile b/sys/modules/sound/driver/csa/Makefile new file mode 100644 index 000000000000..521005e143e2 --- /dev/null +++ b/sys/modules/sound/driver/csa/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../dev/sound/pci + +KMOD= snd_csa +SRCS= device_if.h bus_if.h pci_if.h +SRCS+= csa.c csapcm.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/driver/Makefile b/sys/modules/sound/driver/driver/Makefile new file mode 100644 index 000000000000..56a8461e3e6f --- /dev/null +++ b/sys/modules/sound/driver/driver/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../dev/sound + +KMOD= snd_driver +SRCS= device_if.h bus_if.h +SRCS+= driver.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/ds1/Makefile b/sys/modules/sound/driver/ds1/Makefile new file mode 100644 index 000000000000..c8f90ec781d6 --- /dev/null +++ b/sys/modules/sound/driver/ds1/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../dev/sound/pci + +KMOD= snd_ds1 +SRCS= device_if.h bus_if.h pci_if.h +SRCS+= ds1.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/emu10k1/Makefile b/sys/modules/sound/driver/emu10k1/Makefile new file mode 100644 index 000000000000..3d9984c5840a --- /dev/null +++ b/sys/modules/sound/driver/emu10k1/Makefile @@ -0,0 +1,18 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../dev/sound/pci \ + ${.CURDIR}/../../../../gnu/dev/sound/pci + +KMOD= snd_emu10k1 +SRCS= device_if.h bus_if.h pci_if.h emu10k1-alsa%diked.h +SRCS+= emu10k1.c + +CLEANFILES+= emu10k1-alsa%diked.h + +emu10k1-alsa%diked.h: emu10k1-alsa.h + grep -v '#include' ${.OODATE} | $(CC) -E -D__KERNEL__ -dM - \ + | awk -F"[ (]" '/define/ \ + { print "#ifndef " $$2 ; print ; print "#endif" }' \ + >${.TARGET} + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/es137x/Makefile b/sys/modules/sound/driver/es137x/Makefile new file mode 100644 index 000000000000..d2a2d58cc343 --- /dev/null +++ b/sys/modules/sound/driver/es137x/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../dev/sound/pci + +KMOD= snd_es137x +SRCS= device_if.h bus_if.h pci_if.h +SRCS+= es137x.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/ess/Makefile b/sys/modules/sound/driver/ess/Makefile new file mode 100644 index 000000000000..4c8da8165809 --- /dev/null +++ b/sys/modules/sound/driver/ess/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../dev/sound/isa + +KMOD= snd_ess +SRCS= device_if.h bus_if.h isa_if.h pci_if.h +SRCS+= ess.c es1888.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/fm801/Makefile b/sys/modules/sound/driver/fm801/Makefile new file mode 100644 index 000000000000..a8ed6bd95ee4 --- /dev/null +++ b/sys/modules/sound/driver/fm801/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../dev/sound/pci + +KMOD= snd_fm801 +SRCS= device_if.h bus_if.h pci_if.h +SRCS+= fm801.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/ich/Makefile b/sys/modules/sound/driver/ich/Makefile new file mode 100755 index 000000000000..e0f2ce7e3626 --- /dev/null +++ b/sys/modules/sound/driver/ich/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../dev/sound/pci +KMOD = snd_ich +SRCS = device_if.h bus_if.h pci_if.h +SRCS += ich.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/maestro/Makefile b/sys/modules/sound/driver/maestro/Makefile new file mode 100644 index 000000000000..817097d7aab6 --- /dev/null +++ b/sys/modules/sound/driver/maestro/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../dev/sound/pci + +KMOD= snd_maestro +SRCS= device_if.h bus_if.h pci_if.h +SRCS+= maestro.c +WERROR= + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/maestro3/Makefile b/sys/modules/sound/driver/maestro3/Makefile new file mode 100644 index 000000000000..d4378b8b790a --- /dev/null +++ b/sys/modules/sound/driver/maestro3/Makefile @@ -0,0 +1,11 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../dev/sound/pci + +KMOD= snd_maestro3 +SRCS= device_if.h bus_if.h pci_if.h +SRCS+= maestro3.c + +CFLAGS+= -Wall -DM3_DEBUG_LEVEL=-1 + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/mss/Makefile b/sys/modules/sound/driver/mss/Makefile new file mode 100644 index 000000000000..44880788998b --- /dev/null +++ b/sys/modules/sound/driver/mss/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../dev/sound/isa + +KMOD= snd_mss +SRCS= device_if.h bus_if.h isa_if.h pci_if.h +SRCS+= mss.c gusc.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/neomagic/Makefile b/sys/modules/sound/driver/neomagic/Makefile new file mode 100644 index 000000000000..9eabb5ccaf99 --- /dev/null +++ b/sys/modules/sound/driver/neomagic/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../dev/sound/pci + +KMOD= snd_neomagic +SRCS= device_if.h bus_if.h pci_if.h +SRCS+= neomagic.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/sb16/Makefile b/sys/modules/sound/driver/sb16/Makefile new file mode 100644 index 000000000000..bf009f7035b8 --- /dev/null +++ b/sys/modules/sound/driver/sb16/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../dev/sound/isa + +KMOD= snd_sb16 +SRCS= device_if.h bus_if.h isa_if.h pci_if.h +SRCS+= sb16.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/sb8/Makefile b/sys/modules/sound/driver/sb8/Makefile new file mode 100644 index 000000000000..f2b0da834c7a --- /dev/null +++ b/sys/modules/sound/driver/sb8/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../dev/sound/isa + +KMOD= snd_sb8 +SRCS= device_if.h bus_if.h isa_if.h pci_if.h +SRCS+= sb8.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/sbc/Makefile b/sys/modules/sound/driver/sbc/Makefile new file mode 100644 index 000000000000..8e2343df2663 --- /dev/null +++ b/sys/modules/sound/driver/sbc/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../dev/sound/isa + +KMOD= snd_sbc +SRCS= device_if.h bus_if.h isa_if.h pci_if.h +SRCS+= sbc.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/solo/Makefile b/sys/modules/sound/driver/solo/Makefile new file mode 100644 index 000000000000..01059faf3536 --- /dev/null +++ b/sys/modules/sound/driver/solo/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../dev/sound/pci + +KMOD= snd_solo +SRCS= device_if.h bus_if.h pci_if.h +SRCS+= solo.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/t4dwave/Makefile b/sys/modules/sound/driver/t4dwave/Makefile new file mode 100644 index 000000000000..7cd91402f49e --- /dev/null +++ b/sys/modules/sound/driver/t4dwave/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../dev/sound/pci + +KMOD= snd_t4dwave +SRCS= device_if.h bus_if.h pci_if.h +SRCS+= t4dwave.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/uaudio/Makefile b/sys/modules/sound/driver/uaudio/Makefile new file mode 100644 index 000000000000..ff92551bb61e --- /dev/null +++ b/sys/modules/sound/driver/uaudio/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../dev/sound/usb + +KMOD= snd_uaudio +SRCS= device_if.h bus_if.h opt_usb.h +SRCS+= uaudio.c uaudio_pcm.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/via8233/Makefile b/sys/modules/sound/driver/via8233/Makefile new file mode 100644 index 000000000000..fa3fd960185c --- /dev/null +++ b/sys/modules/sound/driver/via8233/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../dev/sound/pci + +KMOD= snd_via8233 +SRCS= device_if.h bus_if.h pci_if.h +SRCS+= via8233.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/via82c686/Makefile b/sys/modules/sound/driver/via82c686/Makefile new file mode 100644 index 000000000000..d53576ce9fce --- /dev/null +++ b/sys/modules/sound/driver/via82c686/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../dev/sound/pci + +KMOD= snd_via82c686 +SRCS= device_if.h bus_if.h pci_if.h +SRCS+= via82c686.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/vibes/Makefile b/sys/modules/sound/driver/vibes/Makefile new file mode 100644 index 000000000000..663d8a00969c --- /dev/null +++ b/sys/modules/sound/driver/vibes/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../dev/sound/pci + +KMOD= snd_vibes +SRCS= device_if.h bus_if.h pci_if.h +SRCS+= vibes.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/sound/Makefile b/sys/modules/sound/sound/Makefile new file mode 100644 index 000000000000..0f20ebd4f5e1 --- /dev/null +++ b/sys/modules/sound/sound/Makefile @@ -0,0 +1,29 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/sound/pcm +.PATH: ${.CURDIR}/../../../dev/sound/isa + +KMOD= sound +SRCS= device_if.h bus_if.h isa_if.h pci_if.h opt_isa.h +SRCS+= ac97_if.h channel_if.h feeder_if.h mixer_if.h +SRCS+= ac97_if.c channel_if.c feeder_if.c mixer_if.c +SRCS+= ac97.c ac97_patch.c buffer.c channel.c dsp.c +SRCS+= fake.c feeder.c feeder_fmt.c feeder_rate.c feeder_volume.c +SRCS+= mixer.c sndstat.c sound.c vchan.c + +EXPORT_SYMS= YES # XXX evaluate + +.if ${MACHINE_ARCH} == "sparc64" +# Create an empty opt_isa.h in order to keep kmod.mk from linking in an +# existing one from KERNBUILDDIR which possibly has DEV_ISA defined so +# sound.ko is always built without isadma support. +opt_isa.h: + :> ${.TARGET} +.else +SRCS+= sndbuf_dma.c + +opt_isa.h: + echo "#define DEV_ISA 1" > ${.TARGET} +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/speaker/Makefile b/sys/modules/speaker/Makefile new file mode 100644 index 000000000000..1a4c5ac163a4 --- /dev/null +++ b/sys/modules/speaker/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/speaker + +KMOD= speaker +SRCS= spkr.c +SRCS+= bus_if.h device_if.h isa_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/splash/Makefile b/sys/modules/splash/Makefile new file mode 100644 index 000000000000..1c634bf4bf98 --- /dev/null +++ b/sys/modules/splash/Makefile @@ -0,0 +1,5 @@ +# $FreeBSD$ + +SUBDIR= bmp pcx + +.include <bsd.subdir.mk> diff --git a/sys/modules/splash/Makefile.inc b/sys/modules/splash/Makefile.inc new file mode 100644 index 000000000000..265f86d1ed55 --- /dev/null +++ b/sys/modules/splash/Makefile.inc @@ -0,0 +1,3 @@ +# $FreeBSD$ + +.include "../Makefile.inc" diff --git a/sys/modules/splash/bmp/Makefile b/sys/modules/splash/bmp/Makefile new file mode 100644 index 000000000000..a169fdfec21a --- /dev/null +++ b/sys/modules/splash/bmp/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/fb + +KMOD= splash_bmp +SRCS= splash_bmp.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/splash/pcx/Makefile b/sys/modules/splash/pcx/Makefile new file mode 100644 index 000000000000..188dafcd0f02 --- /dev/null +++ b/sys/modules/splash/pcx/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/fb + +KMOD= splash_pcx +SRCS= splash_pcx.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sppp/Makefile b/sys/modules/sppp/Makefile new file mode 100644 index 000000000000..0976210a21a3 --- /dev/null +++ b/sys/modules/sppp/Makefile @@ -0,0 +1,29 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../net + +KMOD= sppp +SRCS= if_spppfr.c if_spppsubr.c slcompress.c +SRCS+= opt_inet.h opt_inet6.h opt_ipx.h + +EXPORT_SYMS= sppp_attach \ + sppp_detach \ + sppp_input \ + sppp_ioctl \ + sppp_dequeue \ + sppp_pick \ + sppp_isempty \ + sppp_flush + +.if !defined(KERNBUILDDIR) +opt_inet.h: + echo "#define INET 1" > opt_inet.h + +opt_inet6.h: + echo "#define INET6 1" > opt_inet6.h + +opt_ipx.h: + echo "#define IPX 1" > opt_ipx.h +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/sr/Makefile b/sys/modules/sr/Makefile new file mode 100644 index 000000000000..22bfc4bb5483 --- /dev/null +++ b/sys/modules/sr/Makefile @@ -0,0 +1,17 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/sr +KMOD = if_sr +SRCS = if_sr.c if_sr_isa.c if_sr_pci.c +SRCS += device_if.h bus_if.h pci_if.h isa_if.h opt_netgraph.h + +.if !defined(KERNBUILDDIR) +NETGRAPH?= 0 + +.if ${NETGRAPH} != 0 +opt_netgraph.h: + echo "#define NETGRAPH ${NETGRAPH}" > opt_netgraph.h +.endif +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/ste/Makefile b/sys/modules/ste/Makefile new file mode 100644 index 000000000000..6ad69a8f2705 --- /dev/null +++ b/sys/modules/ste/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../pci + +KMOD= if_ste +SRCS= if_ste.c opt_bdg.h device_if.h bus_if.h pci_if.h +SRCS+= miibus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/stg/Makefile b/sys/modules/stg/Makefile new file mode 100644 index 000000000000..83362d3e9a35 --- /dev/null +++ b/sys/modules/stg/Makefile @@ -0,0 +1,13 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/stg + +KMOD= stg +SRCS= tmc18c30.c tmc18c30_subr.c \ + tmc18c30_isa.c isa_if.h \ + tmc18c30_pccard.c card_if.h pccarddevs.h \ + tmc18c30_pci.c pci_if.h +SRCS+= opt_bdg.h device_if.h bus_if.h +SRCS+= opt_cam.h opt_scsi.h opt_ddb.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/stge/Makefile b/sys/modules/stge/Makefile new file mode 100644 index 000000000000..721a42da83e8 --- /dev/null +++ b/sys/modules/stge/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/stge + +KMOD= if_stge +SRCS= if_stge.c device_if.h bus_if.h pci_if.h +SRCS+= miibus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/streams/Makefile b/sys/modules/streams/Makefile new file mode 100644 index 000000000000..cbffdeec5d85 --- /dev/null +++ b/sys/modules/streams/Makefile @@ -0,0 +1,17 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/streams + +KMOD= streams +SRCS= streams.c + +EXPORT_SYMS= svr4_str_initialized \ + svr4_stream_get \ + svr4_delete_socket + +.if defined(DEBUG) +CFLAGS+= -DDEBUG_SVR4 +.endif +CFLAGS+= -O + +.include <bsd.kmod.mk> diff --git a/sys/modules/svr4/Makefile b/sys/modules/svr4/Makefile new file mode 100644 index 000000000000..06619351dc03 --- /dev/null +++ b/sys/modules/svr4/Makefile @@ -0,0 +1,37 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../${MACHINE_ARCH}/svr4 ${.CURDIR}/../../compat/svr4 +KMOD= svr4 +SRCS= svr4_sysent.c svr4_sysvec.c opt_compat.h opt_mac.h opt_svr4.h \ + opt_vmpage.h vnode_if.h imgact_svr4.c svr4_signal.c svr4_fcntl.c \ + svr4_misc.c svr4_ioctl.c svr4_stat.c svr4_filio.c svr4_ttold.c \ + svr4_termios.c svr4_stream.c svr4_socket.c svr4_sockio.c \ + svr4_machdep.c svr4_resource.c svr4_ipc.c +OBJS= svr4_locore.o + +CLEANFILES= svr4_assym.h svr4_genassym.o + +svr4_assym.h: svr4_genassym.o +.if exists(@) +svr4_assym.h: @/kern/genassym.sh +.endif + sh @/kern/genassym.sh svr4_genassym.o > ${.TARGET} + +svr4_locore.o: svr4_locore.s svr4_assym.h + ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ + ${.IMPSRC} -o ${.TARGET} + +svr4_genassym.o: svr4_genassym.c svr4.h @ machine + ${CC} -c ${CFLAGS:N-fno-common} ${.IMPSRC} + +.if !defined(KERNBUILDDIR) +opt_compat.h: + echo "#define COMPAT_43 1" > opt_compat.h + +.if defined(DEBUG) +opt_svr4.h: + echo "#define DEBUG_SVR4 1" > opt_svr4.h +.endif +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/svr4/README b/sys/modules/svr4/README new file mode 100644 index 000000000000..a14e2b735401 --- /dev/null +++ b/sys/modules/svr4/README @@ -0,0 +1,38 @@ +This is a SysVR4 emulator derived from work done as part of the NetBSD +Project by Christos Zoulas. It has been ported to FreeBSD by Mark Newton. + +To use it: + +1. Choose one of: + a. Add "device streams" to your kernel config file and rebuild, + reboot; or + b. Build and install the streams module in /sys/modules/streams + +2. Build and install the svr4 module in /sys/modules/svr4 + +3. Type "kldload svr4" to start it up. + +4. Grab compat_sol26.tar.gz or compat_svr4.tar.gz from + http://www.freebsd.org/~newton/freebsd-svr4 and install them in + /compat/svr4 + +5. Run "sh SVR4_MAKEDEV all" in /compat/svr4/dev + +6. Mount a Solaris/x86 v2.6 or v7 CD-ROM on /cdrom (also works with + v2.4 and v2.5.1, but you need different symlinks in /compat/svr4) + +7. Brand any executables you want to run, and/or set the + kern.fallback_elf_brand sysctl to 'SVR4' to establish this as the + default emulator for unbranded executables. + +8. See if your SysVR4 programs work. + +It's early days yet, folks -- You'll probably have trouble getting 100% +functionality out of most things (specifically, poll() on a socket doesn't +look like it works at the moment, so Netscape doesn't work (among other +things)). Patches will be appreciated (use send-pr). + + - Mark Newton + newton@atdot.dotat.org + +$FreeBSD$ diff --git a/sys/modules/svr4/TO-DO b/sys/modules/svr4/TO-DO new file mode 100644 index 000000000000..078b80d8943a --- /dev/null +++ b/sys/modules/svr4/TO-DO @@ -0,0 +1,15 @@ +TO-DO list +---------- + + * svr4_getdents64() doesn't work properly in 'large' directories. + + * signals are still suspect + + * networking is notworking + + * VM86 and USER_LDT are currently disabled (low-priority) + + * Make SysV emulator use SysV shared memory support (duh) + + +$FreeBSD$ diff --git a/sys/modules/sym/Makefile b/sys/modules/sym/Makefile new file mode 100644 index 000000000000..198c98245aa5 --- /dev/null +++ b/sys/modules/sym/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/sym + +KMOD= sym +SRCS= sym_hipd.c opt_sym.h opt_cam.h opt_scsi.h +SRCS+= device_if.h bus_if.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/syscons/Makefile b/sys/modules/syscons/Makefile new file mode 100644 index 000000000000..71e84d040613 --- /dev/null +++ b/sys/modules/syscons/Makefile @@ -0,0 +1,31 @@ +# $FreeBSD$ + +SUBDIR= ${_apm} \ + blank \ + ${_daemon} \ + ${_dragon} \ + fade \ + ${_fire} \ + green \ + ${_logo} \ + ${_rain} \ + ${_snake} \ + ${_star} \ + ${_warp} + +.if ${MACHINE_ARCH} == "i386" +_apm= apm +.endif + +.if ${MACHINE_ARCH} != "sparc64" +_daemon= daemon +_dragon= dragon +_fire= fire +_logo= logo +_rain= rain +_snake= snake +_star= star +_warp= warp +.endif + +.include <bsd.subdir.mk> diff --git a/sys/modules/syscons/Makefile.inc b/sys/modules/syscons/Makefile.inc new file mode 100644 index 000000000000..265f86d1ed55 --- /dev/null +++ b/sys/modules/syscons/Makefile.inc @@ -0,0 +1,3 @@ +# $FreeBSD$ + +.include "../Makefile.inc" diff --git a/sys/modules/syscons/apm/Makefile b/sys/modules/syscons/apm/Makefile new file mode 100644 index 000000000000..d2e31d8c15ba --- /dev/null +++ b/sys/modules/syscons/apm/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/syscons/apm + +KMOD= apm_saver +SRCS= apm_saver.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/syscons/blank/Makefile b/sys/modules/syscons/blank/Makefile new file mode 100644 index 000000000000..673b6bd2ff55 --- /dev/null +++ b/sys/modules/syscons/blank/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/syscons/blank + +KMOD= blank_saver +SRCS= blank_saver.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/syscons/daemon/Makefile b/sys/modules/syscons/daemon/Makefile new file mode 100644 index 000000000000..b027972c8d83 --- /dev/null +++ b/sys/modules/syscons/daemon/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/syscons/daemon + +KMOD= daemon_saver +SRCS= daemon_saver.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/syscons/dragon/Makefile b/sys/modules/syscons/dragon/Makefile new file mode 100644 index 000000000000..95ebecd53982 --- /dev/null +++ b/sys/modules/syscons/dragon/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/syscons/dragon + +KMOD= dragon_saver +SRCS= dragon_saver.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/syscons/fade/Makefile b/sys/modules/syscons/fade/Makefile new file mode 100644 index 000000000000..76919617dae8 --- /dev/null +++ b/sys/modules/syscons/fade/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/syscons/fade + +KMOD= fade_saver +SRCS= fade_saver.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/syscons/fire/Makefile b/sys/modules/syscons/fire/Makefile new file mode 100644 index 000000000000..219017e7f897 --- /dev/null +++ b/sys/modules/syscons/fire/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/syscons/fire + +KMOD= fire_saver +SRCS= fire_saver.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/syscons/green/Makefile b/sys/modules/syscons/green/Makefile new file mode 100644 index 000000000000..255171ebb445 --- /dev/null +++ b/sys/modules/syscons/green/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/syscons/green + +KMOD= green_saver +SRCS= green_saver.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/syscons/logo/Makefile b/sys/modules/syscons/logo/Makefile new file mode 100644 index 000000000000..b4439f2ddb99 --- /dev/null +++ b/sys/modules/syscons/logo/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/syscons/logo + +KMOD= logo_saver +SRCS= logo_saver.c logo.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/syscons/rain/Makefile b/sys/modules/syscons/rain/Makefile new file mode 100644 index 000000000000..5c0d1265a198 --- /dev/null +++ b/sys/modules/syscons/rain/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/syscons/rain + +KMOD= rain_saver +SRCS= rain_saver.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/syscons/snake/Makefile b/sys/modules/syscons/snake/Makefile new file mode 100644 index 000000000000..9edf83006817 --- /dev/null +++ b/sys/modules/syscons/snake/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/syscons/snake + +KMOD= snake_saver +SRCS= snake_saver.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/syscons/star/Makefile b/sys/modules/syscons/star/Makefile new file mode 100644 index 000000000000..ca3075fe1e84 --- /dev/null +++ b/sys/modules/syscons/star/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/syscons/star + +KMOD= star_saver +SRCS= star_saver.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/syscons/warp/Makefile b/sys/modules/syscons/warp/Makefile new file mode 100644 index 000000000000..3ff59d3c4ea3 --- /dev/null +++ b/sys/modules/syscons/warp/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/syscons/warp + +KMOD= warp_saver +SRCS= warp_saver.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sysvipc/Makefile b/sys/modules/sysvipc/Makefile new file mode 100644 index 000000000000..6c65857836d2 --- /dev/null +++ b/sys/modules/sysvipc/Makefile @@ -0,0 +1,5 @@ +# $FreeBSD$ + +SUBDIR= sysvmsg sysvsem sysvshm + +.include <bsd.subdir.mk> diff --git a/sys/modules/sysvipc/Makefile.inc b/sys/modules/sysvipc/Makefile.inc new file mode 100644 index 000000000000..265f86d1ed55 --- /dev/null +++ b/sys/modules/sysvipc/Makefile.inc @@ -0,0 +1,3 @@ +# $FreeBSD$ + +.include "../Makefile.inc" diff --git a/sys/modules/sysvipc/sysvmsg/Makefile b/sys/modules/sysvipc/sysvmsg/Makefile new file mode 100644 index 000000000000..3e48b3128cfb --- /dev/null +++ b/sys/modules/sysvipc/sysvmsg/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../kern + +KMOD= sysvmsg +SRCS= sysv_msg.c opt_mac.h opt_sysvipc.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/sysvipc/sysvsem/Makefile b/sys/modules/sysvipc/sysvsem/Makefile new file mode 100644 index 000000000000..22d97eed945d --- /dev/null +++ b/sys/modules/sysvipc/sysvsem/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../kern + +KMOD= sysvsem +SRCS= sysv_sem.c opt_mac.h opt_sysvipc.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/sysvipc/sysvshm/Makefile b/sys/modules/sysvipc/sysvshm/Makefile new file mode 100644 index 000000000000..760a6a236e19 --- /dev/null +++ b/sys/modules/sysvipc/sysvshm/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../kern + +KMOD= sysvshm +SRCS= sysv_shm.c opt_mac.h opt_sysvipc.h opt_compat.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ti/Makefile b/sys/modules/ti/Makefile new file mode 100644 index 000000000000..fdafb8a8d82a --- /dev/null +++ b/sys/modules/ti/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../pci + +KMOD= if_ti +SRCS= if_ti.c opt_bdg.h device_if.h bus_if.h pci_if.h opt_ti.h opt_zero.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/tl/Makefile b/sys/modules/tl/Makefile new file mode 100644 index 000000000000..bbd30a13e605 --- /dev/null +++ b/sys/modules/tl/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../pci + +KMOD= if_tl +SRCS= if_tl.c opt_bdg.h device_if.h bus_if.h pci_if.h +SRCS+= miibus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/trm/Makefile b/sys/modules/trm/Makefile new file mode 100644 index 000000000000..beb1ab474980 --- /dev/null +++ b/sys/modules/trm/Makefile @@ -0,0 +1,14 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/trm + +KMOD= trm +SRCS= trm.c trm.h opt_cam.h device_if.h bus_if.h \ + opt_scsi.h pci_if.h + +.if !defined(KERNBUILDDIR) +opt_scsi.h: + echo "#define SCSI_DELAY 15000" > opt_scsi.h +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/twa/Makefile b/sys/modules/twa/Makefile new file mode 100644 index 000000000000..a06b14fbf04e --- /dev/null +++ b/sys/modules/twa/Makefile @@ -0,0 +1,75 @@ +# $FreeBSD$ +# +# Copyright (c) 2004 Applied Micro Circuits Corporation. +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND +# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. +# + +# +# 3ware driver for 9000 series storage controllers. +# +# Author: Vinod Kashyap +# + + + +# +# In the line following this comment, a value of 0 on the right hand +# side will not cause firmware to be bundled. Change this value to 1 +# to bundle the firmware with the driver, which may be flashed onto +# the controller, if the firmware on the controller is older than the +# one bundled, and needs to be upgraded. The size of the driver will +# increase significantly (to over 500kB) if this option is selected. +# Typically, the firmware image bundled (in tw_cl_fwimg.c) corresponds +# to the latest controller architecture as of the date of the release. +# If the firmware for an earlier controller architecture needs to be +# flashed, the (older) driver with the appropriate firmware image +# bundled can be downloaded from the 3ware website, used to flash the +# firmware, and then the newer driver can be switched to. Alternatively, +# the appropriate firmware image (tw_cl_fwimg.c) from the older driver can +# be used to re-build the newer driver. In this case, the branch +# (TWA_CURRENT_FW_BRANCH_*) and build (TWA_CURRENT_FW_BUILD_*) numbers for +# the bundled firmware need to be appropriately updated in tw_cl_fwif.h +# before building the driver. +# +TWA_FLASH_FIRMWARE?=0 + +KMOD = twa +.PATH: ${.CURDIR}/../../dev/${KMOD} +SRCS= tw_osl_freebsd.c tw_osl_cam.c \ + tw_cl_init.c tw_cl_io.c tw_cl_intr.c tw_cl_misc.c \ + bus_if.h device_if.h pci_if.h opt_scsi.h opt_cam.h opt_twa.h + +# Uncomment the following line to turn on Enclosure Services support. +#CFLAGS+= -DTWA_ENCLOSURE_SUPPORT + +#CFLAGS+= -DTWA_DEBUG=0 +CFLAGS+= -I${.CURDIR}/../../dev/${KMOD} + +.if $(TWA_FLASH_FIRMWARE) != 0 +CFLAGS+= -DTWA_FLASH_FIRMWARE +SRCS+= tw_cl_fwimg.c +.endif + +.include <bsd.kmod.mk> + diff --git a/sys/modules/twe/Makefile b/sys/modules/twe/Makefile new file mode 100644 index 000000000000..052c541fab51 --- /dev/null +++ b/sys/modules/twe/Makefile @@ -0,0 +1,33 @@ +# $FreeBSD$ + +# +# The 3ware controller offers a choice of options related to handling of +# mirror consistency in shutdown situations. +# +# If TWE_SHUTDOWN_NOTIFICATION is defined, the driver will inform the +# controller on clean shutdown. On reboot after an unclean shutdown, the +# controller will perform a complete mirror rebuild. This is the most +# "safe" configuration, but it imposes a severe performance penalty in the +# event of an unexpected reboot. +# +# In the alternate configuration, the controller assumes that all writes to +# a mirror complete successfully. In the case of an unclean shutdown, +# mirror corruption may occur if the controller is reset or power is lost +# during a disk write. This configuration is more suitable if the system +# has reliable power, but may be unstable for other reasons. +# +CFLAGS+=-DTWE_SHUTDOWN_NOTIFICATION + +# +# The module can be built to override a compiled-in driver +# +#CFLAGS+=-DTWE_OVERRIDE + +.PATH: ${.CURDIR}/../../dev/twe + +KMOD= twe +SRCS= bus_if.h device_if.h pci_if.h twe.c twe_freebsd.c + +#CFLAGS+=-DTWE_DEBUG=0 + +.include <bsd.kmod.mk> diff --git a/sys/modules/tx/Makefile b/sys/modules/tx/Makefile new file mode 100644 index 000000000000..8d4ded923798 --- /dev/null +++ b/sys/modules/tx/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/tx + +KMOD= if_tx +SRCS= if_tx.c opt_bdg.h device_if.h bus_if.h pci_if.h +SRCS+= miibus_if.h miidevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/txp/Makefile b/sys/modules/txp/Makefile new file mode 100644 index 000000000000..7e1f500e85c5 --- /dev/null +++ b/sys/modules/txp/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/txp + +KMOD= if_txp +SRCS= if_txp.c opt_bdg.h device_if.h bus_if.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/uart/Makefile b/sys/modules/uart/Makefile new file mode 100644 index 000000000000..6a8f285590c7 --- /dev/null +++ b/sys/modules/uart/Makefile @@ -0,0 +1,18 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/uart + +.if ${MACHINE_ARCH} == "sparc64" +uart_bus_ebus= uart_bus_ebus.c +ofw_bus_if= ofw_bus_if.h +.endif + +KMOD= uart +SRCS= uart_bus_acpi.c ${uart_bus_ebus} uart_bus_isa.c uart_bus_pccard.c \ + uart_bus_pci.c uart_bus_puc.c uart_core.c uart_cpu_${MACHINE}.c \ + uart_dbg.c uart_dev_ns8250.c uart_dev_sab82532.c uart_dev_z8530.c \ + uart_if.c uart_subr.c uart_tty.c +SRCS+= bus_if.h card_if.h device_if.h isa_if.h ${ofw_bus_if} pci_if.h \ + power_if.h uart_if.h pccarddevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ubsa/Makefile b/sys/modules/ubsa/Makefile new file mode 100644 index 000000000000..1d7eb766fef2 --- /dev/null +++ b/sys/modules/ubsa/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +S= ${.CURDIR}/../.. +.PATH: $S/dev/usb + +KMOD= ubsa +SRCS= ubsa.c ucomvar.h opt_usb.h device_if.h bus_if.h usbdevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ubsec/Makefile b/sys/modules/ubsec/Makefile new file mode 100644 index 000000000000..b13dbbff22f0 --- /dev/null +++ b/sys/modules/ubsec/Makefile @@ -0,0 +1,14 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/ubsec +KMOD = ubsec +SRCS = ubsec.c opt_ubsec.h +SRCS += device_if.h bus_if.h pci_if.h +SRCS += opt_bdg.h opt_bus.h crypto_if.h + +.if !defined(KERNBUILDDIR) +opt_ubsec.h: + echo "#define UBSEC_DEBUG 1" > opt_ubsec.h +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/ubser/Makefile b/sys/modules/ubser/Makefile new file mode 100644 index 000000000000..41a0bc3f01d2 --- /dev/null +++ b/sys/modules/ubser/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +S= ${.CURDIR}/../.. +.PATH: $S/dev/usb + +KMOD= ubser +SRCS= ubser.c ubser.h opt_usb.h device_if.h bus_if.h usbdevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ucom/Makefile b/sys/modules/ucom/Makefile new file mode 100644 index 000000000000..bbd5c21dbf21 --- /dev/null +++ b/sys/modules/ucom/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +S= ${.CURDIR}/../.. +.PATH: $S/dev/usb + +KMOD= ucom +SRCS= ucom.c ucomvar.h opt_usb.h device_if.h bus_if.h usbdevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ucycom/Makefile b/sys/modules/ucycom/Makefile new file mode 100644 index 000000000000..d5849a93f520 --- /dev/null +++ b/sys/modules/ucycom/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +S= ${.CURDIR}/../.. +.PATH: $S/dev/usb + +KMOD= ucycom +SRCS= ucycom.c opt_usb.h device_if.h bus_if.h usbdevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/udav/Makefile b/sys/modules/udav/Makefile new file mode 100644 index 000000000000..02a9d721f9b9 --- /dev/null +++ b/sys/modules/udav/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +S= ${.CURDIR}/../.. +.PATH: $S/dev/usb +KMOD= if_udav +SRCS= if_udav.c opt_bdg.h opt_usb.h device_if.h bus_if.h opt_inet.h +SRCS+= miibus_if.h usbdevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/udbp/Makefile b/sys/modules/udbp/Makefile new file mode 100644 index 000000000000..aeeac7cb4b98 --- /dev/null +++ b/sys/modules/udbp/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/usb + +KMOD= udbp +SRCS= bus_if.h device_if.h \ + opt_usb.h opt_netgraph.h \ + udbp.c usbdevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/udf/Makefile b/sys/modules/udf/Makefile new file mode 100644 index 000000000000..220cba1e08ce --- /dev/null +++ b/sys/modules/udf/Makefile @@ -0,0 +1,11 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../fs/udf + +KMOD= udf + +SRCS= udf_vfsops.c udf_vnops.c osta.c +SRCS+= vnode_if.h +EXPORT_SYMS= udf_iconv + +.include <bsd.kmod.mk> diff --git a/sys/modules/udf_iconv/Makefile b/sys/modules/udf_iconv/Makefile new file mode 100644 index 000000000000..008f722bcba1 --- /dev/null +++ b/sys/modules/udf_iconv/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../fs/udf +KMOD= udf_iconv +SRCS= udf_iconv.c + +CFLAGS+= -I${.CURDIR}/../../ + +.include <bsd.kmod.mk> diff --git a/sys/modules/ufm/Makefile b/sys/modules/ufm/Makefile new file mode 100644 index 000000000000..28bbc90e3a09 --- /dev/null +++ b/sys/modules/ufm/Makefile @@ -0,0 +1,7 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/usb +KMOD= ufm +SRCS= bus_if.h device_if.h vnode_if.h opt_usb.h ufm.c dsbr100io.h usbdevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ufs/Makefile b/sys/modules/ufs/Makefile new file mode 100644 index 000000000000..b216b80c5892 --- /dev/null +++ b/sys/modules/ufs/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../ufs/ufs ${.CURDIR}/../../ufs/ffs + +KMOD= ufs +SRCS= opt_ddb.h opt_directio.h opt_ffs.h opt_ffs_broken_fixme.h opt_mac.h \ + opt_quota.h opt_suiddir.h opt_ufs.h \ + vnode_if.h ufs_acl.c ufs_bmap.c ufs_dirhash.c ufs_extattr.c \ + ufs_inode.c ufs_lookup.c ufs_quota.c ufs_vfsops.c \ + ufs_vnops.c ffs_alloc.c ffs_balloc.c ffs_inode.c ffs_snapshot.c \ + ffs_softdep.c ffs_subr.c ffs_tables.c ffs_vfsops.c ffs_vnops.c + +CFLAGS+= -DSOFTUPDATES -DUFS_DIRHASH + +.include <bsd.kmod.mk> diff --git a/sys/modules/uftdi/Makefile b/sys/modules/uftdi/Makefile new file mode 100644 index 000000000000..65cb10782f5a --- /dev/null +++ b/sys/modules/uftdi/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +S= ${.CURDIR}/../.. +.PATH: $S/dev/usb + +KMOD= uftdi +SRCS= uftdi.c uftdireg.h opt_usb.h device_if.h bus_if.h usbdevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ugen/Makefile b/sys/modules/ugen/Makefile new file mode 100644 index 000000000000..d024a3a396d3 --- /dev/null +++ b/sys/modules/ugen/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/usb + +KMOD= ugen +SRCS= bus_if.h device_if.h opt_usb.h ugen.c usbdevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/uhid/Makefile b/sys/modules/uhid/Makefile new file mode 100644 index 000000000000..31c5a17ec2b8 --- /dev/null +++ b/sys/modules/uhid/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/usb + +KMOD= uhid +SRCS= bus_if.h device_if.h opt_usb.h uhid.c usbdevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ukbd/Makefile b/sys/modules/ukbd/Makefile new file mode 100644 index 000000000000..80d29052d715 --- /dev/null +++ b/sys/modules/ukbd/Makefile @@ -0,0 +1,13 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/usb + +KMOD= ukbd +SRCS= bus_if.h device_if.h opt_usb.h opt_kbd.h opt_ukbd.h usbdevs.h ukbd.c + +.if !defined(KERNBUILDDIR) +opt_kbd.h: + echo "#define KBD_INSTALL_CDEV 1" > ${.TARGET} +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/ulpt/Makefile b/sys/modules/ulpt/Makefile new file mode 100644 index 000000000000..c7d51c30f9fa --- /dev/null +++ b/sys/modules/ulpt/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/usb + +KMOD= ulpt +SRCS= bus_if.h device_if.h opt_usb.h ulpt.c usbdevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/umapfs/Makefile b/sys/modules/umapfs/Makefile new file mode 100644 index 000000000000..761d588dba22 --- /dev/null +++ b/sys/modules/umapfs/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../fs/umapfs + +KMOD= umapfs +SRCS= vnode_if.h \ + umap_subr.c umap_vfsops.c umap_vnops.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/umass/Makefile b/sys/modules/umass/Makefile new file mode 100644 index 000000000000..4af29fe90976 --- /dev/null +++ b/sys/modules/umass/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/usb + +KMOD= umass +SRCS= bus_if.h device_if.h \ + opt_usb.h opt_cam.h opt_scsi.h \ + umass.c usbdevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/umct/Makefile b/sys/modules/umct/Makefile new file mode 100644 index 000000000000..ccd775f4ba6f --- /dev/null +++ b/sys/modules/umct/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +S= ${.CURDIR}/../.. +.PATH: $S/dev/usb + +KMOD= umct +SRCS= umct.c ucomvar.h opt_usb.h device_if.h bus_if.h usbdevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/umodem/Makefile b/sys/modules/umodem/Makefile new file mode 100644 index 000000000000..458a2c3cfafb --- /dev/null +++ b/sys/modules/umodem/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/usb + +KMOD= umodem +SRCS= bus_if.h device_if.h opt_usb.h umodem.c usbdevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ums/Makefile b/sys/modules/ums/Makefile new file mode 100644 index 000000000000..fee38430c2ec --- /dev/null +++ b/sys/modules/ums/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/usb + +KMOD= ums +SRCS= bus_if.h device_if.h opt_usb.h ums.c usbdevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/unionfs/Makefile b/sys/modules/unionfs/Makefile new file mode 100644 index 000000000000..64d38c5f2a82 --- /dev/null +++ b/sys/modules/unionfs/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../fs/unionfs + +KMOD= unionfs +SRCS= vnode_if.h \ + union_subr.c union_vfsops.c union_vnops.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/uplcom/Makefile b/sys/modules/uplcom/Makefile new file mode 100644 index 000000000000..36115ccca436 --- /dev/null +++ b/sys/modules/uplcom/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +S= ${.CURDIR}/../.. +.PATH: $S/dev/usb + +KMOD= uplcom +SRCS= uplcom.c ucomvar.h opt_usb.h opt_uplcom.h \ + device_if.h bus_if.h usbdevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ural/Makefile b/sys/modules/ural/Makefile new file mode 100644 index 000000000000..e347e05217c8 --- /dev/null +++ b/sys/modules/ural/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/usb + +KMOD = if_ural +SRCS = if_ural.c opt_bdg.h opt_usb.h device_if.h bus_if.h usbdevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/urio/Makefile b/sys/modules/urio/Makefile new file mode 100644 index 000000000000..0221c5d1a103 --- /dev/null +++ b/sys/modules/urio/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +MAINTAINER= Iwasa Kazmi <kzmi@ca2.so-net.ne.jp> + +.PATH: ${.CURDIR}/../../dev/usb + +KMOD= urio +SRCS= bus_if.h device_if.h opt_usb.h urio.c usbdevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/usb/Makefile b/sys/modules/usb/Makefile new file mode 100644 index 000000000000..d08279d89376 --- /dev/null +++ b/sys/modules/usb/Makefile @@ -0,0 +1,27 @@ +# $FreeBSD$ + +S= ${.CURDIR}/../.. + +.PATH: $S/dev/usb $S/pci + +KMOD= usb +SRCS= bus_if.h device_if.h usb_if.h usb_if.c \ + opt_usb.h \ + hid.c hid.h usbhid.h \ + uhub.c \ + usb.c usb.h \ + usb_mem.c usb_mem.h \ + usb_port.h \ + usb_quirks.c usb_quirks.h \ + usb_subr.c \ + usbdevs.h usbdevs_data.h \ + usbdi.c usbdi.h usbdivar.h \ + usbdi_util.c usbdi_util.h \ + usb_ethersubr.c usbdevs.h + +SRCS+= uhci_pci.c uhci.c uhcireg.h uhcivar.h +SRCS+= ohci_pci.c ohci.c ohcireg.h ohcivar.h +SRCS+= ehci_pci.c ehci.c ehcireg.h ehcivar.h +SRCS+= opt_bus.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/uscanner/Makefile b/sys/modules/uscanner/Makefile new file mode 100644 index 000000000000..fa3485659339 --- /dev/null +++ b/sys/modules/uscanner/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/usb + +KMOD= uscanner +SRCS= bus_if.h device_if.h opt_usb.h uscanner.c usbdevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/utopia/Makefile b/sys/modules/utopia/Makefile new file mode 100644 index 000000000000..c1a444516c14 --- /dev/null +++ b/sys/modules/utopia/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/utopia + +KMOD= utopia +SRCS= utopia.c suni.c idtphy.c bus_if.h device_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/uvisor/Makefile b/sys/modules/uvisor/Makefile new file mode 100644 index 000000000000..feb74df9acb4 --- /dev/null +++ b/sys/modules/uvisor/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +S= ${.CURDIR}/../.. +.PATH: $S/dev/usb + +KMOD= uvisor +SRCS= uvisor.c ucomvar.h opt_usb.h device_if.h bus_if.h usbdevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/uvscom/Makefile b/sys/modules/uvscom/Makefile new file mode 100644 index 000000000000..ceb1959df1f2 --- /dev/null +++ b/sys/modules/uvscom/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +S= ${.CURDIR}/../.. +.PATH: $S/dev/usb + +KMOD= uvscom +SRCS= uvscom.c ucomvar.h opt_usb.h opt_uvscom.h \ + device_if.h bus_if.h usbdevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/vesa/Makefile b/sys/modules/vesa/Makefile new file mode 100644 index 000000000000..eb49f933c9ba --- /dev/null +++ b/sys/modules/vesa/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/syscons ${.CURDIR}/../../i386/isa + +KMOD= vesa +SRCS= vesa.c scvesactl.c opt_vga.h opt_vesa.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/vge/Makefile b/sys/modules/vge/Makefile new file mode 100644 index 000000000000..8569f6831d60 --- /dev/null +++ b/sys/modules/vge/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/vge + +KMOD= if_vge +SRCS= if_vge.c miibus_if.h opt_bdg.h device_if.h bus_if.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/vkbd/Makefile b/sys/modules/vkbd/Makefile new file mode 100644 index 000000000000..29591dc37efa --- /dev/null +++ b/sys/modules/vkbd/Makefile @@ -0,0 +1,14 @@ +# $Id: Makefile,v 1.1 2004/08/13 18:30:24 max Exp $ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/vkbd + +KMOD= vkbd +SRCS= vkbd.c opt_kbd.h + +.if !defined(KERNBUILDDIR) +opt_kbd.h: + echo "#define KBD_INSTALL_CDEV 1" > ${.TARGET} +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/vpo/Makefile b/sys/modules/vpo/Makefile new file mode 100644 index 000000000000..cad169a856fb --- /dev/null +++ b/sys/modules/vpo/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/ppbus + +KMOD= vpo +SRCS= bus_if.h device_if.h ppbus_if.h \ + opt_cam.h opt_scsi.h opt_vpo.h \ + immio.c vpo.c vpoio.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/vr/Makefile b/sys/modules/vr/Makefile new file mode 100644 index 000000000000..fd58ab0cb26f --- /dev/null +++ b/sys/modules/vr/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../pci + +KMOD= if_vr +SRCS= if_vr.c opt_bdg.h device_if.h bus_if.h pci_if.h +SRCS+= miibus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/vx/Makefile b/sys/modules/vx/Makefile new file mode 100644 index 000000000000..37d036f654a6 --- /dev/null +++ b/sys/modules/vx/Makefile @@ -0,0 +1,12 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/vx + +KMOD= if_vx +SRCS= if_vx.c if_vx_pci.c +.if ${MACHINE_ARCH} == "i386" +SRCS+= if_vx_eisa.c +.endif +SRCS+= opt_bdg.h device_if.h bus_if.h pci_if.h eisa_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/wb/Makefile b/sys/modules/wb/Makefile new file mode 100644 index 000000000000..e53d9861cb6a --- /dev/null +++ b/sys/modules/wb/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../pci + +KMOD= if_wb +SRCS= if_wb.c opt_bdg.h device_if.h +SRCS+= bus_if.h miibus_if.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/wi/Makefile b/sys/modules/wi/Makefile new file mode 100644 index 000000000000..20fc1a209e56 --- /dev/null +++ b/sys/modules/wi/Makefile @@ -0,0 +1,14 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/wi + +KMOD= if_wi +SRCS= opt_wi.h if_wi.c if_wi_pccard.c if_wi_pci.c \ + card_if.h device_if.h bus_if.h pci_if.h pccarddevs.h + +.if !defined(KERNBUILDDIR) +opt_wi.h: + echo "#define WI_SYMBOL_FIRMWARE 1" > ${.TARGET} +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/wlan/Makefile b/sys/modules/wlan/Makefile new file mode 100644 index 000000000000..4389c5a30f18 --- /dev/null +++ b/sys/modules/wlan/Makefile @@ -0,0 +1,19 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../net80211 + +KMOD= wlan +SRCS= ieee80211.c ieee80211_crypto.c ieee80211_crypto_none.c \ + ieee80211_freebsd.c ieee80211_input.c ieee80211_ioctl.c \ + ieee80211_node.c ieee80211_output.c ieee80211_proto.c +SRCS+= bus_if.h device_if.h opt_inet.h opt_ipx.h + +.if !defined(KERNBUILDDIR) +opt_inet.h: + echo "#define INET 1" > opt_inet.h + +opt_ipx.h: + echo "#define IPX 1" > opt_ipx.h +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/wlan_acl/Makefile b/sys/modules/wlan_acl/Makefile new file mode 100644 index 000000000000..aa71de2eebf8 --- /dev/null +++ b/sys/modules/wlan_acl/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../net80211 + +KMOD= wlan_acl +SRCS= ieee80211_acl.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/wlan_ccmp/Makefile b/sys/modules/wlan_ccmp/Makefile new file mode 100644 index 000000000000..06bafcec6eed --- /dev/null +++ b/sys/modules/wlan_ccmp/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../net80211 +.PATH: ${.CURDIR}/../../crypto/rijndael + +KMOD= wlan_ccmp +SRCS= ieee80211_crypto_ccmp.c +SRCS+= rijndael-alg-fst.c rijndael-api.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/wlan_tkip/Makefile b/sys/modules/wlan_tkip/Makefile new file mode 100644 index 000000000000..1449b78479e0 --- /dev/null +++ b/sys/modules/wlan_tkip/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../net80211 + +KMOD= wlan_tkip +SRCS= ieee80211_crypto_tkip.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/wlan_wep/Makefile b/sys/modules/wlan_wep/Makefile new file mode 100644 index 000000000000..88ad322bb5e7 --- /dev/null +++ b/sys/modules/wlan_wep/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../net80211 + +KMOD= wlan_wep +SRCS= ieee80211_crypto_wep.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/wlan_xauth/Makefile b/sys/modules/wlan_xauth/Makefile new file mode 100644 index 000000000000..fba6f8aabb46 --- /dev/null +++ b/sys/modules/wlan_xauth/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../net80211 + +KMOD= wlan_xauth +SRCS= ieee80211_xauth.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/xe/Makefile b/sys/modules/xe/Makefile new file mode 100644 index 000000000000..f900854352b4 --- /dev/null +++ b/sys/modules/xe/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/xe + +KMOD= if_xe +SRCS= if_xe.c if_xe_pccard.c +SRCS+= bus_if.h card_if.h device_if.h pccarddevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/xl/Makefile b/sys/modules/xl/Makefile new file mode 100644 index 000000000000..3c2c1627b36d --- /dev/null +++ b/sys/modules/xl/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../pci + +KMOD= if_xl +SRCS= if_xl.c opt_bdg.h device_if.h bus_if.h pci_if.h +SRCS+= miibus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/zlib/Makefile b/sys/modules/zlib/Makefile new file mode 100644 index 000000000000..0a475b55fce3 --- /dev/null +++ b/sys/modules/zlib/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../net + +KMOD= zlib +SRCS= zlib.c + +.include <bsd.kmod.mk> |
