summaryrefslogtreecommitdiffstats
path: root/sys/modules
diff options
context:
space:
mode:
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/3dfx/Makefile15
-rw-r--r--sys/modules/3dfx_linux/Makefile8
-rw-r--r--sys/modules/Makefile659
-rw-r--r--sys/modules/Makefile.inc6
-rw-r--r--sys/modules/aac/Makefile18
-rw-r--r--sys/modules/aac/Makefile.inc3
-rw-r--r--sys/modules/aac/aac_linux/Makefile8
-rw-r--r--sys/modules/accf_data/Makefile8
-rw-r--r--sys/modules/accf_dns/Makefile8
-rw-r--r--sys/modules/accf_http/Makefile8
-rw-r--r--sys/modules/acpi/Makefile11
-rw-r--r--sys/modules/acpi/Makefile.inc3
-rw-r--r--sys/modules/acpi/acpi/Makefile113
-rw-r--r--sys/modules/acpi/acpi_aiboost/Makefile8
-rw-r--r--sys/modules/acpi/acpi_asus/Makefile9
-rw-r--r--sys/modules/acpi/acpi_dock/Makefile8
-rw-r--r--sys/modules/acpi/acpi_fujitsu/Makefile9
-rw-r--r--sys/modules/acpi/acpi_hp/Makefile9
-rw-r--r--sys/modules/acpi/acpi_ibm/Makefile8
-rw-r--r--sys/modules/acpi/acpi_panasonic/Makefile8
-rw-r--r--sys/modules/acpi/acpi_sony/Makefile8
-rw-r--r--sys/modules/acpi/acpi_toshiba/Makefile8
-rw-r--r--sys/modules/acpi/acpi_video/Makefile9
-rw-r--r--sys/modules/acpi/acpi_wmi/Makefile9
-rw-r--r--sys/modules/ae/Makefile8
-rw-r--r--sys/modules/age/Makefile8
-rw-r--r--sys/modules/agp/Makefile33
-rw-r--r--sys/modules/aha/Makefile14
-rw-r--r--sys/modules/ahb/Makefile13
-rw-r--r--sys/modules/ahci/Makefile8
-rw-r--r--sys/modules/aic/Makefile16
-rw-r--r--sys/modules/aic7xxx/Makefile6
-rw-r--r--sys/modules/aic7xxx/Makefile.inc3
-rw-r--r--sys/modules/aic7xxx/ahc/Makefile38
-rw-r--r--sys/modules/aic7xxx/ahc/Makefile.inc3
-rw-r--r--sys/modules/aic7xxx/ahc/ahc_eisa/Makefile18
-rw-r--r--sys/modules/aic7xxx/ahc/ahc_isa/Makefile18
-rw-r--r--sys/modules/aic7xxx/ahc/ahc_pci/Makefile16
-rw-r--r--sys/modules/aic7xxx/ahd/Makefile38
-rw-r--r--sys/modules/aic7xxx/aicasm/Makefile9
-rw-r--r--sys/modules/aio/Makefile10
-rw-r--r--sys/modules/alc/Makefile8
-rw-r--r--sys/modules/ale/Makefile8
-rw-r--r--sys/modules/alq/Makefile9
-rw-r--r--sys/modules/amd/Makefile10
-rw-r--r--sys/modules/amdsbwd/Makefile8
-rw-r--r--sys/modules/amdtemp/Makefile8
-rw-r--r--sys/modules/amr/Makefile19
-rw-r--r--sys/modules/amr/amr_cam/Makefile9
-rw-r--r--sys/modules/amr/amr_linux/Makefile8
-rw-r--r--sys/modules/an/Makefile15
-rw-r--r--sys/modules/aout/Makefile9
-rw-r--r--sys/modules/apm/Makefile18
-rw-r--r--sys/modules/arcmsr/Makefile10
-rw-r--r--sys/modules/arcnet/Makefile30
-rw-r--r--sys/modules/asmc/Makefile8
-rw-r--r--sys/modules/asr/Makefile14
-rw-r--r--sys/modules/ata/Makefile13
-rw-r--r--sys/modules/ata/Makefile.inc3
-rw-r--r--sys/modules/ata/atacam/Makefile9
-rw-r--r--sys/modules/ata/atacard/Makefile9
-rw-r--r--sys/modules/ata/atacbus/Makefile9
-rw-r--r--sys/modules/ata/atacore/Makefile9
-rw-r--r--sys/modules/ata/atadevel/Makefile10
-rw-r--r--sys/modules/ata/atadevel/ata-devel.c125
-rw-r--r--sys/modules/ata/atadisk/Makefile9
-rw-r--r--sys/modules/ata/ataisa/Makefile9
-rw-r--r--sys/modules/ata/atapci/Makefile12
-rw-r--r--sys/modules/ata/atapci/Makefile.inc3
-rw-r--r--sys/modules/ata/atapci/chipsets/Makefile5
-rw-r--r--sys/modules/ata/atapci/chipsets/Makefile.inc3
-rw-r--r--sys/modules/ata/atapci/chipsets/ataacard/Makefile10
-rw-r--r--sys/modules/ata/atapci/chipsets/ataacerlabs/Makefile10
-rw-r--r--sys/modules/ata/atapci/chipsets/ataadaptec/Makefile10
-rw-r--r--sys/modules/ata/atapci/chipsets/ataahci/Makefile10
-rw-r--r--sys/modules/ata/atapci/chipsets/ataamd/Makefile10
-rw-r--r--sys/modules/ata/atapci/chipsets/ataati/Makefile10
-rw-r--r--sys/modules/ata/atapci/chipsets/atacenatek/Makefile10
-rw-r--r--sys/modules/ata/atapci/chipsets/atacypress/Makefile10
-rw-r--r--sys/modules/ata/atapci/chipsets/atacyrix/Makefile10
-rw-r--r--sys/modules/ata/atapci/chipsets/atahighpoint/Makefile10
-rw-r--r--sys/modules/ata/atapci/chipsets/ataintel/Makefile10
-rw-r--r--sys/modules/ata/atapci/chipsets/ataite/Makefile10
-rw-r--r--sys/modules/ata/atapci/chipsets/atajmicron/Makefile10
-rw-r--r--sys/modules/ata/atapci/chipsets/atamarvell/Makefile10
-rw-r--r--sys/modules/ata/atapci/chipsets/atamicron/Makefile10
-rw-r--r--sys/modules/ata/atapci/chipsets/atanational/Makefile10
-rw-r--r--sys/modules/ata/atapci/chipsets/atanetcell/Makefile10
-rw-r--r--sys/modules/ata/atapci/chipsets/atanvidia/Makefile10
-rw-r--r--sys/modules/ata/atapci/chipsets/atapromise/Makefile10
-rw-r--r--sys/modules/ata/atapci/chipsets/ataserverworks/Makefile10
-rw-r--r--sys/modules/ata/atapci/chipsets/atasiliconimage/Makefile10
-rw-r--r--sys/modules/ata/atapci/chipsets/atasis/Makefile10
-rw-r--r--sys/modules/ata/atapci/chipsets/atavia/Makefile10
-rw-r--r--sys/modules/ata/atapicam/Makefile9
-rw-r--r--sys/modules/ata/atapicd/Makefile9
-rw-r--r--sys/modules/ata/atapifd/Makefile9
-rw-r--r--sys/modules/ata/atapist/Makefile9
-rw-r--r--sys/modules/ata/ataraid/Makefile9
-rw-r--r--sys/modules/ath/Makefile114
-rw-r--r--sys/modules/auxio/Makefile10
-rw-r--r--sys/modules/bce/Makefile8
-rw-r--r--sys/modules/bfe/Makefile8
-rw-r--r--sys/modules/bge/Makefile12
-rw-r--r--sys/modules/bios/Makefile6
-rw-r--r--sys/modules/bios/smapi/Makefile11
-rw-r--r--sys/modules/bios/smbios/Makefile10
-rw-r--r--sys/modules/bios/vpd/Makefile10
-rw-r--r--sys/modules/bktr/Makefile7
-rw-r--r--sys/modules/bktr/Makefile.inc3
-rw-r--r--sys/modules/bktr/bktr/Makefile19
-rw-r--r--sys/modules/bktr/bktr_mem/Makefile11
-rw-r--r--sys/modules/bm/Makefile9
-rw-r--r--sys/modules/bridgestp/Makefile8
-rw-r--r--sys/modules/bwi/Makefile14
-rw-r--r--sys/modules/bwn/Makefile9
-rw-r--r--sys/modules/cam/Makefile40
-rw-r--r--sys/modules/canbepm/Makefile8
-rw-r--r--sys/modules/canbus/Makefile8
-rw-r--r--sys/modules/cardbus/Makefile9
-rw-r--r--sys/modules/cas/Makefile8
-rw-r--r--sys/modules/cbb/Makefile9
-rw-r--r--sys/modules/cd9660/Makefile11
-rw-r--r--sys/modules/cd9660_iconv/Makefile7
-rw-r--r--sys/modules/ce/Makefile28
-rw-r--r--sys/modules/ciss/Makefile11
-rw-r--r--sys/modules/cm/Makefile10
-rw-r--r--sys/modules/cmx/Makefile12
-rw-r--r--sys/modules/coda/Makefile10
-rw-r--r--sys/modules/coda5/Makefile13
-rw-r--r--sys/modules/coff/Makefile10
-rw-r--r--sys/modules/coretemp/Makefile8
-rw-r--r--sys/modules/cp/Makefile28
-rw-r--r--sys/modules/cpuctl/Makefile8
-rw-r--r--sys/modules/cpufreq/Makefile26
-rw-r--r--sys/modules/crypto/Makefile21
-rw-r--r--sys/modules/cryptodev/Makefile8
-rw-r--r--sys/modules/cs/Makefile9
-rw-r--r--sys/modules/ctau/Makefile27
-rw-r--r--sys/modules/cx/Makefile27
-rw-r--r--sys/modules/cxgb/Makefile39
-rw-r--r--sys/modules/cxgb/cxgb/Makefile16
-rw-r--r--sys/modules/cxgb/cxgb_t3fw/Makefile10
-rw-r--r--sys/modules/cxgb/iw_cxgb/Makefile15
-rw-r--r--sys/modules/cxgb/toecore/Makefile11
-rw-r--r--sys/modules/cxgb/tom/Makefile15
-rw-r--r--sys/modules/cyclic/Makefile19
-rw-r--r--sys/modules/dc/Makefile9
-rw-r--r--sys/modules/dcons/Makefile23
-rw-r--r--sys/modules/dcons_crom/Makefile14
-rw-r--r--sys/modules/de/Makefile16
-rwxr-xr-xsys/modules/digi/Makefile12
-rwxr-xr-xsys/modules/digi/Makefile.inc3
-rw-r--r--sys/modules/digi/digi/Makefile16
-rw-r--r--sys/modules/digi/digi_CX/Makefile7
-rw-r--r--sys/modules/digi/digi_CX_PCI/Makefile7
-rw-r--r--sys/modules/digi/digi_EPCX/Makefile7
-rw-r--r--sys/modules/digi/digi_EPCX_PCI/Makefile7
-rw-r--r--sys/modules/digi/digi_Xe/Makefile7
-rw-r--r--sys/modules/digi/digi_Xem/Makefile7
-rw-r--r--sys/modules/digi/digi_Xr/Makefile7
-rw-r--r--sys/modules/dpms/Makefile9
-rw-r--r--sys/modules/dpt/Makefile34
-rw-r--r--sys/modules/drm/Makefile15
-rw-r--r--sys/modules/drm/Makefile.inc3
-rw-r--r--sys/modules/drm/drm/Makefile29
-rw-r--r--sys/modules/drm/i915/Makefile8
-rw-r--r--sys/modules/drm/mach64/Makefile8
-rw-r--r--sys/modules/drm/mga/Makefile9
-rw-r--r--sys/modules/drm/r128/Makefile8
-rw-r--r--sys/modules/drm/radeon/Makefile9
-rw-r--r--sys/modules/drm/savage/Makefile9
-rw-r--r--sys/modules/drm/sis/Makefile8
-rw-r--r--sys/modules/drm/tdfx/Makefile8
-rw-r--r--sys/modules/drm/via/Makefile22
-rw-r--r--sys/modules/dtrace/Makefile23
-rw-r--r--sys/modules/dtrace/Makefile.inc29
-rw-r--r--sys/modules/dtrace/dtmalloc/Makefile13
-rw-r--r--sys/modules/dtrace/dtnfsclient/Makefile13
-rw-r--r--sys/modules/dtrace/dtrace/Makefile44
-rw-r--r--sys/modules/dtrace/dtrace_test/Makefile14
-rw-r--r--sys/modules/dtrace/dtraceall/Makefile8
-rw-r--r--sys/modules/dtrace/dtraceall/dtraceall.c75
-rw-r--r--sys/modules/dtrace/fasttrap/Makefile19
-rw-r--r--sys/modules/dtrace/fbt/Makefile13
-rw-r--r--sys/modules/dtrace/lockstat/Makefile14
-rw-r--r--sys/modules/dtrace/profile/Makefile13
-rw-r--r--sys/modules/dtrace/prototype/Makefile13
-rw-r--r--sys/modules/dtrace/sdt/Makefile13
-rw-r--r--sys/modules/dtrace/systrace/Makefile13
-rw-r--r--sys/modules/dummynet/Makefile20
-rw-r--r--sys/modules/ed/Makefile18
-rw-r--r--sys/modules/elink/Makefile10
-rw-r--r--sys/modules/em/Makefile26
-rw-r--r--sys/modules/en/Makefile22
-rw-r--r--sys/modules/ep/Makefile13
-rw-r--r--sys/modules/epic/Makefile8
-rw-r--r--sys/modules/esp/Makefile13
-rw-r--r--sys/modules/et/Makefile10
-rw-r--r--sys/modules/ex/Makefile12
-rw-r--r--sys/modules/exca/Makefile8
-rw-r--r--sys/modules/ext2fs/Makefile10
-rw-r--r--sys/modules/fatm/Makefile20
-rw-r--r--sys/modules/fdc/Makefile25
-rw-r--r--sys/modules/fdescfs/Makefile9
-rw-r--r--sys/modules/fe/Makefile16
-rw-r--r--sys/modules/firewire/Makefile9
-rw-r--r--sys/modules/firewire/Makefile.inc3
-rw-r--r--sys/modules/firewire/firewire/Makefile14
-rw-r--r--sys/modules/firewire/fwe/Makefile14
-rw-r--r--sys/modules/firewire/fwip/Makefile21
-rw-r--r--sys/modules/firewire/sbp/Makefile14
-rw-r--r--sys/modules/firewire/sbp_targ/Makefile14
-rw-r--r--sys/modules/firmware/Makefile8
-rw-r--r--sys/modules/fxp/Makefile8
-rw-r--r--sys/modules/gem/Makefile12
-rw-r--r--sys/modules/geom/Makefile32
-rw-r--r--sys/modules/geom/Makefile.inc3
-rw-r--r--sys/modules/geom/geom_bde/Makefile11
-rw-r--r--sys/modules/geom/geom_bsd/Makefile8
-rw-r--r--sys/modules/geom/geom_cache/Makefile8
-rw-r--r--sys/modules/geom/geom_ccd/Makefile8
-rw-r--r--sys/modules/geom/geom_concat/Makefile8
-rw-r--r--sys/modules/geom/geom_eli/Makefile15
-rw-r--r--sys/modules/geom/geom_fox/Makefile8
-rw-r--r--sys/modules/geom/geom_gate/Makefile8
-rw-r--r--sys/modules/geom/geom_journal/Makefile10
-rw-r--r--sys/modules/geom/geom_label/Makefile15
-rw-r--r--sys/modules/geom/geom_linux_lvm/Makefile8
-rw-r--r--sys/modules/geom/geom_mbr/Makefile8
-rw-r--r--sys/modules/geom/geom_mirror/Makefile9
-rw-r--r--sys/modules/geom/geom_mountver/Makefile8
-rw-r--r--sys/modules/geom/geom_multipath/Makefile8
-rw-r--r--sys/modules/geom/geom_nop/Makefile8
-rw-r--r--sys/modules/geom/geom_part/Makefile11
-rw-r--r--sys/modules/geom/geom_part/geom_part_apm/Makefile12
-rw-r--r--sys/modules/geom/geom_part/geom_part_bsd/Makefile12
-rw-r--r--sys/modules/geom/geom_part/geom_part_ebr/Makefile13
-rw-r--r--sys/modules/geom/geom_part/geom_part_gpt/Makefile12
-rw-r--r--sys/modules/geom/geom_part/geom_part_mbr/Makefile12
-rw-r--r--sys/modules/geom/geom_part/geom_part_pc98/Makefile12
-rw-r--r--sys/modules/geom/geom_part/geom_part_vtoc8/Makefile12
-rw-r--r--sys/modules/geom/geom_pc98/Makefile8
-rw-r--r--sys/modules/geom/geom_raid3/Makefile9
-rw-r--r--sys/modules/geom/geom_sched/Makefile5
-rw-r--r--sys/modules/geom/geom_sched/Makefile.inc9
-rw-r--r--sys/modules/geom/geom_sched/gs_sched/Makefile6
-rw-r--r--sys/modules/geom/geom_sched/gsched_rr/Makefile9
-rw-r--r--sys/modules/geom/geom_shsec/Makefile8
-rw-r--r--sys/modules/geom/geom_stripe/Makefile8
-rw-r--r--sys/modules/geom/geom_sunlabel/Makefile8
-rw-r--r--sys/modules/geom/geom_uzip/Makefile9
-rw-r--r--sys/modules/geom/geom_vinum/Makefile12
-rw-r--r--sys/modules/geom/geom_virstor/Makefile8
-rw-r--r--sys/modules/geom/geom_vol_ffs/Makefile8
-rw-r--r--sys/modules/geom/geom_zero/Makefile8
-rw-r--r--sys/modules/glxsb/Makefile9
-rw-r--r--sys/modules/hatm/Makefile22
-rw-r--r--sys/modules/hifn/Makefile14
-rw-r--r--sys/modules/hme/Makefile14
-rw-r--r--sys/modules/hpfs/Makefile10
-rw-r--r--sys/modules/hptiop/Makefile10
-rw-r--r--sys/modules/hptmv/Makefile52
-rw-r--r--sys/modules/hptrr/Makefile14
-rw-r--r--sys/modules/hwpmc/Makefile39
-rw-r--r--sys/modules/i2c/Makefile6
-rw-r--r--sys/modules/i2c/Makefile.inc3
-rw-r--r--sys/modules/i2c/controllers/Makefile9
-rw-r--r--sys/modules/i2c/controllers/Makefile.inc3
-rw-r--r--sys/modules/i2c/controllers/alpm/Makefile8
-rw-r--r--sys/modules/i2c/controllers/amdpm/Makefile8
-rw-r--r--sys/modules/i2c/controllers/amdsmb/Makefile9
-rw-r--r--sys/modules/i2c/controllers/ichsmb/Makefile8
-rw-r--r--sys/modules/i2c/controllers/intpm/Makefile8
-rw-r--r--sys/modules/i2c/controllers/lpbb/Makefile8
-rw-r--r--sys/modules/i2c/controllers/nfsmb/Makefile9
-rw-r--r--sys/modules/i2c/controllers/pcf/Makefile20
-rw-r--r--sys/modules/i2c/controllers/viapm/Makefile8
-rw-r--r--sys/modules/i2c/if_ic/Makefile8
-rw-r--r--sys/modules/i2c/iic/Makefile8
-rw-r--r--sys/modules/i2c/iicbb/Makefile8
-rw-r--r--sys/modules/i2c/iicbus/Makefile8
-rw-r--r--sys/modules/i2c/iicsmb/Makefile8
-rw-r--r--sys/modules/i2c/smb/Makefile8
-rw-r--r--sys/modules/i2c/smbus/Makefile8
-rw-r--r--sys/modules/ibcs2/Makefile15
-rw-r--r--sys/modules/ichwd/Makefile8
-rw-r--r--sys/modules/ida/Makefile9
-rw-r--r--sys/modules/ie/Makefile11
-rw-r--r--sys/modules/if_bridge/Makefile19
-rw-r--r--sys/modules/if_disc/Makefile16
-rw-r--r--sys/modules/if_edsc/Makefile8
-rw-r--r--sys/modules/if_ef/Makefile36
-rw-r--r--sys/modules/if_epair/Makefile8
-rw-r--r--sys/modules/if_faith/Makefile16
-rw-r--r--sys/modules/if_gif/Makefile32
-rw-r--r--sys/modules/if_gre/Makefile19
-rw-r--r--sys/modules/if_lagg/Makefile19
-rw-r--r--sys/modules/if_ndis/Makefile10
-rw-r--r--sys/modules/if_stf/Makefile16
-rw-r--r--sys/modules/if_tap/Makefile18
-rw-r--r--sys/modules/if_tun/Makefile22
-rw-r--r--sys/modules/if_vlan/Makefile9
-rw-r--r--sys/modules/igb/Makefile27
-rw-r--r--sys/modules/iir/Makefile9
-rw-r--r--sys/modules/io/Makefile10
-rw-r--r--sys/modules/ip6_mroute_mod/Makefile19
-rw-r--r--sys/modules/ip_mroute_mod/Makefile19
-rw-r--r--sys/modules/ipdivert/Makefile8
-rw-r--r--sys/modules/ipfilter/Makefile28
-rw-r--r--sys/modules/ipfw/Makefile31
-rw-r--r--sys/modules/ipfw_nat/Makefile8
-rw-r--r--sys/modules/ipmi/Makefile15
-rw-r--r--sys/modules/ipmi/ipmi_linux/Makefile8
-rw-r--r--sys/modules/ips/Makefile8
-rw-r--r--sys/modules/ipw/Makefile8
-rw-r--r--sys/modules/ipwfw/Makefile7
-rw-r--r--sys/modules/ipwfw/ipw_bss/Makefile15
-rw-r--r--sys/modules/ipwfw/ipw_ibss/Makefile15
-rw-r--r--sys/modules/ipwfw/ipw_monitor/Makefile15
-rw-r--r--sys/modules/iscsi/Makefile5
-rw-r--r--sys/modules/iscsi/initiator/Makefile14
-rw-r--r--sys/modules/isp/Makefile14
-rw-r--r--sys/modules/ispfw/Makefile49
-rw-r--r--sys/modules/ispfw/isp_1000/Makefile36
-rw-r--r--sys/modules/ispfw/isp_1040/Makefile36
-rw-r--r--sys/modules/ispfw/isp_1040_it/Makefile36
-rw-r--r--sys/modules/ispfw/isp_1080/Makefile36
-rw-r--r--sys/modules/ispfw/isp_1080_it/Makefile36
-rw-r--r--sys/modules/ispfw/isp_12160/Makefile36
-rw-r--r--sys/modules/ispfw/isp_12160_it/Makefile36
-rw-r--r--sys/modules/ispfw/isp_2100/Makefile36
-rw-r--r--sys/modules/ispfw/isp_2200/Makefile36
-rw-r--r--sys/modules/ispfw/isp_2300/Makefile36
-rw-r--r--sys/modules/ispfw/isp_2322/Makefile36
-rw-r--r--sys/modules/ispfw/isp_2400/Makefile36
-rw-r--r--sys/modules/ispfw/isp_2400_multi/Makefile35
-rw-r--r--sys/modules/ispfw/isp_2500/Makefile36
-rw-r--r--sys/modules/ispfw/isp_2500_multi/Makefile35
-rw-r--r--sys/modules/ispfw/ispfw/Makefile36
-rw-r--r--sys/modules/iwi/Makefile8
-rw-r--r--sys/modules/iwifw/Makefile7
-rw-r--r--sys/modules/iwifw/iwi_bss/Makefile15
-rw-r--r--sys/modules/iwifw/iwi_ibss/Makefile15
-rw-r--r--sys/modules/iwifw/iwi_monitor/Makefile15
-rw-r--r--sys/modules/iwn/Makefile8
-rw-r--r--sys/modules/iwnfw/Makefile5
-rw-r--r--sys/modules/iwnfw/Makefile.inc13
-rw-r--r--sys/modules/iwnfw/iwn1000/Makefile6
-rw-r--r--sys/modules/iwnfw/iwn4965/Makefile6
-rw-r--r--sys/modules/iwnfw/iwn5000/Makefile6
-rw-r--r--sys/modules/iwnfw/iwn5150/Makefile6
-rw-r--r--sys/modules/iwnfw/iwn6000/Makefile6
-rw-r--r--sys/modules/ixgb/Makefile9
-rw-r--r--sys/modules/ixgbe/Makefile16
-rw-r--r--sys/modules/jme/Makefile8
-rw-r--r--sys/modules/joy/Makefile9
-rw-r--r--sys/modules/kbdmux/Makefile17
-rw-r--r--sys/modules/kgssapi/Makefile55
-rw-r--r--sys/modules/kgssapi_krb5/Makefile21
-rw-r--r--sys/modules/krpc/Makefile45
-rw-r--r--sys/modules/ksyms/Makefile10
-rw-r--r--sys/modules/le/Makefile26
-rw-r--r--sys/modules/lge/Makefile8
-rw-r--r--sys/modules/libalias/Makefile5
-rw-r--r--sys/modules/libalias/libalias/Makefile8
-rw-r--r--sys/modules/libalias/modules/Makefile7
-rw-r--r--sys/modules/libalias/modules/Makefile.inc3
-rw-r--r--sys/modules/libalias/modules/cuseeme/Makefile6
-rw-r--r--sys/modules/libalias/modules/dummy/Makefile6
-rw-r--r--sys/modules/libalias/modules/ftp/Makefile6
-rw-r--r--sys/modules/libalias/modules/irc/Makefile6
-rw-r--r--sys/modules/libalias/modules/modules.inc11
-rw-r--r--sys/modules/libalias/modules/nbt/Makefile6
-rw-r--r--sys/modules/libalias/modules/pptp/Makefile6
-rw-r--r--sys/modules/libalias/modules/skinny/Makefile6
-rw-r--r--sys/modules/libalias/modules/smedia/Makefile6
-rw-r--r--sys/modules/libiconv/Makefile21
-rw-r--r--sys/modules/libmbpool/Makefile19
-rw-r--r--sys/modules/libmchain/Makefile43
-rw-r--r--sys/modules/lindev/Makefile8
-rw-r--r--sys/modules/linprocfs/Makefile15
-rw-r--r--sys/modules/linsysfs/Makefile15
-rw-r--r--sys/modules/linux/Makefile66
-rw-r--r--sys/modules/lmc/Makefile24
-rw-r--r--sys/modules/lpt/Makefile10
-rw-r--r--sys/modules/mac_biba/Makefile9
-rw-r--r--sys/modules/mac_bsdextended/Makefile12
-rw-r--r--sys/modules/mac_ifoff/Makefile9
-rw-r--r--sys/modules/mac_lomac/Makefile9
-rw-r--r--sys/modules/mac_mls/Makefile9
-rw-r--r--sys/modules/mac_none/Makefile9
-rw-r--r--sys/modules/mac_partition/Makefile9
-rw-r--r--sys/modules/mac_portacl/Makefile8
-rw-r--r--sys/modules/mac_seeotheruids/Makefile9
-rw-r--r--sys/modules/mac_stub/Makefile9
-rw-r--r--sys/modules/mac_test/Makefile9
-rw-r--r--sys/modules/malo/Makefile12
-rw-r--r--sys/modules/mcd/Makefile9
-rw-r--r--sys/modules/md/Makefile8
-rw-r--r--sys/modules/mem/Makefile34
-rw-r--r--sys/modules/mfi/Makefile18
-rw-r--r--sys/modules/mfi/mfi_linux/Makefile8
-rw-r--r--sys/modules/mfi/mfip/Makefile10
-rw-r--r--sys/modules/mii/Makefile21
-rw-r--r--sys/modules/mlx/Makefile8
-rw-r--r--sys/modules/mly/Makefile13
-rw-r--r--sys/modules/mmc/Makefile8
-rw-r--r--sys/modules/mmcsd/Makefile8
-rw-r--r--sys/modules/mpt/Makefile10
-rw-r--r--sys/modules/mqueue/Makefile10
-rw-r--r--sys/modules/msdosfs/Makefile11
-rw-r--r--sys/modules/msdosfs_iconv/Makefile7
-rw-r--r--sys/modules/mse/Makefile14
-rw-r--r--sys/modules/msk/Makefile9
-rw-r--r--sys/modules/mwl/Makefile41
-rw-r--r--sys/modules/mwlfw/Makefile14
-rw-r--r--sys/modules/mxge/Makefile9
-rw-r--r--sys/modules/mxge/mxge/Makefile8
-rw-r--r--sys/modules/mxge/mxge_eth_z8e/Makefile7
-rw-r--r--sys/modules/mxge/mxge_ethp_z8e/Makefile7
-rw-r--r--sys/modules/mxge/mxge_rss_eth_z8e/Makefile7
-rw-r--r--sys/modules/mxge/mxge_rss_ethp_z8e/Makefile7
-rw-r--r--sys/modules/my/Makefile8
-rw-r--r--sys/modules/ncp/Makefile15
-rw-r--r--sys/modules/ncv/Makefile10
-rw-r--r--sys/modules/ndis/Makefile19
-rw-r--r--sys/modules/netgraph/Makefile64
-rw-r--r--sys/modules/netgraph/Makefile.inc8
-rw-r--r--sys/modules/netgraph/UI/Makefile7
-rw-r--r--sys/modules/netgraph/async/Makefile7
-rw-r--r--sys/modules/netgraph/atm/Makefile11
-rw-r--r--sys/modules/netgraph/atm/Makefile.inc3
-rw-r--r--sys/modules/netgraph/atm/atm/Makefile11
-rw-r--r--sys/modules/netgraph/atm/atmbase/Makefile18
-rw-r--r--sys/modules/netgraph/atm/ccatm/Makefile17
-rw-r--r--sys/modules/netgraph/atm/sscfu/Makefile14
-rw-r--r--sys/modules/netgraph/atm/sscop/Makefile13
-rw-r--r--sys/modules/netgraph/atm/uni/Makefile17
-rw-r--r--sys/modules/netgraph/atmllc/Makefile6
-rw-r--r--sys/modules/netgraph/bluetooth/Makefile13
-rw-r--r--sys/modules/netgraph/bluetooth/Makefile.inc3
-rw-r--r--sys/modules/netgraph/bluetooth/bluetooth/Makefile11
-rw-r--r--sys/modules/netgraph/bluetooth/bt3c/Makefile12
-rw-r--r--sys/modules/netgraph/bluetooth/h4/Makefile12
-rw-r--r--sys/modules/netgraph/bluetooth/hci/Makefile13
-rw-r--r--sys/modules/netgraph/bluetooth/l2cap/Makefile13
-rw-r--r--sys/modules/netgraph/bluetooth/socket/Makefile16
-rw-r--r--sys/modules/netgraph/bluetooth/ubt/Makefile13
-rw-r--r--sys/modules/netgraph/bluetooth/ubtbcmfw/Makefile13
-rw-r--r--sys/modules/netgraph/bpf/Makefile9
-rw-r--r--sys/modules/netgraph/bridge/Makefile6
-rw-r--r--sys/modules/netgraph/car/Makefile6
-rw-r--r--sys/modules/netgraph/cisco/Makefile7
-rw-r--r--sys/modules/netgraph/deflate/Makefile6
-rw-r--r--sys/modules/netgraph/device/Makefile7
-rw-r--r--sys/modules/netgraph/echo/Makefile7
-rw-r--r--sys/modules/netgraph/eiface/Makefile6
-rw-r--r--sys/modules/netgraph/etf/Makefile7
-rw-r--r--sys/modules/netgraph/ether/Makefile6
-rw-r--r--sys/modules/netgraph/ether_echo/Makefile7
-rw-r--r--sys/modules/netgraph/fec/Makefile8
-rw-r--r--sys/modules/netgraph/frame_relay/Makefile7
-rw-r--r--sys/modules/netgraph/gif/Makefile14
-rw-r--r--sys/modules/netgraph/gif_demux/Makefile6
-rw-r--r--sys/modules/netgraph/hole/Makefile7
-rw-r--r--sys/modules/netgraph/hub/Makefile6
-rw-r--r--sys/modules/netgraph/iface/Makefile21
-rw-r--r--sys/modules/netgraph/ip_input/Makefile6
-rw-r--r--sys/modules/netgraph/ipfw/Makefile6
-rw-r--r--sys/modules/netgraph/ksocket/Makefile6
-rw-r--r--sys/modules/netgraph/l2tp/Makefile6
-rw-r--r--sys/modules/netgraph/lmi/Makefile7
-rw-r--r--sys/modules/netgraph/mppc/Makefile32
-rw-r--r--sys/modules/netgraph/nat/Makefile6
-rw-r--r--sys/modules/netgraph/netflow/Makefile11
-rw-r--r--sys/modules/netgraph/netgraph/Makefile7
-rw-r--r--sys/modules/netgraph/one2many/Makefile6
-rw-r--r--sys/modules/netgraph/pipe/Makefile6
-rw-r--r--sys/modules/netgraph/ppp/Makefile7
-rw-r--r--sys/modules/netgraph/pppoe/Makefile7
-rw-r--r--sys/modules/netgraph/pptpgre/Makefile7
-rw-r--r--sys/modules/netgraph/pred1/Makefile6
-rw-r--r--sys/modules/netgraph/rfc1490/Makefile7
-rw-r--r--sys/modules/netgraph/sample/Makefile6
-rw-r--r--sys/modules/netgraph/socket/Makefile7
-rw-r--r--sys/modules/netgraph/source/Makefile8
-rw-r--r--sys/modules/netgraph/split/Makefile7
-rw-r--r--sys/modules/netgraph/sppp/Makefile7
-rw-r--r--sys/modules/netgraph/tag/Makefile6
-rw-r--r--sys/modules/netgraph/tcpmss/Makefile6
-rw-r--r--sys/modules/netgraph/tee/Makefile7
-rw-r--r--sys/modules/netgraph/tty/Makefile7
-rw-r--r--sys/modules/netgraph/vjc/Makefile9
-rw-r--r--sys/modules/netgraph/vlan/Makefile6
-rw-r--r--sys/modules/nfe/Makefile8
-rw-r--r--sys/modules/nfs_common/Makefile8
-rw-r--r--sys/modules/nfscl/Makefile26
-rw-r--r--sys/modules/nfsclient/Makefile44
-rw-r--r--sys/modules/nfscommon/Makefile15
-rw-r--r--sys/modules/nfsd/Makefile18
-rw-r--r--sys/modules/nfslockd/Makefile25
-rw-r--r--sys/modules/nfsserver/Makefile21
-rw-r--r--sys/modules/nfssvc/Makefile9
-rw-r--r--sys/modules/nge/Makefile8
-rw-r--r--sys/modules/nmdm/Makefile8
-rw-r--r--sys/modules/nsp/Makefile10
-rw-r--r--sys/modules/ntfs/Makefile11
-rw-r--r--sys/modules/ntfs_iconv/Makefile7
-rw-r--r--sys/modules/nullfs/Makefile9
-rw-r--r--sys/modules/nve/Makefile19
-rw-r--r--sys/modules/nvram/Makefile8
-rw-r--r--sys/modules/nwfs/Makefile15
-rw-r--r--sys/modules/nxge/Makefile41
-rw-r--r--sys/modules/opensolaris/Makefile24
-rw-r--r--sys/modules/padlock/Makefile9
-rw-r--r--sys/modules/patm/Makefile23
-rw-r--r--sys/modules/pccard/Makefile9
-rw-r--r--sys/modules/pcfclock/Makefile9
-rw-r--r--sys/modules/pcn/Makefile9
-rw-r--r--sys/modules/pf/Makefile34
-rw-r--r--sys/modules/pflog/Makefile26
-rw-r--r--sys/modules/plip/Makefile10
-rw-r--r--sys/modules/pmc/Makefile9
-rw-r--r--sys/modules/portalfs/Makefile9
-rw-r--r--sys/modules/powermac_nvram/Makefile10
-rw-r--r--sys/modules/ppbus/Makefile22
-rw-r--r--sys/modules/ppc/Makefile24
-rw-r--r--sys/modules/ppi/Makefile10
-rw-r--r--sys/modules/pps/Makefile9
-rw-r--r--sys/modules/procfs/Makefile43
-rw-r--r--sys/modules/pseudofs/Makefile26
-rw-r--r--sys/modules/pst/Makefile9
-rw-r--r--sys/modules/pty/Makefile8
-rw-r--r--sys/modules/puc/Makefile14
-rw-r--r--sys/modules/ral/Makefile9
-rw-r--r--sys/modules/ralfw/Makefile5
-rw-r--r--sys/modules/ralfw/Makefile.inc15
-rw-r--r--sys/modules/ralfw/rt2561/Makefile5
-rw-r--r--sys/modules/ralfw/rt2561s/Makefile5
-rw-r--r--sys/modules/ralfw/rt2661/Makefile6
-rw-r--r--sys/modules/random/Makefile18
-rw-r--r--sys/modules/rc/Makefile8
-rw-r--r--sys/modules/rc4/Makefile8
-rw-r--r--sys/modules/rdma/Makefile9
-rw-r--r--sys/modules/rdma/addr/Makefile10
-rw-r--r--sys/modules/rdma/cma/Makefile10
-rw-r--r--sys/modules/rdma/core/Makefile12
-rw-r--r--sys/modules/rdma/iwcm/Makefile10
-rw-r--r--sys/modules/rdma/krping/Makefile10
-rw-r--r--sys/modules/re/Makefile9
-rw-r--r--sys/modules/reiserfs/Makefile11
-rw-r--r--sys/modules/rl/Makefile9
-rw-r--r--sys/modules/rndtest/Makefile8
-rw-r--r--sys/modules/rp/Makefile13
-rw-r--r--sys/modules/runfw/Makefile11
-rw-r--r--sys/modules/s3/Makefile9
-rw-r--r--sys/modules/safe/Makefile40
-rw-r--r--sys/modules/sbni/Makefile10
-rw-r--r--sys/modules/scc/Makefile20
-rw-r--r--sys/modules/scd/Makefile9
-rw-r--r--sys/modules/scsi_low/Makefile28
-rw-r--r--sys/modules/sdhci/Makefile8
-rw-r--r--sys/modules/sem/Makefile8
-rw-r--r--sys/modules/sf/Makefile9
-rw-r--r--sys/modules/sge/Makefile8
-rw-r--r--sys/modules/siba_bwn/Makefile9
-rw-r--r--sys/modules/siis/Makefile8
-rw-r--r--sys/modules/sio/Makefile29
-rw-r--r--sys/modules/sis/Makefile9
-rw-r--r--sys/modules/sk/Makefile9
-rw-r--r--sys/modules/smbfs/Makefile54
-rw-r--r--sys/modules/sn/Makefile9
-rw-r--r--sys/modules/snc/Makefile14
-rw-r--r--sys/modules/snp/Makefile8
-rw-r--r--sys/modules/sound/Makefile7
-rw-r--r--sys/modules/sound/Makefile.inc3
-rw-r--r--sys/modules/sound/driver/Makefile22
-rw-r--r--sys/modules/sound/driver/Makefile.inc5
-rw-r--r--sys/modules/sound/driver/ad1816/Makefile9
-rw-r--r--sys/modules/sound/driver/ai2s/Makefile10
-rw-r--r--sys/modules/sound/driver/als4000/Makefile9
-rw-r--r--sys/modules/sound/driver/atiixp/Makefile9
-rw-r--r--sys/modules/sound/driver/audiocs/Makefile10
-rw-r--r--sys/modules/sound/driver/cmi/Makefile10
-rw-r--r--sys/modules/sound/driver/cs4281/Makefile9
-rw-r--r--sys/modules/sound/driver/csa/Makefile9
-rw-r--r--sys/modules/sound/driver/davbus/Makefile10
-rw-r--r--sys/modules/sound/driver/driver/Makefile9
-rw-r--r--sys/modules/sound/driver/ds1/Makefile9
-rw-r--r--sys/modules/sound/driver/emu10k1/Makefile19
-rw-r--r--sys/modules/sound/driver/emu10kx/Makefile39
-rw-r--r--sys/modules/sound/driver/envy24/Makefile9
-rw-r--r--sys/modules/sound/driver/envy24ht/Makefile9
-rw-r--r--sys/modules/sound/driver/es137x/Makefile9
-rw-r--r--sys/modules/sound/driver/ess/Makefile9
-rw-r--r--sys/modules/sound/driver/fm801/Makefile9
-rw-r--r--sys/modules/sound/driver/hda/Makefile9
-rwxr-xr-xsys/modules/sound/driver/ich/Makefile8
-rw-r--r--sys/modules/sound/driver/maestro/Makefile10
-rw-r--r--sys/modules/sound/driver/maestro3/Makefile11
-rw-r--r--sys/modules/sound/driver/mss/Makefile9
-rw-r--r--sys/modules/sound/driver/neomagic/Makefile9
-rw-r--r--sys/modules/sound/driver/sb16/Makefile9
-rw-r--r--sys/modules/sound/driver/sb8/Makefile9
-rw-r--r--sys/modules/sound/driver/sbc/Makefile9
-rw-r--r--sys/modules/sound/driver/solo/Makefile9
-rw-r--r--sys/modules/sound/driver/spicds/Makefile9
-rw-r--r--sys/modules/sound/driver/t4dwave/Makefile9
-rw-r--r--sys/modules/sound/driver/uaudio/Makefile12
-rw-r--r--sys/modules/sound/driver/via8233/Makefile9
-rw-r--r--sys/modules/sound/driver/via82c686/Makefile9
-rw-r--r--sys/modules/sound/driver/vibes/Makefile9
-rw-r--r--sys/modules/sound/sound/Makefile67
-rw-r--r--sys/modules/speaker/Makefile9
-rw-r--r--sys/modules/splash/Makefile5
-rw-r--r--sys/modules/splash/Makefile.inc3
-rw-r--r--sys/modules/splash/bmp/Makefile8
-rw-r--r--sys/modules/splash/pcx/Makefile8
-rw-r--r--sys/modules/sppp/Makefile29
-rw-r--r--sys/modules/ste/Makefile9
-rw-r--r--sys/modules/stg/Makefile13
-rw-r--r--sys/modules/stge/Makefile9
-rw-r--r--sys/modules/streams/Makefile17
-rw-r--r--sys/modules/svr4/Makefile34
-rw-r--r--sys/modules/svr4/README38
-rw-r--r--sys/modules/svr4/TO-DO15
-rw-r--r--sys/modules/sym/Makefile9
-rw-r--r--sys/modules/syscons/Makefile33
-rw-r--r--sys/modules/syscons/Makefile.inc3
-rw-r--r--sys/modules/syscons/apm/Makefile8
-rw-r--r--sys/modules/syscons/beastie/Makefile10
-rw-r--r--sys/modules/syscons/blank/Makefile8
-rw-r--r--sys/modules/syscons/daemon/Makefile8
-rw-r--r--sys/modules/syscons/dragon/Makefile8
-rw-r--r--sys/modules/syscons/fade/Makefile8
-rw-r--r--sys/modules/syscons/fire/Makefile8
-rw-r--r--sys/modules/syscons/green/Makefile8
-rw-r--r--sys/modules/syscons/logo/Makefile8
-rw-r--r--sys/modules/syscons/rain/Makefile8
-rw-r--r--sys/modules/syscons/snake/Makefile8
-rw-r--r--sys/modules/syscons/star/Makefile8
-rw-r--r--sys/modules/syscons/warp/Makefile8
-rw-r--r--sys/modules/sysvipc/Makefile5
-rw-r--r--sys/modules/sysvipc/Makefile.inc3
-rw-r--r--sys/modules/sysvipc/sysvmsg/Makefile8
-rw-r--r--sys/modules/sysvipc/sysvsem/Makefile8
-rw-r--r--sys/modules/sysvipc/sysvshm/Makefile8
-rw-r--r--sys/modules/ti/Makefile8
-rw-r--r--sys/modules/tl/Makefile9
-rw-r--r--sys/modules/tmpfs/Makefile9
-rw-r--r--sys/modules/trm/Makefile14
-rw-r--r--sys/modules/twa/Makefile47
-rw-r--r--sys/modules/twe/Makefile30
-rw-r--r--sys/modules/tx/Makefile9
-rw-r--r--sys/modules/txp/Makefile8
-rw-r--r--sys/modules/uart/Makefile29
-rw-r--r--sys/modules/ubsec/Makefile14
-rw-r--r--sys/modules/ubser/Makefile9
-rw-r--r--sys/modules/uchcom/Makefile9
-rw-r--r--sys/modules/ucycom/Makefile9
-rw-r--r--sys/modules/udf/Makefile11
-rw-r--r--sys/modules/udf_iconv/Makefile9
-rw-r--r--sys/modules/ufs/Makefile17
-rw-r--r--sys/modules/unionfs/Makefile9
-rw-r--r--sys/modules/usb/Makefile51
-rw-r--r--sys/modules/usb/at91dci/Makefile42
-rw-r--r--sys/modules/usb/atmegadci/Makefile42
-rw-r--r--sys/modules/usb/atp/Makefile11
-rw-r--r--sys/modules/usb/aue/Makefile37
-rw-r--r--sys/modules/usb/axe/Makefile37
-rw-r--r--sys/modules/usb/cdce/Makefile37
-rw-r--r--sys/modules/usb/cue/Makefile37
-rw-r--r--sys/modules/usb/ehci/Makefile38
-rw-r--r--sys/modules/usb/kue/Makefile37
-rw-r--r--sys/modules/usb/musb/Makefile42
-rw-r--r--sys/modules/usb/ohci/Makefile38
-rw-r--r--sys/modules/usb/quirk/Makefile36
-rw-r--r--sys/modules/usb/rue/Makefile37
-rw-r--r--sys/modules/usb/rum/Makefile36
-rw-r--r--sys/modules/usb/run/Makefile36
-rw-r--r--sys/modules/usb/template/Makefile36
-rw-r--r--sys/modules/usb/u3g/Makefile36
-rw-r--r--sys/modules/usb/uark/Makefile36
-rw-r--r--sys/modules/usb/uath/Makefile10
-rw-r--r--sys/modules/usb/ubsa/Makefile36
-rw-r--r--sys/modules/usb/ubser/Makefile36
-rw-r--r--sys/modules/usb/uchcom/Makefile36
-rw-r--r--sys/modules/usb/ucom/Makefile36
-rw-r--r--sys/modules/usb/ucycom/Makefile36
-rw-r--r--sys/modules/usb/udav/Makefile37
-rw-r--r--sys/modules/usb/udbp/Makefile37
-rw-r--r--sys/modules/usb/uether/Makefile37
-rw-r--r--sys/modules/usb/ufm/Makefile36
-rw-r--r--sys/modules/usb/ufoma/Makefile36
-rw-r--r--sys/modules/usb/uftdi/Makefile36
-rw-r--r--sys/modules/usb/ugensa/Makefile36
-rw-r--r--sys/modules/usb/uhci/Makefile38
-rw-r--r--sys/modules/usb/uhid/Makefile36
-rw-r--r--sys/modules/usb/uhso/Makefile37
-rw-r--r--sys/modules/usb/uipaq/Makefile36
-rw-r--r--sys/modules/usb/ukbd/Makefile37
-rw-r--r--sys/modules/usb/ulpt/Makefile36
-rw-r--r--sys/modules/usb/umass/Makefile37
-rw-r--r--sys/modules/usb/umct/Makefile36
-rw-r--r--sys/modules/usb/umodem/Makefile36
-rw-r--r--sys/modules/usb/umoscom/Makefile36
-rw-r--r--sys/modules/usb/ums/Makefile36
-rw-r--r--sys/modules/usb/upgt/Makefile10
-rw-r--r--sys/modules/usb/uplcom/Makefile36
-rw-r--r--sys/modules/usb/ural/Makefile36
-rw-r--r--sys/modules/usb/urio/Makefile37
-rw-r--r--sys/modules/usb/urtw/Makefile10
-rw-r--r--sys/modules/usb/usb/Makefile42
-rw-r--r--sys/modules/usb/usfs/Makefile37
-rw-r--r--sys/modules/usb/uslcom/Makefile36
-rw-r--r--sys/modules/usb/uss820dci/Makefile42
-rw-r--r--sys/modules/usb/uvisor/Makefile36
-rw-r--r--sys/modules/usb/uvscom/Makefile36
-rw-r--r--sys/modules/usb/zyd/Makefile36
-rw-r--r--sys/modules/utopia/Makefile8
-rw-r--r--sys/modules/vesa/Makefile13
-rw-r--r--sys/modules/vge/Makefile8
-rw-r--r--sys/modules/vkbd/Makefile17
-rw-r--r--sys/modules/vpo/Makefile10
-rw-r--r--sys/modules/vr/Makefile9
-rw-r--r--sys/modules/vx/Makefile12
-rw-r--r--sys/modules/wb/Makefile9
-rw-r--r--sys/modules/wi/Makefile9
-rw-r--r--sys/modules/wlan/Makefile32
-rw-r--r--sys/modules/wlan_acl/Makefile14
-rw-r--r--sys/modules/wlan_amrr/Makefile14
-rw-r--r--sys/modules/wlan_ccmp/Makefile16
-rw-r--r--sys/modules/wlan_rssadapt/Makefile14
-rw-r--r--sys/modules/wlan_tkip/Makefile14
-rw-r--r--sys/modules/wlan_wep/Makefile14
-rw-r--r--sys/modules/wlan_xauth/Makefile14
-rw-r--r--sys/modules/wpi/Makefile8
-rw-r--r--sys/modules/wpifw/Makefile13
-rw-r--r--sys/modules/x86bios/Makefile11
-rw-r--r--sys/modules/xe/Makefile9
-rw-r--r--sys/modules/xfs/Makefile93
-rw-r--r--sys/modules/xl/Makefile9
-rw-r--r--sys/modules/zfs/Makefile99
-rw-r--r--sys/modules/zlib/Makefile8
745 files changed, 12041 insertions, 0 deletions
diff --git a/sys/modules/3dfx/Makefile b/sys/modules/3dfx/Makefile
new file mode 100644
index 0000000..ac7730b
--- /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 0000000..8376037
--- /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 0000000..83c7757
--- /dev/null
+++ b/sys/modules/Makefile
@@ -0,0 +1,659 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+SUBDIR= ${_3dfx} \
+ ${_3dfx_linux} \
+ ${_aac} \
+ accf_data \
+ accf_dns \
+ accf_http \
+ ${_acpi} \
+ ae \
+ age \
+ ${_agp} \
+ aha \
+ ${_ahb} \
+ ahci \
+ ${_aic} \
+ aic7xxx \
+ aio \
+ alc \
+ ale \
+ alq \
+ ${_amd} \
+ ${_amdsbwd} \
+ ${_amdtemp} \
+ amr \
+ ${_an} \
+ ${_aout} \
+ ${_apm} \
+ ${_arcmsr} \
+ ${_arcnet} \
+ ${_asmc} \
+ ${_asr} \
+ ata \
+ ath \
+ ${_auxio} \
+ bce \
+ bfe \
+ bge \
+ ${_bios} \
+ ${_bktr} \
+ ${_bm} \
+ bridgestp \
+ bwi \
+ bwn \
+ cam \
+ ${_canbepm} \
+ ${_canbus} \
+ ${_cardbus} \
+ cas \
+ ${_cbb} \
+ cd9660 \
+ cd9660_iconv \
+ ${_ce} \
+ ${_ciss} \
+ ${_cm} \
+ ${_cmx} \
+ coda \
+ coda5 \
+ ${_coff} \
+ ${_coretemp} \
+ ${_cp} \
+ ${_cpuctl} \
+ ${_cpufreq} \
+ ${_crypto} \
+ ${_cryptodev} \
+ ${_cs} \
+ ${_ctau} \
+ ${_cxgb} \
+ ${_cyclic} \
+ dc \
+ dcons \
+ dcons_crom \
+ de \
+ ${_dpms} \
+ ${_dpt} \
+ ${_drm} \
+ ${_dtrace} \
+ dummynet \
+ ${_ed} \
+ ${_elink} \
+ ${_em} \
+ en \
+ ${_ep} \
+ ${_epic} \
+ ${_et} \
+ ${_ex} \
+ ${_exca} \
+ ${_ext2fs} \
+ fatm \
+ fdc \
+ fdescfs \
+ ${_fe} \
+ firewire \
+ firmware \
+ fxp \
+ gem \
+ geom \
+ ${_glxsb} \
+ hatm \
+ hifn \
+ hme \
+ ${_hptiop} \
+ ${_hptmv} \
+ ${_hptrr} \
+ hwpmc \
+ ${_i2c} \
+ ${_ibcs2} \
+ ${_ichwd} \
+ ${_ida} \
+ ${_ie} \
+ if_bridge \
+ if_disc \
+ if_edsc \
+ if_ef \
+ if_epair \
+ if_faith \
+ if_gif \
+ if_gre \
+ if_lagg \
+ ${_if_ndis} \
+ if_stf \
+ if_tap \
+ if_tun \
+ if_vlan \
+ ${_igb} \
+ ${_iir} \
+ ${_io} \
+ ipdivert \
+ ${_ipfilter} \
+ ipfw \
+ ipfw_nat \
+ ${_ipmi} \
+ ip_mroute_mod \
+ ${_ips} \
+ ${_ipw} \
+ ${_ipwfw} \
+ iscsi \
+ isp \
+ ispfw \
+ ${_iwi} \
+ ${_iwifw} \
+ ${_iwn} \
+ ${_iwnfw} \
+ ${_ixgb} \
+ jme \
+ joy \
+ kbdmux \
+ krpc \
+ ksyms \
+ le \
+ lge \
+ libalias \
+ libiconv \
+ libmbpool \
+ libmchain \
+ ${_lindev} \
+ ${_linprocfs} \
+ ${_linsysfs} \
+ ${_linux} \
+ lmc \
+ lpt \
+ mac_biba \
+ mac_bsdextended \
+ mac_ifoff \
+ mac_lomac \
+ mac_mls \
+ mac_none \
+ mac_partition \
+ mac_portacl \
+ mac_seeotheruids \
+ mac_stub \
+ mac_test \
+ malo \
+ mcd \
+ md \
+ mem \
+ mfi \
+ mii \
+ mlx \
+ ${_mly} \
+ mmc \
+ mmcsd \
+ mpt \
+ mqueue \
+ msdosfs \
+ msdosfs_iconv \
+ ${_mse} \
+ msk \
+ mwl \
+ mxge \
+ my \
+ ${_ncp} \
+ ${_ncv} \
+ ${_ndis} \
+ ${_netgraph} \
+ ${_nfe} \
+ nfs_common \
+ nfscl \
+ nfsclient \
+ nfscommon \
+ nfsd \
+ nfslockd \
+ nfsserver \
+ nfssvc \
+ nge \
+ nmdm \
+ ${_nsp} \
+ ntfs \
+ ntfs_iconv \
+ nullfs \
+ ${_nve} \
+ ${_nvram} \
+ ${_nwfs} \
+ ${_nxge} \
+ ${_opensolaris} \
+ ${_padlock} \
+ patm \
+ ${_pccard} \
+ ${_pcfclock} \
+ pcn \
+ ${_pf} \
+ ${_pflog} \
+ plip \
+ ${_pmc} \
+ portalfs \
+ ppbus \
+ ppc \
+ ppi \
+ pps \
+ procfs \
+ pseudofs \
+ ${_pst} \
+ pty \
+ puc \
+ ral \
+ ralfw \
+ ${_random} \
+ rc4 \
+ ${_rdma} \
+ re \
+ reiserfs \
+ rl \
+ runfw \
+ ${_s3} \
+ ${_safe} \
+ ${_sbni} \
+ scc \
+ scd \
+ ${_scsi_low} \
+ sdhci \
+ sem \
+ sf \
+ sge \
+ siba_bwn \
+ siis \
+ sis \
+ sk \
+ ${_smbfs} \
+ sn \
+ ${_snc} \
+ snp \
+ ${_sound} \
+ ${_speaker} \
+ ${_splash} \
+ ${_sppp} \
+ ste \
+ ${_stg} \
+ stge \
+ ${_streams} \
+ ${_svr4} \
+ ${_sym} \
+ ${_syscons} \
+ sysvipc \
+ ti \
+ tl \
+ tmpfs \
+ trm \
+ ${_twa} \
+ twe \
+ tx \
+ txp \
+ uart \
+ ubsec \
+ udf \
+ udf_iconv \
+ ufs \
+ unionfs \
+ usb \
+ utopia \
+ ${_vesa} \
+ vge \
+ vkbd \
+ ${_vpo} \
+ vr \
+ vx \
+ wb \
+ ${_wi} \
+ wlan \
+ wlan_acl \
+ wlan_amrr \
+ wlan_ccmp \
+ wlan_rssadapt \
+ wlan_tkip \
+ wlan_wep \
+ wlan_xauth \
+ ${_wpi} \
+ ${_wpifw} \
+ ${_x86bios} \
+ ${_xe} \
+ xfs \
+ xl \
+ ${_zfs} \
+ zlib \
+
+.if ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "arm" && \
+ ${MACHINE_ARCH} != "mips"
+_syscons= syscons
+_vpo= vpo
+.endif
+
+.if ${MACHINE_ARCH} != "arm" && ${MACHINE_ARCH} != "mips"
+# no BUS_SPACE_UNSPECIFIED
+# No barrier instruction support (specific to this driver)
+_sym= sym
+# intr_disable() is a macro, causes problems
+_cxgb= cxgb
+.endif
+
+.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
+.if exists(${.CURDIR}/../opencrypto)
+_crypto= crypto
+_cryptodev= cryptodev
+.endif
+.if exists(${.CURDIR}/../crypto)
+_random= random
+.endif
+.endif
+
+.if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
+_ipfilter= ipfilter
+.endif
+
+.if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
+_netgraph= netgraph
+.endif
+
+.if ${MK_PF} != "no" || 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
+_an= an
+_aout= aout
+_apm= apm
+_arcnet= arcnet
+_bktr= bktr
+_cardbus= cardbus
+_cbb= cbb
+_ce= ce
+_coff= coff
+_cp= cp
+_cpuctl= cpuctl
+_cpufreq= cpufreq
+_cs= cs
+.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
+_cyclic= cyclic
+.endif
+_dpms= dpms
+_drm= drm
+.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
+_dtrace= dtrace
+.endif
+_ed= ed
+_elink= elink
+_em= em
+_ep= ep
+_et= et
+_exca= exca
+_ext2fs= ext2fs
+_fe= fe
+_glxsb= glxsb
+_i2c= i2c
+_ibcs2= ibcs2
+_ie= ie
+_if_ndis= if_ndis
+_igb= igb
+_io= io
+_lindev= lindev
+_linprocfs= linprocfs
+_linsysfs= linsysfs
+_linux= linux
+_mse= mse
+.if ${MK_NCP} != "no"
+_ncp= ncp
+.endif
+_ncv= ncv
+_ndis= ndis
+_nsp= nsp
+.if ${MK_NCP} != "no"
+_nwfs= nwfs
+.endif
+.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
+_opensolaris= opensolaris
+.endif
+_pccard= pccard
+_pcfclock= pcfclock
+_pst= pst
+_rdma= rdma
+_safe= safe
+_sbni= sbni
+_scsi_low= scsi_low
+_smbfs= smbfs
+_sound= sound
+_speaker= speaker
+_splash= splash
+_sppp= sppp
+_stg= stg
+_streams= streams
+_svr4= svr4
+_wi= wi
+_xe= xe
+.if ${MK_ZFS} != "no" || defined(ALL_MODULES)
+_zfs= zfs
+.endif
+.if ${MACHINE} == "i386"
+_aac= aac
+_acpi= acpi
+_ahb= ahb
+_amdsbwd= amdsbwd
+_amdtemp= amdtemp
+_arcmsr= arcmsr
+_asmc= asmc
+_asr= asr
+_bios= bios
+_ciss= ciss
+_cm= cm
+_cmx= cmx
+_coretemp= coretemp
+_ctau= ctau
+_dpt= dpt
+_ex= ex
+_hptiop= hptiop
+_hptmv= hptmv
+_hptrr= hptrr
+_ichwd= ichwd
+_ida= ida
+_iir= iir
+_ipmi= ipmi
+_ips= ips
+_ipw= ipw
+_ipwfw= ipwfw
+_iwi= iwi
+_iwifw= iwifw
+_iwn= iwn
+_iwnfw= iwnfw
+_ixgb= ixgb
+_mly= mly
+_nfe= nfe
+_nve= nve
+_nvram= nvram
+_nxge= nxge
+_wpi= wpi
+_wpifw= wpifw
+.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
+.if exists(${.CURDIR}/../crypto/via)
+_padlock= padlock
+.endif
+.endif
+_s3= s3
+_twa= twa
+_vesa= vesa
+_x86bios= x86bios
+.elif ${MACHINE} == "pc98"
+_canbepm= canbepm
+_canbus= canbus
+_pmc= pmc
+_snc= snc
+.endif
+.endif
+
+.if ${MACHINE_ARCH} == "amd64"
+_aac= aac
+_acpi= acpi
+_agp= agp
+_an= an
+_amdsbwd= amdsbwd
+_amdtemp= amdtemp
+_arcmsr= arcmsr
+_asmc= asmc
+_cardbus= cardbus
+_cbb= cbb
+_cmx= cmx
+_ciss= ciss
+_coretemp= coretemp
+_cpuctl= cpuctl
+_cpufreq= cpufreq
+.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
+_cyclic= cyclic
+.endif
+_dpms= dpms
+_drm= drm
+.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
+_dtrace= dtrace
+.endif
+_ed= ed
+_et= et
+_em= em
+_exca= exca
+_ext2fs= ext2fs
+_hptiop= hptiop
+_hptmv= hptmv
+_hptrr= hptrr
+_i2c= i2c
+_ichwd= ichwd
+_ida= ida
+_if_ndis= if_ndis
+_igb= igb
+_iir= iir
+_io= io
+_ipmi= ipmi
+_ips= ips
+_ipw= ipw
+_ipwfw= ipwfw
+_iwi= iwi
+_iwifw= iwifw
+_iwn= iwn
+_iwnfw= iwnfw
+_ixgb= ixgb
+_lindev= lindev
+_linprocfs= linprocfs
+_linsysfs= linsysfs
+_linux= linux
+_mly= mly
+_ndis= ndis
+_nfe= nfe
+_nve= nve
+_nvram= nvram
+_nxge= nxge
+.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
+_opensolaris= opensolaris
+.endif
+.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
+.if exists(${.CURDIR}/../crypto/via)
+_padlock= padlock
+.endif
+.endif
+_pccard= pccard
+_rdma= rdma
+_s3= s3
+_safe= safe
+_scsi_low= scsi_low
+_smbfs= smbfs
+_sound= sound
+_speaker= speaker
+_splash= splash
+_sppp= sppp
+_twa= twa
+_vesa= vesa
+_x86bios= x86bios
+_wi= wi
+_wpi= wpi
+_wpifw= wpifw
+.if ${MK_ZFS} != "no" || defined(ALL_MODULES)
+_zfs= zfs
+.endif
+.endif
+
+.if ${MACHINE_ARCH} == "ia64"
+_aac= aac
+_aic= aic
+_an= an
+_arcnet= arcnet
+_asr= asr
+_bktr= bktr
+_cardbus= cardbus
+_cbb= cbb
+_ciss= ciss
+_cm= cm
+_cmx= cmx
+_coff= coff
+_cpufreq= cpufreq
+_dpt= dpt
+_em= em
+_ep= ep
+_et= et
+_exca= exca
+_fe= fe
+_hptiop= hptiop
+_ida= ida
+_igb= igb
+_iir= iir
+_ips= ips
+_mly= mly
+_pccard= pccard
+_scsi_low= scsi_low
+_smbfs= smbfs
+_sound= sound
+_splash= splash
+_sppp= sppp
+_streams= streams
+_twa= twa
+_wi= wi
+_xe= xe
+.endif
+
+.if ${MACHINE_ARCH} == "powerpc"
+_an= an
+_bm= bm
+_cpufreq= cpufreq
+_nvram= powermac_nvram
+_smbfs= smbfs
+_sound= sound
+.endif
+
+.if ${MACHINE_ARCH} == "sparc64"
+_auxio= auxio
+_em= em
+_epic= epic
+_i2c= i2c
+_igb= igb
+.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
+_opensolaris= opensolaris
+.endif
+_smbfs= smbfs
+_sound= sound
+.if ${MK_ZFS} != "no" || defined(ALL_MODULES)
+_zfs= zfs
+.endif
+.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 0000000..9dc38af
--- /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 0000000..6964def
--- /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 0000000..265f86d
--- /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 0000000..4247a22
--- /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 0000000..6c5216c
--- /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_dns/Makefile b/sys/modules/accf_dns/Makefile
new file mode 100644
index 0000000..49012e2
--- /dev/null
+++ b/sys/modules/accf_dns/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../netinet
+
+KMOD= accf_dns
+SRCS= accf_dns.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/accf_http/Makefile b/sys/modules/accf_http/Makefile
new file mode 100644
index 0000000..b942d3e
--- /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 0000000..daddea9
--- /dev/null
+++ b/sys/modules/acpi/Makefile
@@ -0,0 +1,11 @@
+# $FreeBSD$
+
+.if ${MACHINE} == "i386"
+SUBDIR= acpi
+.endif
+
+SUBDIR+= acpi_aiboost acpi_asus acpi_fujitsu acpi_hp acpi_ibm \
+ acpi_panasonic acpi_sony acpi_toshiba acpi_video \
+ acpi_dock acpi_wmi
+
+.include <bsd.subdir.mk>
diff --git a/sys/modules/acpi/Makefile.inc b/sys/modules/acpi/Makefile.inc
new file mode 100644
index 0000000..265f86d
--- /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 0000000..2606023
--- /dev/null
+++ b/sys/modules/acpi/acpi/Makefile
@@ -0,0 +1,113 @@
+# $FreeBSD$
+
+.if ${MACHINE_ARCH} == "ia64"
+.error "ACPI can only be compiled into the kernel on the ia64 platform"
+.endif
+
+.if ${MACHINE} != "amd64" && ${MACHINE} != "i386"
+.error "The ACPI module is only for amd64 and i386"
+.endif
+
+.PATH: ${.CURDIR}/../../../contrib/dev/acpica/debugger \
+ ${.CURDIR}/../../../contrib/dev/acpica/disassembler \
+ ${.CURDIR}/../../../contrib/dev/acpica/dispatcher \
+ ${.CURDIR}/../../../contrib/dev/acpica/events \
+ ${.CURDIR}/../../../contrib/dev/acpica/executer \
+ ${.CURDIR}/../../../contrib/dev/acpica/hardware \
+ ${.CURDIR}/../../../contrib/dev/acpica/namespace \
+ ${.CURDIR}/../../../contrib/dev/acpica/parser \
+ ${.CURDIR}/../../../contrib/dev/acpica/resources \
+ ${.CURDIR}/../../../contrib/dev/acpica/tables \
+ ${.CURDIR}/../../../contrib/dev/acpica/utilities \
+ ${.CURDIR}/../../../pci \
+ ${.CURDIR}/../../../dev/acpica \
+ ${.CURDIR}/../../../dev/acpica/Osd \
+ ${.CURDIR}/../../../${MACHINE_ARCH}/acpica
+
+KMOD= acpi
+
+# ACPI CA sources
+SRCS+= dbcmds.c dbdisply.c dbexec.c dbfileio.c dbhistry.c dbinput.c dbstats.c
+SRCS+= dbutils.c dbxface.c
+SRCS+= dmbuffer.c dmnames.c dmopcode.c dmobject.c dmresrc.c dmresrcl.c
+SRCS+= dmresrcs.c dmutils.c dmwalk.c
+SRCS+= dsfield.c dsinit.c dsmethod.c dsmthdat.c dsobject.c dsopcode.c
+SRCS+= dsutils.c dswexec.c dswload.c dswscope.c dswstate.c
+SRCS+= evevent.c evgpe.c evgpeblk.c evgpeinit.c evgpeutil.c evmisc.c
+SRCS+= evregion.c evrgnini.c evsci.c evxface.c evxfevnt.c evxfregn.c
+SRCS+= exconfig.c exconvrt.c excreate.c exdebug.c exdump.c exfield.c
+SRCS+= exfldio.c exmisc.c exmutex.c exnames.c exoparg1.c exoparg2.c
+SRCS+= exoparg3.c exoparg6.c exprep.c exregion.c exresnte.c exresolv.c
+SRCS+= exresop.c exstore.c exstoren.c exstorob.c exsystem.c exutils.c
+SRCS+= hwacpi.c hwgpe.c hwregs.c hwsleep.c hwtimer.c hwvalid.c hwxface.c
+SRCS+= nsaccess.c nsalloc.c nsdump.c nseval.c nsinit.c nsload.c nsnames.c
+SRCS+= nsobject.c nsparse.c nspredef.c nsrepair.c nsrepair2.c nssearch.c
+SRCS+= nsutils.c nswalk.c nsxfeval.c nsxfname.c nsxfobj.c
+SRCS+= psargs.c psloop.c psopcode.c psparse.c psscope.c pstree.c psutils.c
+SRCS+= pswalk.c psxface.c
+SRCS+= rsaddr.c rscalc.c rscreate.c rsdump.c rsinfo.c rsio.c rsirq.c rslist.c
+SRCS+= rsmemory.c rsmisc.c rsutils.c rsxface.c
+SRCS+= tbfadt.c tbfind.c tbinstal.c tbutils.c tbxface.c tbxfroot.c
+SRCS+= utalloc.c utcache.c utcopy.c utdebug.c utdelete.c uteval.c utglobal.c
+SRCS+= utids.c utinit.c utlock.c utmath.c utmisc.c utmutex.c utobject.c
+SRCS+= utresrc.c utstate.c utxface.c
+
+# OSPM layer and core hardware drivers
+SRCS+= acpi.c acpi_button.c acpi_isab.c acpi_package.c acpi_pci.c acpi_pcib.c
+SRCS+= acpi_pcib_acpi.c acpi_pcib_pci.c acpi_powerres.c acpi_quirk.c
+SRCS+= acpi_resource.c 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 acpi_ec.c
+SRCS+= acpi_hpet.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 OsdStream.c
+SRCS+= OsdSynch.c OsdTable.c OsdEnvironment.c
+SRCS+= opt_acpi.h opt_bus.h opt_ddb.h acpi_if.h acpi_quirks.h bus_if.h
+SRCS+= cpufreq_if.h device_if.h 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 opt_hwpmc_hooks.h
+
+.if !defined(KERNBUILDDIR)
+.if KTR
+CFLAGS+=-DKTR
+.endif
+.if ACPI_MAX_TASKS
+CFLAGS+=-DACPI_MAX_TASKS=${ACPI_MAX_TASKS}
+.endif
+.if ACPI_MAX_THREADS
+CFLAGS+=-DACPI_MAX_THREADS=${ACPI_MAX_THREADS}
+.endif
+.if ACPI_DEBUG
+CFLAGS+=-DACPI_DEBUG
+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
+SRCS+= assym.s madt.c
+CLEANFILES+= acpi_wakecode.bin acpi_wakecode.h acpi_wakecode.o
+
+.if ${MACHINE_ARCH} == "amd64"
+SRCS+= acpi_switch.S opt_global.h
+CLEANFILES+= acpi_wakedata.h
+ASM_CFLAGS= -x assembler-with-cpp -DLOCORE ${CFLAGS}
+acpi_switch.o: acpi_switch.S
+ ${CC} -c ${ASM_CFLAGS} ${WERROR} ${.IMPSRC}
+.endif
+
+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_aiboost/Makefile b/sys/modules/acpi/acpi_aiboost/Makefile
new file mode 100644
index 0000000..e4a96c1
--- /dev/null
+++ b/sys/modules/acpi/acpi_aiboost/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/acpi_support
+
+KMOD= acpi_aiboost
+SRCS= acpi_aiboost.c opt_acpi.h device_if.h bus_if.h acpi_if.h
+
+.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 0000000..83672d7
--- /dev/null
+++ b/sys/modules/acpi/acpi_asus/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/acpi_support
+
+KMOD= acpi_asus
+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_dock/Makefile b/sys/modules/acpi/acpi_dock/Makefile
new file mode 100644
index 0000000..efbb973
--- /dev/null
+++ b/sys/modules/acpi/acpi_dock/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/acpica
+KMOD= acpi_dock
+SRCS= acpi_dock.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_fujitsu/Makefile b/sys/modules/acpi/acpi_fujitsu/Makefile
new file mode 100644
index 0000000..b77a225
--- /dev/null
+++ b/sys/modules/acpi/acpi_fujitsu/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/acpi_support
+
+KMOD= acpi_fujitsu
+CFLAGS+=-I${.CURDIR}/../../../dev/acpi_support
+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_hp/Makefile b/sys/modules/acpi/acpi_hp/Makefile
new file mode 100644
index 0000000..306bebe
--- /dev/null
+++ b/sys/modules/acpi/acpi_hp/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/acpi_support
+
+KMOD= acpi_hp
+CFLAGS+=-I${.CURDIR}/../../../dev/acpi_support
+SRCS= acpi_hp.c opt_acpi.h acpi_if.h acpi_wmi_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 0000000..caf0c2b
--- /dev/null
+++ b/sys/modules/acpi/acpi_ibm/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/acpi_support
+KMOD= acpi_ibm
+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 0000000..36f8d77
--- /dev/null
+++ b/sys/modules/acpi/acpi_panasonic/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/acpi_support
+
+KMOD= acpi_panasonic
+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 0000000..027afef
--- /dev/null
+++ b/sys/modules/acpi/acpi_sony/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/acpi_support
+
+KMOD= acpi_sony
+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 0000000..1207015
--- /dev/null
+++ b/sys/modules/acpi/acpi_toshiba/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/acpi_support
+
+KMOD= acpi_toshiba
+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 0000000..67d3f08
--- /dev/null
+++ b/sys/modules/acpi/acpi_video/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/acpica
+
+KMOD= acpi_video
+SRCS= acpi_video.c
+SRCS+= opt_acpi.h acpi_if.h bus_if.h device_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/acpi/acpi_wmi/Makefile b/sys/modules/acpi/acpi_wmi/Makefile
new file mode 100644
index 0000000..bdeefe3
--- /dev/null
+++ b/sys/modules/acpi/acpi_wmi/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/acpi_support
+
+KMOD= acpi_wmi
+CFLAGS+=-I${.CURDIR}/../../../dev/acpi_support
+SRCS= acpi_wmi.c opt_acpi.h acpi_if.h acpi_wmi_if.h device_if.h bus_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ae/Makefile b/sys/modules/ae/Makefile
new file mode 100644
index 0000000..4cd97a1
--- /dev/null
+++ b/sys/modules/ae/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/ae
+
+KMOD= if_ae
+SRCS= if_ae.c device_if.h bus_if.h pci_if.h miibus_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/age/Makefile b/sys/modules/age/Makefile
new file mode 100644
index 0000000..cfbf9cd
--- /dev/null
+++ b/sys/modules/age/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/age
+
+KMOD= if_age
+SRCS= if_age.c device_if.h bus_if.h pci_if.h miibus_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/agp/Makefile b/sys/modules/agp/Makefile
new file mode 100644
index 0000000..4026325
--- /dev/null
+++ b/sys/modules/agp/Makefile
@@ -0,0 +1,33 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/agp
+
+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} == "amd64"
+SRCS+= agp_amd64.c agp_i810.c agp_via.c
+.endif
+SRCS+= device_if.h bus_if.h agp_if.h pci_if.h
+SRCS+= opt_agp.h opt_bus.h
+MFILES= kern/device_if.m kern/bus_if.m dev/agp/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 0000000..24d356c
--- /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" > ${.TARGET}
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ahb/Makefile b/sys/modules/ahb/Makefile
new file mode 100644
index 0000000..2616226
--- /dev/null
+++ b/sys/modules/ahb/Makefile
@@ -0,0 +1,13 @@
+# $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" > ${.TARGET}
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ahci/Makefile b/sys/modules/ahci/Makefile
new file mode 100644
index 0000000..d682839
--- /dev/null
+++ b/sys/modules/ahci/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/ahci
+
+KMOD= ahci
+SRCS= ahci.c ahci.h device_if.h bus_if.h pci_if.h opt_cam.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/aic/Makefile b/sys/modules/aic/Makefile
new file mode 100644
index 0000000..860d9a8
--- /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 0000000..47550f0
--- /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 0000000..265f86d
--- /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 0000000..66780d8
--- /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 0000000..265f86d
--- /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 0000000..5e5d9c2
--- /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 0000000..965e74d
--- /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 0000000..9a59580
--- /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 0000000..25f312f
--- /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 0000000..b1b2cf7
--- /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 0000000..95e6cb5
--- /dev/null
+++ b/sys/modules/aio/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../kern
+
+KMOD= aio
+SRCS= vfs_aio.c opt_vfs_aio.h vnode_if.h opt_compat.h
+
+EXPORT_SYMS= aio_init_aioinfo aio_aqueue
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/alc/Makefile b/sys/modules/alc/Makefile
new file mode 100644
index 0000000..9f6d6fc
--- /dev/null
+++ b/sys/modules/alc/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/alc
+
+KMOD= if_alc
+SRCS= if_alc.c device_if.h bus_if.h pci_if.h miibus_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ale/Makefile b/sys/modules/ale/Makefile
new file mode 100644
index 0000000..a647972
--- /dev/null
+++ b/sys/modules/ale/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/ale
+
+KMOD= if_ale
+SRCS= if_ale.c device_if.h bus_if.h pci_if.h miibus_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/alq/Makefile b/sys/modules/alq/Makefile
new file mode 100644
index 0000000..28b94d9
--- /dev/null
+++ b/sys/modules/alq/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+.PATH: ${.CURDIR}/../../kern
+KMOD= alq
+SRCS= opt_mac.h vnode_if.h kern_alq.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/amd/Makefile b/sys/modules/amd/Makefile
new file mode 100644
index 0000000..fbaae5c
--- /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/amdsbwd/Makefile b/sys/modules/amdsbwd/Makefile
new file mode 100644
index 0000000..56f9ab7
--- /dev/null
+++ b/sys/modules/amdsbwd/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/amdsbwd
+KMOD = amdsbwd
+SRCS = amdsbwd.c
+SRCS += device_if.h bus_if.h pci_if.h isa_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/amdtemp/Makefile b/sys/modules/amdtemp/Makefile
new file mode 100644
index 0000000..1f7cff5
--- /dev/null
+++ b/sys/modules/amdtemp/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/amdtemp
+
+KMOD= amdtemp
+SRCS= amdtemp.c bus_if.h device_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 0000000..4c31997
--- /dev/null
+++ b/sys/modules/amr/Makefile
@@ -0,0 +1,19 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/amr
+
+SUBDIR= amr_cam
+.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
+
+# 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_cam/Makefile b/sys/modules/amr/amr_cam/Makefile
new file mode 100644
index 0000000..b7aaee8
--- /dev/null
+++ b/sys/modules/amr/amr_cam/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/amr
+
+KMOD= amr_cam
+SRCS= amr_cam.c device_if.h bus_if.h
+SRCS+= opt_cam.h opt_scsi.h
+
+.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 0000000..3df7eed5
--- /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 0000000..b22f9d1
--- /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" > ${.TARGET}
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/aout/Makefile b/sys/modules/aout/Makefile
new file mode 100644
index 0000000..203d9cf
--- /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 0000000..96703b1
--- /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/arcmsr/Makefile b/sys/modules/arcmsr/Makefile
new file mode 100644
index 0000000..0a186f8
--- /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 0000000..281793f
--- /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/asmc/Makefile b/sys/modules/asmc/Makefile
new file mode 100644
index 0000000..0561fd5
--- /dev/null
+++ b/sys/modules/asmc/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/asmc
+
+KMOD= asmc
+SRCS= asmc.c opt_acpi.h opt_intr_filter.h acpi_if.h bus_if.h device_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/asr/Makefile b/sys/modules/asr/Makefile
new file mode 100644
index 0000000..7addf52
--- /dev/null
+++ b/sys/modules/asr/Makefile
@@ -0,0 +1,14 @@
+# $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} == "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 0000000..0e79b1e
--- /dev/null
+++ b/sys/modules/ata/Makefile
@@ -0,0 +1,13 @@
+# $FreeBSD$
+
+SUBDIR = atacore
+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 0000000..265f86d
--- /dev/null
+++ b/sys/modules/ata/Makefile.inc
@@ -0,0 +1,3 @@
+# $FreeBSD$
+
+.include "../Makefile.inc"
diff --git a/sys/modules/ata/atacam/Makefile b/sys/modules/ata/atacam/Makefile
new file mode 100644
index 0000000..dcaf847a
--- /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 0000000..1bb8b5b
--- /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 0000000..2b11a89
--- /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/atacore/Makefile b/sys/modules/ata/atacore/Makefile
new file mode 100644
index 0000000..7b8d9e2
--- /dev/null
+++ b/sys/modules/ata/atacore/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/ata
+
+KMOD= ata
+SRCS= ata-all.c ata-lowlevel.c ata-queue.c ata_if.c
+SRCS+= opt_ata.h ata_if.h device_if.h bus_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ata/atadevel/Makefile b/sys/modules/ata/atadevel/Makefile
new file mode 100644
index 0000000..d87c84f
--- /dev/null
+++ b/sys/modules/ata/atadevel/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/ata
+
+KMOD= atadevel
+SRCS= ata-devel.c
+SRCS+= opt_ata.h ata_if.h device_if.h bus_if.h pci_if.h
+CFLAGS+=-g
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ata/atadevel/ata-devel.c b/sys/modules/ata/atadevel/ata-devel.c
new file mode 100644
index 0000000..dbbbab2
--- /dev/null
+++ b/sys/modules/ata/atadevel/ata-devel.c
@@ -0,0 +1,125 @@
+/*-
+ * Copyright (c) 2008 S\xf8ren Schmidt <sos@FreeBSD.org>
+ * 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, immediately at the beginning of the file.
+ * 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 ``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 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.
+ */
+
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
+
+#include <sys/param.h>
+#include <sys/module.h>
+#include <sys/systm.h>
+#include <sys/kernel.h>
+#include <sys/ata.h>
+#include <sys/lock.h>
+#include <sys/mutex.h>
+#include <sys/sema.h>
+#include <sys/taskqueue.h>
+#include <sys/errno.h>
+#include <sys/kernel.h>
+#include <sys/conf.h>
+#include <sys/uio.h>
+#include <sys/malloc.h>
+#include <sys/bus.h>
+
+#include <vm/uma.h>
+
+#include <machine/stdarg.h>
+#include <machine/resource.h>
+#include <machine/bus.h>
+#include <sys/rman.h>
+
+#include <dev/pci/pcivar.h>
+#include <dev/pci/pcireg.h>
+
+#include <dev/ata/ata-all.h>
+#include <dev/ata/ata-pci.h>
+#include <ata_if.h>
+
+/* prototypes */
+static int ata_devel_chipinit(device_t dev);
+static int ata_devel_allocate(device_t dev);
+static void ata_devel_setmode(device_t dev, int mode);
+
+
+static int
+ata_devel_probe(device_t dev)
+{
+ struct ata_pci_controller *ctlr = device_get_softc(dev);
+
+ device_printf(dev, "ata_devel_probe(): PCIID=0x%08x\n", pci_get_devid(dev));
+ if (pci_get_devid(dev) == 0x12345678) {
+ printf("test probe successful!\n");
+ device_set_desc(dev, "ATA DEVEL controller");
+ ctlr->chipinit = ata_devel_chipinit;
+ return 0;
+ }
+ return ENXIO;
+}
+
+static int
+ata_devel_chipinit(device_t dev)
+{
+ struct ata_pci_controller *ctlr = device_get_softc(dev);
+
+ /* setup interrupt delivery */
+ if (ata_setup_interrupt(dev, ata_generic_intr))
+ return ENXIO;
+
+ /* perform any chipset specific setups here */
+
+ /* setup function ptr's, in this case allocate and setmode */
+ ctlr->allocate = ata_devel_allocate;
+ ctlr->setmode = ata_devel_setmode;
+
+ return 0;
+}
+
+static int
+ata_devel_allocate(device_t dev)
+{
+ if (ata_pci_allocate(dev))
+ return ENXIO;
+
+ /* setup channel specifics here like offsets to registers etc */
+
+ return 0;
+}
+
+static void
+ata_devel_setmode(device_t dev, int mode)
+{
+ struct ata_device *atadev = device_get_softc(dev);
+ int error;
+
+ error = ata_controlcmd(dev, ATA_SETFEATURES, ATA_SF_SETXFER, 0,
+ ata_limit_mode(dev, mode, ATA_UDMA5));
+ if (bootverbose)
+ device_printf(dev, "%ssetting %s on DEVEL chip\n",
+ (error) ? "FAILURE " : "", ata_mode2str(mode));
+ if (!error)
+ atadev->mode = mode;
+}
+
+ATA_DECLARE_DRIVER(ata_devel);
diff --git a/sys/modules/ata/atadisk/Makefile b/sys/modules/ata/atadisk/Makefile
new file mode 100644
index 0000000..c64cd3f
--- /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 0000000..b43fd2e
--- /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 0000000..6ce854e
--- /dev/null
+++ b/sys/modules/ata/atapci/Makefile
@@ -0,0 +1,12 @@
+# $FreeBSD$
+
+SUBDIR += chipsets
+
+.PATH: ${.CURDIR}/../../../dev/ata
+
+KMOD= atapci
+SRCS= ata-pci.c ata-dma.c ata-sata.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/atapci/Makefile.inc b/sys/modules/ata/atapci/Makefile.inc
new file mode 100644
index 0000000..265f86d
--- /dev/null
+++ b/sys/modules/ata/atapci/Makefile.inc
@@ -0,0 +1,3 @@
+# $FreeBSD$
+
+.include "../Makefile.inc"
diff --git a/sys/modules/ata/atapci/chipsets/Makefile b/sys/modules/ata/atapci/chipsets/Makefile
new file mode 100644
index 0000000..5468359
--- /dev/null
+++ b/sys/modules/ata/atapci/chipsets/Makefile
@@ -0,0 +1,5 @@
+# $FreeBSD$
+
+SUBDIR += ataacard ataacerlabs ataadaptec ataahci ataamd ataati atacenatek atacypress atacyrix atahighpoint ataintel ataite atajmicron atamarvell atamicron atanational atanetcell atanvidia atapromise ataserverworks atasiliconimage atasis atavia
+
+.include <bsd.subdir.mk>
diff --git a/sys/modules/ata/atapci/chipsets/Makefile.inc b/sys/modules/ata/atapci/chipsets/Makefile.inc
new file mode 100644
index 0000000..265f86d
--- /dev/null
+++ b/sys/modules/ata/atapci/chipsets/Makefile.inc
@@ -0,0 +1,3 @@
+# $FreeBSD$
+
+.include "../Makefile.inc"
diff --git a/sys/modules/ata/atapci/chipsets/ataacard/Makefile b/sys/modules/ata/atapci/chipsets/ataacard/Makefile
new file mode 100644
index 0000000..28da0f2
--- /dev/null
+++ b/sys/modules/ata/atapci/chipsets/ataacard/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../../dev/ata/chipsets
+
+KMOD= ataacard
+SRCS= ata-acard.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/atapci/chipsets/ataacerlabs/Makefile b/sys/modules/ata/atapci/chipsets/ataacerlabs/Makefile
new file mode 100644
index 0000000..8c36db1
--- /dev/null
+++ b/sys/modules/ata/atapci/chipsets/ataacerlabs/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../../dev/ata/chipsets
+
+KMOD= ataacerlabs
+SRCS= ata-acerlabs.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/atapci/chipsets/ataadaptec/Makefile b/sys/modules/ata/atapci/chipsets/ataadaptec/Makefile
new file mode 100644
index 0000000..a6e22b9
--- /dev/null
+++ b/sys/modules/ata/atapci/chipsets/ataadaptec/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../../dev/ata/chipsets
+
+KMOD= ataadaptec
+SRCS= ata-adaptec.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/atapci/chipsets/ataahci/Makefile b/sys/modules/ata/atapci/chipsets/ataahci/Makefile
new file mode 100644
index 0000000..c21bf19
--- /dev/null
+++ b/sys/modules/ata/atapci/chipsets/ataahci/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../../dev/ata/chipsets
+
+KMOD= ataahci
+SRCS= ata-ahci.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/atapci/chipsets/ataamd/Makefile b/sys/modules/ata/atapci/chipsets/ataamd/Makefile
new file mode 100644
index 0000000..f1c6c02
--- /dev/null
+++ b/sys/modules/ata/atapci/chipsets/ataamd/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../../dev/ata/chipsets
+
+KMOD= ataamd
+SRCS= ata-amd.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/atapci/chipsets/ataati/Makefile b/sys/modules/ata/atapci/chipsets/ataati/Makefile
new file mode 100644
index 0000000..5c96e5c
--- /dev/null
+++ b/sys/modules/ata/atapci/chipsets/ataati/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../../dev/ata/chipsets
+
+KMOD= ataati
+SRCS= ata-ati.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/atapci/chipsets/atacenatek/Makefile b/sys/modules/ata/atapci/chipsets/atacenatek/Makefile
new file mode 100644
index 0000000..90eae7a
--- /dev/null
+++ b/sys/modules/ata/atapci/chipsets/atacenatek/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../../dev/ata/chipsets
+
+KMOD= atacenatek
+SRCS= ata-cenatek.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/atapci/chipsets/atacypress/Makefile b/sys/modules/ata/atapci/chipsets/atacypress/Makefile
new file mode 100644
index 0000000..e356ea0
--- /dev/null
+++ b/sys/modules/ata/atapci/chipsets/atacypress/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../../dev/ata/chipsets
+
+KMOD= atacypress
+SRCS= ata-cypress.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/atapci/chipsets/atacyrix/Makefile b/sys/modules/ata/atapci/chipsets/atacyrix/Makefile
new file mode 100644
index 0000000..405e8cf
--- /dev/null
+++ b/sys/modules/ata/atapci/chipsets/atacyrix/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../../dev/ata/chipsets
+
+KMOD= atacyrix
+SRCS= ata-cyrix.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/atapci/chipsets/atahighpoint/Makefile b/sys/modules/ata/atapci/chipsets/atahighpoint/Makefile
new file mode 100644
index 0000000..728829c
--- /dev/null
+++ b/sys/modules/ata/atapci/chipsets/atahighpoint/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../../dev/ata/chipsets
+
+KMOD= atahighpoint
+SRCS= ata-highpoint.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/atapci/chipsets/ataintel/Makefile b/sys/modules/ata/atapci/chipsets/ataintel/Makefile
new file mode 100644
index 0000000..676ad74
--- /dev/null
+++ b/sys/modules/ata/atapci/chipsets/ataintel/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../../dev/ata/chipsets
+
+KMOD= ataintel
+SRCS= ata-intel.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/atapci/chipsets/ataite/Makefile b/sys/modules/ata/atapci/chipsets/ataite/Makefile
new file mode 100644
index 0000000..f93eea4
--- /dev/null
+++ b/sys/modules/ata/atapci/chipsets/ataite/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../../dev/ata/chipsets
+
+KMOD= ataite
+SRCS= ata-ite.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/atapci/chipsets/atajmicron/Makefile b/sys/modules/ata/atapci/chipsets/atajmicron/Makefile
new file mode 100644
index 0000000..94b6178
--- /dev/null
+++ b/sys/modules/ata/atapci/chipsets/atajmicron/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../../dev/ata/chipsets
+
+KMOD= atajmicron
+SRCS= ata-jmicron.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/atapci/chipsets/atamarvell/Makefile b/sys/modules/ata/atapci/chipsets/atamarvell/Makefile
new file mode 100644
index 0000000..c828313
--- /dev/null
+++ b/sys/modules/ata/atapci/chipsets/atamarvell/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../../dev/ata/chipsets
+
+KMOD= atamarvell
+SRCS= ata-marvell.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/atapci/chipsets/atamicron/Makefile b/sys/modules/ata/atapci/chipsets/atamicron/Makefile
new file mode 100644
index 0000000..b002a0b
--- /dev/null
+++ b/sys/modules/ata/atapci/chipsets/atamicron/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../../dev/ata/chipsets
+
+KMOD= atamicron
+SRCS= ata-micron.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/atapci/chipsets/atanational/Makefile b/sys/modules/ata/atapci/chipsets/atanational/Makefile
new file mode 100644
index 0000000..52cae4c
--- /dev/null
+++ b/sys/modules/ata/atapci/chipsets/atanational/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../../dev/ata/chipsets
+
+KMOD= atanational
+SRCS= ata-national.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/atapci/chipsets/atanetcell/Makefile b/sys/modules/ata/atapci/chipsets/atanetcell/Makefile
new file mode 100644
index 0000000..dae87a0
--- /dev/null
+++ b/sys/modules/ata/atapci/chipsets/atanetcell/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../../dev/ata/chipsets
+
+KMOD= atanetcell
+SRCS= ata-netcell.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/atapci/chipsets/atanvidia/Makefile b/sys/modules/ata/atapci/chipsets/atanvidia/Makefile
new file mode 100644
index 0000000..452bf22
--- /dev/null
+++ b/sys/modules/ata/atapci/chipsets/atanvidia/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../../dev/ata/chipsets
+
+KMOD= atanvidia
+SRCS= ata-nvidia.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/atapci/chipsets/atapromise/Makefile b/sys/modules/ata/atapci/chipsets/atapromise/Makefile
new file mode 100644
index 0000000..70d46e1
--- /dev/null
+++ b/sys/modules/ata/atapci/chipsets/atapromise/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../../dev/ata/chipsets
+
+KMOD= atapromise
+SRCS= ata-promise.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/atapci/chipsets/ataserverworks/Makefile b/sys/modules/ata/atapci/chipsets/ataserverworks/Makefile
new file mode 100644
index 0000000..2b789a5
--- /dev/null
+++ b/sys/modules/ata/atapci/chipsets/ataserverworks/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../../dev/ata/chipsets
+
+KMOD= ataserverworks
+SRCS= ata-serverworks.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/atapci/chipsets/atasiliconimage/Makefile b/sys/modules/ata/atapci/chipsets/atasiliconimage/Makefile
new file mode 100644
index 0000000..ea7aca3
--- /dev/null
+++ b/sys/modules/ata/atapci/chipsets/atasiliconimage/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../../dev/ata/chipsets
+
+KMOD= atasiliconimage
+SRCS= ata-siliconimage.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/atapci/chipsets/atasis/Makefile b/sys/modules/ata/atapci/chipsets/atasis/Makefile
new file mode 100644
index 0000000..b601452
--- /dev/null
+++ b/sys/modules/ata/atapci/chipsets/atasis/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../../dev/ata/chipsets
+
+KMOD= atasis
+SRCS= ata-sis.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/atapci/chipsets/atavia/Makefile b/sys/modules/ata/atapci/chipsets/atavia/Makefile
new file mode 100644
index 0000000..75e66b0
--- /dev/null
+++ b/sys/modules/ata/atapci/chipsets/atavia/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../../dev/ata/chipsets
+
+KMOD= atavia
+SRCS= ata-via.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 0000000..6dbaffe
--- /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 0000000..bcc2319
--- /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 0000000..f563748
--- /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 0000000..86c19b5
--- /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 0000000..8f41bd7
--- /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 0000000..3c01fd0
--- /dev/null
+++ b/sys/modules/ath/Makefile
@@ -0,0 +1,114 @@
+#
+# Copyright (c) 2002-2008 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.
+#
+# 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$
+#
+
+ATH_RATE?= sample # tx rate control algorithm
+
+.PATH: ${.CURDIR}/../../dev/ath
+.PATH: ${.CURDIR}/../../dev/ath/ath_hal
+
+KMOD= if_ath
+SRCS= if_ath.c if_ath_pci.c
+# NB: v3 eeprom support used by both AR5211 and AR5212; just include it
+SRCS+= ah_osdep.c ah.c ah_regdomain.c ah_eeprom_v3.c
+SRCS+= device_if.h bus_if.h pci_if.h opt_inet.h opt_ath.h opt_ah.h opt_wlan.h
+
+#
+# AR5210 support; these are first generation 11a-only devices.
+#
+.PATH: ${.CURDIR}/../../dev/ath/ath_hal/ar5210
+SRCS+= ah_eeprom_v1.c \
+ ar5210_attach.c ar5210_beacon.c ar5210_interrupts.c \
+ ar5210_keycache.c ar5210_misc.c ar5210_phy.c ar5210_power.c \
+ ar5210_recv.c ar5210_reset.c ar5210_xmit.c
+
+#
+# AR5211 support; these are second generation 11b/g/a devices
+# (but 11g was OFDM only and is not supported).
+#
+.PATH: ${.CURDIR}/../../dev/ath/ath_hal/ar5211
+SRCS+= ar5211_attach.c ar5211_beacon.c ar5211_interrupts.c \
+ ar5211_keycache.c ar5211_misc.c ar5211_phy.c ar5211_power.c \
+ ar5211_recv.c ar5211_reset.c ar5211_xmit.c
+
+#
+# AR5212 support; this covers all other pci/cardbus legacy parts.
+#
+.PATH: ${.CURDIR}/../../dev/ath/ath_hal/ar5212
+SRCS+= ar5212_ani.c ar5212_attach.c ar5212_beacon.c ar5212_eeprom.c \
+ ar5212_gpio.c ar5212_interrupts.c ar5212_keycache.c ar5212_misc.c \
+ ar5212_phy.c ar5212_power.c ar5212_recv.c ar5212_reset.c \
+ ar5212_rfgain.c ar5212_xmit.c
+# RF backends
+SRCS+= ar5111.c
+SRCS+= ar5112.c
+SRCS+= ar2413.c
+SRCS+= ar2425.c
+SRCS+= ar5413.c
+
+#
+# AR5416, AR9160 support; these are 11n parts but only really
+# supported (right now) operating in legacy mode. Note enabling
+# this support requires defining AH_SUPPORT_AR5416 in opt_ah.h
+# so the 11n tx/rx descriptor format is handled.
+#
+# NB: 9160 depends on 5416 but 5416 does not require 9160
+#
+.PATH: ${.CURDIR}/../../dev/ath/ath_hal/ar5416
+SRCS+= ah_eeprom_v14.c ah_eeprom_v4k.c \
+ ar5416_ani.c ar5416_attach.c ar5416_beacon.c ar5416_cal.c \
+ ar5416_cal_iq.c ar5416_cal_adcgain.c ar5416_cal_adcdc.c \
+ ar5416_eeprom.c ar5416_gpio.c ar5416_interrupts.c ar5416_keycache.c \
+ ar5416_misc.c ar5416_phy.c ar5416_power.c ar5416_recv.c \
+ ar5416_reset.c ar5416_xmit.c
+SRCS+= ar9160_attach.c
+SRCS+= ar9280.c ar9280_attach.c
+# RF backend for 5416 and 9160
+SRCS+= ar2133.c
+SRCS+= ar9285.c ar9285_reset.c ar9285_attach.c
+
+# NB: rate control is bound to the driver by symbol names so only pick one
+.if ${ATH_RATE} == "sample"
+.PATH: ${.CURDIR}/../../dev/ath/ath_rate/sample
+SRCS+= sample.c
+.elif ${ATH_RATE} == "onoe"
+.PATH: ${.CURDIR}/../../dev/ath/ath_rate/onoe
+SRCS+= onoe.c
+.elif ${ATH_RATE} == "amrr"
+.PATH: ${.CURDIR}/../../dev/ath/ath_rate/amrr
+SRCS+= amrr.c
+.endif
+
+CFLAGS+= -I. -I${.CURDIR}/../../dev/ath -I${.CURDIR}/../../dev/ath/ath_hal
+
+opt_ah.h:
+ echo '#define AH_SUPPORT_AR5416 1' > $@
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/auxio/Makefile b/sys/modules/auxio/Makefile
new file mode 100644
index 0000000..ead878c
--- /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/bce/Makefile b/sys/modules/bce/Makefile
new file mode 100644
index 0000000..1be2a3f
--- /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 0000000..19413f7
--- /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 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 0000000..f8ebf42
--- /dev/null
+++ b/sys/modules/bge/Makefile
@@ -0,0 +1,12 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/bge
+
+KMOD= if_bge
+SRCS= if_bge.c miibus_if.h miidevs.h device_if.h bus_if.h pci_if.h
+
+.if ${MACHINE_ARCH} == sparc64
+SRCS+= ofw_bus_if.h
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/bios/Makefile b/sys/modules/bios/Makefile
new file mode 100644
index 0000000..d150806
--- /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 0000000..a845c0a
--- /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 0000000..b7bdf48
--- /dev/null
+++ b/sys/modules/bios/smbios/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+#
+
+.PATH: ${.CURDIR}/../../../x86/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 0000000..093ac81
--- /dev/null
+++ b/sys/modules/bios/vpd/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+#
+
+.PATH: ${.CURDIR}/../../../x86/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 0000000..1a9e037
--- /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 0000000..265f86d
--- /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 0000000..60e4a7c
--- /dev/null
+++ b/sys/modules/bktr/bktr/Makefile
@@ -0,0 +1,19 @@
+# $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_bktr.h bus_if.h device_if.h \
+ pci_if.h
+
+CFLAGS+= -DBKTR_FREEBSD_MODULE
+
+.if defined(BKTR_USE_FREEBSD_SMBUS)
+SRCS+= bktr_i2c.c iicbb_if.h iicbus_if.h smbus_if.h
+CFLAGS+= -DBKTR_USE_FREEBSD_SMBUS
+.endif
+
+.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 0000000..d5f6190
--- /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/bm/Makefile b/sys/modules/bm/Makefile
new file mode 100644
index 0000000..30c5e86
--- /dev/null
+++ b/sys/modules/bm/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/bm
+
+KMOD= if_bm
+SRCS= if_bm.c
+SRCS+= bus_if.h device_if.h miibus_if.h ofw_bus_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/bridgestp/Makefile b/sys/modules/bridgestp/Makefile
new file mode 100644
index 0000000..3cfc6e3
--- /dev/null
+++ b/sys/modules/bridgestp/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../net
+
+KMOD= bridgestp
+SRCS= bridgestp.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/bwi/Makefile b/sys/modules/bwi/Makefile
new file mode 100644
index 0000000..cdd5c90
--- /dev/null
+++ b/sys/modules/bwi/Makefile
@@ -0,0 +1,14 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/bwi
+
+KMOD = if_bwi
+
+SRCS = if_bwi.c if_bwi_pci.c bwimac.c bwiphy.c bwirf.c
+SRCS += device_if.h bus_if.h pci_if.h opt_inet.h opt_bwi.h
+
+opt_bwi.h:
+ echo '#define BWI_DEBUG 1' > opt_bwi.h
+# echo '#define BWI_DEBUG_VERBOSE 1' >> opt_bwi.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/bwn/Makefile b/sys/modules/bwn/Makefile
new file mode 100644
index 0000000..a5b18aa
--- /dev/null
+++ b/sys/modules/bwn/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/bwn
+
+KMOD= if_bwn
+SRCS= if_bwn.c if_bwnreg.h if_bwnvar.h
+SRCS+= device_if.h bus_if.h pci_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/cam/Makefile b/sys/modules/cam/Makefile
new file mode 100644
index 0000000..30f1f89
--- /dev/null
+++ b/sys/modules/cam/Makefile
@@ -0,0 +1,40 @@
+# $FreeBSD$
+
+S= ${.CURDIR}/../..
+
+.PATH: $S/cam $S/cam/scsi $S/cam/ata
+
+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_sg.c
+SRCS+= scsi_targ_bh.c scsi_target.c
+SRCS+= scsi_xpt.c
+SRCS+= ata_all.c
+SRCS+= ata_xpt.c
+SRCS+= ata_da.c
+SRCS+= ata_pmp.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 0000000..0eb9112
--- /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 0000000..19487e0
--- /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 0000000..b57f3f7
--- /dev/null
+++ b/sys/modules/cardbus/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/cardbus
+
+KMOD= cardbus
+SRCS= cardbus.c cardbus_cis.c cardbus_device.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/cas/Makefile b/sys/modules/cas/Makefile
new file mode 100644
index 0000000..f4b41ca
--- /dev/null
+++ b/sys/modules/cas/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/cas
+
+KMOD= if_cas
+SRCS= bus_if.h device_if.h if_cas.c miibus_if.h pci_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/cbb/Makefile b/sys/modules/cbb/Makefile
new file mode 100644
index 0000000..a071485
--- /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 0000000..5fbc1b7
--- /dev/null
+++ b/sys/modules/cd9660/Makefile
@@ -0,0 +1,11 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../fs/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 0000000..48ddb56
--- /dev/null
+++ b/sys/modules/cd9660_iconv/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../fs/cd9660
+KMOD= cd9660_iconv
+SRCS= cd9660_iconv.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ce/Makefile b/sys/modules/ce/Makefile
new file mode 100644
index 0000000..a7bccff
--- /dev/null
+++ b/sys/modules/ce/Makefile
@@ -0,0 +1,28 @@
+# $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
+
+.if !defined(KERNBUILDDIR)
+PROTOS?= -DINET
+NG_CRONYX?= 0
+NETGRAPH= ${NG_CRONYX}
+
+CFLAGS+= ${PROTOS}
+
+.if ${NETGRAPH} != 0
+opt_netgraph.h:
+ echo "#define NETGRAPH ${NETGRAPH}" > ${.TARGET}
+.endif
+
+.if ${NG_CRONYX} != 0
+opt_ng_cronyx.h:
+ echo "#define NETGRAPH_CRONYX 1" > ${.TARGET}
+.endif
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ciss/Makefile b/sys/modules/ciss/Makefile
new file mode 100644
index 0000000..2ea619c
--- /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 0000000..3f2067b
--- /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/cmx/Makefile b/sys/modules/cmx/Makefile
new file mode 100644
index 0000000..9da17b2
--- /dev/null
+++ b/sys/modules/cmx/Makefile
@@ -0,0 +1,12 @@
+# $FreeBSD$
+#
+MAINTAINER= daniel@roe.ch
+
+.PATH: ${.CURDIR}/../../dev/cmx
+
+KMOD= cmx
+SRCS= cmx.c cmxvar.h cmxreg.h \
+ cmx_pccard.c \
+ pccarddevs.h device_if.h bus_if.h card_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/coda/Makefile b/sys/modules/coda/Makefile
new file mode 100644
index 0000000..ebcb39c
--- /dev/null
+++ b/sys/modules/coda/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../fs/coda
+
+KMOD= coda
+SRCS= vnode_if.h \
+ coda_fbsd.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 0000000..f9aea09
--- /dev/null
+++ b/sys/modules/coda5/Makefile
@@ -0,0 +1,13 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../fs/coda
+
+KMOD= coda5
+SRCS= vnode_if.h \
+ coda_fbsd.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 0000000..95956e5
--- /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/coretemp/Makefile b/sys/modules/coretemp/Makefile
new file mode 100644
index 0000000..dd540ba
--- /dev/null
+++ b/sys/modules/coretemp/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/coretemp
+
+KMOD= coretemp
+SRCS= coretemp.c bus_if.h device_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/cp/Makefile b/sys/modules/cp/Makefile
new file mode 100644
index 0000000..56be36c
--- /dev/null
+++ b/sys/modules/cp/Makefile
@@ -0,0 +1,28 @@
+# $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
+
+.if !defined(KERNBUILDDIR)
+PROTOS?= -DINET
+NG_CRONYX?= 0
+NETGRAPH= ${NG_CRONYX}
+
+CFLAGS+= ${PROTOS}
+
+.if ${NETGRAPH} != 0
+opt_netgraph.h:
+ echo "#define NETGRAPH ${NETGRAPH}" > ${.TARGET}
+.endif
+
+.if ${NG_CRONYX} != 0
+opt_ng_cronyx.h:
+ echo "#define NETGRAPH_CRONYX 1" > ${.TARGET}
+.endif
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/cpuctl/Makefile b/sys/modules/cpuctl/Makefile
new file mode 100644
index 0000000..74c76b9
--- /dev/null
+++ b/sys/modules/cpuctl/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/cpuctl
+
+KMOD= cpuctl
+SRCS= cpuctl.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/cpufreq/Makefile b/sys/modules/cpufreq/Makefile
new file mode 100644
index 0000000..894096f
--- /dev/null
+++ b/sys/modules/cpufreq/Makefile
@@ -0,0 +1,26 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/cpufreq \
+ ${.CURDIR}/../../${MACHINE_ARCH}/cpufreq
+
+KMOD= cpufreq
+SRCS= ichss.c
+SRCS+= bus_if.h cpufreq_if.h device_if.h pci_if.h
+
+.if ${MACHINE} == "i386" || ${MACHINE} == "amd64"
+.PATH: ${.CURDIR}/../../x86/cpufreq
+
+SRCS+= acpi_if.h opt_acpi.h
+SRCS+= est.c hwpstate.c p4tcc.c powernow.c
+.endif
+
+.if ${MACHINE} == "i386"
+SRCS+= smist.c
+.endif
+
+.if ${MACHINE} == "powerpc"
+.PATH: ${.CURDIR}/../../powerpc/cpufreq
+SRCS+= dfs.c
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/crypto/Makefile b/sys/modules/crypto/Makefile
new file mode 100644
index 0000000..be801db
--- /dev/null
+++ b/sys/modules/crypto/Makefile
@@ -0,0 +1,21 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../opencrypto
+.PATH: ${.CURDIR}/../../crypto
+.PATH: ${.CURDIR}/../../crypto/blowfish
+.PATH: ${.CURDIR}/../../crypto/des
+.PATH: ${.CURDIR}/../../crypto/rijndael
+.PATH: ${.CURDIR}/../../crypto/sha2
+.PATH: ${.CURDIR}/../../crypto/camellia
+
+KMOD = crypto
+SRCS = crypto.c cryptodev_if.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 cryptodev_if.h bus_if.h device_if.h
+SRCS += opt_ddb.h opt_kdtrace.h
+SRCS += camellia.c camellia-api.c
+.include <bsd.kmod.mk>
diff --git a/sys/modules/cryptodev/Makefile b/sys/modules/cryptodev/Makefile
new file mode 100644
index 0000000..903bfbc
--- /dev/null
+++ b/sys/modules/cryptodev/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../opencrypto
+KMOD = cryptodev
+SRCS = cryptodev.c
+SRCS += bus_if.h device_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/cs/Makefile b/sys/modules/cs/Makefile
new file mode 100644
index 0000000..39da530
--- /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 0000000..9d3d9c5
--- /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)" > ${.TARGET}
+.endif
+
+.if ${NG_CRONYX} != 0
+opt_ng_cronyx.h:
+ echo "#define NETGRAPH_CRONYX 1" > ${.TARGET}
+.endif
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/cx/Makefile b/sys/modules/cx/Makefile
new file mode 100644
index 0000000..9379370
--- /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)" > ${.TARGET}
+.endif
+
+.if ${NG_CRONYX} != 0
+opt_ng_cronyx.h:
+ echo "#define NETGRAPH_CRONYX 1" > ${.TARGET}
+.endif
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/cxgb/Makefile b/sys/modules/cxgb/Makefile
new file mode 100644
index 0000000..71cbb7a
--- /dev/null
+++ b/sys/modules/cxgb/Makefile
@@ -0,0 +1,39 @@
+# $FreeBSD$
+SUBDIR= cxgb
+SUBDIR+= ${_toecore}
+SUBDIR+= ${_tom}
+SUBDIR+= ${_iw_cxgb}
+SUBDIR+= cxgb_t3fw
+
+.if defined(SYSDIR)
+_sysdir = ${SYSDIR}
+.endif
+
+# Based on bsd.kmod.mk but we don't modify SYSDIR in this one.
+.for _dir in ${.CURDIR}/../.. ${.CURDIR}/../../.. ${.CURDIR}/../../../.. \
+ /sys /usr/src/sys
+.if !defined(_sysdir) && exists(${_dir}/kern/) && exists(${_dir}/conf/kmod.mk)
+_sysdir = ${_dir}
+.endif
+.endfor
+.if !defined(_sysdir) || !exists(${_sysdir}/kern/) || \
+ !exists(${_sysdir}/conf/kmod.mk)
+.error "can't find kernel source tree"
+.endif
+
+_toe_header = ${_sysdir}/netinet/toedev.h
+
+.if exists(${_toe_header})
+_toecore = toecore
+#_tom = tom
+.endif
+
+.if ${MACHINE_ARCH} == "i386" && exists(${_toe_header})
+_iw_cxgb = iw_cxgb
+.endif
+
+.if ${MACHINE_ARCH} == "amd64" && exists(${_toe_header})
+_iw_cxgb = iw_cxgb
+.endif
+
+.include <bsd.subdir.mk>
diff --git a/sys/modules/cxgb/cxgb/Makefile b/sys/modules/cxgb/cxgb/Makefile
new file mode 100644
index 0000000..9a433b2
--- /dev/null
+++ b/sys/modules/cxgb/cxgb/Makefile
@@ -0,0 +1,16 @@
+# $FreeBSD$
+
+CXGB = ${.CURDIR}/../../../dev/cxgb
+.PATH: ${CXGB} ${CXGB}/common ${CXGB}/sys
+
+KMOD= if_cxgb
+SRCS= cxgb_mc5.c cxgb_vsc8211.c cxgb_ael1002.c cxgb_mv88e1xxx.c
+SRCS+= cxgb_xgmac.c cxgb_vsc7323.c cxgb_t3_hw.c cxgb_main.c cxgb_aq100x.c
+SRCS+= cxgb_sge.c cxgb_offload.c cxgb_tn1010.c
+SRCS+= device_if.h bus_if.h pci_if.h
+SRCS+= opt_inet.h opt_zero.h opt_sched.h
+SRCS+= uipc_mvec.c
+
+CFLAGS+= -g -DDEFAULT_JUMBO -I${CXGB}
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/cxgb/cxgb_t3fw/Makefile b/sys/modules/cxgb/cxgb_t3fw/Makefile
new file mode 100644
index 0000000..0d2f363
--- /dev/null
+++ b/sys/modules/cxgb/cxgb_t3fw/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+CXGB = ${.CURDIR}/../../../dev/cxgb
+.PATH: ${CXGB}
+
+KMOD= cxgb_t3fw
+SRCS+= cxgb_t3fw.c
+CFLAGS+= -g -I${CXGB}
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/cxgb/iw_cxgb/Makefile b/sys/modules/cxgb/iw_cxgb/Makefile
new file mode 100644
index 0000000..2cf2ef8
--- /dev/null
+++ b/sys/modules/cxgb/iw_cxgb/Makefile
@@ -0,0 +1,15 @@
+# $FreeBSD$
+
+CXGB = ${.CURDIR}/../../../dev/cxgb
+.PATH: ${CXGB}/ulp/iw_cxgb
+
+KMOD= iw_cxgb
+SRCS= iw_cxgb.c iw_cxgb_cm.c iw_cxgb_hal.c
+SRCS+= iw_cxgb_provider.c iw_cxgb_qp.c iw_cxgb_resource.c
+SRCS+= iw_cxgb_ev.c iw_cxgb_mem.c iw_cxgb_dbg.c iw_cxgb_cq.c
+SRCS+= bus_if.h device_if.h opt_sched.h pci_if.h pcib_if.h opt_ktr.h
+SRCS+= opt_inet.h
+CFLAGS+= -g -I${CXGB}
+#CFLAGS+= -DDEBUG
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/cxgb/toecore/Makefile b/sys/modules/cxgb/toecore/Makefile
new file mode 100644
index 0000000..4342519
--- /dev/null
+++ b/sys/modules/cxgb/toecore/Makefile
@@ -0,0 +1,11 @@
+# $FreeBSD$
+
+CXGB = ${.CURDIR}/../../../dev/cxgb
+.PATH: ${CXGB}/ulp/toecore
+
+KMOD= toecore
+SRCS= toedev.c
+SRCS+= device_if.h bus_if.h pci_if.h opt_sched.h opt_inet.h
+CFLAGS+= -g -I${CXGB}
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/cxgb/tom/Makefile b/sys/modules/cxgb/tom/Makefile
new file mode 100644
index 0000000..4c22670
--- /dev/null
+++ b/sys/modules/cxgb/tom/Makefile
@@ -0,0 +1,15 @@
+# $FreeBSD$
+
+CXGB = ${.CURDIR}/../../../dev/cxgb
+.PATH: ${CXGB}/ulp/tom
+
+KMOD= tom
+SRCS= cxgb_tom.c cxgb_cpl_io.c cxgb_listen.c cxgb_tom_sysctl.c cxgb_cpl_socket.c
+SRCS+= cxgb_ddp.c cxgb_vm.c cxgb_l2t.c cxgb_tcp_offload.c
+SRCS+= opt_compat.h opt_inet.h opt_inet6.h opt_ipsec.h
+SRCS+= opt_tcpdebug.h opt_ddb.h opt_sched.h opt_global.h opt_ktr.h
+SRCS+= device_if.h bus_if.h pci_if.h
+CFLAGS+= -g -I${CXGB}
+
+#CFLAGS+= -DDEBUG_PRINT -DDEBUG
+.include <bsd.kmod.mk>
diff --git a/sys/modules/cyclic/Makefile b/sys/modules/cyclic/Makefile
new file mode 100644
index 0000000..371dac6
--- /dev/null
+++ b/sys/modules/cyclic/Makefile
@@ -0,0 +1,19 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../cddl/dev/cyclic
+
+KMOD= cyclic
+SRCS= cyclic.c
+
+SRCS+= vnode_if.h
+
+CFLAGS+= -I${.CURDIR}/../../cddl/compat/opensolaris \
+ -I${.CURDIR}/../../cddl/contrib/opensolaris/uts/common \
+ -I${.CURDIR}/../.. \
+ -I${.CURDIR}/../../cddl/dev/cyclic/${MACHINE_ARCH:S/amd64/i386/}
+
+CFLAGS+= -DDEBUG=1
+
+IGNORE_PRAGMA= 1
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/dc/Makefile b/sys/modules/dc/Makefile
new file mode 100644
index 0000000..d0a5abb
--- /dev/null
+++ b/sys/modules/dc/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/dc
+
+KMOD= if_dc
+SRCS= if_dc.c dcphy.c pnphy.c device_if.h bus_if.h pci_if.h
+SRCS+= miibus_if.h miidevs.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/dcons/Makefile b/sys/modules/dcons/Makefile
new file mode 100644
index 0000000..6042425
--- /dev/null
+++ b/sys/modules/dcons/Makefile
@@ -0,0 +1,23 @@
+# $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_kdb.h opt_ddb.h opt_gdb.h opt_comconsole.h
+
+.if !defined(KERNBUILDDIR)
+opt_kdb.h:
+ echo "#define KDB 1" > $@
+
+opt_ddb.h:
+ echo "#define DDB 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 0000000..258bead
--- /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 0000000..6af4c7a
--- /dev/null
+++ b/sys/modules/de/Makefile
@@ -0,0 +1,16 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/de
+
+KMOD= if_de
+SRCS= if_de.c 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
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/digi/Makefile b/sys/modules/digi/Makefile
new file mode 100755
index 0000000..9d9aea6
--- /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 0000000..265f86d
--- /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 0000000..3f19f01
--- /dev/null
+++ b/sys/modules/digi/digi/Makefile
@@ -0,0 +1,16 @@
+# $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" > ${.TARGET}
+ echo "#define COMPAT_FREEBSD6 1" >> ${.TARGET}
+.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 0000000..2d833de
--- /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 0000000..65afb17
--- /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 0000000..e9d95b0
--- /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 0000000..d1119cc
--- /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 0000000..4c8f9e5
--- /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 0000000..0a49ddd
--- /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 0000000..786ce79
--- /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/dpms/Makefile b/sys/modules/dpms/Makefile
new file mode 100644
index 0000000..4eabf14
--- /dev/null
+++ b/sys/modules/dpms/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+KMOD= dpms
+SRCS= bus_if.h device_if.h pci_if.h
+
+.PATH: ${.CURDIR}/../../dev/dpms
+SRCS+= dpms.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/dpt/Makefile b/sys/modules/dpt/Makefile
new file mode 100644
index 0000000..6f66d44
--- /dev/null
+++ b/sys/modules/dpt/Makefile
@@ -0,0 +1,34 @@
+# $FreeBSD$
+#
+
+.PATH: ${.CURDIR}/../../dev/dpt
+KMOD= dpt
+SRCS= dpt_scsi.c dpt.h \
+ dpt_pci.c pci_if.h \
+ opt_dpt.h opt_eisa.h \
+ opt_cam.h opt_scsi.h \
+ device_if.h bus_if.h
+
+.if ${MACHINE} != "i386"
+# Create an empty opt_eisa.h in order to keep kmod.mk from linking in an
+# existing one from KERNBUILDDIR which possibly has DEV_EISA defined so
+# dpt.ko is always built without EISA support.
+opt_eisa.h:
+ :> ${.TARGET}
+.else
+.if !defined(KERNBUILDDIR)
+SRCS+= dpt_eisa.c eisa_if.h
+#SRCS+= dpt_isa.c isa_if.h
+
+opt_eisa.h:
+ echo "#define DEV_EISA 1" > ${.TARGET}
+.else
+DEV_EISA!= sed -n '/DEV_EISA/p' ${KERNBUILDDIR}/opt_eisa.h
+.if !empty(DEV_EISA)
+SRCS+= dpt_eisa.c eisa_if.h
+.endif
+#SRCS+= dpt_isa.c isa_if.h
+.endif
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/drm/Makefile b/sys/modules/drm/Makefile
new file mode 100644
index 0000000..c2c74a5
--- /dev/null
+++ b/sys/modules/drm/Makefile
@@ -0,0 +1,15 @@
+# $FreeBSD$
+
+SUBDIR = \
+ drm \
+ i915 \
+ mach64 \
+ mga \
+ r128 \
+ radeon \
+ savage \
+ sis \
+ tdfx \
+ via
+
+.include <bsd.subdir.mk>
diff --git a/sys/modules/drm/Makefile.inc b/sys/modules/drm/Makefile.inc
new file mode 100644
index 0000000..265f86d
--- /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 0000000..9381866
--- /dev/null
+++ b/sys/modules/drm/drm/Makefile
@@ -0,0 +1,29 @@
+# $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_hashtab.c \
+ drm_ioctl.c \
+ drm_irq.c \
+ drm_lock.c \
+ drm_memory.c \
+ drm_mm.c \
+ drm_pci.c \
+ drm_scatter.c \
+ drm_sman.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 0000000..b64539e
--- /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 i915_suspend.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 0000000..4d5069c
--- /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 0000000..d88d12c
--- /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 0000000..e80a0d8
--- /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 0000000..72c364b
--- /dev/null
+++ b/sys/modules/drm/radeon/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/drm
+KMOD = radeon
+SRCS = r300_cmdbuf.c r600_blit.c r600_cp.c radeon_cp.c radeon_cs.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
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/drm/savage/Makefile b/sys/modules/drm/savage/Makefile
new file mode 100644
index 0000000..f1c9b42
--- /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 0000000..885ce28
--- /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 0000000..2e015a7
--- /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/drm/via/Makefile b/sys/modules/drm/via/Makefile
new file mode 100644
index 0000000..96d9fd7
--- /dev/null
+++ b/sys/modules/drm/via/Makefile
@@ -0,0 +1,22 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/drm
+KMOD = via
+SRCS = via_dma.c via_dmablit.c via_drv.c via_irq.c via_map.c via_mm.c \
+ via_verifier.c via_video.c
+SRCS += device_if.h bus_if.h pci_if.h opt_drm.h
+
+.if defined(DRM_DEBUG)
+DRM_DEBUG_OPT= "\#define DRM_DEBUG 1"
+.endif
+
+.if !defined(DRM_NOLINUX)
+DRM_LINUX_OPT= "\#define DRM_LINUX 1"
+.endif
+
+opt_drm.h:
+ touch opt_drm.h
+ echo $(DRM_DEBUG_OPT) >> opt_drm.h
+ echo $(DRM_LINUX_OPT) >> opt_drm.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/dtrace/Makefile b/sys/modules/dtrace/Makefile
new file mode 100644
index 0000000..ba46878
--- /dev/null
+++ b/sys/modules/dtrace/Makefile
@@ -0,0 +1,23 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+.include "Makefile.inc"
+
+SUBDIR= dtmalloc \
+ dtnfsclient \
+ dtrace \
+ dtraceall \
+ dtrace_test \
+ lockstat \
+ profile \
+ prototype \
+ sdt \
+ systrace
+
+.if ${MACHINE_ARCH} == "amd64"
+SUBDIR+= fbt
+.elif ${MACHINE_ARCH} == "i386"
+SUBDIR+= fbt
+.endif
+
+.include <bsd.subdir.mk>
diff --git a/sys/modules/dtrace/Makefile.inc b/sys/modules/dtrace/Makefile.inc
new file mode 100644
index 0000000..c35764b
--- /dev/null
+++ b/sys/modules/dtrace/Makefile.inc
@@ -0,0 +1,29 @@
+# $FreeBSD$
+
+IGNORE_PRAGMA= 1
+
+load :
+ -kldload cyclic
+ -kldload dtrace
+.if ${MACHINE_ARCH} == "i386"
+ -kldload sdt
+ -kldload lockstat
+ -kldload fbt
+ -kldload prototype
+.endif
+ -kldload profile
+ -kldload systrace
+ kldstat
+
+unload :
+ -kldunload systrace
+ -kldunload profile
+.if ${MACHINE_ARCH} == "i386"
+ -kldunload prototype
+ -kldunload fbt
+ -kldunload lockstat
+ -kldunload sdt
+.endif
+ -kldunload dtrace
+ -kldunload cyclic
+ kldstat
diff --git a/sys/modules/dtrace/dtmalloc/Makefile b/sys/modules/dtrace/dtmalloc/Makefile
new file mode 100644
index 0000000..efb2607
--- /dev/null
+++ b/sys/modules/dtrace/dtmalloc/Makefile
@@ -0,0 +1,13 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../cddl/dev/dtmalloc
+
+KMOD= dtmalloc
+SRCS= dtmalloc.c
+SRCS+= vnode_if.h
+
+CFLAGS+= -I${.CURDIR}/../../../cddl/compat/opensolaris \
+ -I${.CURDIR}/../../../cddl/contrib/opensolaris/uts/common \
+ -I${.CURDIR}/../../..
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/dtrace/dtnfsclient/Makefile b/sys/modules/dtrace/dtnfsclient/Makefile
new file mode 100644
index 0000000..5e26bba
--- /dev/null
+++ b/sys/modules/dtrace/dtnfsclient/Makefile
@@ -0,0 +1,13 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../nfsclient
+
+KMOD= dtnfsclient
+SRCS= nfs_kdtrace.c
+SRCS+= vnode_if.h
+
+CFLAGS+= -I${.CURDIR}/../../../cddl/compat/opensolaris \
+ -I${.CURDIR}/../../../cddl/contrib/opensolaris/uts/common \
+ -I${.CURDIR}/../../..
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/dtrace/dtrace/Makefile b/sys/modules/dtrace/dtrace/Makefile
new file mode 100644
index 0000000..08e61a9
--- /dev/null
+++ b/sys/modules/dtrace/dtrace/Makefile
@@ -0,0 +1,44 @@
+# $FreeBSD$
+
+ARCHDIR= ${MACHINE_ARCH}
+
+.PATH: ${.CURDIR}/../../../cddl/contrib/opensolaris/uts/common/dtrace
+.PATH: ${.CURDIR}/../../../cddl/kern
+.PATH: ${.CURDIR}/../../../cddl/dev/dtrace
+.PATH: ${.CURDIR}/../../../cddl/dev/dtrace/${ARCHDIR}
+
+KMOD= dtrace
+SRCS= dtrace.c \
+ dtrace_asm.S \
+ dtrace_subr.c
+
+.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
+SRCS+= dis_tables.c \
+ instr_size.c
+.endif
+
+SRCS+= bus_if.h device_if.h vnode_if.h
+
+# Needed for dtrace_asm.S
+SRCS+= assym.s
+
+# These are needed for assym.s
+SRCS+= opt_compat.h opt_kstack_pages.h opt_nfs.h opt_hwpmc_hooks.h
+
+.if ${MACHINE_ARCH} == "i386"
+SRCS+= opt_apic.h
+.endif
+
+CFLAGS+= -I${.CURDIR}/../../../cddl/compat/opensolaris \
+ -I${.CURDIR}/../../../cddl/dev/dtrace \
+ -I${.CURDIR}/../../../cddl/dev/dtrace/${ARCHDIR} \
+ -I${.CURDIR}/../../../cddl/contrib/opensolaris/uts/common \
+ -I${.CURDIR}/../../.. -DDIS_MEM
+
+CFLAGS+= -DSMP -DDEBUG
+
+EXPORT_SYMS= dtrace_register \
+ dtrace_unregister \
+ dtrace_probe_lookup
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/dtrace/dtrace_test/Makefile b/sys/modules/dtrace/dtrace_test/Makefile
new file mode 100644
index 0000000..bc096f3
--- /dev/null
+++ b/sys/modules/dtrace/dtrace_test/Makefile
@@ -0,0 +1,14 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../cddl/dev/dtrace
+
+KMOD= dtrace_test
+SRCS= dtrace_test.c
+
+SRCS+= vnode_if.h
+
+CFLAGS+= -I${.CURDIR}/../../..
+
+CFLAGS+= -D_KERNEL
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/dtrace/dtraceall/Makefile b/sys/modules/dtrace/dtraceall/Makefile
new file mode 100644
index 0000000..6f09802
--- /dev/null
+++ b/sys/modules/dtrace/dtraceall/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+KMOD= dtraceall
+SRCS= dtraceall.c
+
+CFLAGS+= -I${.CURDIR}/../../..
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/dtrace/dtraceall/dtraceall.c b/sys/modules/dtrace/dtraceall/dtraceall.c
new file mode 100644
index 0000000..d8d330f
--- /dev/null
+++ b/sys/modules/dtrace/dtraceall/dtraceall.c
@@ -0,0 +1,75 @@
+/*
+ * Copyright (C) 2008 John Birrell <jb@freebsd.org>
+ *
+ * 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 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 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$
+ */
+
+#include <sys/cdefs.h>
+#include <sys/param.h>
+#include <sys/systm.h>
+#include <sys/conf.h>
+#include <sys/kernel.h>
+#include <sys/module.h>
+#include <sys/errno.h>
+
+static int
+dtraceall_modevent(module_t mod __unused, int type, void *data __unused)
+{
+ int error = 0;
+
+ switch (type) {
+ case MOD_LOAD:
+ break;
+
+ case MOD_UNLOAD:
+ break;
+
+ case MOD_SHUTDOWN:
+ break;
+
+ default:
+ error = EOPNOTSUPP;
+ break;
+
+ }
+
+ return (error);
+}
+
+DEV_MODULE(dtraceall, dtraceall_modevent, NULL);
+MODULE_VERSION(dtraceall, 1);
+
+/* All the DTrace modules should be dependencies here: */
+MODULE_DEPEND(dtraceall, cyclic, 1, 1, 1);
+MODULE_DEPEND(dtraceall, opensolaris, 1, 1, 1);
+MODULE_DEPEND(dtraceall, dtrace, 1, 1, 1);
+MODULE_DEPEND(dtraceall, dtmalloc, 1, 1, 1);
+MODULE_DEPEND(dtraceall, dtnfsclient, 1, 1, 1);
+#if defined(__amd64__) || defined(__i386__)
+MODULE_DEPEND(dtraceall, fbt, 1, 1, 1);
+#endif
+MODULE_DEPEND(dtraceall, lockstat, 1, 1, 1);
+MODULE_DEPEND(dtraceall, sdt, 1, 1, 1);
+MODULE_DEPEND(dtraceall, systrace, 1, 1, 1);
+MODULE_DEPEND(dtraceall, profile, 1, 1, 1);
diff --git a/sys/modules/dtrace/fasttrap/Makefile b/sys/modules/dtrace/fasttrap/Makefile
new file mode 100644
index 0000000..104fd9a
--- /dev/null
+++ b/sys/modules/dtrace/fasttrap/Makefile
@@ -0,0 +1,19 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../cddl/dev/fasttrap
+
+KMOD= fasttrap
+SRCS= fasttrap.c
+SRCS+= vnode_if.h
+
+CFLAGS+= -I${.CURDIR}/../../../cddl/compat/opensolaris \
+ -I${.CURDIR}/../../../cddl/contrib/opensolaris/uts/common \
+ -I${.CURDIR}/../../..
+
+.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
+CFLAGS+= -I${.CURDIR}/../../../cddl/contrib/opensolaris/uts/intel
+.endif
+
+CFLAGS+= -DSMP -DDEBUG
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/dtrace/fbt/Makefile b/sys/modules/dtrace/fbt/Makefile
new file mode 100644
index 0000000..9b69b22
--- /dev/null
+++ b/sys/modules/dtrace/fbt/Makefile
@@ -0,0 +1,13 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../cddl/dev/fbt
+
+KMOD= fbt
+SRCS= fbt.c
+SRCS+= vnode_if.h
+
+CFLAGS+= -I${.CURDIR}/../../../cddl/compat/opensolaris \
+ -I${.CURDIR}/../../../cddl/contrib/opensolaris/uts/common \
+ -I${.CURDIR}/../../..
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/dtrace/lockstat/Makefile b/sys/modules/dtrace/lockstat/Makefile
new file mode 100644
index 0000000..d00a0ec
--- /dev/null
+++ b/sys/modules/dtrace/lockstat/Makefile
@@ -0,0 +1,14 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../cddl/dev/lockstat
+
+KMOD= lockstat
+SRCS= lockstat.c
+
+SRCS+= vnode_if.h opt_kdtrace.h
+
+CFLAGS+= -I${.CURDIR}/../../../cddl/compat/opensolaris \
+ -I${.CURDIR}/../../../cddl/contrib/opensolaris/uts/common \
+ -I${.CURDIR}/../../..
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/dtrace/profile/Makefile b/sys/modules/dtrace/profile/Makefile
new file mode 100644
index 0000000..22cd10d
--- /dev/null
+++ b/sys/modules/dtrace/profile/Makefile
@@ -0,0 +1,13 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../cddl/dev/profile
+
+KMOD= profile
+SRCS= profile.c
+SRCS+= vnode_if.h
+
+CFLAGS+= -I${.CURDIR}/../../../cddl/compat/opensolaris \
+ -I${.CURDIR}/../../../cddl/contrib/opensolaris/uts/common \
+ -I${.CURDIR}/../../..
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/dtrace/prototype/Makefile b/sys/modules/dtrace/prototype/Makefile
new file mode 100644
index 0000000..49cc0a8
--- /dev/null
+++ b/sys/modules/dtrace/prototype/Makefile
@@ -0,0 +1,13 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../cddl/dev
+
+KMOD= prototype
+SRCS= prototype.c
+SRCS+= vnode_if.h
+
+CFLAGS+= -I${.CURDIR}/../../../cddl/compat/opensolaris \
+ -I${.CURDIR}/../../../cddl/contrib/opensolaris/uts/common \
+ -I${.CURDIR}/../../..
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/dtrace/sdt/Makefile b/sys/modules/dtrace/sdt/Makefile
new file mode 100644
index 0000000..d531d78
--- /dev/null
+++ b/sys/modules/dtrace/sdt/Makefile
@@ -0,0 +1,13 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../cddl/dev/sdt
+
+KMOD= sdt
+SRCS= sdt.c
+SRCS+= vnode_if.h
+
+CFLAGS+= -I${.CURDIR}/../../../cddl/compat/opensolaris \
+ -I${.CURDIR}/../../../cddl/contrib/opensolaris/uts/common \
+ -I${.CURDIR}/../../..
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/dtrace/systrace/Makefile b/sys/modules/dtrace/systrace/Makefile
new file mode 100644
index 0000000..d85a365
--- /dev/null
+++ b/sys/modules/dtrace/systrace/Makefile
@@ -0,0 +1,13 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../cddl/dev/systrace
+
+KMOD= systrace
+SRCS= systrace.c
+SRCS+= vnode_if.h
+
+CFLAGS+= -I${.CURDIR}/../../../cddl/compat/opensolaris \
+ -I${.CURDIR}/../../../cddl/contrib/opensolaris/uts/common \
+ -I${.CURDIR}/../../..
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/dummynet/Makefile b/sys/modules/dummynet/Makefile
new file mode 100644
index 0000000..dd96e0e
--- /dev/null
+++ b/sys/modules/dummynet/Makefile
@@ -0,0 +1,20 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+.PATH: ${.CURDIR}/../../netinet/ipfw
+KMOD= dummynet
+SRCS= ip_dummynet.c
+SRCS+= ip_dn_glue.c ip_dn_io.c
+SRCS+= dn_heap.c dn_sched_fifo.c dn_sched_qfq.c dn_sched_rr.c dn_sched_wf2q.c
+SRCS+= dn_sched_prio.c
+SRCS+= opt_inet6.h
+
+.if !defined(KERNBUILDDIR)
+.if ${MK_INET6_SUPPORT} != "no"
+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 0000000..723df34
--- /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/elink/Makefile b/sys/modules/elink/Makefile
new file mode 100644
index 0000000..a777657
--- /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 0000000..3e91c14
--- /dev/null
+++ b/sys/modules/em/Makefile
@@ -0,0 +1,26 @@
+# $FreeBSD$
+.PATH: ${.CURDIR}/../../dev/e1000
+KMOD = if_em
+SRCS = device_if.h bus_if.h pci_if.h opt_inet.h
+SRCS += $(CORE_SRC) $(LEGACY_SRC)
+SRCS += $(COMMON_SHARED) $(LEGACY_SHARED) $(PCIE_SHARED)
+CORE_SRC = if_em.c e1000_osdep.c
+# This is the Legacy, pre-PCIE source, it can be
+# undefined when using modular driver if not needed
+LEGACY_SRC += if_lem.c
+COMMON_SHARED = e1000_api.c e1000_phy.c e1000_nvm.c e1000_mac.c e1000_manage.c
+PCIE_SHARED = e1000_80003es2lan.c e1000_ich8lan.c e1000_82571.c e1000_82575.c
+LEGACY_SHARED = e1000_82540.c e1000_82542.c e1000_82541.c e1000_82543.c
+
+CFLAGS += -I${.CURDIR}/../../dev/e1000
+
+# DEVICE_POLLING for a non-interrupt-driven method
+#CFLAGS += -DDEVICE_POLLING
+
+clean:
+ rm -f device_if.h bus_if.h pci_if.h setdef*
+ rm -f *.o *.kld *.ko
+ rm -f @ machine
+ rm -f ${CLEANFILES}
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/en/Makefile b/sys/modules/en/Makefile
new file mode 100644
index 0000000..8f342e3
--- /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 0000000..f0e132f
--- /dev/null
+++ b/sys/modules/ep/Makefile
@@ -0,0 +1,13 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/ep
+
+KMOD= if_ep
+SRCS= if_ep.c
+SRCS+= if_ep_pccard.c pccarddevs.h card_if.h
+SRCS+= if_ep_isa.c isa_if.h
+SRCS+= if_ep_eisa.c eisa_if.h
+#SRCS+= if_ep_mca.c
+SRCS+= bus_if.h device_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/epic/Makefile b/sys/modules/epic/Makefile
new file mode 100644
index 0000000..8c2212b
--- /dev/null
+++ b/sys/modules/epic/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../sparc64/ebus
+
+KMOD= epic
+SRCS= device_if.h epic.c bus_if.h ofw_bus_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/esp/Makefile b/sys/modules/esp/Makefile
new file mode 100644
index 0000000..2171d85
--- /dev/null
+++ b/sys/modules/esp/Makefile
@@ -0,0 +1,13 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/esp
+
+KMOD= esp
+SRCS= device_if.h ${esp_sbus} bus_if.h ncr53c9x.c ${ofw_bus_if} opt_cam.h
+
+.if ${MACHINE} == "sparc64"
+ofw_bus_if= ofw_bus_if.h
+esp_sbus= esp_sbus.c
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/et/Makefile b/sys/modules/et/Makefile
new file mode 100644
index 0000000..e715431
--- /dev/null
+++ b/sys/modules/et/Makefile
@@ -0,0 +1,10 @@
+# $DragonFly: src/sys/dev/netif/et/Makefile,v 1.1 2007/10/12 14:12:42 sephe Exp $
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/et
+
+KMOD= if_et
+SRCS= if_et.c
+SRCS+= bus_if.h pci_if.h device_if.h miibus_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ex/Makefile b/sys/modules/ex/Makefile
new file mode 100644
index 0000000..5c394aa
--- /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 0000000..b7a8d52
--- /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 0000000..d9ab969
--- /dev/null
+++ b/sys/modules/ext2fs/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../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_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 0000000..3e0b841
--- /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" > ${.TARGET}
+
+opt_natm.h:
+ echo "#define NATM 1" > ${.TARGET}
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/fdc/Makefile b/sys/modules/fdc/Makefile
new file mode 100644
index 0000000..43b85f5
--- /dev/null
+++ b/sys/modules/fdc/Makefile
@@ -0,0 +1,25 @@
+# $FreeBSD$
+
+KMOD= fdc
+
+.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"
+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 0000000..eead3ec
--- /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 0000000..77af85b
--- /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 0000000..379ad58
--- /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 0000000..265f86d
--- /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 0000000..de418b1
--- /dev/null
+++ b/sys/modules/firewire/firewire/Makefile
@@ -0,0 +1,14 @@
+# $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 0000000..746eb65
--- /dev/null
+++ b/sys/modules/firewire/fwe/Makefile
@@ -0,0 +1,14 @@
+# $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 0000000..a88a2b1
--- /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 \
+ 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 0000000..94218c4
--- /dev/null
+++ b/sys/modules/firewire/sbp/Makefile
@@ -0,0 +1,14 @@
+# $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 0000000..98ca957
--- /dev/null
+++ b/sys/modules/firewire/sbp_targ/Makefile
@@ -0,0 +1,14 @@
+# $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 0000000..90f1cbd
--- /dev/null
+++ b/sys/modules/firmware/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../kern
+
+KMOD= firmware
+SRCS= subr_firmware.c vnode_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/fxp/Makefile b/sys/modules/fxp/Makefile
new file mode 100644
index 0000000..b80c3ec
--- /dev/null
+++ b/sys/modules/fxp/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/fxp
+
+KMOD= if_fxp
+SRCS= if_fxp.c 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 0000000..94db462
--- /dev/null
+++ b/sys/modules/gem/Makefile
@@ -0,0 +1,12 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/gem
+
+KMOD= if_gem
+SRCS= bus_if.h device_if.h if_gem.c if_gem_pci.c miibus_if.h pci_if.h
+
+.if ${MACHINE} == "sparc64"
+SRCS+= if_gem_sbus.c ofw_bus_if.h
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/geom/Makefile b/sys/modules/geom/Makefile
new file mode 100644
index 0000000..0b2e3e8
--- /dev/null
+++ b/sys/modules/geom/Makefile
@@ -0,0 +1,32 @@
+# $FreeBSD$
+
+SUBDIR= geom_bde \
+ geom_bsd \
+ geom_cache \
+ geom_ccd \
+ geom_concat \
+ geom_eli \
+ geom_fox \
+ geom_gate \
+ geom_journal \
+ geom_label \
+ geom_linux_lvm \
+ geom_mbr \
+ geom_mirror \
+ geom_mountver \
+ geom_multipath \
+ geom_nop \
+ geom_part \
+ geom_pc98 \
+ geom_raid3 \
+ geom_sched \
+ geom_shsec \
+ geom_stripe \
+ geom_sunlabel \
+ geom_uzip \
+ geom_vinum \
+ geom_virstor \
+ 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 0000000..265f86d
--- /dev/null
+++ b/sys/modules/geom/Makefile.inc
@@ -0,0 +1,3 @@
+# $FreeBSD$
+
+.include "../Makefile.inc"
diff --git a/sys/modules/geom/geom_bde/Makefile b/sys/modules/geom/geom_bde/Makefile
new file mode 100644
index 0000000..089126e
--- /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 0000000..b605df9
--- /dev/null
+++ b/sys/modules/geom/geom_bsd/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../geom
+
+KMOD= geom_bsd
+SRCS= geom_bsd.c geom_bsd_enc.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/geom/geom_cache/Makefile b/sys/modules/geom/geom_cache/Makefile
new file mode 100644
index 0000000..7ccbe98
--- /dev/null
+++ b/sys/modules/geom/geom_cache/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../geom/cache
+
+KMOD= geom_cache
+SRCS= g_cache.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 0000000..18d6eeb
--- /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 0000000..3de201a
--- /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 0000000..ec71a32
--- /dev/null
+++ b/sys/modules/geom/geom_eli/Makefile
@@ -0,0 +1,15 @@
+# $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
+
+.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 0000000..adf8c2e
--- /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 0000000..783a58a
--- /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_journal/Makefile b/sys/modules/geom/geom_journal/Makefile
new file mode 100644
index 0000000..0288b48
--- /dev/null
+++ b/sys/modules/geom/geom_journal/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../geom/journal
+
+KMOD= geom_journal
+SRCS= g_journal.c
+SRCS+= g_journal_ufs.c
+SRCS+= vnode_if.h
+
+.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 0000000..300606a
--- /dev/null
+++ b/sys/modules/geom/geom_label/Makefile
@@ -0,0 +1,15 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../geom/label
+
+KMOD= geom_label
+SRCS= g_label.c
+SRCS+= g_label_ext2fs.c
+SRCS+= g_label_gpt.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_linux_lvm/Makefile b/sys/modules/geom/geom_linux_lvm/Makefile
new file mode 100644
index 0000000..1e10e13
--- /dev/null
+++ b/sys/modules/geom/geom_linux_lvm/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../geom/linux_lvm
+
+KMOD= geom_linux_lvm
+SRCS= g_linux_lvm.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 0000000..1820f3b
--- /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 0000000..3e653ce
--- /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_mountver/Makefile b/sys/modules/geom/geom_mountver/Makefile
new file mode 100644
index 0000000..8e89c9a
--- /dev/null
+++ b/sys/modules/geom/geom_mountver/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../geom/mountver
+
+KMOD= geom_mountver
+SRCS= g_mountver.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/geom/geom_multipath/Makefile b/sys/modules/geom/geom_multipath/Makefile
new file mode 100644
index 0000000..d036fe0
--- /dev/null
+++ b/sys/modules/geom/geom_multipath/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../geom/multipath
+
+KMOD= geom_multipath
+SRCS= g_multipath.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 0000000..139e124
--- /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_part/Makefile b/sys/modules/geom/geom_part/Makefile
new file mode 100644
index 0000000..898eccc
--- /dev/null
+++ b/sys/modules/geom/geom_part/Makefile
@@ -0,0 +1,11 @@
+# $FreeBSD$
+
+SUBDIR= geom_part_apm \
+ geom_part_bsd \
+ geom_part_ebr \
+ geom_part_gpt \
+ geom_part_mbr \
+ geom_part_pc98 \
+ geom_part_vtoc8
+
+.include <bsd.subdir.mk>
diff --git a/sys/modules/geom/geom_part/geom_part_apm/Makefile b/sys/modules/geom/geom_part/geom_part_apm/Makefile
new file mode 100644
index 0000000..666cf92
--- /dev/null
+++ b/sys/modules/geom/geom_part/geom_part_apm/Makefile
@@ -0,0 +1,12 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../geom/part
+
+KMOD= geom_part_apm
+SRCS= g_part_apm.c
+
+SRCS+= bus_if.h device_if.h g_part_if.h
+
+MFILES= kern/bus_if.m kern/device_if.m geom/part/g_part_if.m
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/geom/geom_part/geom_part_bsd/Makefile b/sys/modules/geom/geom_part/geom_part_bsd/Makefile
new file mode 100644
index 0000000..2a10b34
--- /dev/null
+++ b/sys/modules/geom/geom_part/geom_part_bsd/Makefile
@@ -0,0 +1,12 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../geom/part
+
+KMOD= geom_part_bsd
+SRCS= g_part_bsd.c
+
+SRCS+= bus_if.h device_if.h g_part_if.h
+
+MFILES= kern/bus_if.m kern/device_if.m geom/part/g_part_if.m
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/geom/geom_part/geom_part_ebr/Makefile b/sys/modules/geom/geom_part/geom_part_ebr/Makefile
new file mode 100644
index 0000000..a9fa117
--- /dev/null
+++ b/sys/modules/geom/geom_part/geom_part_ebr/Makefile
@@ -0,0 +1,13 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../geom/part
+
+KMOD= geom_part_ebr
+SRCS= g_part_ebr.c
+
+SRCS+= bus_if.h device_if.h g_part_if.h
+SRCS+= opt_geom.h
+
+MFILES= kern/bus_if.m kern/device_if.m geom/part/g_part_if.m
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/geom/geom_part/geom_part_gpt/Makefile b/sys/modules/geom/geom_part/geom_part_gpt/Makefile
new file mode 100644
index 0000000..05f77c0
--- /dev/null
+++ b/sys/modules/geom/geom_part/geom_part_gpt/Makefile
@@ -0,0 +1,12 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../geom/part
+
+KMOD= geom_part_gpt
+SRCS= g_part_gpt.c
+
+SRCS+= bus_if.h device_if.h g_part_if.h
+
+MFILES= kern/bus_if.m kern/device_if.m geom/part/g_part_if.m
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/geom/geom_part/geom_part_mbr/Makefile b/sys/modules/geom/geom_part/geom_part_mbr/Makefile
new file mode 100644
index 0000000..98ae1da
--- /dev/null
+++ b/sys/modules/geom/geom_part/geom_part_mbr/Makefile
@@ -0,0 +1,12 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../geom/part
+
+KMOD= geom_part_mbr
+SRCS= g_part_mbr.c
+
+SRCS+= bus_if.h device_if.h g_part_if.h
+
+MFILES= kern/bus_if.m kern/device_if.m geom/part/g_part_if.m
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/geom/geom_part/geom_part_pc98/Makefile b/sys/modules/geom/geom_part/geom_part_pc98/Makefile
new file mode 100644
index 0000000..44732df
--- /dev/null
+++ b/sys/modules/geom/geom_part/geom_part_pc98/Makefile
@@ -0,0 +1,12 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../geom/part
+
+KMOD= geom_part_pc98
+SRCS= g_part_pc98.c
+
+SRCS+= bus_if.h device_if.h g_part_if.h
+
+MFILES= kern/bus_if.m kern/device_if.m geom/part/g_part_if.m
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/geom/geom_part/geom_part_vtoc8/Makefile b/sys/modules/geom/geom_part/geom_part_vtoc8/Makefile
new file mode 100644
index 0000000..1f13bdf
--- /dev/null
+++ b/sys/modules/geom/geom_part/geom_part_vtoc8/Makefile
@@ -0,0 +1,12 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../geom/part
+
+KMOD= geom_part_vtoc8
+SRCS= g_part_vtoc8.c
+
+SRCS+= bus_if.h device_if.h g_part_if.h
+
+MFILES= kern/bus_if.m kern/device_if.m geom/part/g_part_if.m
+
+.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 0000000..2c5952d
--- /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 0000000..b202237
--- /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_sched/Makefile b/sys/modules/geom/geom_sched/Makefile
new file mode 100644
index 0000000..5937fa0
--- /dev/null
+++ b/sys/modules/geom/geom_sched/Makefile
@@ -0,0 +1,5 @@
+# $FreeBSD$
+
+SUBDIR= gs_sched gsched_rr
+
+.include <bsd.subdir.mk>
diff --git a/sys/modules/geom/geom_sched/Makefile.inc b/sys/modules/geom/geom_sched/Makefile.inc
new file mode 100644
index 0000000..808d6eb
--- /dev/null
+++ b/sys/modules/geom/geom_sched/Makefile.inc
@@ -0,0 +1,9 @@
+# $FreeBSD$
+# included by geom_sched children
+
+.PATH: ${.CURDIR}/../../../../geom/sched
+
+# 6.x needs this path
+#CFLAGS += -I${.CURDIR}/../../../../geom/sched
+
+# .include <bsd.kmod.mk>
diff --git a/sys/modules/geom/geom_sched/gs_sched/Makefile b/sys/modules/geom/geom_sched/gs_sched/Makefile
new file mode 100644
index 0000000..5739365
--- /dev/null
+++ b/sys/modules/geom/geom_sched/gs_sched/Makefile
@@ -0,0 +1,6 @@
+# $FreeBSD$
+KMOD= geom_sched
+SRCS= g_sched.c subr_disk.c
+
+# ../Makefile.inc automatically included
+.include <bsd.kmod.mk>
diff --git a/sys/modules/geom/geom_sched/gsched_rr/Makefile b/sys/modules/geom/geom_sched/gsched_rr/Makefile
new file mode 100644
index 0000000..4209277
--- /dev/null
+++ b/sys/modules/geom/geom_sched/gsched_rr/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+KMOD= gsched_rr
+SRCS= gs_rr.c
+# hash.h on 6.x has a (char *) cast on a const pointer
+#CWARNFLAGS=
+
+# ../Makefile.inc automatically included
+.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 0000000..f229203
--- /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 0000000..278d3ac
--- /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 0000000..840395a
--- /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 0000000..3efeb80
--- /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 -DINVARIANT_SUPPORT -DINVARIANTS
+
+.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 0000000..48ac962
--- /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_create.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 geom_vinum_events.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/geom/geom_virstor/Makefile b/sys/modules/geom/geom_virstor/Makefile
new file mode 100644
index 0000000..3a099f2
--- /dev/null
+++ b/sys/modules/geom/geom_virstor/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../geom/virstor
+
+KMOD= geom_virstor
+SRCS= g_virstor.c g_virstor_md.c binstream.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 0000000..de9b758
--- /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 0000000..43dae09
--- /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/glxsb/Makefile b/sys/modules/glxsb/Makefile
new file mode 100644
index 0000000..7167f82
--- /dev/null
+++ b/sys/modules/glxsb/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/glxsb
+KMOD = glxsb
+SRCS = glxsb.c glxsb_hash.c glxsb.h
+SRCS += device_if.h pci_if.h bus_if.h
+SRCS += opt_bus.h cryptodev_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/hatm/Makefile b/sys/modules/hatm/Makefile
new file mode 100644
index 0000000..ec1a878
--- /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" > ${.TARGET}
+
+opt_natm.h:
+ echo "#define NATM 1" > ${.TARGET}
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/hifn/Makefile b/sys/modules/hifn/Makefile
new file mode 100644
index 0000000..6897e34
--- /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_bus.h cryptodev_if.h
+
+.if !defined(KERNBUILDDIR)
+opt_hifn.h:
+ echo "#define HIFN_DEBUG 1" > ${.TARGET}
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/hme/Makefile b/sys/modules/hme/Makefile
new file mode 100644
index 0000000..4656281
--- /dev/null
+++ b/sys/modules/hme/Makefile
@@ -0,0 +1,14 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/hme
+
+KMOD= if_hme
+SRCS= bus_if.h device_if.h if_hme.c if_hme_pci.c ${if_hme_sbus} miibus_if.h
+SRCS+= ${ofw_bus_if} pci_if.h
+
+.if ${MACHINE} == "sparc64"
+if_hme_sbus= if_hme_sbus.c
+ofw_bus_if= 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 0000000..750fda0
--- /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/hptiop/Makefile b/sys/modules/hptiop/Makefile
new file mode 100644
index 0000000..66f11c2
--- /dev/null
+++ b/sys/modules/hptiop/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/hptiop
+
+KMOD= hptiop
+SRCS= hptiop.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/hptmv/Makefile b/sys/modules/hptmv/Makefile
new file mode 100644
index 0000000..05ceac7
--- /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/hptrr/Makefile b/sys/modules/hptrr/Makefile
new file mode 100644
index 0000000..038c5a4
--- /dev/null
+++ b/sys/modules/hptrr/Makefile
@@ -0,0 +1,14 @@
+# $Id: Makefile.def,v 1.18 2007/03/22 11:20:15 gmm Exp $
+# $FreeBSD$
+
+HPTRR= ${.CURDIR}/../../dev/hptrr
+.PATH: ${HPTRR}
+KMOD = hptrr
+SRCS = opt_scsi.h opt_cam.h bus_if.h device_if.h pci_if.h os_bsd.h
+SRCS+= hptrr_os_bsd.c hptrr_osm_bsd.c hptrr_config.c
+OBJS = hptrr_lib.o
+
+hptrr_lib.o:
+ uudecode -p < ${HPTRR}/$(MACHINE_ARCH)-elf.hptrr_lib.o.uu > hptrr_lib.o
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/hwpmc/Makefile b/sys/modules/hwpmc/Makefile
new file mode 100644
index 0000000..1febf54
--- /dev/null
+++ b/sys/modules/hwpmc/Makefile
@@ -0,0 +1,39 @@
+#
+# $FreeBSD$
+#
+
+.PATH: ${.CURDIR}/../../dev/hwpmc
+
+KMOD= hwpmc
+
+SRCS= hwpmc_mod.c hwpmc_logging.c vnode_if.h
+
+.if ${MACHINE_ARCH} == "amd64"
+SRCS+= hwpmc_amd.c hwpmc_core.c hwpmc_intel.c hwpmc_piv.c hwpmc_tsc.c
+SRCS+= hwpmc_x86.c hwpmc_uncore.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_core.c hwpmc_intel.c hwpmc_piv.c hwpmc_ppro.c
+SRCS+= hwpmc_pentium.c hwpmc_tsc.c hwpmc_x86.c hwpmc_uncore.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 0000000..7ba1f43
--- /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 0000000..265f86d
--- /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 0000000..c9d9fbb
--- /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 0000000..265f86d
--- /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 0000000..885b983
--- /dev/null
+++ b/sys/modules/i2c/controllers/alpm/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../pci
+KMOD = alpm
+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 0000000..5f6d7ed
--- /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 0000000..d7306ce
--- /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 0000000..7cb9957
--- /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 0000000..7cef578
--- /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 0000000..77e84d2
--- /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 0000000..21b67f3
--- /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 0000000..4714cfd
--- /dev/null
+++ b/sys/modules/i2c/controllers/pcf/Makefile
@@ -0,0 +1,20 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../dev/pcf
+
+KMOD= pcf
+SRCS= ${envctrl} pcf.c ${pcf_ebus} ${pcf_isa}
+SRCS+= bus_if.h device_if.h iicbus_if.h ${isa_if} ${ofw_bus_if}
+
+.if ${MACHINE_ARCH} == "i386"
+isa_if= isa_if.h
+pcf_isa= pcf_isa.c
+.endif
+
+.if ${MACHINE_ARCH} == "sparc64"
+envctrl= envctrl.c
+ofw_bus_if= ofw_bus_if.h
+pcf_ebus= pcf_ebus.c
+.endif
+
+.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 0000000..3710030
--- /dev/null
+++ b/sys/modules/i2c/controllers/viapm/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../pci
+KMOD = viapm
+SRCS = device_if.h bus_if.h iicbb_if.h isa_if.h pci_if.h smbus_if.h \
+ opt_isa.h viapm.c
+
+.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 0000000..67dd734
--- /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 0000000..0ac8678
--- /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 0000000..ea991e0
--- /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 0000000..c3fc8e3
--- /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 0000000..d0c6764
--- /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 0000000..f6f960c
--- /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 0000000..24462d0
--- /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 0000000..9407cb4
--- /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_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 0000000..21c1430
--- /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 isa_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ida/Makefile b/sys/modules/ida/Makefile
new file mode 100644
index 0000000..e97ac69
--- /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/ie/Makefile b/sys/modules/ie/Makefile
new file mode 100644
index 0000000..d6c611d
--- /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 0000000..1ddb4c8
--- /dev/null
+++ b/sys/modules/if_bridge/Makefile
@@ -0,0 +1,19 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+.PATH: ${.CURDIR}/../../net
+KMOD= if_bridge
+SRCS= if_bridge.c opt_inet.h opt_inet6.h opt_carp.h
+
+.if !defined(KERNBUILDDIR)
+opt_inet.h:
+ echo "#define INET 1" > ${.TARGET}
+
+.if ${MK_INET6_SUPPORT} != "no"
+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 0000000..9dc5742
--- /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_edsc/Makefile b/sys/modules/if_edsc/Makefile
new file mode 100644
index 0000000..af2704b
--- /dev/null
+++ b/sys/modules/if_edsc/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../net
+
+KMOD= if_edsc
+SRCS= if_edsc.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/if_ef/Makefile b/sys/modules/if_ef/Makefile
new file mode 100644
index 0000000..dc40213
--- /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_epair/Makefile b/sys/modules/if_epair/Makefile
new file mode 100644
index 0000000..aaffa1f
--- /dev/null
+++ b/sys/modules/if_epair/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../net
+
+KMOD= if_epair
+SRCS= if_epair.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/if_faith/Makefile b/sys/modules/if_faith/Makefile
new file mode 100644
index 0000000..a46d5fd
--- /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 0000000..1cde56c
--- /dev/null
+++ b/sys/modules/if_gif/Makefile
@@ -0,0 +1,32 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+.PATH: ${.CURDIR}/../../net ${.CURDIR}/../../netinet ${.CURDIR}/../../netinet6
+
+KMOD= if_gif
+SRCS= if_gif.c in_gif.c opt_inet.h opt_inet6.h opt_mrouting.h
+
+.if !defined(KERNBUILDDIR)
+opt_inet.h:
+ echo "#define INET 1" > ${.TARGET}
+
+.if ${MK_INET6_SUPPORT} != "no"
+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)
+MK_INET6_SUPPORT= no
+.endif
+.endif
+
+.if ${MK_INET6_SUPPORT} != "no"
+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 0000000..87da7b0
--- /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_lagg/Makefile b/sys/modules/if_lagg/Makefile
new file mode 100644
index 0000000..4d84c92
--- /dev/null
+++ b/sys/modules/if_lagg/Makefile
@@ -0,0 +1,19 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+.PATH: ${.CURDIR}/../../net
+KMOD= if_lagg
+SRCS= if_lagg.c ieee8023ad_lacp.c opt_inet.h opt_inet6.h
+
+.if !defined(KERNBUILDDIR)
+opt_inet.h:
+ echo "#define INET 1" > ${.TARGET}
+
+.if ${MK_INET6_SUPPORT} != "no"
+opt_inet6.h:
+ echo "#define INET6 1" > ${.TARGET}
+.endif
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/if_ndis/Makefile b/sys/modules/if_ndis/Makefile
new file mode 100644
index 0000000..79a9b88
--- /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+= device_if.h bus_if.h pci_if.h card_if.h pccarddevs.h
+SRCS+= opt_bus.h opt_usb.h usb_if.h usbdevs.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/if_stf/Makefile b/sys/modules/if_stf/Makefile
new file mode 100644
index 0000000..5e8bd2f
--- /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
+
+.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 0000000..b993093
--- /dev/null
+++ b/sys/modules/if_tap/Makefile
@@ -0,0 +1,18 @@
+# Copyright (C) 1999-2000 by Maksim Yevmenkin <m_evmenkin@yahoo.com>
+#
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../net
+
+KMOD= if_tap
+SRCS= if_tap.c opt_compat.h opt_inet.h vnode_if.h
+
+.if !defined(KERNBUILDDIR)
+opt_compat.h:
+ echo "#define COMPAT_FREEBSD6 1" > ${.TARGET}
+
+opt_inet.h:
+ echo "#define INET 1" > ${.TARGET}
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/if_tun/Makefile b/sys/modules/if_tun/Makefile
new file mode 100644
index 0000000..22a833e
--- /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
+
+.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 0000000..9842619
--- /dev/null
+++ b/sys/modules/if_vlan/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../net
+
+KMOD= if_vlan
+SRCS= if_vlan.c
+SRCS+= opt_inet.h opt_vlan.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/igb/Makefile b/sys/modules/igb/Makefile
new file mode 100644
index 0000000..7b30390
--- /dev/null
+++ b/sys/modules/igb/Makefile
@@ -0,0 +1,27 @@
+#$FreeBSD$
+.PATH: ${.CURDIR}/../../dev/e1000
+KMOD = if_igb
+SRCS = device_if.h bus_if.h pci_if.h opt_inet.h
+SRCS += if_igb.c $(SHARED_SRCS)
+SHARED_SRCS = e1000_api.c e1000_phy.c e1000_nvm.c e1000_mac.c e1000_manage.c
+SHARED_SRCS += e1000_80003es2lan.c e1000_82542.c e1000_82541.c e1000_82543.c
+SHARED_SRCS += e1000_82540.c e1000_ich8lan.c e1000_82571.c e1000_osdep.c
+SHARED_SRCS += e1000_82575.c
+
+CFLAGS += -I${.CURDIR}/../../dev/e1000 -DSMP
+
+# DEVICE_POLLING gives you non-interrupt handling
+# not advisable since MSIX gives better results
+#CFLAGS += -DDEVICE_POLLING
+
+clean:
+ rm -f device_if.h bus_if.h pci_if.h setdef*
+ rm -f *.o *.kld *.ko
+ rm -f @ machine
+ rm -f ${CLEANFILES}
+
+man:
+ mv /usr/share/man/man4/igb.4.gz /usr/share/man/man4/igbSAVE.4.gz
+ cp igb.4 /usr/share/man/man4/
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/iir/Makefile b/sys/modules/iir/Makefile
new file mode 100644
index 0000000..591fef8
--- /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 0000000..d90a8e4
--- /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/ip6_mroute_mod/Makefile b/sys/modules/ip6_mroute_mod/Makefile
new file mode 100644
index 0000000..943f9ab
--- /dev/null
+++ b/sys/modules/ip6_mroute_mod/Makefile
@@ -0,0 +1,19 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+.PATH: ${.CURDIR}/../../netinet6
+
+KMOD= ip6_mroute
+
+SRCS= ip6_mroute.c
+SRCS+= opt_inet6.h opt_mrouting.h
+
+.if !defined(KERNBUILDDIR)
+opt_inet6.h:
+ echo "#define INET6 1" > ${.TARGET}
+opt_mrouting.h:
+ echo "#define MROUTING 1" > ${.TARGET}
+.endif
+
+.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 0000000..df5424b
--- /dev/null
+++ b/sys/modules/ip_mroute_mod/Makefile
@@ -0,0 +1,19 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+.PATH: ${.CURDIR}/../../netinet ${.CURDIR}/../../netinet6
+
+KMOD= ip_mroute
+
+SRCS= ip_mroute.c
+SRCS+= opt_inet.h opt_mrouting.h
+
+.if !defined(KERNBUILDDIR)
+opt_inet.h:
+ echo "#define INET 1" > ${.TARGET}
+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 0000000..203b4bf
--- /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 0000000..9cfb0f6
--- /dev/null
+++ b/sys/modules/ipfilter/Makefile
@@ -0,0 +1,28 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+.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 ${MK_INET6_SUPPORT} != "no"
+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 0000000..b48d5c5
--- /dev/null
+++ b/sys/modules/ipfw/Makefile
@@ -0,0 +1,31 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+.PATH: ${.CURDIR}/../../netinet/ipfw
+
+KMOD= ipfw
+SRCS= ip_fw2.c ip_fw_pfil.c
+SRCS+= ip_fw_dynamic.c ip_fw_log.c ip_fw_nat.c
+SRCS+= ip_fw_sockopt.c ip_fw_table.c
+SRCS+= opt_inet6.h opt_ipsec.h
+
+CFLAGS+= -DIPFIREWALL
+CFLAGS+= -I${.CURDIR}/../../contrib/pf
+#
+#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 ${MK_INET6_SUPPORT} != "no"
+opt_inet6.h:
+ echo "#define INET6 1" > ${.TARGET}
+.endif
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ipfw_nat/Makefile b/sys/modules/ipfw_nat/Makefile
new file mode 100644
index 0000000..1c957ab
--- /dev/null
+++ b/sys/modules/ipfw_nat/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../netinet/ipfw
+
+KMOD= ipfw_nat
+SRCS= ip_fw_nat.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ipmi/Makefile b/sys/modules/ipmi/Makefile
new file mode 100644
index 0000000..7493b23
--- /dev/null
+++ b/sys/modules/ipmi/Makefile
@@ -0,0 +1,15 @@
+# $FreeBSD$
+
+SUBDIR+= ipmi_linux
+
+.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/ipmi/ipmi_linux/Makefile b/sys/modules/ipmi/ipmi_linux/Makefile
new file mode 100644
index 0000000..bbdef1b
--- /dev/null
+++ b/sys/modules/ipmi/ipmi_linux/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/ipmi
+
+KMOD= ipmi_linux
+SRCS= ipmi_linux.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ips/Makefile b/sys/modules/ips/Makefile
new file mode 100644
index 0000000..4ec20a3
--- /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 0000000..741d852
--- /dev/null
+++ b/sys/modules/ipw/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/ipw
+
+KMOD = if_ipw
+SRCS = if_ipw.c device_if.h bus_if.h pci_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ipwfw/Makefile b/sys/modules/ipwfw/Makefile
new file mode 100644
index 0000000..83f4e67
--- /dev/null
+++ b/sys/modules/ipwfw/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+SUBDIR= ipw_bss \
+ ipw_ibss \
+ ipw_monitor
+
+.include <bsd.subdir.mk>
diff --git a/sys/modules/ipwfw/ipw_bss/Makefile b/sys/modules/ipwfw/ipw_bss/Makefile
new file mode 100644
index 0000000..2f57711
--- /dev/null
+++ b/sys/modules/ipwfw/ipw_bss/Makefile
@@ -0,0 +1,15 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../contrib/dev/ipw
+
+KMOD= ipw_bss
+FIRMWS= ipw_bss:ipw_bss:130
+FIRMWARE_LICENSE= intel_ipw
+
+CLEANFILES= ipw_bss
+
+ipw_bss: ${.CURDIR}/../../../contrib/dev/ipw/ipw2100-1.3.fw.uu
+ uudecode -p ${.CURDIR}/../../../contrib/dev/ipw/ipw2100-1.3.fw.uu > ${.TARGET}
+
+.include <bsd.kmod.mk>
+
diff --git a/sys/modules/ipwfw/ipw_ibss/Makefile b/sys/modules/ipwfw/ipw_ibss/Makefile
new file mode 100644
index 0000000..10281b1
--- /dev/null
+++ b/sys/modules/ipwfw/ipw_ibss/Makefile
@@ -0,0 +1,15 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../contrib/dev/ipw
+
+KMOD= ipw_ibss
+FIRMWS= ipw_ibss:ipw_ibss:130
+FIRMWARE_LICENSE= intel_ipw
+
+CLEANFILES= ipw_ibss
+
+ipw_ibss: ${.CURDIR}/../../../contrib/dev/ipw/ipw2100-1.3-i.fw.uu
+ uudecode -p ${.CURDIR}/../../../contrib/dev/ipw/ipw2100-1.3-i.fw.uu > ${.TARGET}
+
+.include <bsd.kmod.mk>
+
diff --git a/sys/modules/ipwfw/ipw_monitor/Makefile b/sys/modules/ipwfw/ipw_monitor/Makefile
new file mode 100644
index 0000000..cdc28b2
--- /dev/null
+++ b/sys/modules/ipwfw/ipw_monitor/Makefile
@@ -0,0 +1,15 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../contrib/dev/ipw
+
+KMOD= ipw_monitor
+FIRMWS= ipw_monitor:ipw_monitor:130
+FIRMWARE_LICENSE= intel_ipw
+
+CLEANFILES= ipw_monitor
+
+ipw_monitor: ${.CURDIR}/../../../contrib/dev/ipw/ipw2100-1.3-p.fw.uu
+ uudecode -p ${.CURDIR}/../../../contrib/dev/ipw/ipw2100-1.3-p.fw.uu > ${.TARGET}
+
+.include <bsd.kmod.mk>
+
diff --git a/sys/modules/iscsi/Makefile b/sys/modules/iscsi/Makefile
new file mode 100644
index 0000000..625e3be
--- /dev/null
+++ b/sys/modules/iscsi/Makefile
@@ -0,0 +1,5 @@
+# $FreeBSD$
+
+SUBDIR= initiator
+
+.include <bsd.subdir.mk>
diff --git a/sys/modules/iscsi/initiator/Makefile b/sys/modules/iscsi/initiator/Makefile
new file mode 100644
index 0000000..3295c7b
--- /dev/null
+++ b/sys/modules/iscsi/initiator/Makefile
@@ -0,0 +1,14 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/iscsi/initiator
+KMOD=iscsi_initiator
+
+SRCS= iscsi.h iscsivar.h
+SRCS+= iscsi.c isc_cam.c isc_soc.c isc_sm.c isc_subr.c iscsi_subr.c
+SRCS+= opt_cam.h opt_iscsi_initiator.h
+SRCS+= bus_if.h device_if.h
+
+# Debugging
+# CFLAGS+= -DISCSI_INITIATOR_DEBUG=9
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/isp/Makefile b/sys/modules/isp/Makefile
new file mode 100644
index 0000000..1caeef6
--- /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_library.c isp_target.c isp_freebsd.c isp_pci.c
+
+.if ${MACHINE} == 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 0000000..4dca25c
--- /dev/null
+++ b/sys/modules/ispfw/Makefile
@@ -0,0 +1,49 @@
+#-
+# Copyright (c) 2006 by Matthew Jacob
+# 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 immediately at the beginning of the file, without modification,
+# this list of conditions, and the following disclaimer.
+# 2. The name of the author may not be used to endorse or promote products
+# derived from this software without specific prior written permission.
+#
+# 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$
+
+
+SUBDIR = ispfw
+SUBDIR += isp_1040
+SUBDIR += isp_1040_it
+SUBDIR += isp_1080
+SUBDIR += isp_1080_it
+SUBDIR += isp_12160
+SUBDIR += isp_12160_it
+SUBDIR += isp_2100
+SUBDIR += isp_2200
+SUBDIR += isp_2300
+SUBDIR += isp_2322
+SUBDIR += isp_2400
+SUBDIR += isp_2400_multi
+SUBDIR += isp_2500
+SUBDIR += isp_2500_multi
+.if ${MACHINE} == "sparc64"
+SUBDIR += isp_1000
+.endif
+
+.include <bsd.subdir.mk>
diff --git a/sys/modules/ispfw/isp_1000/Makefile b/sys/modules/ispfw/isp_1000/Makefile
new file mode 100644
index 0000000..ef2189d
--- /dev/null
+++ b/sys/modules/ispfw/isp_1000/Makefile
@@ -0,0 +1,36 @@
+#-
+# Copyright (c) 2006 by Matthew Jacob
+# 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 immediately at the beginning of the file, without modification,
+# this list of conditions, and the following disclaimer.
+# 2. The name of the author may not be used to endorse or promote products
+# derived from this software without specific prior written permission.
+#
+# 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/ispfw
+
+KMOD= isp_1000
+SRCS= ispfw.c
+
+CFLAGS += -DISP_1000 -DMODULE_NAME=\"${KMOD}\"
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ispfw/isp_1040/Makefile b/sys/modules/ispfw/isp_1040/Makefile
new file mode 100644
index 0000000..4227704
--- /dev/null
+++ b/sys/modules/ispfw/isp_1040/Makefile
@@ -0,0 +1,36 @@
+#-
+# Copyright (c) 2006 by Matthew Jacob
+# 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 immediately at the beginning of the file, without modification,
+# this list of conditions, and the following disclaimer.
+# 2. The name of the author may not be used to endorse or promote products
+# derived from this software without specific prior written permission.
+#
+# 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/ispfw
+
+KMOD= isp_1040
+SRCS= ispfw.c
+
+CFLAGS += -DISP_1040 -DMODULE_NAME=\"${KMOD}\"
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ispfw/isp_1040_it/Makefile b/sys/modules/ispfw/isp_1040_it/Makefile
new file mode 100644
index 0000000..cdccc05
--- /dev/null
+++ b/sys/modules/ispfw/isp_1040_it/Makefile
@@ -0,0 +1,36 @@
+#-
+# Copyright (c) 2006 by Matthew Jacob
+# 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 immediately at the beginning of the file, without modification,
+# this list of conditions, and the following disclaimer.
+# 2. The name of the author may not be used to endorse or promote products
+# derived from this software without specific prior written permission.
+#
+# 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/ispfw
+
+KMOD= isp_1040_it
+SRCS= ispfw.c
+
+CFLAGS += -DISP_1040_IT -DMODULE_NAME=\"${KMOD}\"
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ispfw/isp_1080/Makefile b/sys/modules/ispfw/isp_1080/Makefile
new file mode 100644
index 0000000..0e383bf
--- /dev/null
+++ b/sys/modules/ispfw/isp_1080/Makefile
@@ -0,0 +1,36 @@
+#-
+# Copyright (c) 2006 by Matthew Jacob
+# 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 immediately at the beginning of the file, without modification,
+# this list of conditions, and the following disclaimer.
+# 2. The name of the author may not be used to endorse or promote products
+# derived from this software without specific prior written permission.
+#
+# 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/ispfw
+
+KMOD= isp_1080
+SRCS= ispfw.c
+
+CFLAGS += -DISP_1080 -DMODULE_NAME=\"${KMOD}\"
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ispfw/isp_1080_it/Makefile b/sys/modules/ispfw/isp_1080_it/Makefile
new file mode 100644
index 0000000..9d688fc
--- /dev/null
+++ b/sys/modules/ispfw/isp_1080_it/Makefile
@@ -0,0 +1,36 @@
+#-
+# Copyright (c) 2006 by Matthew Jacob
+# 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 immediately at the beginning of the file, without modification,
+# this list of conditions, and the following disclaimer.
+# 2. The name of the author may not be used to endorse or promote products
+# derived from this software without specific prior written permission.
+#
+# 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/ispfw
+
+KMOD= isp_1080_it
+SRCS= ispfw.c
+
+CFLAGS += -DISP_1080_IT -DMODULE_NAME=\"${KMOD}\"
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ispfw/isp_12160/Makefile b/sys/modules/ispfw/isp_12160/Makefile
new file mode 100644
index 0000000..7c28442
--- /dev/null
+++ b/sys/modules/ispfw/isp_12160/Makefile
@@ -0,0 +1,36 @@
+#-
+# Copyright (c) 2006 by Matthew Jacob
+# 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 immediately at the beginning of the file, without modification,
+# this list of conditions, and the following disclaimer.
+# 2. The name of the author may not be used to endorse or promote products
+# derived from this software without specific prior written permission.
+#
+# 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/ispfw
+
+KMOD= isp_12160
+SRCS= ispfw.c
+
+CFLAGS += -DISP_12160 -DMODULE_NAME=\"${KMOD}\"
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ispfw/isp_12160_it/Makefile b/sys/modules/ispfw/isp_12160_it/Makefile
new file mode 100644
index 0000000..d5526e6
--- /dev/null
+++ b/sys/modules/ispfw/isp_12160_it/Makefile
@@ -0,0 +1,36 @@
+#-
+# Copyright (c) 2006 by Matthew Jacob
+# 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 immediately at the beginning of the file, without modification,
+# this list of conditions, and the following disclaimer.
+# 2. The name of the author may not be used to endorse or promote products
+# derived from this software without specific prior written permission.
+#
+# 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/ispfw
+
+KMOD= isp_12160_it
+SRCS= ispfw.c
+
+CFLAGS += -DISP_12160_IT -DMODULE_NAME=\"${KMOD}\"
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ispfw/isp_2100/Makefile b/sys/modules/ispfw/isp_2100/Makefile
new file mode 100644
index 0000000..178f090
--- /dev/null
+++ b/sys/modules/ispfw/isp_2100/Makefile
@@ -0,0 +1,36 @@
+#-
+# Copyright (c) 2006 by Matthew Jacob
+# 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 immediately at the beginning of the file, without modification,
+# this list of conditions, and the following disclaimer.
+# 2. The name of the author may not be used to endorse or promote products
+# derived from this software without specific prior written permission.
+#
+# 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/ispfw
+
+KMOD= isp_2100
+SRCS= ispfw.c
+
+CFLAGS += -DISP_2100 -DMODULE_NAME=\"${KMOD}\"
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ispfw/isp_2200/Makefile b/sys/modules/ispfw/isp_2200/Makefile
new file mode 100644
index 0000000..64a41f1
--- /dev/null
+++ b/sys/modules/ispfw/isp_2200/Makefile
@@ -0,0 +1,36 @@
+#-
+# Copyright (c) 2006 by Matthew Jacob
+# 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 immediately at the beginning of the file, without modification,
+# this list of conditions, and the following disclaimer.
+# 2. The name of the author may not be used to endorse or promote products
+# derived from this software without specific prior written permission.
+#
+# 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/ispfw
+
+KMOD= isp_2200
+SRCS= ispfw.c
+
+CFLAGS += -DISP_2200 -DMODULE_NAME=\"${KMOD}\"
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ispfw/isp_2300/Makefile b/sys/modules/ispfw/isp_2300/Makefile
new file mode 100644
index 0000000..4acceda
--- /dev/null
+++ b/sys/modules/ispfw/isp_2300/Makefile
@@ -0,0 +1,36 @@
+#-
+# Copyright (c) 2006 by Matthew Jacob
+# 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 immediately at the beginning of the file, without modification,
+# this list of conditions, and the following disclaimer.
+# 2. The name of the author may not be used to endorse or promote products
+# derived from this software without specific prior written permission.
+#
+# 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/ispfw
+
+KMOD= isp_2300
+SRCS= ispfw.c
+
+CFLAGS += -DISP_2300 -DMODULE_NAME=\"${KMOD}\"
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ispfw/isp_2322/Makefile b/sys/modules/ispfw/isp_2322/Makefile
new file mode 100644
index 0000000..3ebb30f
--- /dev/null
+++ b/sys/modules/ispfw/isp_2322/Makefile
@@ -0,0 +1,36 @@
+#-
+# Copyright (c) 2006 by Matthew Jacob
+# 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 immediately at the beginning of the file, without modification,
+# this list of conditions, and the following disclaimer.
+# 2. The name of the author may not be used to endorse or promote products
+# derived from this software without specific prior written permission.
+#
+# 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/ispfw
+
+KMOD= isp_2322
+SRCS= ispfw.c
+
+CFLAGS += -DISP_2322 -DMODULE_NAME=\"${KMOD}\"
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ispfw/isp_2400/Makefile b/sys/modules/ispfw/isp_2400/Makefile
new file mode 100644
index 0000000..2655fd0
--- /dev/null
+++ b/sys/modules/ispfw/isp_2400/Makefile
@@ -0,0 +1,36 @@
+#-
+# Copyright (c) 2006 by Matthew Jacob
+# 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 immediately at the beginning of the file, without modification,
+# this list of conditions, and the following disclaimer.
+# 2. The name of the author may not be used to endorse or promote products
+# derived from this software without specific prior written permission.
+#
+# 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/ispfw
+
+KMOD= isp_2400
+SRCS= ispfw.c
+
+CFLAGS += -DISP_2400 -DMODULE_NAME=\"${KMOD}\"
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ispfw/isp_2400_multi/Makefile b/sys/modules/ispfw/isp_2400_multi/Makefile
new file mode 100644
index 0000000..4258c00
--- /dev/null
+++ b/sys/modules/ispfw/isp_2400_multi/Makefile
@@ -0,0 +1,35 @@
+# $FreeBSD$
+#-
+# Copyright (c) 2009 by Matthew Jacob
+# 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 immediately at the beginning of the file, without modification,
+# this list of conditions, and the following disclaimer.
+# 2. The name of the author may not be used to endorse or promote products
+# derived from this software without specific prior written permission.
+#
+# 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.
+#
+
+.PATH: ${.CURDIR}/../../../dev/ispfw
+
+KMOD= isp_2400_multi
+SRCS= ispfw.c
+
+CFLAGS += -DISP_2400_MULTI -DMODULE_NAME=\"${KMOD}\"
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ispfw/isp_2500/Makefile b/sys/modules/ispfw/isp_2500/Makefile
new file mode 100644
index 0000000..80a2ee3
--- /dev/null
+++ b/sys/modules/ispfw/isp_2500/Makefile
@@ -0,0 +1,36 @@
+# $FreeBSD$
+#-
+# Copyright (c) 2009 by Matthew Jacob
+# 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 immediately at the beginning of the file, without modification,
+# this list of conditions, and the following disclaimer.
+# 2. The name of the author may not be used to endorse or promote products
+# derived from this software without specific prior written permission.
+#
+# 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.
+#
+
+
+.PATH: ${.CURDIR}/../../../dev/ispfw
+
+KMOD= isp_2500
+SRCS= ispfw.c
+
+CFLAGS += -DISP_2500 -DMODULE_NAME=\"${KMOD}\"
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ispfw/isp_2500_multi/Makefile b/sys/modules/ispfw/isp_2500_multi/Makefile
new file mode 100644
index 0000000..050565b
--- /dev/null
+++ b/sys/modules/ispfw/isp_2500_multi/Makefile
@@ -0,0 +1,35 @@
+# $FreeBSD$
+#-
+# Copyright (c) 2009 by Matthew Jacob
+# 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 immediately at the beginning of the file, without modification,
+# this list of conditions, and the following disclaimer.
+# 2. The name of the author may not be used to endorse or promote products
+# derived from this software without specific prior written permission.
+#
+# 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.
+#
+
+.PATH: ${.CURDIR}/../../../dev/ispfw
+
+KMOD= isp_2500_multi
+SRCS= ispfw.c
+
+CFLAGS += -DISP_2500_MULTI -DMODULE_NAME=\"${KMOD}\"
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ispfw/ispfw/Makefile b/sys/modules/ispfw/ispfw/Makefile
new file mode 100644
index 0000000..f3b8694
--- /dev/null
+++ b/sys/modules/ispfw/ispfw/Makefile
@@ -0,0 +1,36 @@
+#-
+# Copyright (c) 2006 by Matthew Jacob
+# 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 immediately at the beginning of the file, without modification,
+# this list of conditions, and the following disclaimer.
+# 2. The name of the author may not be used to endorse or promote products
+# derived from this software without specific prior written permission.
+#
+# 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/ispfw
+
+KMOD= ispfw
+SRCS= ispfw.c
+
+CFLAGS += -DISP_ALL
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/iwi/Makefile b/sys/modules/iwi/Makefile
new file mode 100644
index 0000000..60c6051
--- /dev/null
+++ b/sys/modules/iwi/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/iwi
+
+KMOD = if_iwi
+SRCS = if_iwi.c device_if.h bus_if.h pci_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/iwifw/Makefile b/sys/modules/iwifw/Makefile
new file mode 100644
index 0000000..55434c2
--- /dev/null
+++ b/sys/modules/iwifw/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+SUBDIR= iwi_bss \
+ iwi_ibss \
+ iwi_monitor
+
+.include <bsd.subdir.mk>
diff --git a/sys/modules/iwifw/iwi_bss/Makefile b/sys/modules/iwifw/iwi_bss/Makefile
new file mode 100644
index 0000000..5bb7a46
--- /dev/null
+++ b/sys/modules/iwifw/iwi_bss/Makefile
@@ -0,0 +1,15 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../contrib/dev/iwi
+
+KMOD= iwi_bss
+FIRMWS= iwi_bss:iwi_bss:300
+FIRMWARE_LICENSE= intel_iwi
+
+CLEANFILES= iwi_bss
+
+iwi_bss: ${.CURDIR}/../../../contrib/dev/iwi/ipw2200-bss.fw.uu
+ uudecode -p ${.CURDIR}/../../../contrib/dev/iwi/ipw2200-bss.fw.uu > ${.TARGET}
+
+.include <bsd.kmod.mk>
+
diff --git a/sys/modules/iwifw/iwi_ibss/Makefile b/sys/modules/iwifw/iwi_ibss/Makefile
new file mode 100644
index 0000000..35d0656
--- /dev/null
+++ b/sys/modules/iwifw/iwi_ibss/Makefile
@@ -0,0 +1,15 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../contrib/dev/iwi
+
+KMOD= iwi_ibss
+FIRMWS= iwi_ibss:iwi_ibss:300
+FIRMWARE_LICENSE= intel_iwi
+
+CLEANFILES= iwi_fw
+
+iwi_ibss: ${.CURDIR}/../../../contrib/dev/iwi/ipw2200-ibss.fw.uu
+ uudecode -p ${.CURDIR}/../../../contrib/dev/iwi/ipw2200-ibss.fw.uu > ${.TARGET}
+
+.include <bsd.kmod.mk>
+
diff --git a/sys/modules/iwifw/iwi_monitor/Makefile b/sys/modules/iwifw/iwi_monitor/Makefile
new file mode 100644
index 0000000..c05c6f1
--- /dev/null
+++ b/sys/modules/iwifw/iwi_monitor/Makefile
@@ -0,0 +1,15 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../contrib/dev/iwi
+
+KMOD= iwi_monitor
+FIRMWS= iwi_monitor:iwi_monitor:300
+FIRMWARE_LICENSE= intel_iwi
+
+CLEANFILES= iwi_monitor
+
+iwi_monitor: ${.CURDIR}/../../../contrib/dev/iwi/ipw2200-sniffer.fw.uu
+ uudecode -p ${.CURDIR}/../../../contrib/dev/iwi/ipw2200-sniffer.fw.uu > ${.TARGET}
+
+.include <bsd.kmod.mk>
+
diff --git a/sys/modules/iwn/Makefile b/sys/modules/iwn/Makefile
new file mode 100644
index 0000000..afc5c51
--- /dev/null
+++ b/sys/modules/iwn/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/iwn
+
+KMOD = if_iwn
+SRCS = if_iwn.c device_if.h bus_if.h pci_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/iwnfw/Makefile b/sys/modules/iwnfw/Makefile
new file mode 100644
index 0000000..41556df
--- /dev/null
+++ b/sys/modules/iwnfw/Makefile
@@ -0,0 +1,5 @@
+# $FreeBSD$
+
+SUBDIR= iwn1000 iwn4965 iwn5000 iwn5150 iwn6000
+
+.include <bsd.subdir.mk>
diff --git a/sys/modules/iwnfw/Makefile.inc b/sys/modules/iwnfw/Makefile.inc
new file mode 100644
index 0000000..73fe67e
--- /dev/null
+++ b/sys/modules/iwnfw/Makefile.inc
@@ -0,0 +1,13 @@
+# $FreeBSD$
+#
+# Common rules for building firmware. Note this gets auto-included
+# by the subdir Makefile's as a consequence of included bsd.kmod.mk.
+
+_FIRM= ${IMG}.fw
+
+CLEANFILES+= ${_FIRM}
+
+FIRMWS= ${_FIRM}:${KMOD}
+
+${_FIRM}: ${.CURDIR}/../../../contrib/dev/iwn/${_FIRM}.uu
+ uudecode -p $? > ${.TARGET}
diff --git a/sys/modules/iwnfw/iwn1000/Makefile b/sys/modules/iwnfw/iwn1000/Makefile
new file mode 100644
index 0000000..68b343e
--- /dev/null
+++ b/sys/modules/iwnfw/iwn1000/Makefile
@@ -0,0 +1,6 @@
+# $FreeBSD$
+
+KMOD= iwn1000fw
+IMG= iwlwifi-1000-128.50.3.1
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/iwnfw/iwn4965/Makefile b/sys/modules/iwnfw/iwn4965/Makefile
new file mode 100644
index 0000000..c1cc961
--- /dev/null
+++ b/sys/modules/iwnfw/iwn4965/Makefile
@@ -0,0 +1,6 @@
+# $FreeBSD$
+
+KMOD= iwn4965fw
+IMG= iwlwifi-4965-228.61.2.24
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/iwnfw/iwn5000/Makefile b/sys/modules/iwnfw/iwn5000/Makefile
new file mode 100644
index 0000000..a1031d2
--- /dev/null
+++ b/sys/modules/iwnfw/iwn5000/Makefile
@@ -0,0 +1,6 @@
+# $FreeBSD$
+
+KMOD= iwn5000fw
+IMG= iwlwifi-5000-8.24.2.12
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/iwnfw/iwn5150/Makefile b/sys/modules/iwnfw/iwn5150/Makefile
new file mode 100644
index 0000000..5eeea79
--- /dev/null
+++ b/sys/modules/iwnfw/iwn5150/Makefile
@@ -0,0 +1,6 @@
+# $FreeBSD$
+
+KMOD= iwn5150fw
+IMG= iwlwifi-5150-8.24.2.2
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/iwnfw/iwn6000/Makefile b/sys/modules/iwnfw/iwn6000/Makefile
new file mode 100644
index 0000000..2d2cc3f
--- /dev/null
+++ b/sys/modules/iwnfw/iwn6000/Makefile
@@ -0,0 +1,6 @@
+# $FreeBSD$
+
+KMOD= iwn6000fw
+IMG= iwlwifi-6000-9.193.4.1
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ixgb/Makefile b/sys/modules/ixgb/Makefile
new file mode 100644
index 0000000..16e5975
--- /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
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ixgbe/Makefile b/sys/modules/ixgbe/Makefile
new file mode 100644
index 0000000..2de7549
--- /dev/null
+++ b/sys/modules/ixgbe/Makefile
@@ -0,0 +1,16 @@
+#$FreeBSD$
+.PATH: ${.CURDIR}/../../dev/ixgbe
+KMOD = ixgbe
+SRCS = device_if.h bus_if.h pci_if.h
+SRCS += ixgbe.c
+# Shared source
+SRCS += ixgbe_common.c ixgbe_api.c ixgbe_phy.c
+SRCS += ixgbe_82599.c ixgbe_82598.c
+CFLAGS+= -I${.CURDIR}/../../dev/ixgbe -DSMP -DIXGBE_FDIR
+
+clean:
+ rm -f device_if.h bus_if.h pci_if.h setdef* *_StripErr
+ rm -f *.o *.kld *.ko
+ rm -f @ machine
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/jme/Makefile b/sys/modules/jme/Makefile
new file mode 100644
index 0000000..5c41523
--- /dev/null
+++ b/sys/modules/jme/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/jme
+
+KMOD= if_jme
+SRCS= if_jme.c device_if.h bus_if.h pci_if.h miibus_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/joy/Makefile b/sys/modules/joy/Makefile
new file mode 100644
index 0000000..71ba7f1
--- /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 0000000..70b39a0
--- /dev/null
+++ b/sys/modules/kbdmux/Makefile
@@ -0,0 +1,17 @@
+# $Id: Makefile,v 1.1 2005/06/23 00:30:50 max Exp $
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/kbdmux
+
+KMOD= kbdmux
+SRCS= kbdmux.c opt_compat.h opt_kbd.h bus_if.h device_if.h
+
+.if !defined(KERNBUILDDIR)
+opt_compat.h:
+ echo "#define COMPAT_FREEBSD6 1" > ${.TARGET}
+
+opt_kbd.h:
+ echo "#define KBD_INSTALL_CDEV 1" > ${.TARGET}
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/kgssapi/Makefile b/sys/modules/kgssapi/Makefile
new file mode 100644
index 0000000..223ef24
--- /dev/null
+++ b/sys/modules/kgssapi/Makefile
@@ -0,0 +1,55 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../kgssapi ${.CURDIR}/../../rpc/rpcsec_gss
+KMOD= kgssapi
+
+SRCS= gss_accept_sec_context.c \
+ gss_add_oid_set_member.c \
+ gss_acquire_cred.c \
+ gss_canonicalize_name.c \
+ gss_create_empty_oid_set.c \
+ gss_delete_sec_context.c \
+ gss_display_status.c \
+ gss_export_name.c \
+ gss_get_mic.c \
+ gss_init_sec_context.c \
+ gss_impl.c \
+ gss_import_name.c \
+ gss_names.c \
+ gss_pname_to_uid.c \
+ gss_release_buffer.c \
+ gss_release_cred.c \
+ gss_release_name.c \
+ gss_release_oid_set.c \
+ gss_set_cred_option.c \
+ gss_test_oid_set_member.c \
+ gss_unwrap.c \
+ gss_verify_mic.c \
+ gss_wrap.c \
+ gss_wrap_size_limit.c \
+ gssd_prot.c
+
+SRCS+= rpcsec_gss.c \
+ rpcsec_gss_conf.c \
+ rpcsec_gss_misc.c \
+ rpcsec_gss_prot.c \
+ svc_rpcsec_gss.c
+
+SRCS+= kgss_if.h kgss_if.c
+MFILES= kgssapi/kgss_if.m
+
+SRCS+= gssd.h gssd_xdr.c gssd_clnt.c
+CLEANFILES= gssd.h gssd_xdr.c gssd_clnt.c
+
+S= ${.CURDIR}/../..
+
+gssd.h: $S/kgssapi/gssd.x
+ rpcgen -hM $S/kgssapi/gssd.x | grep -v pthread.h > gssd.h
+
+gssd_xdr.c: $S/kgssapi/gssd.x
+ rpcgen -c $S/kgssapi/gssd.x -o gssd_xdr.c
+
+gssd_clnt.c: $S/kgssapi/gssd.x
+ rpcgen -lM $S/kgssapi/gssd.x | grep -v string.h > gssd_clnt.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/kgssapi_krb5/Makefile b/sys/modules/kgssapi_krb5/Makefile
new file mode 100644
index 0000000..c2ee417
--- /dev/null
+++ b/sys/modules/kgssapi_krb5/Makefile
@@ -0,0 +1,21 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../kgssapi/krb5
+KMOD= kgssapi_krb5
+
+SRCS= krb5_mech.c \
+ kcrypto.c \
+ kcrypto_des.c \
+ kcrypto_des3.c \
+ kcrypto_aes.c \
+ kcrypto_arcfour.c
+
+SRCS+= kgss_if.h gssd.h
+MFILES= kgssapi/kgss_if.m
+
+S= ${.CURDIR}/../..
+
+gssd.h: $S/kgssapi/gssd.x
+ rpcgen -hM $S/kgssapi/gssd.x | grep -v pthread.h > gssd.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/krpc/Makefile b/sys/modules/krpc/Makefile
new file mode 100644
index 0000000..ab52f5b
--- /dev/null
+++ b/sys/modules/krpc/Makefile
@@ -0,0 +1,45 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../rpc ${.CURDIR}/../../xdr
+KMOD= krpc
+SRCS= auth_none.c \
+ auth_unix.c \
+ authunix_prot.c \
+ clnt_dg.c \
+ clnt_rc.c \
+ clnt_vc.c \
+ getnetconfig.c \
+ inet_ntop.c \
+ inet_pton.c \
+ rpc_callmsg.c \
+ rpc_generic.c \
+ rpc_prot.c \
+ rpcb_clnt.c \
+ rpcb_prot.c \
+ replay.c \
+ svc.c \
+ svc_auth.c \
+ svc_auth_unix.c \
+ svc_dg.c \
+ svc_generic.c \
+ svc_vc.c \
+
+SRCS+= xdr.c \
+ xdr_array.c \
+ xdr_mbuf.c \
+ xdr_mem.c \
+ xdr_reference.c \
+ xdr_sizeof.c
+
+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/ksyms/Makefile b/sys/modules/ksyms/Makefile
new file mode 100644
index 0000000..94e91d8
--- /dev/null
+++ b/sys/modules/ksyms/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/ksyms
+
+KMOD= ksyms
+SRCS= ksyms.c linker_if.h
+
+MFILES= kern/linker_if.m
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/le/Makefile b/sys/modules/le/Makefile
new file mode 100644
index 0000000..dd202fb
--- /dev/null
+++ b/sys/modules/le/Makefile
@@ -0,0 +1,26 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/le
+
+KMOD= if_le
+SRCS= am7990.c am79900.c ${if_le_cbus} ${if_le_isa} ${if_le_lebuffer}
+SRCS+= ${if_le_ledma} if_le_pci.c lance.c ${lebuffer_sbus}
+SRCS+= bus_if.h device_if.h ${isa_if} ${ofw_bus_if} pci_if.h
+
+.if ${MACHINE_ARCH} == "i386"
+.if ${MACHINE} == "pc98"
+if_le_cbus= if_le_cbus.c
+.else
+if_le_isa= if_le_isa.c
+.endif
+isa_if= isa_if.h
+.endif
+
+.if ${MACHINE} == "sparc64"
+if_le_lebuffer= if_le_lebuffer.c
+if_le_ledma= if_le_ledma.c
+lebuffer_sbus= lebuffer_sbus.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 0000000..810e220
--- /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 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 0000000..e4296e1d
--- /dev/null
+++ b/sys/modules/libalias/Makefile
@@ -0,0 +1,5 @@
+# $FreeBSD$
+
+SUBDIR= libalias modules
+
+.include <bsd.subdir.mk>
diff --git a/sys/modules/libalias/libalias/Makefile b/sys/modules/libalias/libalias/Makefile
new file mode 100644
index 0000000..d1030c8
--- /dev/null
+++ b/sys/modules/libalias/libalias/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../netinet/libalias
+
+KMOD= libalias
+SRCS= alias.c alias_db.c alias_proxy.c alias_util.c alias_mod.c alias_sctp.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/libalias/modules/Makefile b/sys/modules/libalias/modules/Makefile
new file mode 100644
index 0000000..201b3ba
--- /dev/null
+++ b/sys/modules/libalias/modules/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+.include "${.CURDIR}/modules.inc"
+
+SUBDIR= ${MODULES}
+
+.include <bsd.subdir.mk>
diff --git a/sys/modules/libalias/modules/Makefile.inc b/sys/modules/libalias/modules/Makefile.inc
new file mode 100644
index 0000000..78391c5
--- /dev/null
+++ b/sys/modules/libalias/modules/Makefile.inc
@@ -0,0 +1,3 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../netinet/libalias
diff --git a/sys/modules/libalias/modules/cuseeme/Makefile b/sys/modules/libalias/modules/cuseeme/Makefile
new file mode 100644
index 0000000..dfb5a83
--- /dev/null
+++ b/sys/modules/libalias/modules/cuseeme/Makefile
@@ -0,0 +1,6 @@
+# $FreeBSD$
+
+KMOD= alias_cuseeme
+SRCS= alias_cuseeme.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/libalias/modules/dummy/Makefile b/sys/modules/libalias/modules/dummy/Makefile
new file mode 100644
index 0000000..ded455a
--- /dev/null
+++ b/sys/modules/libalias/modules/dummy/Makefile
@@ -0,0 +1,6 @@
+# $FreeBSD$
+
+KMOD= alias_dummy
+SRCS= alias_dummy.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/libalias/modules/ftp/Makefile b/sys/modules/libalias/modules/ftp/Makefile
new file mode 100644
index 0000000..07e700b
--- /dev/null
+++ b/sys/modules/libalias/modules/ftp/Makefile
@@ -0,0 +1,6 @@
+# $FreeBSD$
+
+KMOD= alias_ftp
+SRCS= alias_ftp.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/libalias/modules/irc/Makefile b/sys/modules/libalias/modules/irc/Makefile
new file mode 100644
index 0000000..b6e330d
--- /dev/null
+++ b/sys/modules/libalias/modules/irc/Makefile
@@ -0,0 +1,6 @@
+# $FreeBSD$
+
+KMOD= alias_irc
+SRCS= alias_irc.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/libalias/modules/modules.inc b/sys/modules/libalias/modules/modules.inc
new file mode 100644
index 0000000..9582ab5
--- /dev/null
+++ b/sys/modules/libalias/modules/modules.inc
@@ -0,0 +1,11 @@
+# $FreeBSD$
+
+MODULES =
+MODULES += cuseeme
+MODULES += dummy
+MODULES += ftp
+MODULES += irc
+MODULES += nbt
+MODULES += pptp
+MODULES += skinny
+MODULES += smedia
diff --git a/sys/modules/libalias/modules/nbt/Makefile b/sys/modules/libalias/modules/nbt/Makefile
new file mode 100644
index 0000000..6d6dd87
--- /dev/null
+++ b/sys/modules/libalias/modules/nbt/Makefile
@@ -0,0 +1,6 @@
+# $FreeBSD$
+
+KMOD= alias_nbt
+SRCS= alias_nbt.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/libalias/modules/pptp/Makefile b/sys/modules/libalias/modules/pptp/Makefile
new file mode 100644
index 0000000..748f356
--- /dev/null
+++ b/sys/modules/libalias/modules/pptp/Makefile
@@ -0,0 +1,6 @@
+# $FreeBSD$
+
+KMOD= alias_pptp
+SRCS= alias_pptp.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/libalias/modules/skinny/Makefile b/sys/modules/libalias/modules/skinny/Makefile
new file mode 100644
index 0000000..8560f5e
--- /dev/null
+++ b/sys/modules/libalias/modules/skinny/Makefile
@@ -0,0 +1,6 @@
+# $FreeBSD$
+
+KMOD= alias_skinny
+SRCS= alias_skinny.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/libalias/modules/smedia/Makefile b/sys/modules/libalias/modules/smedia/Makefile
new file mode 100644
index 0000000..245a63e
--- /dev/null
+++ b/sys/modules/libalias/modules/smedia/Makefile
@@ -0,0 +1,6 @@
+# $FreeBSD$
+
+KMOD= alias_smedia
+SRCS= alias_smedia.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/libiconv/Makefile b/sys/modules/libiconv/Makefile
new file mode 100644
index 0000000..6646064
--- /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 0000000..efd15ec
--- /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 0000000..fd151ec
--- /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/lindev/Makefile b/sys/modules/lindev/Makefile
new file mode 100644
index 0000000..704cac3
--- /dev/null
+++ b/sys/modules/lindev/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/lindev
+
+KMOD= lindev
+SRCS= full.c lindev.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/linprocfs/Makefile b/sys/modules/linprocfs/Makefile
new file mode 100644
index 0000000..f0f00cb
--- /dev/null
+++ b/sys/modules/linprocfs/Makefile
@@ -0,0 +1,15 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../compat/linprocfs
+
+KMOD= linprocfs
+SRCS= vnode_if.h \
+ device_if.h bus_if.h \
+ linprocfs.c \
+ opt_compat.h
+
+.if ${MACHINE_ARCH} == "amd64"
+CFLAGS+=-DCOMPAT_LINUX32
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/linsysfs/Makefile b/sys/modules/linsysfs/Makefile
new file mode 100644
index 0000000..1320212
--- /dev/null
+++ b/sys/modules/linsysfs/Makefile
@@ -0,0 +1,15 @@
+# $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
+
+.if ${MACHINE_ARCH} == "amd64"
+CFLAGS+=-DCOMPAT_LINUX32
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/linux/Makefile b/sys/modules/linux/Makefile
new file mode 100644
index 0000000..a67fcc7
--- /dev/null
+++ b/sys/modules/linux/Makefile
@@ -0,0 +1,66 @@
+# $FreeBSD$
+
+.if ${MACHINE_ARCH} == "amd64"
+SFX= 32
+CFLAGS+=-DCOMPAT_FREEBSD32 -DCOMPAT_LINUX32
+.endif
+
+.PATH: ${.CURDIR}/../../compat/linux ${.CURDIR}/../../${MACHINE_ARCH}/linux${SFX}
+
+KMOD= linux
+SRCS= linux${SFX}_dummy.c linux_emul.c linux_file.c \
+ linux_futex.c linux_getcwd.c linux_ioctl.c linux_ipc.c \
+ linux${SFX}_machdep.c linux_mib.c linux_misc.c linux_signal.c \
+ linux_socket.c linux_stats.c linux_sysctl.c linux${SFX}_sysent.c \
+ linux${SFX}_sysvec.c linux_uid16.c linux_util.c linux_time.c \
+ opt_inet6.h opt_compat.h opt_posix.h vnode_if.h \
+ device_if.h bus_if.h assym.s
+
+# XXX: for assym.s
+SRCS+= opt_kstack_pages.h opt_nfs.h opt_compat.h opt_hwpmc_hooks.h
+.if ${MACHINE_ARCH} == "i386"
+SRCS+= opt_apic.h
+.endif
+
+OBJS= linux${SFX}_locore.o linux${SFX}_support.o
+
+.if ${MACHINE_ARCH} == "i386"
+SRCS+= linux_ptrace.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${SFX}_assym.h linux${SFX}_genassym.o
+
+linux${SFX}_assym.h: linux${SFX}_genassym.o
+.if exists(@)
+linux${SFX}_assym.h: @/kern/genassym.sh
+.endif
+ sh @/kern/genassym.sh linux${SFX}_genassym.o > ${.TARGET}
+
+linux${SFX}_locore.o: linux${SFX}_locore.s linux${SFX}_assym.h
+ ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \
+ ${.IMPSRC} -o ${.TARGET}
+
+linux${SFX}_support.o: linux${SFX}_support.s assym.s linux${SFX}_assym.h
+ ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \
+ ${.IMPSRC} -o ${.TARGET}
+
+linux${SFX}_genassym.o: linux${SFX}_genassym.c linux.h @ machine
+ ${CC} -c ${CFLAGS:N-fno-common} ${.IMPSRC}
+
+.if !defined(KERNBUILDDIR)
+opt_inet6.h:
+ echo "#define INET6 1" > ${.TARGET}
+.if defined(KTR)
+CFLAGS+= -DKTR
+.endif
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/lmc/Makefile b/sys/modules/lmc/Makefile
new file mode 100644
index 0000000..70e27b5
--- /dev/null
+++ b/sys/modules/lmc/Makefile
@@ -0,0 +1,24 @@
+# $FreeBSD$
+
+KMOD = if_lmc
+.PATH: ${.CURDIR}/../../dev/lmc
+
+SRCS = if_lmc.c if_lmc.h
+SRCS += device_if.h bus_if.h pci_if.h
+SRCS += opt_inet.h opt_inet6.h
+SRCS += opt_netgraph.h
+SRCS += opt_global.h
+SRCS += opt_bpf.h
+
+opt_inet.h:
+ echo "#define INET 1" > ${.TARGET}
+opt_inet6.h:
+ echo "#define INET6 0" > ${.TARGET}
+opt_netgraph.h:
+ echo "#define NETGRAPH 1" > ${.TARGET}
+opt_global.h:
+ echo "#define ALTQ 1" > ${.TARGET}
+opt_bpf.h: # FreeBSD-5:
+ echo "#define DEV_BPF 1" > ${.TARGET}
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/lpt/Makefile b/sys/modules/lpt/Makefile
new file mode 100644
index 0000000..b57960d
--- /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 0000000..76ae8e8
--- /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 0000000..683e1b0
--- /dev/null
+++ b/sys/modules/mac_bsdextended/Makefile
@@ -0,0 +1,12 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../security/mac_bsdextended
+
+KMOD= mac_bsdextended
+SRCS= vnode_if.h \
+ mac_bsdextended.h \
+ mac_bsdextended.c \
+ ugidfw_system.c \
+ ugidfw_vnode.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/mac_ifoff/Makefile b/sys/modules/mac_ifoff/Makefile
new file mode 100644
index 0000000..fc1a600
--- /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 0000000..333109b
--- /dev/null
+++ b/sys/modules/mac_lomac/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../security/mac_lomac
+
+KMOD= mac_lomac
+SRCS= vnode_if.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 0000000..d4aa5ce
--- /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 0000000..b180f71
--- /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 0000000..b04d181
--- /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 0000000..f9bbe23
--- /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 0000000..d27aefb
--- /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 0000000..3b98cb0
--- /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 0000000..94b5aa8
--- /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/malo/Makefile b/sys/modules/malo/Makefile
new file mode 100644
index 0000000..7886102
--- /dev/null
+++ b/sys/modules/malo/Makefile
@@ -0,0 +1,12 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/malo
+
+KMOD = if_malo
+SRCS = if_malo.c if_malohal.c if_malo_pci.c
+SRCS+= device_if.h bus_if.h pci_if.h opt_malo.h
+
+opt_malo.h:
+ echo '#define MALO_DEBUG 1'> $@
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/mcd/Makefile b/sys/modules/mcd/Makefile
new file mode 100644
index 0000000..1602c03
--- /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 0000000..19851e6
--- /dev/null
+++ b/sys/modules/md/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/md
+
+KMOD= geom_md
+SRCS= md.c opt_md.h opt_geom.h vnode_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/mem/Makefile b/sys/modules/mem/Makefile
new file mode 100644
index 0000000..812da14
--- /dev/null
+++ b/sys/modules/mem/Makefile
@@ -0,0 +1,34 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/mem
+.PATH: ${.CURDIR}/../../${MACHINE}/${MACHINE}
+.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
+
+.if ${MACHINE} == "sun4v"
+SRCS+= opt_global.h
+
+.if defined(KERNBUILDDIR)
+MKDEP= -include ${KERNBUILDDIR}/opt_global.h
+.else
+CFLAGS+= -include opt_global.h
+MKDEP= -include opt_global.h
+
+opt_global.h:
+ echo "#define SUN4V 1" > ${.TARGET}
+.endif
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/mfi/Makefile b/sys/modules/mfi/Makefile
new file mode 100644
index 0000000..a58e968
--- /dev/null
+++ b/sys/modules/mfi/Makefile
@@ -0,0 +1,18 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/mfi
+
+SUBDIR= mfip
+
+.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 opt_cam.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 0000000..05d0745
--- /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
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/mfi/mfip/Makefile b/sys/modules/mfi/mfip/Makefile
new file mode 100644
index 0000000..2a97d70
--- /dev/null
+++ b/sys/modules/mfi/mfip/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/mfi
+
+KMOD= mfip
+SRCS= mfi_cam.c
+SRCS+= opt_mfi.h opt_cam.h
+SRCS+= device_if.h bus_if.h pci_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/mii/Makefile b/sys/modules/mii/Makefile
new file mode 100644
index 0000000..6232b5e
--- /dev/null
+++ b/sys/modules/mii/Makefile
@@ -0,0 +1,21 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/mii
+
+KMOD= miibus
+SRCS= acphy.c amphy.c atphy.c axphy.c bmtphy.c brgphy.c bus_if.h
+SRCS+= ciphy.c device_if.h
+SRCS+= e1000phy.c exphy.c gentbi.c icsphy.c inphy.c ip1000phy.c jmphy.c
+SRCS+= lxtphy.c miibus_if.c miibus_if.h mii.c miidevs.h mii_physubr.c
+SRCS+= mlphy.c nsgphy.c nsphy.c nsphyter.c pci_if.h pnaphy.c qsphy.c
+SRCS+= rgephy.c rlphy.c ruephy.c tdkphy.c tlphy.c truephy.c ukphy.c
+SRCS+= ukphy_subr.c
+SRCS+= xmphy.c
+
+EXPORT_SYMS= mii_mediachg \
+ mii_phy_probe \
+ mii_phy_reset \
+ mii_pollstat \
+ mii_tick
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/mlx/Makefile b/sys/modules/mlx/Makefile
new file mode 100644
index 0000000..ba0951a
--- /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 0000000..e8773de
--- /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/mmc/Makefile b/sys/modules/mmc/Makefile
new file mode 100644
index 0000000..b97e2a3
--- /dev/null
+++ b/sys/modules/mmc/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/mmc
+
+KMOD= mmc
+SRCS= mmc.c mmcbr_if.h mmcbus_if.h device_if.h bus_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/mmcsd/Makefile b/sys/modules/mmcsd/Makefile
new file mode 100644
index 0000000..7a02cb2
--- /dev/null
+++ b/sys/modules/mmcsd/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/mmc
+
+KMOD= mmcsd
+SRCS= mmcsd.c mmcbus_if.h device_if.h bus_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/mpt/Makefile b/sys/modules/mpt/Makefile
new file mode 100644
index 0000000..03bae4c
--- /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 mpt_user.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/mqueue/Makefile b/sys/modules/mqueue/Makefile
new file mode 100644
index 0000000..8ef38a6
--- /dev/null
+++ b/sys/modules/mqueue/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../kern
+
+KMOD= mqueuefs
+SRCS= uipc_mqueue.c \
+ vnode_if.h \
+ opt_posix.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/msdosfs/Makefile b/sys/modules/msdosfs/Makefile
new file mode 100644
index 0000000..a0fe95f
--- /dev/null
+++ b/sys/modules/msdosfs/Makefile
@@ -0,0 +1,11 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../fs/msdosfs
+
+KMOD= msdosfs
+SRCS= vnode_if.h \
+ msdosfs_conv.c msdosfs_denode.c msdosfs_fat.c msdosfs_fileno.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 0000000..8d2e41d
--- /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 0000000..4cc68c1
--- /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/msk/Makefile b/sys/modules/msk/Makefile
new file mode 100644
index 0000000..48a7649
--- /dev/null
+++ b/sys/modules/msk/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/msk
+
+KMOD= if_msk
+SRCS= if_msk.c device_if.h bus_if.h pci_if.h
+SRCS+= miibus_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/mwl/Makefile b/sys/modules/mwl/Makefile
new file mode 100644
index 0000000..8971eb1
--- /dev/null
+++ b/sys/modules/mwl/Makefile
@@ -0,0 +1,41 @@
+#
+# Copyright (c) 2007-2009 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.
+#
+# 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/mwl
+
+KMOD= if_mwl
+SRCS= if_mwl.c if_mwl_pci.c mwlhal.c
+SRCS+= device_if.h bus_if.h pci_if.h opt_inet.h opt_mwl.h
+
+opt_mwl.h:
+ echo '#define MWL_DEBUG 1'> $@
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/mwlfw/Makefile b/sys/modules/mwlfw/Makefile
new file mode 100644
index 0000000..9d7b226
--- /dev/null
+++ b/sys/modules/mwlfw/Makefile
@@ -0,0 +1,14 @@
+# $FreeBSD$
+
+KMOD= mw88W8363fw
+FIRMWS= mw88W8363.fw:mw88W8363fw mwlboot.fw:mwlboot
+
+CLEANFILES+= mw88W8363.fw mwlboot.fw
+
+mw88W8363.fw: ${.CURDIR}/../../contrib/dev/mwl/mw88W8363.fw.uu
+ uudecode -p $? > ${.TARGET}
+
+mwlboot.fw: ${.CURDIR}/../../contrib/dev/mwl/mwlboot.fw.uu
+ uudecode -p $? > ${.TARGET}
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/mxge/Makefile b/sys/modules/mxge/Makefile
new file mode 100644
index 0000000..45e7636
--- /dev/null
+++ b/sys/modules/mxge/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+SUBDIR= mxge
+SUBDIR+=mxge_eth_z8e
+SUBDIR+=mxge_ethp_z8e
+SUBDIR+=mxge_rss_eth_z8e
+SUBDIR+=mxge_rss_ethp_z8e
+
+.include <bsd.subdir.mk>
diff --git a/sys/modules/mxge/mxge/Makefile b/sys/modules/mxge/mxge/Makefile
new file mode 100644
index 0000000..c478462
--- /dev/null
+++ b/sys/modules/mxge/mxge/Makefile
@@ -0,0 +1,8 @@
+#$FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/mxge
+
+KMOD= if_mxge
+SRCS= if_mxge.c mxge_lro.c device_if.h bus_if.h pci_if.h opt_inet.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/mxge/mxge_eth_z8e/Makefile b/sys/modules/mxge/mxge_eth_z8e/Makefile
new file mode 100644
index 0000000..3454581
--- /dev/null
+++ b/sys/modules/mxge/mxge_eth_z8e/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/mxge
+KMOD= mxge_eth_z8e
+SRCS= mxge_eth_z8e.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/mxge/mxge_ethp_z8e/Makefile b/sys/modules/mxge/mxge_ethp_z8e/Makefile
new file mode 100644
index 0000000..e9f9b31
--- /dev/null
+++ b/sys/modules/mxge/mxge_ethp_z8e/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/mxge
+KMOD= mxge_ethp_z8e
+SRCS= mxge_ethp_z8e.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/mxge/mxge_rss_eth_z8e/Makefile b/sys/modules/mxge/mxge_rss_eth_z8e/Makefile
new file mode 100644
index 0000000..46c545c
--- /dev/null
+++ b/sys/modules/mxge/mxge_rss_eth_z8e/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/mxge
+KMOD= mxge_rss_eth_z8e
+SRCS= mxge_rss_eth_z8e.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/mxge/mxge_rss_ethp_z8e/Makefile b/sys/modules/mxge/mxge_rss_ethp_z8e/Makefile
new file mode 100644
index 0000000..de8dc4e
--- /dev/null
+++ b/sys/modules/mxge/mxge_rss_ethp_z8e/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/mxge
+KMOD= mxge_rss_ethp_z8e
+SRCS= mxge_rss_ethp_z8e.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/my/Makefile b/sys/modules/my/Makefile
new file mode 100644
index 0000000..596284e
--- /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
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ncp/Makefile b/sys/modules/ncp/Makefile
new file mode 100644
index 0000000..fb9d993
--- /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 0000000..0181db8
--- /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+= 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 0000000..8ef7089
--- /dev/null
+++ b/sys/modules/ndis/Makefile
@@ -0,0 +1,19 @@
+# $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+= device_if.h bus_if.h pci_if.h vnode_if.h
+SRCS+= opt_bus.h opt_usb.h usb_if.h usbdevs.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 0000000..70861cb
--- /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$
+
+.include <bsd.own.mk>
+
+SUBDIR= async \
+ atm \
+ atmllc \
+ ${_bluetooth} \
+ bpf \
+ bridge \
+ car \
+ cisco \
+ deflate \
+ device \
+ echo \
+ eiface \
+ etf \
+ ether \
+ ether_echo \
+ fec \
+ frame_relay \
+ gif \
+ gif_demux \
+ hole \
+ hub \
+ iface \
+ ip_input \
+ ipfw \
+ ksocket \
+ l2tp \
+ lmi \
+ ${_mppc} \
+ nat \
+ netflow \
+ netgraph \
+ one2many \
+ pipe \
+ ppp \
+ pppoe \
+ pptpgre \
+ pred1 \
+ rfc1490 \
+ socket \
+ source \
+ split \
+ sppp \
+ tag \
+ tcpmss \
+ tee \
+ tty \
+ UI \
+ vjc \
+ vlan
+
+.if ${MK_BLUETOOTH} != "no" || defined(ALL_MODULES)
+_bluetooth= bluetooth
+.endif
+
+.if ${MK_CRYPT} != "no" && 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 0000000..3d2fd19
--- /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 0000000..413308c
--- /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 0000000..921eabc
--- /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 0000000..8bbe33d
--- /dev/null
+++ b/sys/modules/netgraph/atm/Makefile
@@ -0,0 +1,11 @@
+# $FreeBSD$
+
+SUBDIR= \
+ atm \
+ atmbase \
+ 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 0000000..265f86d
--- /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 0000000..ebd94e1
--- /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 0000000..1ad4bb6
--- /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/ccatm/Makefile b/sys/modules/netgraph/atm/ccatm/Makefile
new file mode 100644
index 0000000..5626536
--- /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 0000000..278159f
--- /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 0000000..b9334dd
--- /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 0000000..57c20b0
--- /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 0000000..fd47b5c
--- /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 0000000..9169cf1
--- /dev/null
+++ b/sys/modules/netgraph/bluetooth/Makefile
@@ -0,0 +1,13 @@
+# $Id: Makefile,v 1.2 2003/04/27 00:22:11 max Exp $
+# $FreeBSD$
+
+SUBDIR= \
+ bluetooth \
+ hci \
+ l2cap \
+ socket \
+ bt3c \
+ 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 0000000..265f86d
--- /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 0000000..35c3ead
--- /dev/null
+++ b/sys/modules/netgraph/bluetooth/bluetooth/Makefile
@@ -0,0 +1,11 @@
+# $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 0000000..36514b1
--- /dev/null
+++ b/sys/modules/netgraph/bluetooth/bt3c/Makefile
@@ -0,0 +1,12 @@
+# $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 0000000..f8dfc96
--- /dev/null
+++ b/sys/modules/netgraph/bluetooth/h4/Makefile
@@ -0,0 +1,12 @@
+# $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 0000000..729ea7b
--- /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 0000000..5b66e09
--- /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 0000000..38e90f5
--- /dev/null
+++ b/sys/modules/netgraph/bluetooth/socket/Makefile
@@ -0,0 +1,16 @@
+# $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 \
+ ng_btsocket_sco.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 0000000..b9ff0c1
--- /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 opt_bus.h opt_usb.h device_if.h bus_if.h \
+ usb_if.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 0000000..4c5c813
--- /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 opt_bus.h opt_usb.h device_if.h bus_if.h \
+ usb_if.h vnode_if.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 0000000..adef38f
--- /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= opt_bpf.h 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 0000000..31814290
--- /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/car/Makefile b/sys/modules/netgraph/car/Makefile
new file mode 100644
index 0000000..915a28b
--- /dev/null
+++ b/sys/modules/netgraph/car/Makefile
@@ -0,0 +1,6 @@
+# $FreeBSD$
+
+KMOD= ng_car
+SRCS= ng_car.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/cisco/Makefile b/sys/modules/netgraph/cisco/Makefile
new file mode 100644
index 0000000..2e3000d
--- /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/deflate/Makefile b/sys/modules/netgraph/deflate/Makefile
new file mode 100644
index 0000000..607d6d3
--- /dev/null
+++ b/sys/modules/netgraph/deflate/Makefile
@@ -0,0 +1,6 @@
+# $FreeBSD$
+
+KMOD= ng_deflate
+SRCS= ng_deflate.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/device/Makefile b/sys/modules/netgraph/device/Makefile
new file mode 100644
index 0000000..92eaa98
--- /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 0000000..d7cce8d
--- /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 0000000..6e8b800
--- /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 0000000..d807bc9
--- /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 0000000..7a3950e
--- /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/ether_echo/Makefile b/sys/modules/netgraph/ether_echo/Makefile
new file mode 100644
index 0000000..92dc665
--- /dev/null
+++ b/sys/modules/netgraph/ether_echo/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+# $Whistle: Makefile,v 1.2 1999/01/19 19:39:20 archie Exp $
+
+KMOD= ng_ether_echo
+SRCS= ng_ether_echo.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/fec/Makefile b/sys/modules/netgraph/fec/Makefile
new file mode 100644
index 0000000..1d437f5
--- /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 0000000..81a2a96a
--- /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 0000000..acf4373
--- /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 0000000..56de5ad
--- /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 0000000..c7502bf
--- /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 0000000..9ebb54d
--- /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 0000000..2a6819b
--- /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 0000000..7a40c45
--- /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 0000000..b40abcf
--- /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 0000000..f8fd73f
--- /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 0000000..799437c
--- /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 0000000..e1b0887
--- /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 0000000..40b3717
--- /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 0000000..f51bbe0
--- /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 0000000..b1b9ba5
--- /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 0000000..a34d616
--- /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 0000000..74a0a6c
--- /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/pipe/Makefile b/sys/modules/netgraph/pipe/Makefile
new file mode 100644
index 0000000..1e1728b
--- /dev/null
+++ b/sys/modules/netgraph/pipe/Makefile
@@ -0,0 +1,6 @@
+# $FreeBSD$
+
+KMOD= ng_pipe
+SRCS= ng_pipe.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/ppp/Makefile b/sys/modules/netgraph/ppp/Makefile
new file mode 100644
index 0000000..6ce720a
--- /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 0000000..642dbdd
--- /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 0000000..34cbbf6
--- /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/pred1/Makefile b/sys/modules/netgraph/pred1/Makefile
new file mode 100644
index 0000000..a3ecec9
--- /dev/null
+++ b/sys/modules/netgraph/pred1/Makefile
@@ -0,0 +1,6 @@
+# $FreeBSD$
+
+KMOD= ng_pred1
+SRCS= ng_pred1.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/rfc1490/Makefile b/sys/modules/netgraph/rfc1490/Makefile
new file mode 100644
index 0000000..6ba0653
--- /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 0000000..7017526
--- /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 0000000..a44ba0f
--- /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 0000000..c70a6bb
--- /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 0000000..2eb4fa3
--- /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 0000000..203e83e
--- /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/tag/Makefile b/sys/modules/netgraph/tag/Makefile
new file mode 100644
index 0000000..3862c18
--- /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 0000000..0379c88
--- /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 0000000..7d51158
--- /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 0000000..3f19a7c
--- /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 0000000..4921ac9
--- /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 0000000..e6cdf0d
--- /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/nfe/Makefile b/sys/modules/nfe/Makefile
new file mode 100644
index 0000000..6fe8bc3
--- /dev/null
+++ b/sys/modules/nfe/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/nfe
+
+KMOD= if_nfe
+SRCS= if_nfe.c device_if.h bus_if.h pci_if.h miibus_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/nfs_common/Makefile b/sys/modules/nfs_common/Makefile
new file mode 100644
index 0000000..8f51f18
--- /dev/null
+++ b/sys/modules/nfs_common/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../nfs
+
+KMOD= nfs_common
+SRCS= nfs_common.c opt_nfs.h vnode_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/nfscl/Makefile b/sys/modules/nfscl/Makefile
new file mode 100644
index 0000000..66d5d93
--- /dev/null
+++ b/sys/modules/nfscl/Makefile
@@ -0,0 +1,26 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../fs/nfsclient
+KMOD= nfscl
+SRCS= vnode_if.h \
+ nfs_clrpcops.c \
+ nfs_clkrpc.c \
+ nfs_clstate.c \
+ nfs_clcomsubs.c \
+ nfs_clport.c \
+ nfs_clbio.c \
+ nfs_cllock.c \
+ nfs_clnfsiod.c \
+ nfs_clnode.c \
+ nfs_clsubs.c \
+ nfs_clvfsops.c \
+ nfs_clvnops.c \
+ opt_inet.h \
+ opt_inet6.h \
+ opt_bootp.h \
+ opt_nfsroot.h \
+ opt_nfs.h \
+ opt_ufs.h \
+ opt_kgssapi.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/nfsclient/Makefile b/sys/modules/nfsclient/Makefile
new file mode 100644
index 0000000..5cd3556
--- /dev/null
+++ b/sys/modules/nfsclient/Makefile
@@ -0,0 +1,44 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../nfsclient ${.CURDIR}/../../rpc
+
+KMOD= nfsclient
+SRCS= vnode_if.h \
+ nfs_bio.c nfs_lock.c nfs_node.c nfs_subs.c nfs_nfsiod.c \
+ nfs_vfsops.c nfs_vnops.c nfs_krpc.c \
+ opt_inet.h opt_nfs.h opt_bootp.h opt_nfsroot.h
+SRCS+= opt_inet6.h opt_kdtrace.h opt_kgssapi.h
+
+.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/nfscommon/Makefile b/sys/modules/nfscommon/Makefile
new file mode 100644
index 0000000..a3d75a7
--- /dev/null
+++ b/sys/modules/nfscommon/Makefile
@@ -0,0 +1,15 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../fs/nfs
+KMOD= nfscommon
+SRCS= vnode_if.h \
+ nfs_commonacl.c \
+ nfs_commonkrpc.c \
+ nfs_commonport.c \
+ nfs_commonsubs.c \
+ opt_kgssapi.h \
+ opt_ufs.h \
+ opt_inet6.h \
+ opt_nfs.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/nfsd/Makefile b/sys/modules/nfsd/Makefile
new file mode 100644
index 0000000..08d302a
--- /dev/null
+++ b/sys/modules/nfsd/Makefile
@@ -0,0 +1,18 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../fs/nfsserver
+KMOD= nfsd
+SRCS= vnode_if.h \
+ nfs_nfsdserv.c \
+ nfs_nfsdcache.c \
+ nfs_nfsdkrpc.c \
+ nfs_nfsdsocket.c \
+ nfs_nfsdstate.c \
+ nfs_nfsdsubs.c \
+ nfs_nfsdport.c \
+ opt_ufs.h \
+ opt_nfs.h \
+ opt_inet6.h \
+ opt_kgssapi.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/nfslockd/Makefile b/sys/modules/nfslockd/Makefile
new file mode 100644
index 0000000..3373144
--- /dev/null
+++ b/sys/modules/nfslockd/Makefile
@@ -0,0 +1,25 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../nlm ${.CURDIR}/../../rpc
+KMOD= nfslockd
+SRCS= vnode_if.h \
+ nlm_advlock.c \
+ nlm_prot_clnt.c \
+ nlm_prot_impl.c \
+ nlm_prot_server.c \
+ nlm_prot_svc.c \
+ nlm_prot_xdr.c \
+ sm_inter_xdr.c
+SRCS+= opt_inet6.h opt_nfs.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/nfsserver/Makefile b/sys/modules/nfsserver/Makefile
new file mode 100644
index 0000000..58ab2bc
--- /dev/null
+++ b/sys/modules/nfsserver/Makefile
@@ -0,0 +1,21 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../nfsserver
+KMOD= nfsserver
+SRCS= vnode_if.h \
+ nfs_fha.c nfs_serv.c nfs_srvkrpc.c nfs_srvsubs.c \
+ opt_mac.h \
+ opt_kgssapi.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/nfssvc/Makefile b/sys/modules/nfssvc/Makefile
new file mode 100644
index 0000000..0073d13
--- /dev/null
+++ b/sys/modules/nfssvc/Makefile
@@ -0,0 +1,9 @@
+
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../nfs
+KMOD= nfssvc
+SRCS= nfs_nfssvc.c \
+ opt_nfs.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/nge/Makefile b/sys/modules/nge/Makefile
new file mode 100644
index 0000000..4bb68cd
--- /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 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 0000000..25e9470
--- /dev/null
+++ b/sys/modules/nmdm/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/nmdm
+
+KMOD= nmdm
+SRCS= nmdm.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/nsp/Makefile b/sys/modules/nsp/Makefile
new file mode 100644
index 0000000..1773286
--- /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+= 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 0000000..367af98
--- /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 0000000..33e6d42
--- /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 0000000..22cbf00
--- /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 0000000..33d5c2d
--- /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/nvram/Makefile b/sys/modules/nvram/Makefile
new file mode 100644
index 0000000..7af468d
--- /dev/null
+++ b/sys/modules/nvram/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/nvram
+
+KMOD= nvram
+SRCS= nvram.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/nwfs/Makefile b/sys/modules/nwfs/Makefile
new file mode 100644
index 0000000..9739611
--- /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
+
+.if defined(VNPRINT)
+CFLAGS+= -DVNPRINT
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/nxge/Makefile b/sys/modules/nxge/Makefile
new file mode 100644
index 0000000..4994b90
--- /dev/null
+++ b/sys/modules/nxge/Makefile
@@ -0,0 +1,41 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/nxge
+VPATH = ${.CURDIR}/../../dev/nxge/xgehal
+
+CFLAGS_NXGE =
+
+# Debugging/Tracing:
+# XGE_COMPONENT_HAL_CONFIG 0x1
+# XGE_COMPONENT_HAL_FIFO 0x2
+# XGE_COMPONENT_HAL_RING 0x4
+# XGE_COMPONENT_HAL_CHANNEL 0x8
+# XGE_COMPONENT_HAL_DEVICE 0x10
+# XGE_COMPONENT_HAL_MM 0x20
+# XGE_COMPONENT_HAL_QUEUE 0x40
+# XGE_COMPONENT_HAL_STATS 0x100
+# XGE_COMPONENT_OSDEP 0x10000000
+# XGE_COMPONENT_LL 0x20000000
+# XGE_COMPONENT_ALL 0xffffffff
+
+CFLAGS_NXGE += -DXGE_DEBUG_MODULE_MASK=XGE_COMPONENT_LL
+CFLAGS_NXGE += -DXGE_DEBUG_ERR_MASK=XGE_COMPONENT_LL
+#CFLAGS_NXGE += -DXGE_DEBUG_TRACE_MASK=XGE_COMPONENT_LL
+
+# Check Memory
+#CFLAGS_NXGE += -DXGE_OS_MEMORY_CHECK
+
+# 2-Buffer Mode
+#CFLAGS_NXGE += -DXGE_FEATURE_BUFFER_MODE_2
+
+CFLAGS += $(CFLAGS_NXGE)
+
+KMOD= if_nxge
+SRCS= if_nxge.c
+SRCS+= xgehal-device.c xgehal-mm.c xge-queue.c
+SRCS+= xgehal-driver.c xgehal-ring.c xgehal-channel.c
+SRCS+= xgehal-fifo.c xgehal-stats.c xgehal-config.c
+SRCS+= xgehal-mgmt.c
+SRCS+= device_if.h bus_if.h pci_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/opensolaris/Makefile b/sys/modules/opensolaris/Makefile
new file mode 100644
index 0000000..a0f08fb
--- /dev/null
+++ b/sys/modules/opensolaris/Makefile
@@ -0,0 +1,24 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../cddl/compat/opensolaris/kern
+
+KMOD= opensolaris
+SRCS= opensolaris.c \
+ opensolaris_cmn_err.c \
+ opensolaris_kmem.c \
+ opensolaris_misc.c
+
+.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "ia64" || ${MACHINE_ARCH} == "sparc64"
+.PATH: ${.CURDIR}/../../cddl/contrib/opensolaris/common/atomic/${MACHINE_ARCH}
+SRCS+= opensolaris_atomic.S
+.else
+SRCS+= opensolaris_atomic.c
+.endif
+
+CFLAGS+= -I${.CURDIR}/../../cddl/compat/opensolaris \
+ -I${.CURDIR}/../../cddl/contrib/opensolaris/uts/common \
+ -I${.CURDIR}/../..
+
+IGNORE_PRAGMA= 1
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/padlock/Makefile b/sys/modules/padlock/Makefile
new file mode 100644
index 0000000..14a8b56
--- /dev/null
+++ b/sys/modules/padlock/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../crypto/via
+
+KMOD= padlock
+SRCS= padlock.c padlock_cipher.c padlock_hash.c
+SRCS += device_if.h bus_if.h opt_bus.h cryptodev_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/patm/Makefile b/sys/modules/patm/Makefile
new file mode 100644
index 0000000..5d5200e
--- /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" > ${.TARGET}
+
+opt_natm.h:
+ echo "#define NATM 1" > ${.TARGET}
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/pccard/Makefile b/sys/modules/pccard/Makefile
new file mode 100644
index 0000000..95bcf3f
--- /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 0000000..107a067
--- /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 0000000..9955c6c
--- /dev/null
+++ b/sys/modules/pcn/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/pcn
+
+KMOD= if_pcn
+SRCS= if_pcn.c device_if.h bus_if.h pci_if.h
+SRCS+= miibus_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/pf/Makefile b/sys/modules/pf/Makefile
new file mode 100644
index 0000000..78aa564
--- /dev/null
+++ b/sys/modules/pf/Makefile
@@ -0,0 +1,34 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+.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 \
+ pf_ruleset.c \
+ in4_cksum.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" > ${.TARGET}
+
+.if ${MK_INET6_SUPPORT} != "no"
+opt_inet6.h:
+ echo "#define INET6 1" > ${.TARGET}
+.endif
+
+opt_bpf.h:
+ echo "#define DEV_BPF 1" > ${.TARGET}
+
+# pflog can be loaded as a module, have the additional checks turned on
+opt_pf.h:
+ echo "#define DEV_PF 1" > ${.TARGET}
+ echo "#define DEV_PFLOG 1" >> ${.TARGET}
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/pflog/Makefile b/sys/modules/pflog/Makefile
new file mode 100644
index 0000000..2dbbd6c
--- /dev/null
+++ b/sys/modules/pflog/Makefile
@@ -0,0 +1,26 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+.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" > ${.TARGET}
+
+.if ${MK_INET6_SUPPORT} != "no"
+opt_inet6.h:
+ echo "#define INET6 1" > ${.TARGET}
+.endif
+
+opt_bpf.h:
+ echo "#define DEV_BPF 1" > ${.TARGET}
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/plip/Makefile b/sys/modules/plip/Makefile
new file mode 100644
index 0000000..9aa5bd4
--- /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 0000000..60dd350
--- /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 0000000..ef6955b
--- /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/powermac_nvram/Makefile b/sys/modules/powermac_nvram/Makefile
new file mode 100644
index 0000000..95a38c8
--- /dev/null
+++ b/sys/modules/powermac_nvram/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/powermac_nvram
+
+KMOD= powermac_nvram
+SRCS= powermac_nvram.c powermac_nvramvar.h
+SRCS+= bus_if.h device_if.h
+SRCS+= ofw_bus_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ppbus/Makefile b/sys/modules/ppbus/Makefile
new file mode 100644
index 0000000..1347e64
--- /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 0000000..db36e73
--- /dev/null
+++ b/sys/modules/ppc/Makefile
@@ -0,0 +1,24 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/ppc
+KMOD= ppc
+SRCS= bus_if.h device_if.h ppbus_if.h isa_if.h pci_if.h serdev_if.h \
+ opt_ppc.h opt_isa.h \
+ ppc.c ppc_pci.c ppc_puc.c
+
+.if ${MACHINE_ARCH} == "amd64"
+SRCS+= ppc_acpi.c ppc_isa.c
+.endif
+
+.if ${MACHINE_ARCH} == "i386"
+.if ${MACHINE} != "pc98"
+SRCS+= ppc_acpi.c
+.endif
+SRCS+= ppc_isa.c
+.endif
+
+.if ${MACHINE_ARCH} == "ia64"
+SRCS+= ppc_acpi.c
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ppi/Makefile b/sys/modules/ppi/Makefile
new file mode 100644
index 0000000..568fddf
--- /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 0000000..7e70bb2
--- /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 0000000..9a94838
--- /dev/null
+++ b/sys/modules/procfs/Makefile
@@ -0,0 +1,43 @@
+# $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_osrel.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}
+ echo "#define COMPAT_FREEBSD6 1" >> ${.TARGET}
+.if ${MACHINE_ARCH} == "amd64"
+ echo "#define COMPAT_FREEBSD32 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 0000000..d5696c5
--- /dev/null
+++ b/sys/modules/pseudofs/Makefile
@@ -0,0 +1,26 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../fs/pseudofs
+
+KMOD= pseudofs
+SRCS= 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 0000000..46e552d
--- /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/pty/Makefile b/sys/modules/pty/Makefile
new file mode 100644
index 0000000..fd563fe
--- /dev/null
+++ b/sys/modules/pty/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/pty
+
+KMOD= pty
+SRCS= pty.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/puc/Makefile b/sys/modules/puc/Makefile
new file mode 100644
index 0000000..2b0fbfc
--- /dev/null
+++ b/sys/modules/puc/Makefile
@@ -0,0 +1,14 @@
+
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/puc
+
+KMOD= puc
+SRCS= puc.c puc_cfg.c puc_pci.c puc_pccard.c pucdata.c
+SRCS+= bus_if.h device_if.h serdev_if.c serdev_if.h \
+ card_if.h pci_if.h
+
+MFILES= kern/bus_if.m kern/device_if.m kern/serdev_if.m \
+ dev/pccard/card_if.m dev/pci/pci_if.m
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ral/Makefile b/sys/modules/ral/Makefile
new file mode 100644
index 0000000..6a3b269
--- /dev/null
+++ b/sys/modules/ral/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/ral
+
+KMOD= if_ral
+SRCS= rt2560.c rt2661.c if_ral_pci.c
+SRCS+= device_if.h bus_if.h pci_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ralfw/Makefile b/sys/modules/ralfw/Makefile
new file mode 100644
index 0000000..b00aabe
--- /dev/null
+++ b/sys/modules/ralfw/Makefile
@@ -0,0 +1,5 @@
+# $FreeBSD$
+
+SUBDIR= rt2561 rt2561s rt2661
+
+.include <bsd.subdir.mk>
diff --git a/sys/modules/ralfw/Makefile.inc b/sys/modules/ralfw/Makefile.inc
new file mode 100644
index 0000000..2dc6b47
--- /dev/null
+++ b/sys/modules/ralfw/Makefile.inc
@@ -0,0 +1,15 @@
+# $FreeBSD$
+
+#
+# Common rules for building firmware. Note this gets auto-included
+# by the subdir Makefile's as a consequence of included bsd.kmod.mk.
+#
+KMOD= ${IMG}fw
+_FIRM= ${IMG}.fw
+
+CLEANFILES+= ${_FIRM}
+
+FIRMWS= ${_FIRM}:${KMOD}
+
+${_FIRM}: ${.CURDIR}/../../../contrib/dev/ral/${_FIRM}.uu
+ uudecode -p $? > ${.TARGET}
diff --git a/sys/modules/ralfw/rt2561/Makefile b/sys/modules/ralfw/rt2561/Makefile
new file mode 100644
index 0000000..71044a6
--- /dev/null
+++ b/sys/modules/ralfw/rt2561/Makefile
@@ -0,0 +1,5 @@
+# $FreeBSD$
+
+IMG= rt2561
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ralfw/rt2561s/Makefile b/sys/modules/ralfw/rt2561s/Makefile
new file mode 100644
index 0000000..40c6bc1
--- /dev/null
+++ b/sys/modules/ralfw/rt2561s/Makefile
@@ -0,0 +1,5 @@
+# $FreeBSD$
+
+IMG= rt2561s
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ralfw/rt2661/Makefile b/sys/modules/ralfw/rt2661/Makefile
new file mode 100644
index 0000000..b372786
--- /dev/null
+++ b/sys/modules/ralfw/rt2661/Makefile
@@ -0,0 +1,6 @@
+# $FreeBSD$
+
+IMG= rt2661
+
+.include <bsd.kmod.mk>
+
diff --git a/sys/modules/random/Makefile b/sys/modules/random/Makefile
new file mode 100644
index 0000000..37c4d82
--- /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/rc/Makefile b/sys/modules/rc/Makefile
new file mode 100644
index 0000000..ffa6163
--- /dev/null
+++ b/sys/modules/rc/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/rc
+
+KMOD= rc
+SRCS= rc.c device_if.h bus_if.h isa_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/rc4/Makefile b/sys/modules/rc4/Makefile
new file mode 100644
index 0000000..95f609e
--- /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/rdma/Makefile b/sys/modules/rdma/Makefile
new file mode 100644
index 0000000..83edf09
--- /dev/null
+++ b/sys/modules/rdma/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+SUBDIR= addr
+SUBDIR+= cma
+SUBDIR+= iwcm
+SUBDIR+= core
+SUBDIR+= krping
+
+.include <bsd.subdir.mk>
diff --git a/sys/modules/rdma/addr/Makefile b/sys/modules/rdma/addr/Makefile
new file mode 100644
index 0000000..7440694
--- /dev/null
+++ b/sys/modules/rdma/addr/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+RDMA= ${.CURDIR}/../../../contrib/rdma
+.PATH: ${RDMA}
+
+KMOD= rdma_addr
+SRCS= device_if.h bus_if.h pci_if.h pcib_if.h opt_sched.h
+SRCS+= rdma_addr.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/rdma/cma/Makefile b/sys/modules/rdma/cma/Makefile
new file mode 100644
index 0000000..4ff4b36
--- /dev/null
+++ b/sys/modules/rdma/cma/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+RDMA= ${.CURDIR}/../../../contrib/rdma
+.PATH: ${RDMA}
+
+KMOD= rdma_cma
+SRCS= device_if.h bus_if.h pci_if.h pcib_if.h opt_sched.h
+SRCS+= rdma_cma.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/rdma/core/Makefile b/sys/modules/rdma/core/Makefile
new file mode 100644
index 0000000..60c6dc3
--- /dev/null
+++ b/sys/modules/rdma/core/Makefile
@@ -0,0 +1,12 @@
+# $FreeBSD$
+
+RDMA= ${.CURDIR}/../../../contrib/rdma
+.PATH: ${RDMA}
+
+KMOD= rdma_core
+SRCS= device_if.h bus_if.h pci_if.h pcib_if.h
+SRCS+= rdma_device.c
+SRCS+= rdma_cache.c
+SRCS+= rdma_verbs.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/rdma/iwcm/Makefile b/sys/modules/rdma/iwcm/Makefile
new file mode 100644
index 0000000..2831096
--- /dev/null
+++ b/sys/modules/rdma/iwcm/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+RDMA= ${.CURDIR}/../../../contrib/rdma
+.PATH: ${RDMA}
+
+KMOD= rdma_iwcm
+SRCS= device_if.h bus_if.h pci_if.h pcib_if.h opt_sched.h
+SRCS+= rdma_iwcm.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/rdma/krping/Makefile b/sys/modules/rdma/krping/Makefile
new file mode 100644
index 0000000..5e4871b
--- /dev/null
+++ b/sys/modules/rdma/krping/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+RDMA= ${.CURDIR}/../../../contrib/rdma/krping
+.PATH: ${RDMA}
+
+KMOD= krping
+SRCS= krping.c krping_dev.c getopt.c
+SRCS+= bus_if.h device_if.h opt_sched.h pci_if.h pcib_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/re/Makefile b/sys/modules/re/Makefile
new file mode 100644
index 0000000..abc9e49
--- /dev/null
+++ b/sys/modules/re/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/re
+
+KMOD= if_re
+SRCS= if_re.c 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 0000000..64d0440
--- /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 0000000..e846579
--- /dev/null
+++ b/sys/modules/rl/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../pci
+
+KMOD= if_rl
+SRCS= if_rl.c 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 0000000..f818704
--- /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 0000000..9326dff
--- /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" > ${.TARGET}
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/runfw/Makefile b/sys/modules/runfw/Makefile
new file mode 100644
index 0000000..320a624
--- /dev/null
+++ b/sys/modules/runfw/Makefile
@@ -0,0 +1,11 @@
+# $FreeBSD$
+
+KMOD= runfw
+FIRMWS= runfw:runfw:1
+
+CLEANFILES= runfw
+
+runfw: ${.CURDIR}/../../contrib/dev/run/rt2870.fw.uu
+ uudecode -p ${.CURDIR}/../../contrib/dev/run/rt2870.fw.uu > ${.TARGET}
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/s3/Makefile b/sys/modules/s3/Makefile
new file mode 100644
index 0000000..c0babcb
--- /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 0000000..6c61aa3
--- /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_bus.h cryptodev_if.h
+
+.if !defined(KERNBUILDDIR)
+opt_safe.h:
+ echo "#define SAFE_DEBUG 1" > ${.TARGET}
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/sbni/Makefile b/sys/modules/sbni/Makefile
new file mode 100644
index 0000000..9dfab90
--- /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/scc/Makefile b/sys/modules/scc/Makefile
new file mode 100644
index 0000000..c1678b7
--- /dev/null
+++ b/sys/modules/scc/Makefile
@@ -0,0 +1,20 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/scc
+
+.if ${MACHINE} == "sparc64"
+scc_bfe= scc_bfe_ebus.c scc_bfe_sbus.c
+.endif
+.if ${MACHINE_ARCH} == "powerpc"
+scc_bfe= scc_bfe_macio.c scc_bfe_quicc.c
+.endif
+
+KMOD= scc
+SRCS= ${scc_bfe} scc_core.c scc_if.c scc_if.h \
+ scc_dev_sab82532.c scc_dev_z8530.c
+SRCS+= bus_if.h device_if.h ofw_bus_if.h serdev_if.c serdev_if.h
+
+MFILES= dev/ofw/ofw_bus_if.m dev/scc/scc_if.m \
+ kern/bus_if.m kern/device_if.m kern/serdev_if.m
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/scd/Makefile b/sys/modules/scd/Makefile
new file mode 100644
index 0000000..4cf4145
--- /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 0000000..d8e3cc3
--- /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/sdhci/Makefile b/sys/modules/sdhci/Makefile
new file mode 100644
index 0000000..29fc8b8
--- /dev/null
+++ b/sys/modules/sdhci/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/sdhci
+
+KMOD= sdhci
+SRCS= sdhci.c sdhci.h device_if.h bus_if.h pci_if.h mmcbr_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/sem/Makefile b/sys/modules/sem/Makefile
new file mode 100644
index 0000000..833a0c1
--- /dev/null
+++ b/sys/modules/sem/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../kern
+
+KMOD= sem
+SRCS= uipc_sem.c opt_posix.h vnode_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/sf/Makefile b/sys/modules/sf/Makefile
new file mode 100644
index 0000000..c67287e
--- /dev/null
+++ b/sys/modules/sf/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/sf
+
+KMOD= if_sf
+SRCS= if_sf.c device_if.h bus_if.h pci_if.h
+SRCS+= miibus_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/sge/Makefile b/sys/modules/sge/Makefile
new file mode 100644
index 0000000..5f8c587
--- /dev/null
+++ b/sys/modules/sge/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/sge
+
+KMOD= if_sge
+SRCS= if_sge.c device_if.h bus_if.h pci_if.h miibus_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/siba_bwn/Makefile b/sys/modules/siba_bwn/Makefile
new file mode 100644
index 0000000..433d37f
--- /dev/null
+++ b/sys/modules/siba_bwn/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/siba
+
+KMOD= siba_bwn
+SRCS= siba_core.c siba_bwn.c sibareg.h sibavar.h
+SRCS+= device_if.h bus_if.h pci_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/siis/Makefile b/sys/modules/siis/Makefile
new file mode 100644
index 0000000..dfd6b77
--- /dev/null
+++ b/sys/modules/siis/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/siis
+
+KMOD= siis
+SRCS= siis.c siis.h device_if.h bus_if.h pci_if.h opt_cam.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/sio/Makefile b/sys/modules/sio/Makefile
new file mode 100644
index 0000000..dc683ba
--- /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 serdev_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 0000000..c98dda0
--- /dev/null
+++ b/sys/modules/sis/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/sis
+
+KMOD= if_sis
+SRCS= if_sis.c 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 0000000..833550a
--- /dev/null
+++ b/sys/modules/sk/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/sk
+
+KMOD= if_sk
+SRCS= if_sk.c 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 0000000..e8432e3
--- /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 \
+ 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 0000000..b248c75
--- /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 0000000..056619e
--- /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 device_if.h bus_if.h isa_if.h card_if.h pccarddevs.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 0000000..f4441df
--- /dev/null
+++ b/sys/modules/snp/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/snp
+
+KMOD= snp
+SRCS= snp.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/sound/Makefile b/sys/modules/sound/Makefile
new file mode 100644
index 0000000..d686733
--- /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 0000000..265f86d
--- /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 0000000..f070119
--- /dev/null
+++ b/sys/modules/sound/driver/Makefile
@@ -0,0 +1,22 @@
+# $FreeBSD$
+
+SUBDIR= ad1816 als4000 atiixp cs4281 csa ds1 emu10k1 emu10kx
+SUBDIR+= envy24 envy24ht es137x ess fm801 hda ich maestro maestro3
+SUBDIR+= neomagic sb16 sb8 sbc solo spicds t4dwave via8233
+SUBDIR+= via82c686 vibes driver uaudio
+
+.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
+SUBDIR+= cmi mss
+.endif
+
+.if ${MACHINE_ARCH} == "sparc64"
+.if ${MACHINE} == "sparc64"
+SUBDIR+= audiocs
+.endif
+.endif
+
+.if ${MACHINE_ARCH} == "powerpc"
+SUBDIR+= ai2s davbus
+.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 0000000..63bf760
--- /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 0000000..9c7fa9e
--- /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/ai2s/Makefile b/sys/modules/sound/driver/ai2s/Makefile
new file mode 100644
index 0000000..d693ddf
--- /dev/null
+++ b/sys/modules/sound/driver/ai2s/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../dev/sound/macio
+
+KMOD= snd_ai2s
+SRCS= device_if.h bus_if.h ofw_bus_if.h
+SRCS+= channel_if.h feeder_if.h mixer_if.h
+SRCS+= snapper.c tumbler.c aoa.c i2s.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 0000000..59dc73a
--- /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 0000000..db49eb2
--- /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/audiocs/Makefile b/sys/modules/sound/driver/audiocs/Makefile
new file mode 100644
index 0000000..ff67554
--- /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 0000000..551af42
--- /dev/null
+++ b/sys/modules/sound/driver/cmi/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../dev/sound/pci
+
+KMOD= snd_cmi
+SRCS= device_if.h bus_if.h pci_if.h
+SRCS+= mpufoi_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 0000000..ed3ddbc
--- /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 0000000..521005e
--- /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/davbus/Makefile b/sys/modules/sound/driver/davbus/Makefile
new file mode 100644
index 0000000..b5616fe
--- /dev/null
+++ b/sys/modules/sound/driver/davbus/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../dev/sound/macio
+
+KMOD= snd_davbus
+SRCS= device_if.h bus_if.h ofw_bus_if.h
+SRCS+= channel_if.h feeder_if.h mixer_if.h
+SRCS+= aoa.c davbus.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 0000000..56a8461
--- /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 0000000..c8f90ec
--- /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 0000000..14fc0c9
--- /dev/null
+++ b/sys/modules/sound/driver/emu10k1/Makefile
@@ -0,0 +1,19 @@
+# $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+= mpufoi_if.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/emu10kx/Makefile b/sys/modules/sound/driver/emu10kx/Makefile
new file mode 100644
index 0000000..0b77711
--- /dev/null
+++ b/sys/modules/sound/driver/emu10kx/Makefile
@@ -0,0 +1,39 @@
+# $FreeBSD$
+.PATH: ${.CURDIR}/../../../../dev/sound/pci \
+ ${.CURDIR}/../../../../gnu/dev/sound/pci
+
+KMOD= snd_emu10kx
+
+SRCS= device_if.h bus_if.h pci_if.h
+SRCS+= isa_if.h channel_if.h ac97_if.h mixer_if.h mpufoi_if.h
+SRCS+= vnode_if.h
+# Master, PCM and MIDI devices
+SRCS+= emu10kx.c
+SRCS+= emu10kx-pcm.c
+SRCS+= emu10kx-midi.c
+# de-GPLed Makefiles
+SRCS+= emu10k1-alsa%diked.h
+SRCS+= p16v-alsa%diked.h
+SRCS+= p17v-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}
+p16v-alsa%diked.h: p16v-alsa.h
+ grep -v '#include' ${.OODATE} | $(CC) -E -D__KERNEL__ -dM - \
+ | awk -F"[ (]" '/define/ \
+ { print "#ifndef " $$2 ; print ; print "#endif" }' \
+ >${.TARGET}
+p17v-alsa%diked.h: p17v-alsa.h
+ grep -v '#include' ${.OODATE} | $(CC) -E -D__KERNEL__ -dM - \
+ | awk -F"[ (]" '/define/ \
+ { print "#ifndef " $$2 ; print ; print "#endif" }' \
+ >${.TARGET}
+
+CLEANFILES+= emu10k1-alsa%diked.h
+CLEANFILES+= p16v-alsa%diked.h
+CLEANFILES+= p17v-alsa%diked.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/sound/driver/envy24/Makefile b/sys/modules/sound/driver/envy24/Makefile
new file mode 100644
index 0000000..ec1bf4c
--- /dev/null
+++ b/sys/modules/sound/driver/envy24/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../dev/sound/pci
+
+KMOD= snd_envy24
+SRCS= device_if.h bus_if.h pci_if.h
+SRCS+= envy24.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/sound/driver/envy24ht/Makefile b/sys/modules/sound/driver/envy24ht/Makefile
new file mode 100644
index 0000000..e6b0d45
--- /dev/null
+++ b/sys/modules/sound/driver/envy24ht/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../dev/sound/pci
+
+KMOD= snd_envy24ht
+SRCS= device_if.h bus_if.h pci_if.h
+SRCS+= envy24ht.c
+
+.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 0000000..d2a2d58
--- /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 0000000..73da252
--- /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
+
+.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 0000000..a8ed6bd
--- /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/hda/Makefile b/sys/modules/sound/driver/hda/Makefile
new file mode 100644
index 0000000..8508b5d
--- /dev/null
+++ b/sys/modules/sound/driver/hda/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../dev/sound/pci/hda
+
+KMOD= snd_hda
+SRCS= device_if.h bus_if.h pci_if.h channel_if.h mixer_if.h
+SRCS+= hdac.c hdac_private.h hdac_reg.h hda_reg.h hdac.h
+
+.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 0000000..e0f2ce7
--- /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 0000000..817097d
--- /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 0000000..d4378b8
--- /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 0000000..4488078
--- /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 0000000..9eabb5c
--- /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 0000000..bf009f7
--- /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 0000000..f2b0da8
--- /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 0000000..8e2343d
--- /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 0000000..01059fa
--- /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/spicds/Makefile b/sys/modules/sound/driver/spicds/Makefile
new file mode 100644
index 0000000..35ec879
--- /dev/null
+++ b/sys/modules/sound/driver/spicds/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../dev/sound/pci
+
+KMOD= snd_spicds
+SRCS= device_if.h bus_if.h isa_if.h pci_if.h
+SRCS+= spicds.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 0000000..7cd9140
--- /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 0000000..7fa025a
--- /dev/null
+++ b/sys/modules/sound/driver/uaudio/Makefile
@@ -0,0 +1,12 @@
+# $FreeBSD$
+
+S= ${.CURDIR}/../../../..
+
+.PATH: $S/dev/sound/usb
+
+KMOD= snd_uaudio
+SRCS= bus_if.h device_if.h usb_if.h vnode_if.h
+SRCS+= opt_usb.h opt_bus.h feeder_if.h channel_if.h usbdevs.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 0000000..fa3fd96
--- /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 0000000..d53576c
--- /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 0000000..663d8a0
--- /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 0000000..78f91d4
--- /dev/null
+++ b/sys/modules/sound/sound/Makefile
@@ -0,0 +1,67 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/sound
+.PATH: ${.CURDIR}/../../../dev/sound/pcm
+.PATH: ${.CURDIR}/../../../dev/sound/midi
+.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+= feeder.c feeder_rate.c feeder_volume.c
+SRCS+= feeder_chain.c feeder_eq.c feeder_format.c
+SRCS+= feeder_matrix.c feeder_mixer.c
+SRCS+= feeder_eq_gen.h feeder_rate_gen.h snd_fxdiv_gen.h
+SRCS+= mpu_if.h mpufoi_if.h synth_if.h
+SRCS+= mpu_if.c mpufoi_if.c synth_if.c
+SRCS+= ac97.c ac97_patch.c buffer.c channel.c clone.c dsp.c
+SRCS+= mixer.c sndstat.c sound.c unit.c vchan.c
+SRCS+= midi.c mpu401.c sequencer.c
+
+.if !exists(@)
+feeder_eq_gen.h: @
+.else
+feeder_eq_gen.h: @/tools/sound/feeder_eq_mkfilter.awk
+.endif
+ ${AWK} -f @/tools/sound/feeder_eq_mkfilter.awk -- ${FEEDER_EQ_PRESETS} > ${.TARGET}
+
+.if !exists(@)
+feeder_rate_gen.h: @
+.else
+feeder_rate_gen.h: @/tools/sound/feeder_rate_mkfilter.awk
+.endif
+ ${AWK} -f @/tools/sound/feeder_rate_mkfilter.awk -- ${FEEDER_RATE_PRESETS} > ${.TARGET}
+
+.if !exists(@)
+snd_fxdiv_gen.h: @
+.else
+snd_fxdiv_gen.h: @/tools/sound/snd_fxdiv_gen.awk
+.endif
+ ${AWK} -f @/tools/sound/snd_fxdiv_gen.awk -- > ${.TARGET}
+
+CLEANFILES+= feeder_eq_gen.h feeder_rate_gen.h snd_fxdiv_gen.h
+
+EXPORT_SYMS= YES # XXX evaluate
+
+.if ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "powerpc"
+# 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
+.if !defined(KERNBUILDDIR)
+SRCS+= sndbuf_dma.c
+
+opt_isa.h:
+ echo "#define DEV_ISA 1" > ${.TARGET}
+.else
+DEV_ISA!= sed -n '/DEV_ISA/p' ${KERNBUILDDIR}/opt_isa.h
+.if !empty(DEV_ISA)
+SRCS+= sndbuf_dma.c
+.endif
+.endif
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/speaker/Makefile b/sys/modules/speaker/Makefile
new file mode 100644
index 0000000..1a4c5ac
--- /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 0000000..1c634bf
--- /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 0000000..265f86d
--- /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 0000000..a169fdf
--- /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 0000000..188dafc
--- /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 0000000..455d2f3
--- /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" > ${.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/ste/Makefile b/sys/modules/ste/Makefile
new file mode 100644
index 0000000..6d767b1
--- /dev/null
+++ b/sys/modules/ste/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/ste
+
+KMOD= if_ste
+SRCS= if_ste.c 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 0000000..b8c0ae8
--- /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+= 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 0000000..721a42d
--- /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 0000000..cbffdee
--- /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 0000000..5055098
--- /dev/null
+++ b/sys/modules/svr4/Makefile
@@ -0,0 +1,34 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../${MACHINE_ARCH}/svr4 ${.CURDIR}/../../compat/svr4
+KMOD= svr4
+SRCS= svr4_sysent.c svr4_sysvec.c opt_compat.h opt_svr4.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_termios.c svr4_stream.c svr4_socket.c svr4_sockio.c \
+ svr4_machdep.c svr4_resource.c svr4_ipc.c
+OBJS= svr4_locore.o
+
+SRCS+= opt_ktrace.h opt_sysvipc.h
+
+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) && defined(DEBUG)
+opt_svr4.h:
+ echo "#define DEBUG_SVR4 1" > ${.TARGET}
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/svr4/README b/sys/modules/svr4/README
new file mode 100644
index 0000000..a14e2b7
--- /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 0000000..078b80d
--- /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 0000000..198c982
--- /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 0000000..13cbc57
--- /dev/null
+++ b/sys/modules/syscons/Makefile
@@ -0,0 +1,33 @@
+# $FreeBSD$
+
+SUBDIR= ${_apm} \
+ ${_beastie} \
+ blank \
+ ${_daemon} \
+ ${_dragon} \
+ fade \
+ ${_fire} \
+ green \
+ ${_logo} \
+ ${_rain} \
+ ${_snake} \
+ ${_star} \
+ ${_warp}
+
+.if ${MACHINE_ARCH} == "i386"
+_apm= apm
+.endif
+
+.if ${MACHINE_ARCH} != "sparc64"
+_beastie= beastie
+_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 0000000..265f86d
--- /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 0000000..d2e31d8
--- /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/beastie/Makefile b/sys/modules/syscons/beastie/Makefile
new file mode 100644
index 0000000..4f0865b
--- /dev/null
+++ b/sys/modules/syscons/beastie/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/syscons/logo
+
+KMOD= beastie_saver
+SRCS= beastie.c logo_saver.c
+
+CFLAGS+=-DBEASTIE_LOGO
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/syscons/blank/Makefile b/sys/modules/syscons/blank/Makefile
new file mode 100644
index 0000000..673b6bd
--- /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 0000000..b027972
--- /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 0000000..95ebecd
--- /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 0000000..7691961
--- /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 0000000..219017e
--- /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 0000000..255171e
--- /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 0000000..b4439f2
--- /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 0000000..5c0d126
--- /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 0000000..9edf830
--- /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 0000000..ca3075f
--- /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 0000000..3ff59d3
--- /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 0000000..6c65857
--- /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 0000000..265f86d
--- /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 0000000..e60b8a2
--- /dev/null
+++ b/sys/modules/sysvipc/sysvmsg/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../kern
+
+KMOD= sysvmsg
+SRCS= sysv_msg.c 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 0000000..13fe06a
--- /dev/null
+++ b/sys/modules/sysvipc/sysvsem/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../kern
+
+KMOD= sysvsem
+SRCS= sysv_sem.c 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 0000000..fde9d34
--- /dev/null
+++ b/sys/modules/sysvipc/sysvshm/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../kern
+
+KMOD= sysvshm
+SRCS= sysv_shm.c 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 0000000..411cce0
--- /dev/null
+++ b/sys/modules/ti/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/ti
+
+KMOD= if_ti
+SRCS= if_ti.c 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 0000000..60fbc27
--- /dev/null
+++ b/sys/modules/tl/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/tl
+
+KMOD= if_tl
+SRCS= if_tl.c device_if.h bus_if.h pci_if.h
+SRCS+= miibus_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/tmpfs/Makefile b/sys/modules/tmpfs/Makefile
new file mode 100644
index 0000000..85aaaca
--- /dev/null
+++ b/sys/modules/tmpfs/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../fs/tmpfs
+
+KMOD= tmpfs
+SRCS= vnode_if.h \
+ tmpfs_vnops.c tmpfs_fifoops.c tmpfs_vfsops.c tmpfs_subr.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/trm/Makefile b/sys/modules/trm/Makefile
new file mode 100644
index 0000000..48df9f5
--- /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" > ${.TARGET}
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/twa/Makefile b/sys/modules/twa/Makefile
new file mode 100644
index 0000000..e5539e1
--- /dev/null
+++ b/sys/modules/twa/Makefile
@@ -0,0 +1,47 @@
+# $FreeBSD$
+#
+# Copyright (c) 2004-06 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
+# Modifications by: Adam Radford
+#
+
+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}
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/twe/Makefile b/sys/modules/twe/Makefile
new file mode 100644
index 0000000..a74a58d
--- /dev/null
+++ b/sys/modules/twe/Makefile
@@ -0,0 +1,30 @@
+# $FreeBSD$
+
+KMOD= twe
+.PATH: ${.CURDIR}/../../dev/${KMOD}
+SRCS= bus_if.h device_if.h pci_if.h twe.c twe_freebsd.c
+
+#CFLAGS+=-DTWE_DEBUG=0
+
+# 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
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/tx/Makefile b/sys/modules/tx/Makefile
new file mode 100644
index 0000000..1fe6ba1
--- /dev/null
+++ b/sys/modules/tx/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/tx
+
+KMOD= if_tx
+SRCS= if_tx.c 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 0000000..379f3e3
--- /dev/null
+++ b/sys/modules/txp/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/txp
+
+KMOD= if_txp
+SRCS= if_txp.c 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 0000000..06b3c9b
--- /dev/null
+++ b/sys/modules/uart/Makefile
@@ -0,0 +1,29 @@
+# $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_bus_scc.c \
+ uart_core.c uart_dbg.c \
+ uart_dev_ns8250.c uart_dev_quicc.c uart_dev_sab82532.c \
+ uart_dev_z8530.c \
+ uart_if.c uart_if.h uart_subr.c uart_tty.c
+.if ${MACHINE} == "sun4v"
+SRCS+= uart_cpu_sparc64.c
+.elif exists(${CURDIR}/uart_cpu_${MACHINE}.c)
+SRCS+= uart_cpu_${MACHINE}.c
+.endif
+SRCS+= bus_if.h card_if.h device_if.h isa_if.h ${ofw_bus_if} pci_if.h \
+ power_if.h pccarddevs.h serdev_if.h
+
+MFILES= dev/pccard/card_if.m dev/pccard/power_if.m dev/pci/pci_if.m \
+ dev/ofw/ofw_bus_if.m dev/uart/uart_if.m isa/isa_if.m kern/bus_if.m \
+ kern/device_if.m kern/serdev_if.m
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ubsec/Makefile b/sys/modules/ubsec/Makefile
new file mode 100644
index 0000000..d7835fa
--- /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_bus.h cryptodev_if.h
+
+.if !defined(KERNBUILDDIR)
+opt_ubsec.h:
+ echo "#define UBSEC_DEBUG 1" > ${.TARGET}
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ubser/Makefile b/sys/modules/ubser/Makefile
new file mode 100644
index 0000000..8807bed
--- /dev/null
+++ b/sys/modules/ubser/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+S= ${.CURDIR}/../..
+.PATH: $S/dev/usb/serial
+
+KMOD= ubser
+SRCS= ubser.c opt_usb.h device_if.h bus_if.h usbdevs.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/uchcom/Makefile b/sys/modules/uchcom/Makefile
new file mode 100644
index 0000000..65cdacd
--- /dev/null
+++ b/sys/modules/uchcom/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+S= ${.CURDIR}/../..
+.PATH: $S/dev/usb
+
+KMOD= uchcom
+SRCS= uchcom.c 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 0000000..d5849a9
--- /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/udf/Makefile b/sys/modules/udf/Makefile
new file mode 100644
index 0000000..220cba1
--- /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 0000000..008f722
--- /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/ufs/Makefile b/sys/modules/ufs/Makefile
new file mode 100644
index 0000000..0fe7b4c
--- /dev/null
+++ b/sys/modules/ufs/Makefile
@@ -0,0 +1,17 @@
+# $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_quota.h opt_suiddir.h opt_ufs.h \
+ vnode_if.h ufs_acl.c ufs_bmap.c ufs_dirhash.c ufs_extattr.c \
+ ufs_gjournal.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
+
+.if !defined(KERNBUILDDIR)
+CFLAGS+= -DSOFTUPDATES -DUFS_DIRHASH
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/unionfs/Makefile b/sys/modules/unionfs/Makefile
new file mode 100644
index 0000000..64d38c5
--- /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/usb/Makefile b/sys/modules/usb/Makefile
new file mode 100644
index 0000000..7f43e2b
--- /dev/null
+++ b/sys/modules/usb/Makefile
@@ -0,0 +1,51 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+SUBDIR = usb
+SUBDIR += ehci musb ohci uhci uss820dci ${_at91dci} ${_atmegadci}
+SUBDIR += rum run uath upgt ural zyd ${_urtw}
+SUBDIR += atp uhid ukbd ums udbp ufm
+SUBDIR += ucom u3g uark ubsa ubser uchcom ucycom ufoma uftdi ugensa uipaq ulpt \
+ umct umodem umoscom uplcom uslcom uvisor uvscom
+SUBDIR += uether aue axe cdce cue kue rue udav uhso
+SUBDIR += usfs umass urio
+SUBDIR += quirk template
+
+.if ${MACHINE_ARCH} == "amd64"
+_urtw= urtw
+.endif
+
+.if ${MACHINE_ARCH} == "arm"
+_at91dci= at91dci
+_atmegadci= atmegadci
+.endif
+
+.if ${MACHINE_ARCH} == "i386"
+_urtw= urtw
+.endif
+
+.include <bsd.subdir.mk>
diff --git a/sys/modules/usb/at91dci/Makefile b/sys/modules/usb/at91dci/Makefile
new file mode 100644
index 0000000..5bd646a
--- /dev/null
+++ b/sys/modules/usb/at91dci/Makefile
@@ -0,0 +1,42 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/controller
+
+KMOD= at91dci
+SRCS= bus_if.h device_if.h usb_if.h \
+ opt_bus.h opt_usb.h \
+ at91dci.c \
+ pci_if.h
+
+.if defined(HAS_ATMELARM)
+SRCS+= at91dci_atmelarm.c
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/atmegadci/Makefile b/sys/modules/usb/atmegadci/Makefile
new file mode 100644
index 0000000..0f73c375
--- /dev/null
+++ b/sys/modules/usb/atmegadci/Makefile
@@ -0,0 +1,42 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2009 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/controller
+
+KMOD= atmegadci
+SRCS= bus_if.h device_if.h usb_if.h \
+ opt_bus.h opt_usb.h \
+ atmegadci.c \
+ pci_if.h
+
+.if defined(HAS_ATMELARM)
+SRCS+= atmegadci_atmelarm.c
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/atp/Makefile b/sys/modules/usb/atp/Makefile
new file mode 100644
index 0000000..8e68d1c
--- /dev/null
+++ b/sys/modules/usb/atp/Makefile
@@ -0,0 +1,11 @@
+# $FreeBSD$
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/input
+
+KMOD= atp
+SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h vnode_if.h usbdevs.h \
+ atp.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/aue/Makefile b/sys/modules/usb/aue/Makefile
new file mode 100644
index 0000000..ac1ace1
--- /dev/null
+++ b/sys/modules/usb/aue/Makefile
@@ -0,0 +1,37 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/net
+
+KMOD= if_aue
+SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
+ miibus_if.h opt_inet.h \
+ if_aue.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/axe/Makefile b/sys/modules/usb/axe/Makefile
new file mode 100644
index 0000000..10719f0
--- /dev/null
+++ b/sys/modules/usb/axe/Makefile
@@ -0,0 +1,37 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/net
+
+KMOD= if_axe
+SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
+ miibus_if.h opt_inet.h \
+ if_axe.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/cdce/Makefile b/sys/modules/usb/cdce/Makefile
new file mode 100644
index 0000000..c16b794
--- /dev/null
+++ b/sys/modules/usb/cdce/Makefile
@@ -0,0 +1,37 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/net
+
+KMOD= if_cdce
+SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
+ miibus_if.h opt_inet.h \
+ if_cdce.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/cue/Makefile b/sys/modules/usb/cue/Makefile
new file mode 100644
index 0000000..b13f7be
--- /dev/null
+++ b/sys/modules/usb/cue/Makefile
@@ -0,0 +1,37 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/net
+
+KMOD= if_cue
+SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
+ miibus_if.h opt_inet.h \
+ if_cue.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/ehci/Makefile b/sys/modules/usb/ehci/Makefile
new file mode 100644
index 0000000..4f558cc
--- /dev/null
+++ b/sys/modules/usb/ehci/Makefile
@@ -0,0 +1,38 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/controller
+
+KMOD= ehci
+SRCS= bus_if.h device_if.h usb_if.h \
+ opt_bus.h opt_usb.h \
+ ehci_pci.c ehci.c ehci.h \
+ pci_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/kue/Makefile b/sys/modules/usb/kue/Makefile
new file mode 100644
index 0000000..0205f5c
--- /dev/null
+++ b/sys/modules/usb/kue/Makefile
@@ -0,0 +1,37 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/net
+
+KMOD= if_kue
+SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
+ miibus_if.h opt_inet.h \
+ if_kue.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/musb/Makefile b/sys/modules/usb/musb/Makefile
new file mode 100644
index 0000000..0dbd65e
--- /dev/null
+++ b/sys/modules/usb/musb/Makefile
@@ -0,0 +1,42 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/controller
+
+KMOD= musb
+SRCS= bus_if.h device_if.h usb_if.h \
+ opt_bus.h opt_usb.h \
+ musb_otg.c \
+ pci_if.h
+
+.if defined(HAS_ATMELARM)
+SRCS+= musb_otg_atmelarm.c
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/ohci/Makefile b/sys/modules/usb/ohci/Makefile
new file mode 100644
index 0000000..40ed874
--- /dev/null
+++ b/sys/modules/usb/ohci/Makefile
@@ -0,0 +1,38 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/controller
+
+KMOD= ohci
+SRCS= bus_if.h device_if.h usb_if.h \
+ opt_bus.h opt_usb.h \
+ ohci_pci.c ohci.c ohci.h \
+ pci_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/quirk/Makefile b/sys/modules/usb/quirk/Makefile
new file mode 100644
index 0000000..1bb5d88
--- /dev/null
+++ b/sys/modules/usb/quirk/Makefile
@@ -0,0 +1,36 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/quirk
+
+KMOD= usb_quirk
+SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
+ usb_quirk.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/rue/Makefile b/sys/modules/usb/rue/Makefile
new file mode 100644
index 0000000..258df6f
--- /dev/null
+++ b/sys/modules/usb/rue/Makefile
@@ -0,0 +1,37 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/net
+
+KMOD= if_rue
+SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
+ miibus_if.h opt_inet.h \
+ if_rue.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/rum/Makefile b/sys/modules/usb/rum/Makefile
new file mode 100644
index 0000000..de8d702
--- /dev/null
+++ b/sys/modules/usb/rum/Makefile
@@ -0,0 +1,36 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/wlan
+
+KMOD= if_rum
+SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
+ if_rum.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/run/Makefile b/sys/modules/usb/run/Makefile
new file mode 100644
index 0000000..5acada4
--- /dev/null
+++ b/sys/modules/usb/run/Makefile
@@ -0,0 +1,36 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2010 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/wlan
+
+KMOD= if_run
+SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
+ if_run.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/template/Makefile b/sys/modules/usb/template/Makefile
new file mode 100644
index 0000000..362da9d
--- /dev/null
+++ b/sys/modules/usb/template/Makefile
@@ -0,0 +1,36 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/template
+
+KMOD= usb_template
+SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h vnode_if.h usbdevs.h \
+ usb_template.c usb_template_cdce.c usb_template_msc.c usb_template_mtp.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/u3g/Makefile b/sys/modules/usb/u3g/Makefile
new file mode 100644
index 0000000..545c379
--- /dev/null
+++ b/sys/modules/usb/u3g/Makefile
@@ -0,0 +1,36 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/serial
+
+KMOD= u3g
+SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
+ u3g.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/uark/Makefile b/sys/modules/usb/uark/Makefile
new file mode 100644
index 0000000..7ef981e
--- /dev/null
+++ b/sys/modules/usb/uark/Makefile
@@ -0,0 +1,36 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/serial
+
+KMOD= uark
+SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
+ uark.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/uath/Makefile b/sys/modules/usb/uath/Makefile
new file mode 100644
index 0000000..a734dfc
--- /dev/null
+++ b/sys/modules/usb/uath/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/usb/wlan
+
+KMOD = if_uath
+SRCS = if_uath.c if_uathvar.h if_uathreg.h \
+ bus_if.h device_if.h \
+ opt_bus.h opt_usb.h usb_if.h usbdevs.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/ubsa/Makefile b/sys/modules/usb/ubsa/Makefile
new file mode 100644
index 0000000..8e5d6b4
--- /dev/null
+++ b/sys/modules/usb/ubsa/Makefile
@@ -0,0 +1,36 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/serial
+
+KMOD= ubsa
+SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
+ ubsa.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/ubser/Makefile b/sys/modules/usb/ubser/Makefile
new file mode 100644
index 0000000..1d023f7
--- /dev/null
+++ b/sys/modules/usb/ubser/Makefile
@@ -0,0 +1,36 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/serial
+
+KMOD= ubser
+SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
+ ubser.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/uchcom/Makefile b/sys/modules/usb/uchcom/Makefile
new file mode 100644
index 0000000..b6922e3
--- /dev/null
+++ b/sys/modules/usb/uchcom/Makefile
@@ -0,0 +1,36 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/serial
+
+KMOD= uchcom
+SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
+ uchcom.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/ucom/Makefile b/sys/modules/usb/ucom/Makefile
new file mode 100644
index 0000000..b7836a8
--- /dev/null
+++ b/sys/modules/usb/ucom/Makefile
@@ -0,0 +1,36 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/serial
+
+KMOD= ucom
+SRCS= opt_bus.h opt_usb.h opt_gdb.h device_if.h bus_if.h usb_if.h usbdevs.h \
+ usb_serial.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/ucycom/Makefile b/sys/modules/usb/ucycom/Makefile
new file mode 100644
index 0000000..f52e949
--- /dev/null
+++ b/sys/modules/usb/ucycom/Makefile
@@ -0,0 +1,36 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/serial
+
+KMOD= ucycom
+SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
+ ucycom.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/udav/Makefile b/sys/modules/usb/udav/Makefile
new file mode 100644
index 0000000..b3944f0e
--- /dev/null
+++ b/sys/modules/usb/udav/Makefile
@@ -0,0 +1,37 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/net
+
+KMOD= if_udav
+SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
+ miibus_if.h opt_inet.h \
+ if_udav.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/udbp/Makefile b/sys/modules/usb/udbp/Makefile
new file mode 100644
index 0000000..13097d8
--- /dev/null
+++ b/sys/modules/usb/udbp/Makefile
@@ -0,0 +1,37 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/misc
+
+KMOD= udbp
+SRCS= opt_bus.h opt_usb.h opt_netgraph.h \
+ device_if.h bus_if.h usb_if.h usbdevs.h \
+ udbp.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/uether/Makefile b/sys/modules/usb/uether/Makefile
new file mode 100644
index 0000000..ade780f
--- /dev/null
+++ b/sys/modules/usb/uether/Makefile
@@ -0,0 +1,37 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/net
+
+KMOD= uether
+SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
+ miibus_if.h opt_inet.h \
+ usb_ethernet.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/ufm/Makefile b/sys/modules/usb/ufm/Makefile
new file mode 100644
index 0000000..a09ddec
--- /dev/null
+++ b/sys/modules/usb/ufm/Makefile
@@ -0,0 +1,36 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/misc
+
+KMOD= ufm
+SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h vnode_if.h usbdevs.h \
+ ufm.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/ufoma/Makefile b/sys/modules/usb/ufoma/Makefile
new file mode 100644
index 0000000..5a62576
--- /dev/null
+++ b/sys/modules/usb/ufoma/Makefile
@@ -0,0 +1,36 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/serial
+
+KMOD= ufoma
+SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
+ ufoma.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/uftdi/Makefile b/sys/modules/usb/uftdi/Makefile
new file mode 100644
index 0000000..6a6433d
--- /dev/null
+++ b/sys/modules/usb/uftdi/Makefile
@@ -0,0 +1,36 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/serial
+
+KMOD= uftdi
+SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
+ uftdi.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/ugensa/Makefile b/sys/modules/usb/ugensa/Makefile
new file mode 100644
index 0000000..975847a
--- /dev/null
+++ b/sys/modules/usb/ugensa/Makefile
@@ -0,0 +1,36 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/serial
+
+KMOD= ugensa
+SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
+ ugensa.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/uhci/Makefile b/sys/modules/usb/uhci/Makefile
new file mode 100644
index 0000000..d5204ef
--- /dev/null
+++ b/sys/modules/usb/uhci/Makefile
@@ -0,0 +1,38 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/controller
+
+KMOD= uhci
+SRCS= bus_if.h device_if.h usb_if.h \
+ opt_bus.h opt_usb.h \
+ uhci_pci.c uhci.c uhci.h \
+ pci_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/uhid/Makefile b/sys/modules/usb/uhid/Makefile
new file mode 100644
index 0000000..406ed36
--- /dev/null
+++ b/sys/modules/usb/uhid/Makefile
@@ -0,0 +1,36 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/input
+
+KMOD= uhid
+SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h vnode_if.h usbdevs.h \
+ uhid.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/uhso/Makefile b/sys/modules/usb/uhso/Makefile
new file mode 100644
index 0000000..b08dc42
--- /dev/null
+++ b/sys/modules/usb/uhso/Makefile
@@ -0,0 +1,37 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2010 Andrew Thompson. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/net
+
+KMOD= uhso
+SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
+ opt_inet.h \
+ uhso.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/uipaq/Makefile b/sys/modules/usb/uipaq/Makefile
new file mode 100644
index 0000000..cf87d18
--- /dev/null
+++ b/sys/modules/usb/uipaq/Makefile
@@ -0,0 +1,36 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/serial
+
+KMOD= uipaq
+SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
+ uipaq.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/ukbd/Makefile b/sys/modules/usb/ukbd/Makefile
new file mode 100644
index 0000000..e986191
--- /dev/null
+++ b/sys/modules/usb/ukbd/Makefile
@@ -0,0 +1,37 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/input
+
+KMOD= ukbd
+SRCS= opt_bus.h opt_compat.h opt_kbd.h opt_ukbd.h opt_usb.h \
+ device_if.h bus_if.h usb_if.h usbdevs.h \
+ ukbd.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/ulpt/Makefile b/sys/modules/usb/ulpt/Makefile
new file mode 100644
index 0000000..1e28742
--- /dev/null
+++ b/sys/modules/usb/ulpt/Makefile
@@ -0,0 +1,36 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/serial
+
+KMOD= ulpt
+SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h vnode_if.h usbdevs.h \
+ ulpt.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/umass/Makefile b/sys/modules/usb/umass/Makefile
new file mode 100644
index 0000000..d6f6974
--- /dev/null
+++ b/sys/modules/usb/umass/Makefile
@@ -0,0 +1,37 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/storage
+
+KMOD= umass
+SRCS= ata_if.h bus_if.h device_if.h usb_if.h vnode_if.h \
+ opt_usb.h opt_bus.h opt_cam.h opt_ata.h ata_if.h usbdevs.h \
+ umass.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/umct/Makefile b/sys/modules/usb/umct/Makefile
new file mode 100644
index 0000000..263fc40
--- /dev/null
+++ b/sys/modules/usb/umct/Makefile
@@ -0,0 +1,36 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/serial
+
+KMOD= umct
+SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
+ umct.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/umodem/Makefile b/sys/modules/usb/umodem/Makefile
new file mode 100644
index 0000000..c767573
--- /dev/null
+++ b/sys/modules/usb/umodem/Makefile
@@ -0,0 +1,36 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/serial
+
+KMOD= umodem
+SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
+ umodem.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/umoscom/Makefile b/sys/modules/usb/umoscom/Makefile
new file mode 100644
index 0000000..7851780
--- /dev/null
+++ b/sys/modules/usb/umoscom/Makefile
@@ -0,0 +1,36 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/serial
+
+KMOD= umoscom
+SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
+ umoscom.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/ums/Makefile b/sys/modules/usb/ums/Makefile
new file mode 100644
index 0000000..fb24f0d
--- /dev/null
+++ b/sys/modules/usb/ums/Makefile
@@ -0,0 +1,36 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/input
+
+KMOD= ums
+SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h vnode_if.h usbdevs.h \
+ ums.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/upgt/Makefile b/sys/modules/usb/upgt/Makefile
new file mode 100644
index 0000000..74aa145
--- /dev/null
+++ b/sys/modules/usb/upgt/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/usb/wlan
+
+KMOD = if_upgt
+SRCS = if_upgt.c if_upgtvar.h \
+ bus_if.h device_if.h \
+ opt_bus.h opt_usb.h usb_if.h usbdevs.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/uplcom/Makefile b/sys/modules/usb/uplcom/Makefile
new file mode 100644
index 0000000..c07e78b
--- /dev/null
+++ b/sys/modules/usb/uplcom/Makefile
@@ -0,0 +1,36 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/serial
+
+KMOD= uplcom
+SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
+ uplcom.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/ural/Makefile b/sys/modules/usb/ural/Makefile
new file mode 100644
index 0000000..7e605de
--- /dev/null
+++ b/sys/modules/usb/ural/Makefile
@@ -0,0 +1,36 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/wlan
+
+KMOD= if_ural
+SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
+ if_ural.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/urio/Makefile b/sys/modules/usb/urio/Makefile
new file mode 100644
index 0000000..07f238e
--- /dev/null
+++ b/sys/modules/usb/urio/Makefile
@@ -0,0 +1,37 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/storage
+
+KMOD= urio
+SRCS= ata_if.h bus_if.h device_if.h usb_if.h vnode_if.h \
+ opt_usb.h opt_bus.h opt_cam.h opt_ata.h ata_if.h usbdevs.h \
+ urio.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/urtw/Makefile b/sys/modules/usb/urtw/Makefile
new file mode 100644
index 0000000..e06ad06
--- /dev/null
+++ b/sys/modules/usb/urtw/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/usb/wlan
+
+KMOD = if_urtw
+SRCS = if_urtw.c if_urtwreg.h if_urtwvar.h \
+ bus_if.h device_if.h \
+ opt_bus.h opt_usb.h usb_if.h usbdevs.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/usb/Makefile b/sys/modules/usb/usb/Makefile
new file mode 100644
index 0000000..5b0104e
--- /dev/null
+++ b/sys/modules/usb/usb/Makefile
@@ -0,0 +1,42 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb $S/dev/usb/controller
+
+KMOD= usb
+SRCS= bus_if.h device_if.h usb_if.h usb_if.c vnode_if.h \
+ opt_usb.h opt_bus.h \
+ usbdevs.h usbdevs_data.h \
+ usb_busdma.c usb_controller.c usb_compat_linux.c usb_core.c usb_debug.c \
+ usb_dev.c usb_device.c usb_dynamic.c usb_error.c usb_generic.c \
+ usb_handle_request.c usb_hid.c usb_hub.c usb_lookup.c usb_mbuf.c \
+ usb_msctest.c usb_parse.c usb_process.c usb_request.c \
+ usb_transfer.c usb_util.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/usfs/Makefile b/sys/modules/usb/usfs/Makefile
new file mode 100644
index 0000000..ce4148f
--- /dev/null
+++ b/sys/modules/usb/usfs/Makefile
@@ -0,0 +1,37 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/storage
+
+KMOD= usfs
+SRCS= ata_if.h bus_if.h device_if.h usb_if.h vnode_if.h \
+ opt_usb.h opt_bus.h opt_cam.h opt_ata.h ata_if.h usbdevs.h \
+ ustorage_fs.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/uslcom/Makefile b/sys/modules/usb/uslcom/Makefile
new file mode 100644
index 0000000..adf3de7
--- /dev/null
+++ b/sys/modules/usb/uslcom/Makefile
@@ -0,0 +1,36 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/serial
+
+KMOD= uslcom
+SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
+ uslcom.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/uss820dci/Makefile b/sys/modules/usb/uss820dci/Makefile
new file mode 100644
index 0000000..743464a
--- /dev/null
+++ b/sys/modules/usb/uss820dci/Makefile
@@ -0,0 +1,42 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/controller
+
+KMOD= uss820dci
+SRCS= bus_if.h device_if.h usb_if.h \
+ opt_bus.h opt_usb.h \
+ uss820dci.c \
+ pci_if.h
+
+.if defined(HAS_ATMELARM)
+SRCS+= uss820dci_atmelarm.c
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/uvisor/Makefile b/sys/modules/usb/uvisor/Makefile
new file mode 100644
index 0000000..c483259
--- /dev/null
+++ b/sys/modules/usb/uvisor/Makefile
@@ -0,0 +1,36 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/serial
+
+KMOD= uvisor
+SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
+ uvisor.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/uvscom/Makefile b/sys/modules/usb/uvscom/Makefile
new file mode 100644
index 0000000..18589f1
--- /dev/null
+++ b/sys/modules/usb/uvscom/Makefile
@@ -0,0 +1,36 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/serial
+
+KMOD= uvscom
+SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
+ uvscom.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/usb/zyd/Makefile b/sys/modules/usb/zyd/Makefile
new file mode 100644
index 0000000..48dd9eb
--- /dev/null
+++ b/sys/modules/usb/zyd/Makefile
@@ -0,0 +1,36 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2008 Hans Petter Selasky. 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.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/wlan
+
+KMOD= if_zyd
+SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
+ if_zyd.c if_zydreg.h if_zydfw.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/utopia/Makefile b/sys/modules/utopia/Makefile
new file mode 100644
index 0000000..c1a4445
--- /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/vesa/Makefile b/sys/modules/vesa/Makefile
new file mode 100644
index 0000000..69a0c33
--- /dev/null
+++ b/sys/modules/vesa/Makefile
@@ -0,0 +1,13 @@
+# $FreeBSD$
+
+KMOD= vesa
+SRCS= opt_vga.h opt_vesa.h
+SRCS+= bus_if.h device_if.h pci_if.h
+
+.PATH: ${.CURDIR}/../../dev/fb
+SRCS+= vesa.c
+
+.PATH: ${.CURDIR}/../../dev/syscons
+SRCS+= scvesactl.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/vge/Makefile b/sys/modules/vge/Makefile
new file mode 100644
index 0000000..a06ee56
--- /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 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 0000000..500274c
--- /dev/null
+++ b/sys/modules/vkbd/Makefile
@@ -0,0 +1,17 @@
+# $Id: Makefile,v 1.1 2004/08/13 18:30:24 max Exp $
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/vkbd
+
+KMOD= vkbd
+SRCS= vkbd.c opt_compat.h opt_kbd.h
+
+.if !defined(KERNBUILDDIR)
+opt_compat.h:
+ echo "#define COMPAT_FREEBSD6 1" > ${.TARGET}
+
+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 0000000..cad169a
--- /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 0000000..e3ce623
--- /dev/null
+++ b/sys/modules/vr/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/vr
+
+KMOD= if_vr
+SRCS= if_vr.c 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 0000000..6293b1a
--- /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+= 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 0000000..77b63b5
--- /dev/null
+++ b/sys/modules/wb/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/wb
+
+KMOD= if_wb
+SRCS= if_wb.c 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 0000000..3d7cc71
--- /dev/null
+++ b/sys/modules/wi/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/wi
+
+KMOD= if_wi
+SRCS= 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
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/wlan/Makefile b/sys/modules/wlan/Makefile
new file mode 100644
index 0000000..79d5e75
--- /dev/null
+++ b/sys/modules/wlan/Makefile
@@ -0,0 +1,32 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../net80211
+
+KMOD= wlan
+SRCS= ieee80211.c ieee80211_action.c ieee80211_ageq.c ieee80211_amrr.c \
+ ieee80211_crypto.c ieee80211_crypto_none.c ieee80211_dfs.c \
+ ieee80211_freebsd.c ieee80211_input.c ieee80211_ioctl.c \
+ ieee80211_mesh.c ieee80211_node.c ieee80211_output.c ieee80211_phy.c \
+ ieee80211_power.c ieee80211_proto.c ieee80211_scan.c \
+ ieee80211_scan_sta.c ieee80211_radiotap.c ieee80211_ratectl.c \
+ ieee80211_regdomain.c ieee80211_rssadapt.c \
+ ieee80211_ht.c ieee80211_hwmp.c ieee80211_adhoc.c ieee80211_hostap.c \
+ ieee80211_monitor.c ieee80211_sta.c ieee80211_wds.c ieee80211_ddb.c
+SRCS+= bus_if.h device_if.h opt_inet.h opt_inet6.h opt_ipx.h opt_wlan.h \
+ opt_ddb.h
+
+.if !defined(KERNBUILDDIR)
+opt_wlan.h:
+ echo "#define IEEE80211_DEBUG 1" > ${.TARGET}
+ echo "#define IEEE80211_AMDPU_AGE 1" >> ${.TARGET}
+ echo "#define IEEE80211_SUPPORT_MESH 1" >> ${.TARGET}
+opt_inet.h:
+ echo "#define INET 1" > ${.TARGET}
+opt_ipx.h:
+ echo "#define IPX 1" > ${.TARGET}
+# override to get ddb support?
+opt_ddb.h:
+ :> ${.TARGET}
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/wlan_acl/Makefile b/sys/modules/wlan_acl/Makefile
new file mode 100644
index 0000000..6de7be4
--- /dev/null
+++ b/sys/modules/wlan_acl/Makefile
@@ -0,0 +1,14 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../net80211
+
+KMOD= wlan_acl
+SRCS= ieee80211_acl.c
+SRCS+= opt_wlan.h
+
+.if !defined(KERNBUILDDIR)
+opt_wlan.h:
+ echo "#define IEEE80211_DEBUG 1" > ${.TARGET}
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/wlan_amrr/Makefile b/sys/modules/wlan_amrr/Makefile
new file mode 100644
index 0000000..d459338
--- /dev/null
+++ b/sys/modules/wlan_amrr/Makefile
@@ -0,0 +1,14 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../net80211
+
+KMOD= wlan_amrr
+SRCS= ieee80211_amrr.c
+SRCS+= opt_wlan.h
+
+.if !defined(KERNBUILDDIR)
+opt_wlan.h:
+ echo "#define IEEE80211_DEBUG 1" > ${.TARGET}
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/wlan_ccmp/Makefile b/sys/modules/wlan_ccmp/Makefile
new file mode 100644
index 0000000..8655c80
--- /dev/null
+++ b/sys/modules/wlan_ccmp/Makefile
@@ -0,0 +1,16 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../net80211
+.PATH: ${.CURDIR}/../../crypto/rijndael
+
+KMOD= wlan_ccmp
+SRCS= ieee80211_crypto_ccmp.c
+SRCS+= rijndael-alg-fst.c rijndael-api.c
+SRCS+= opt_wlan.h
+
+.if !defined(KERNBUILDDIR)
+opt_wlan.h:
+ echo "#define IEEE80211_DEBUG 1" > ${.TARGET}
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/wlan_rssadapt/Makefile b/sys/modules/wlan_rssadapt/Makefile
new file mode 100644
index 0000000..be70989
--- /dev/null
+++ b/sys/modules/wlan_rssadapt/Makefile
@@ -0,0 +1,14 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../net80211
+
+KMOD= wlan_rssadapt
+SRCS= ieee80211_rssadapt.c
+SRCS+= opt_wlan.h
+
+.if !defined(KERNBUILDDIR)
+opt_wlan.h:
+ echo "#define IEEE80211_DEBUG 1" > ${.TARGET}
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/wlan_tkip/Makefile b/sys/modules/wlan_tkip/Makefile
new file mode 100644
index 0000000..46a7257
--- /dev/null
+++ b/sys/modules/wlan_tkip/Makefile
@@ -0,0 +1,14 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../net80211
+
+KMOD= wlan_tkip
+SRCS= ieee80211_crypto_tkip.c
+SRCS+= opt_wlan.h
+
+.if !defined(KERNBUILDDIR)
+opt_wlan.h:
+ echo "#define IEEE80211_DEBUG 1" > ${.TARGET}
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/wlan_wep/Makefile b/sys/modules/wlan_wep/Makefile
new file mode 100644
index 0000000..89fca2f
--- /dev/null
+++ b/sys/modules/wlan_wep/Makefile
@@ -0,0 +1,14 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../net80211
+
+KMOD= wlan_wep
+SRCS= ieee80211_crypto_wep.c
+SRCS+= opt_wlan.h
+
+.if !defined(KERNBUILDDIR)
+opt_wlan.h:
+ echo "#define IEEE80211_DEBUG 1" > ${.TARGET}
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/wlan_xauth/Makefile b/sys/modules/wlan_xauth/Makefile
new file mode 100644
index 0000000..ccab4d3
--- /dev/null
+++ b/sys/modules/wlan_xauth/Makefile
@@ -0,0 +1,14 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../net80211
+
+KMOD= wlan_xauth
+SRCS= ieee80211_xauth.c
+SRCS+= opt_wlan.h
+
+.if !defined(KERNBUILDDIR)
+opt_wlan.h:
+ echo "#define IEEE80211_DEBUG 1" > ${.TARGET}
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/wpi/Makefile b/sys/modules/wpi/Makefile
new file mode 100644
index 0000000..b6dbbc6
--- /dev/null
+++ b/sys/modules/wpi/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/wpi
+
+KMOD = if_wpi
+SRCS = if_wpi.c device_if.h bus_if.h pci_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/wpifw/Makefile b/sys/modules/wpifw/Makefile
new file mode 100644
index 0000000..aae1972
--- /dev/null
+++ b/sys/modules/wpifw/Makefile
@@ -0,0 +1,13 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../contrib/dev/wpi
+
+KMOD= wpifw
+FIRMWS= iwlwifi-3945-2.14.4.fw:wpifw:2144
+
+CLEANFILES= iwlwifi-3945-2.14.4.fw
+
+iwlwifi-3945-2.14.4.fw: ${.CURDIR}/../../contrib/dev/wpi/iwlwifi-3945-2.14.4.fw.uu
+ uudecode -p ${.CURDIR}/../../contrib/dev/wpi/iwlwifi-3945-2.14.4.fw.uu > ${.TARGET}
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/x86bios/Makefile b/sys/modules/x86bios/Makefile
new file mode 100644
index 0000000..3cab285
--- /dev/null
+++ b/sys/modules/x86bios/Makefile
@@ -0,0 +1,11 @@
+# $FreeBSD$
+
+KMOD= x86bios
+SRCS= opt_x86bios.h
+SRCS+= bus_if.h device_if.h pci_if.h
+
+.PATH: ${.CURDIR}/../../contrib/x86emu
+.PATH: ${.CURDIR}/../../compat/x86bios
+SRCS+= x86bios.c x86emu.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/xe/Makefile b/sys/modules/xe/Makefile
new file mode 100644
index 0000000..f900854
--- /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/xfs/Makefile b/sys/modules/xfs/Makefile
new file mode 100644
index 0000000..e713b05
--- /dev/null
+++ b/sys/modules/xfs/Makefile
@@ -0,0 +1,93 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../gnu/fs/xfs \
+ ${.CURDIR}/../../gnu/fs/xfs/FreeBSD \
+ ${.CURDIR}/../../gnu/fs/xfs/FreeBSD/support
+
+KMOD= xfs
+
+WERROR=
+
+SRCS = vnode_if.h \
+ xfs_alloc.c \
+ xfs_alloc_btree.c \
+ xfs_bit.c \
+ xfs_bmap.c \
+ xfs_bmap_btree.c \
+ xfs_btree.c \
+ xfs_buf_item.c \
+ xfs_da_btree.c \
+ xfs_dir.c \
+ xfs_dir2.c \
+ xfs_dir2_block.c \
+ xfs_dir2_data.c \
+ xfs_dir2_leaf.c \
+ xfs_dir2_node.c \
+ xfs_dir2_sf.c \
+ xfs_dir2_trace.c \
+ xfs_dir_leaf.c \
+ xfs_error.c \
+ xfs_extfree_item.c \
+ xfs_freebsd_iget.c \
+ xfs_fsops.c \
+ xfs_ialloc.c \
+ xfs_ialloc_btree.c \
+ xfs_inode.c \
+ xfs_inode_item.c \
+ xfs_iocore.c \
+ xfs_itable.c \
+ xfs_dfrag.c \
+ xfs_log.c \
+ xfs_log_recover.c \
+ xfs_mount.c \
+ xfs_rename.c \
+ xfs_trans.c \
+ xfs_trans_ail.c \
+ xfs_trans_buf.c \
+ xfs_trans_extfree.c \
+ xfs_trans_inode.c \
+ xfs_trans_item.c \
+ xfs_utils.c \
+ xfs_vfsops.c \
+ xfs_vnodeops.c \
+ xfs_rw.c \
+ xfs_iget.c \
+ xfs_attr_leaf.c \
+ xfs_attr.c \
+ xfs_dmops.c \
+ xfs_qmops.c \
+ xfs_mountops.c \
+ xfs_vnops.c \
+ xfs_frw.c \
+ xfs_iomap.c \
+ xfs_buf.c \
+ xfs_globals.c \
+ xfs_dmistubs.c \
+ xfs_behavior.c \
+ xfs_super.c \
+ xfs_stats.c \
+ xfs_sysctl.c \
+ xfs_vfs.c \
+ xfs_vnode.c \
+ xfs_fs_subr.c \
+ xfs_ioctl.c \
+ debug.c \
+ ktrace.c \
+ mrlock.c \
+ uuid.c \
+ kmem.c \
+ kdb.c
+
+SRCS+= opt_ddb.h
+
+.include <bsd.kmod.mk>
+
+CFLAGS+= -I${.CURDIR}/../../gnu/fs/xfs/FreeBSD \
+ -I${.CURDIR}/../../gnu/fs/xfs/FreeBSD/support \
+ -I${.CURDIR}/../../gnu/fs/xfs
+
+#
+# XFS sources trigger missing-prototypes warnings.
+# Disable them here.
+#
+CWARNFLAGS+= -Wno-missing-prototypes
diff --git a/sys/modules/xl/Makefile b/sys/modules/xl/Makefile
new file mode 100644
index 0000000..3898ad4
--- /dev/null
+++ b/sys/modules/xl/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/xl
+
+KMOD= if_xl
+SRCS= if_xl.c device_if.h bus_if.h pci_if.h
+SRCS+= miibus_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/zfs/Makefile b/sys/modules/zfs/Makefile
new file mode 100644
index 0000000..4554088
--- /dev/null
+++ b/sys/modules/zfs/Makefile
@@ -0,0 +1,99 @@
+# $FreeBSD$
+
+KMOD= zfs
+
+SRCS= vnode_if.h
+
+SUNW= ${.CURDIR}/../../cddl/contrib/opensolaris
+
+.PATH: ${SUNW}/common/acl
+SRCS+= acl_common.c
+.PATH: ${SUNW}/common/avl
+SRCS+= avl.c
+.PATH: ${SUNW}/common/nvpair
+SRCS+= nvpair.c
+.PATH: ${.CURDIR}/../../cddl/contrib/opensolaris/common/unicode
+SRCS+= u8_textprep.c
+
+.PATH: ${.CURDIR}/../../cddl/compat/opensolaris/kern
+SRCS+= opensolaris_acl.c
+SRCS+= opensolaris_kmem.c
+SRCS+= opensolaris_kobj.c
+SRCS+= opensolaris_kstat.c
+SRCS+= opensolaris_lookup.c
+SRCS+= opensolaris_policy.c
+SRCS+= opensolaris_string.c
+SRCS+= opensolaris_taskq.c
+SRCS+= opensolaris_vfs.c
+SRCS+= opensolaris_zone.c
+
+.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "ia64" || ${MACHINE_ARCH} == "sparc64"
+.PATH: ${SUNW}/common/atomic/${MACHINE_ARCH}
+SRCS+= opensolaris_atomic.S
+.else
+.PATH: ${.CURDIR}/../../cddl/compat/opensolaris/kern
+SRCS+= opensolaris_atomic.c
+.endif
+
+.PATH: ${SUNW}/uts/common/fs
+SRCS+= gfs.c
+SRCS+= vnode.c
+
+.PATH: ${SUNW}/uts/common/os
+SRCS+= callb.c
+SRCS+= list.c
+SRCS+= nvpair_alloc_system.c
+
+.PATH: ${SUNW}/uts/common/zmod
+SRCS+= adler32.c
+SRCS+= opensolaris_crc32.c
+SRCS+= deflate.c
+SRCS+= inffast.c
+SRCS+= inflate.c
+SRCS+= inftrees.c
+SRCS+= trees.c
+SRCS+= zmod.c
+SRCS+= zmod_subr.c
+SRCS+= zutil.c
+
+.PATH: ${SUNW}/common/zfs
+.include "${SUNW}/uts/common/Makefile.files"
+.PATH: ${SUNW}/uts/common/fs/zfs
+ZFS_SRCS= ${ZFS_OBJS:C/.o$/.c/}
+SRCS+= ${ZFS_SRCS}
+SRCS+= vdev_geom.c
+
+# Use UMA for ZIO allocation.
+CFLAGS+=-DZIO_USE_UMA
+
+# Use FreeBSD's namecache.
+CFLAGS+=-DFREEBSD_NAMECACHE
+
+CFLAGS+=-I${.CURDIR}/../../cddl/compat/opensolaris
+CFLAGS+=-I${SUNW}/uts/common/fs/zfs
+CFLAGS+=-I${SUNW}/uts/common/zmod
+CFLAGS+=-I${SUNW}/uts/common
+CFLAGS+=-I${.CURDIR}/../..
+CFLAGS+=-I${SUNW}/common/zfs
+CFLAGS+=-I${SUNW}/common
+CFLAGS+=-I${.CURDIR}/../../../include
+CFLAGS+=-DBUILDING_ZFS
+
+#CFLAGS+=-DDEBUG=1
+#DEBUG_FLAGS=-g
+
+.include <bsd.kmod.mk>
+
+CWARNFLAGS+=-Wno-unknown-pragmas
+CWARNFLAGS+=-Wno-missing-prototypes
+CWARNFLAGS+=-Wno-undef
+CWARNFLAGS+=-Wno-strict-prototypes
+CWARNFLAGS+=-Wno-cast-qual
+CWARNFLAGS+=-Wno-parentheses
+CWARNFLAGS+=-Wno-redundant-decls
+CWARNFLAGS+=-Wno-missing-braces
+CWARNFLAGS+=-Wno-uninitialized
+CWARNFLAGS+=-Wno-unused
+CWARNFLAGS+=-Wno-inline
+CWARNFLAGS+=-Wno-switch
+CWARNFLAGS+=-Wno-pointer-arith
diff --git a/sys/modules/zlib/Makefile b/sys/modules/zlib/Makefile
new file mode 100644
index 0000000..0a475b5
--- /dev/null
+++ b/sys/modules/zlib/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../net
+
+KMOD= zlib
+SRCS= zlib.c
+
+.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud