aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/netgraph
diff options
context:
space:
mode:
Diffstat (limited to 'sys/modules/netgraph')
-rw-r--r--sys/modules/netgraph/Makefile64
-rw-r--r--sys/modules/netgraph/Makefile.inc7
-rw-r--r--sys/modules/netgraph/UI/Makefile6
-rw-r--r--sys/modules/netgraph/async/Makefile6
-rw-r--r--sys/modules/netgraph/bluetooth/Makefile11
-rw-r--r--sys/modules/netgraph/bluetooth/Makefile.inc2
-rw-r--r--sys/modules/netgraph/bluetooth/bluetooth/Makefile12
-rw-r--r--sys/modules/netgraph/bluetooth/hci/Makefile12
-rw-r--r--sys/modules/netgraph/bluetooth/l2cap/Makefile12
-rw-r--r--sys/modules/netgraph/bluetooth/socket/Makefile17
-rw-r--r--sys/modules/netgraph/bluetooth/ubt/Makefile12
-rw-r--r--sys/modules/netgraph/bluetooth/ubtbcmfw/Makefile12
-rw-r--r--sys/modules/netgraph/bpf/Makefile8
-rw-r--r--sys/modules/netgraph/bridge/Makefile5
-rw-r--r--sys/modules/netgraph/car/Makefile5
-rw-r--r--sys/modules/netgraph/checksum/Makefile8
-rw-r--r--sys/modules/netgraph/cisco/Makefile6
-rw-r--r--sys/modules/netgraph/deflate/Makefile5
-rw-r--r--sys/modules/netgraph/device/Makefile6
-rw-r--r--sys/modules/netgraph/echo/Makefile6
-rw-r--r--sys/modules/netgraph/eiface/Makefile5
-rw-r--r--sys/modules/netgraph/etf/Makefile6
-rw-r--r--sys/modules/netgraph/ether/Makefile5
-rw-r--r--sys/modules/netgraph/ether_echo/Makefile6
-rw-r--r--sys/modules/netgraph/frame_relay/Makefile6
-rw-r--r--sys/modules/netgraph/gif/Makefile5
-rw-r--r--sys/modules/netgraph/gif_demux/Makefile5
-rw-r--r--sys/modules/netgraph/hole/Makefile6
-rw-r--r--sys/modules/netgraph/hub/Makefile5
-rw-r--r--sys/modules/netgraph/iface/Makefile6
-rw-r--r--sys/modules/netgraph/ip_input/Makefile5
-rw-r--r--sys/modules/netgraph/ipfw/Makefile5
-rw-r--r--sys/modules/netgraph/ksocket/Makefile5
-rw-r--r--sys/modules/netgraph/l2tp/Makefile5
-rw-r--r--sys/modules/netgraph/lmi/Makefile6
-rw-r--r--sys/modules/netgraph/macfilter/Makefile8
-rw-r--r--sys/modules/netgraph/mppc/Makefile30
-rw-r--r--sys/modules/netgraph/nat/Makefile5
-rw-r--r--sys/modules/netgraph/netflow/Makefile10
-rw-r--r--sys/modules/netgraph/netgraph/Makefile8
-rw-r--r--sys/modules/netgraph/one2many/Makefile5
-rw-r--r--sys/modules/netgraph/patch/Makefile5
-rw-r--r--sys/modules/netgraph/pipe/Makefile5
-rw-r--r--sys/modules/netgraph/ppp/Makefile6
-rw-r--r--sys/modules/netgraph/pppoe/Makefile6
-rw-r--r--sys/modules/netgraph/pptpgre/Makefile6
-rw-r--r--sys/modules/netgraph/pred1/Makefile5
-rw-r--r--sys/modules/netgraph/rfc1490/Makefile6
-rw-r--r--sys/modules/netgraph/sample/Makefile5
-rw-r--r--sys/modules/netgraph/socket/Makefile6
-rw-r--r--sys/modules/netgraph/source/Makefile7
-rw-r--r--sys/modules/netgraph/split/Makefile6
-rw-r--r--sys/modules/netgraph/tag/Makefile5
-rw-r--r--sys/modules/netgraph/tcpmss/Makefile5
-rw-r--r--sys/modules/netgraph/tee/Makefile6
-rw-r--r--sys/modules/netgraph/tty/Makefile6
-rw-r--r--sys/modules/netgraph/vjc/Makefile8
-rw-r--r--sys/modules/netgraph/vlan/Makefile5
-rw-r--r--sys/modules/netgraph/vlan_rotate/Makefile5
59 files changed, 472 insertions, 0 deletions
diff --git a/sys/modules/netgraph/Makefile b/sys/modules/netgraph/Makefile
new file mode 100644
index 000000000000..94560d5c51d7
--- /dev/null
+++ b/sys/modules/netgraph/Makefile
@@ -0,0 +1,64 @@
+# $Whistle: Makefile,v 1.5 1999/01/24 06:48:37 archie Exp $
+
+SYSDIR?=${SRCTOP}/sys
+.include "${SYSDIR}/conf/kern.opts.mk"
+
+SUBDIR= async \
+ ${_bluetooth} \
+ bpf \
+ bridge \
+ car \
+ checksum \
+ cisco \
+ deflate \
+ device \
+ echo \
+ eiface \
+ etf \
+ ether \
+ ether_echo \
+ frame_relay \
+ gif \
+ gif_demux \
+ hole \
+ hub \
+ iface \
+ ip_input \
+ ipfw \
+ ksocket \
+ l2tp \
+ lmi \
+ macfilter \
+ ${_mppc} \
+ nat \
+ netflow \
+ netgraph \
+ one2many \
+ patch \
+ pipe \
+ ppp \
+ pppoe \
+ pptpgre \
+ pred1 \
+ rfc1490 \
+ socket \
+ source \
+ split \
+ tag \
+ tcpmss \
+ tee \
+ tty \
+ UI \
+ vjc \
+ vlan \
+ vlan_rotate
+
+.if ${MK_BLUETOOTH} != "no" || defined(ALL_MODULES)
+_bluetooth= bluetooth
+.endif
+
+.if ${MK_CRYPT} != "no" && exists(${SYSDIR}/crypto/rc4/rc4.c)
+_mppc= mppc
+.endif
+
+.include <bsd.subdir.mk>
diff --git a/sys/modules/netgraph/Makefile.inc b/sys/modules/netgraph/Makefile.inc
new file mode 100644
index 000000000000..99a84c395852
--- /dev/null
+++ b/sys/modules/netgraph/Makefile.inc
@@ -0,0 +1,7 @@
+# $Whistle: Makefile.inc,v 1.4 1999/01/19 23:46:16 archie Exp $
+
+.PATH: ${SRCTOP}/sys/netgraph
+
+SRCS+= opt_netgraph.h
+
+.include "../Makefile.inc"
diff --git a/sys/modules/netgraph/UI/Makefile b/sys/modules/netgraph/UI/Makefile
new file mode 100644
index 000000000000..725f1ee4db6f
--- /dev/null
+++ b/sys/modules/netgraph/UI/Makefile
@@ -0,0 +1,6 @@
+# $Whistle: Makefile,v 1.2 1999/01/19 19:39:20 archie Exp $
+
+KMOD= ng_UI
+SRCS= ng_UI.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/async/Makefile b/sys/modules/netgraph/async/Makefile
new file mode 100644
index 000000000000..e14bae855bce
--- /dev/null
+++ b/sys/modules/netgraph/async/Makefile
@@ -0,0 +1,6 @@
+# $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/bluetooth/Makefile b/sys/modules/netgraph/bluetooth/Makefile
new file mode 100644
index 000000000000..2587dac65150
--- /dev/null
+++ b/sys/modules/netgraph/bluetooth/Makefile
@@ -0,0 +1,11 @@
+# $Id: Makefile,v 1.2 2003/04/27 00:22:11 max Exp $
+
+SUBDIR= \
+ bluetooth \
+ hci \
+ l2cap \
+ socket \
+ ubt \
+ ubtbcmfw
+
+.include <bsd.subdir.mk>
diff --git a/sys/modules/netgraph/bluetooth/Makefile.inc b/sys/modules/netgraph/bluetooth/Makefile.inc
new file mode 100644
index 000000000000..d3b5cbd3a79b
--- /dev/null
+++ b/sys/modules/netgraph/bluetooth/Makefile.inc
@@ -0,0 +1,2 @@
+
+.include "../Makefile.inc"
diff --git a/sys/modules/netgraph/bluetooth/bluetooth/Makefile b/sys/modules/netgraph/bluetooth/bluetooth/Makefile
new file mode 100644
index 000000000000..b24bec15ca57
--- /dev/null
+++ b/sys/modules/netgraph/bluetooth/bluetooth/Makefile
@@ -0,0 +1,12 @@
+# $Id: Makefile,v 1.1 2002/11/24 20:39:57 max Exp $
+
+.PATH: ${SRCTOP}/sys/netgraph/bluetooth/common
+
+CFLAGS+= -I${SRCTOP}/sys/netgraph/bluetooth/include
+
+KMOD= ng_bluetooth
+SRCS= ng_bluetooth.c
+
+EXPORT_SYMS= YES
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/bluetooth/hci/Makefile b/sys/modules/netgraph/bluetooth/hci/Makefile
new file mode 100644
index 000000000000..7d648106a393
--- /dev/null
+++ b/sys/modules/netgraph/bluetooth/hci/Makefile
@@ -0,0 +1,12 @@
+# $Id: Makefile,v 1.1 2002/11/24 20:40:05 max Exp $
+
+.PATH: ${SRCTOP}/sys/netgraph/bluetooth/hci
+
+CFLAGS+= -I${SRCTOP}/sys/netgraph/bluetooth/include \
+ -I${SRCTOP}/sys/netgraph/bluetooth/hci
+
+KMOD= ng_hci
+SRCS= ng_hci_main.c ng_hci_cmds.c ng_hci_evnt.c \
+ ng_hci_ulpi.c ng_hci_misc.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/bluetooth/l2cap/Makefile b/sys/modules/netgraph/bluetooth/l2cap/Makefile
new file mode 100644
index 000000000000..2008e953a108
--- /dev/null
+++ b/sys/modules/netgraph/bluetooth/l2cap/Makefile
@@ -0,0 +1,12 @@
+# $Id: Makefile,v 1.1 2002/11/24 20:40:11 max Exp $
+
+.PATH: ${SRCTOP}/sys/netgraph/bluetooth/l2cap
+
+CFLAGS+= -I${SRCTOP}/sys/netgraph/bluetooth/include \
+ -I${SRCTOP}/sys/netgraph/bluetooth/l2cap
+
+KMOD= ng_l2cap
+SRCS= ng_l2cap_main.c ng_l2cap_cmds.c ng_l2cap_evnt.c \
+ ng_l2cap_ulpi.c ng_l2cap_llpi.c ng_l2cap_misc.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/bluetooth/socket/Makefile b/sys/modules/netgraph/bluetooth/socket/Makefile
new file mode 100644
index 000000000000..2abfdc8b9d86
--- /dev/null
+++ b/sys/modules/netgraph/bluetooth/socket/Makefile
@@ -0,0 +1,17 @@
+# $Id: Makefile,v 1.2 2003/01/12 23:37:31 max Exp $
+
+.PATH: ${SRCTOP}/sys/netgraph/bluetooth/socket
+
+CFLAGS+= -I${SRCTOP}/sys/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
+
+EXPORT_SYMS= YES
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/bluetooth/ubt/Makefile b/sys/modules/netgraph/bluetooth/ubt/Makefile
new file mode 100644
index 000000000000..6ef7da5fbfb2
--- /dev/null
+++ b/sys/modules/netgraph/bluetooth/ubt/Makefile
@@ -0,0 +1,12 @@
+# $Id: Makefile,v 1.2 2003/03/22 23:44:34 max Exp $
+
+.PATH: ${SRCTOP}/sys/netgraph/bluetooth/drivers/ubt
+
+CFLAGS+= -I${SRCTOP}/sys/netgraph/bluetooth/include \
+ -I${SRCTOP}/sys/netgraph/bluetooth/drivers/ubt
+
+KMOD= ng_ubt
+SRCS= ng_ubt.c ng_ubt_intel.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 000000000000..1387bcc5a875
--- /dev/null
+++ b/sys/modules/netgraph/bluetooth/ubtbcmfw/Makefile
@@ -0,0 +1,12 @@
+# $Id: Makefile,v 1.1 2003/04/27 00:22:12 max Exp $
+
+.PATH: ${SRCTOP}/sys/netgraph/bluetooth/drivers/ubtbcmfw
+
+CFLAGS+= -I${SRCTOP}/sys/netgraph/bluetooth/include \
+ -I${SRCTOP}/sys/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 000000000000..ec77a9af604e
--- /dev/null
+++ b/sys/modules/netgraph/bpf/Makefile
@@ -0,0 +1,8 @@
+# $Whistle: Makefile,v 1.1 1999/12/03 01:44:28 archie Exp $
+
+.PATH: ${SRCTOP}/sys/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 000000000000..77ed20d85ce9
--- /dev/null
+++ b/sys/modules/netgraph/bridge/Makefile
@@ -0,0 +1,5 @@
+
+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 000000000000..b3ca9ab9d3b4
--- /dev/null
+++ b/sys/modules/netgraph/car/Makefile
@@ -0,0 +1,5 @@
+
+KMOD= ng_car
+SRCS= ng_car.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/checksum/Makefile b/sys/modules/netgraph/checksum/Makefile
new file mode 100644
index 000000000000..4b41bce3bc58
--- /dev/null
+++ b/sys/modules/netgraph/checksum/Makefile
@@ -0,0 +1,8 @@
+
+SYSDIR?=${SRCTOP}/sys
+.include "${SYSDIR}/conf/kern.opts.mk"
+
+KMOD= ng_checksum
+SRCS= ng_checksum.c opt_inet.h opt_inet6.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/cisco/Makefile b/sys/modules/netgraph/cisco/Makefile
new file mode 100644
index 000000000000..4f14df40cca0
--- /dev/null
+++ b/sys/modules/netgraph/cisco/Makefile
@@ -0,0 +1,6 @@
+# $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 000000000000..b6f505fc8b8d
--- /dev/null
+++ b/sys/modules/netgraph/deflate/Makefile
@@ -0,0 +1,5 @@
+
+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 000000000000..23be18bd6c18
--- /dev/null
+++ b/sys/modules/netgraph/device/Makefile
@@ -0,0 +1,6 @@
+KMOD= ng_device
+SRCS= ng_device.c
+
+SRCS+= device_if.h vnode_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/echo/Makefile b/sys/modules/netgraph/echo/Makefile
new file mode 100644
index 000000000000..f84a17d7a32b
--- /dev/null
+++ b/sys/modules/netgraph/echo/Makefile
@@ -0,0 +1,6 @@
+# $Whistle: Makefile,v 1.2 1999/01/19 19:39:20 archie Exp $
+
+KMOD= ng_echo
+SRCS= ng_echo.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/eiface/Makefile b/sys/modules/netgraph/eiface/Makefile
new file mode 100644
index 000000000000..5c7b4fe46b34
--- /dev/null
+++ b/sys/modules/netgraph/eiface/Makefile
@@ -0,0 +1,5 @@
+
+KMOD= ng_eiface
+SRCS= ng_eiface.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/etf/Makefile b/sys/modules/netgraph/etf/Makefile
new file mode 100644
index 000000000000..2bec0d6b2bf0
--- /dev/null
+++ b/sys/modules/netgraph/etf/Makefile
@@ -0,0 +1,6 @@
+# Ethertype filter
+
+KMOD= ng_etf
+SRCS= ng_etf.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/ether/Makefile b/sys/modules/netgraph/ether/Makefile
new file mode 100644
index 000000000000..7bfa7b1c0630
--- /dev/null
+++ b/sys/modules/netgraph/ether/Makefile
@@ -0,0 +1,5 @@
+
+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 000000000000..b8a2bcb555ff
--- /dev/null
+++ b/sys/modules/netgraph/ether_echo/Makefile
@@ -0,0 +1,6 @@
+# $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/frame_relay/Makefile b/sys/modules/netgraph/frame_relay/Makefile
new file mode 100644
index 000000000000..9a7e21cad64c
--- /dev/null
+++ b/sys/modules/netgraph/frame_relay/Makefile
@@ -0,0 +1,6 @@
+# $Whistle: Makefile,v 1.1 1999/01/19 19:39:21 archie Exp $
+
+KMOD= ng_frame_relay
+SRCS= ng_frame_relay.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/gif/Makefile b/sys/modules/netgraph/gif/Makefile
new file mode 100644
index 000000000000..e7897492fa2c
--- /dev/null
+++ b/sys/modules/netgraph/gif/Makefile
@@ -0,0 +1,5 @@
+
+KMOD= ng_gif
+SRCS= ng_gif.c opt_inet.h opt_inet6.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/gif_demux/Makefile b/sys/modules/netgraph/gif_demux/Makefile
new file mode 100644
index 000000000000..d95bf3d2d66e
--- /dev/null
+++ b/sys/modules/netgraph/gif_demux/Makefile
@@ -0,0 +1,5 @@
+
+KMOD= ng_gif_demux
+SRCS= ng_gif_demux.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/hole/Makefile b/sys/modules/netgraph/hole/Makefile
new file mode 100644
index 000000000000..3259e37dceb7
--- /dev/null
+++ b/sys/modules/netgraph/hole/Makefile
@@ -0,0 +1,6 @@
+# $Whistle: Makefile,v 1.2 1999/01/19 19:39:21 archie Exp $
+
+KMOD= ng_hole
+SRCS= ng_hole.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/hub/Makefile b/sys/modules/netgraph/hub/Makefile
new file mode 100644
index 000000000000..5829c1609b32
--- /dev/null
+++ b/sys/modules/netgraph/hub/Makefile
@@ -0,0 +1,5 @@
+
+KMOD= ng_hub
+SRCS= ng_hub.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/iface/Makefile b/sys/modules/netgraph/iface/Makefile
new file mode 100644
index 000000000000..78a9e0cfcf08
--- /dev/null
+++ b/sys/modules/netgraph/iface/Makefile
@@ -0,0 +1,6 @@
+# $Whistle: Makefile,v 1.2 1999/01/19 19:39:21 archie Exp $
+
+KMOD= ng_iface
+SRCS= ng_iface.c opt_inet.h opt_inet6.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/ip_input/Makefile b/sys/modules/netgraph/ip_input/Makefile
new file mode 100644
index 000000000000..7aa3009ee8c7
--- /dev/null
+++ b/sys/modules/netgraph/ip_input/Makefile
@@ -0,0 +1,5 @@
+
+KMOD= ng_ip_input
+SRCS= ng_ip_input.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/ipfw/Makefile b/sys/modules/netgraph/ipfw/Makefile
new file mode 100644
index 000000000000..bdc23e7039ea
--- /dev/null
+++ b/sys/modules/netgraph/ipfw/Makefile
@@ -0,0 +1,5 @@
+
+KMOD= ng_ipfw
+SRCS= ng_ipfw.c opt_inet.h opt_inet6.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/ksocket/Makefile b/sys/modules/netgraph/ksocket/Makefile
new file mode 100644
index 000000000000..5e05eb1cc620
--- /dev/null
+++ b/sys/modules/netgraph/ksocket/Makefile
@@ -0,0 +1,5 @@
+
+KMOD= ng_ksocket
+SRCS= ng_ksocket.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/l2tp/Makefile b/sys/modules/netgraph/l2tp/Makefile
new file mode 100644
index 000000000000..7ff128ef6bc7
--- /dev/null
+++ b/sys/modules/netgraph/l2tp/Makefile
@@ -0,0 +1,5 @@
+
+KMOD= ng_l2tp
+SRCS= ng_l2tp.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/lmi/Makefile b/sys/modules/netgraph/lmi/Makefile
new file mode 100644
index 000000000000..cba330b1626c
--- /dev/null
+++ b/sys/modules/netgraph/lmi/Makefile
@@ -0,0 +1,6 @@
+# $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/macfilter/Makefile b/sys/modules/netgraph/macfilter/Makefile
new file mode 100644
index 000000000000..c52a66dc0c2a
--- /dev/null
+++ b/sys/modules/netgraph/macfilter/Makefile
@@ -0,0 +1,8 @@
+
+KMOD= ng_macfilter
+SRCS= ng_macfilter.c
+
+.include <bsd.kmod.mk>
+
+#CFLAGS+= -DNG_MACFILTER_DEBUG
+#CFLAGS+= -DNG_MACFILTER_DEBUG_RECVDATA
diff --git a/sys/modules/netgraph/mppc/Makefile b/sys/modules/netgraph/mppc/Makefile
new file mode 100644
index 000000000000..58110592aa14
--- /dev/null
+++ b/sys/modules/netgraph/mppc/Makefile
@@ -0,0 +1,30 @@
+# $Whistle: Makefile,v 1.1 1999/12/08 20:20:39 archie Exp $
+
+KMOD= ng_mppc
+SRCS= ng_mppc.c opt_netgraph.h
+
+NETGRAPH_MPPC_COMPRESSION?= 1
+NETGRAPH_MPPC_ENCRYPTION?= 1
+
+.if ${NETGRAPH_MPPC_COMPRESSION} > 0
+.PATH: ${SRCTOP}/sys/net
+SRCS+= mppcc.c mppcd.c
+.endif
+
+.if ${NETGRAPH_MPPC_ENCRYPTION} > 0
+.PATH: ${SRCTOP}/sys/crypto
+SRCS+= sha1.c
+.endif
+
+.if !defined(KERNBUILDDIR)
+opt_netgraph.h:
+ :> ${.TARGET}
+.if ${NETGRAPH_MPPC_COMPRESSION} > 0
+ echo "#define NETGRAPH_MPPC_COMPRESSION 1" >> ${.TARGET}
+.endif
+.if ${NETGRAPH_MPPC_ENCRYPTION} > 0
+ echo "#define NETGRAPH_MPPC_ENCRYPTION 1" >> ${.TARGET}
+.endif
+.endif
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/nat/Makefile b/sys/modules/netgraph/nat/Makefile
new file mode 100644
index 000000000000..4569cfddfbe5
--- /dev/null
+++ b/sys/modules/netgraph/nat/Makefile
@@ -0,0 +1,5 @@
+
+KMOD= ng_nat
+SRCS= ng_nat.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/netflow/Makefile b/sys/modules/netgraph/netflow/Makefile
new file mode 100644
index 000000000000..c73e9ac41680
--- /dev/null
+++ b/sys/modules/netgraph/netflow/Makefile
@@ -0,0 +1,10 @@
+#
+# Author: Gleb Smirnoff <glebius@freebsd.org>
+#
+
+.PATH: ${SRCTOP}/sys/netgraph/netflow
+
+KMOD= ng_netflow
+SRCS= ng_netflow.c netflow.c netflow_v9.c opt_inet.h opt_inet6.h opt_route.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/netgraph/Makefile b/sys/modules/netgraph/netgraph/Makefile
new file mode 100644
index 000000000000..7da7ce9d320a
--- /dev/null
+++ b/sys/modules/netgraph/netgraph/Makefile
@@ -0,0 +1,8 @@
+# $Whistle: Makefile,v 1.2 1999/01/19 19:39:22 archie Exp $
+
+KMOD= netgraph
+SRCS= ng_base.c ng_parse.c
+
+EXPORT_SYMS= YES
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/one2many/Makefile b/sys/modules/netgraph/one2many/Makefile
new file mode 100644
index 000000000000..07596a73114c
--- /dev/null
+++ b/sys/modules/netgraph/one2many/Makefile
@@ -0,0 +1,5 @@
+
+KMOD= ng_one2many
+SRCS= ng_one2many.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/patch/Makefile b/sys/modules/netgraph/patch/Makefile
new file mode 100644
index 000000000000..ebbae47cf0ab
--- /dev/null
+++ b/sys/modules/netgraph/patch/Makefile
@@ -0,0 +1,5 @@
+
+KMOD= ng_patch
+SRCS= ng_patch.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/pipe/Makefile b/sys/modules/netgraph/pipe/Makefile
new file mode 100644
index 000000000000..68b5d1a7c1eb
--- /dev/null
+++ b/sys/modules/netgraph/pipe/Makefile
@@ -0,0 +1,5 @@
+
+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 000000000000..7ab2b8d90750
--- /dev/null
+++ b/sys/modules/netgraph/ppp/Makefile
@@ -0,0 +1,6 @@
+# $Whistle: Makefile,v 1.1 1999/01/24 02:52:12 archie Exp $
+
+KMOD= ng_ppp
+SRCS= ng_ppp.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/pppoe/Makefile b/sys/modules/netgraph/pppoe/Makefile
new file mode 100644
index 000000000000..26aa4dd0fa6d
--- /dev/null
+++ b/sys/modules/netgraph/pppoe/Makefile
@@ -0,0 +1,6 @@
+# $Whistle: Makefile,v 1.1 1999/01/19 19:39:21 archie Exp $
+
+KMOD= ng_pppoe
+SRCS= ng_pppoe.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/pptpgre/Makefile b/sys/modules/netgraph/pptpgre/Makefile
new file mode 100644
index 000000000000..75931e902feb
--- /dev/null
+++ b/sys/modules/netgraph/pptpgre/Makefile
@@ -0,0 +1,6 @@
+# $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 000000000000..a4c95fdbb97e
--- /dev/null
+++ b/sys/modules/netgraph/pred1/Makefile
@@ -0,0 +1,5 @@
+
+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 000000000000..77f22bb449bc
--- /dev/null
+++ b/sys/modules/netgraph/rfc1490/Makefile
@@ -0,0 +1,6 @@
+# $Whistle: Makefile,v 1.2 1999/01/19 19:39:22 archie Exp $
+
+KMOD= ng_rfc1490
+SRCS= ng_rfc1490.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/sample/Makefile b/sys/modules/netgraph/sample/Makefile
new file mode 100644
index 000000000000..d675a8b84441
--- /dev/null
+++ b/sys/modules/netgraph/sample/Makefile
@@ -0,0 +1,5 @@
+
+KMOD= ng_sample
+SRCS= ng_sample.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/socket/Makefile b/sys/modules/netgraph/socket/Makefile
new file mode 100644
index 000000000000..9f91e9300579
--- /dev/null
+++ b/sys/modules/netgraph/socket/Makefile
@@ -0,0 +1,6 @@
+# $Whistle: Makefile,v 1.2 1999/01/19 19:39:22 archie Exp $
+
+KMOD= ng_socket
+SRCS= ng_socket.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/source/Makefile b/sys/modules/netgraph/source/Makefile
new file mode 100644
index 000000000000..603a6b05bee1
--- /dev/null
+++ b/sys/modules/netgraph/source/Makefile
@@ -0,0 +1,7 @@
+
+KMOD= ng_source
+SRCS= ng_source.c
+# 4.x only
+#KMODDEPS= netgraph
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/split/Makefile b/sys/modules/netgraph/split/Makefile
new file mode 100644
index 000000000000..9e1977d730c8
--- /dev/null
+++ b/sys/modules/netgraph/split/Makefile
@@ -0,0 +1,6 @@
+#
+
+KMOD= ng_split
+SRCS= ng_split.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/tag/Makefile b/sys/modules/netgraph/tag/Makefile
new file mode 100644
index 000000000000..cdc19325d096
--- /dev/null
+++ b/sys/modules/netgraph/tag/Makefile
@@ -0,0 +1,5 @@
+
+KMOD= ng_tag
+SRCS= ng_tag.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/tcpmss/Makefile b/sys/modules/netgraph/tcpmss/Makefile
new file mode 100644
index 000000000000..3ed465b2dd2f
--- /dev/null
+++ b/sys/modules/netgraph/tcpmss/Makefile
@@ -0,0 +1,5 @@
+
+KMOD= ng_tcpmss
+SRCS= ng_tcpmss.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/tee/Makefile b/sys/modules/netgraph/tee/Makefile
new file mode 100644
index 000000000000..4d60bb9f8e4b
--- /dev/null
+++ b/sys/modules/netgraph/tee/Makefile
@@ -0,0 +1,6 @@
+# $Whistle: Makefile,v 1.2 1999/01/19 19:39:22 archie Exp $
+
+KMOD= ng_tee
+SRCS= ng_tee.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/tty/Makefile b/sys/modules/netgraph/tty/Makefile
new file mode 100644
index 000000000000..383792a19f83
--- /dev/null
+++ b/sys/modules/netgraph/tty/Makefile
@@ -0,0 +1,6 @@
+# $Whistle: Makefile,v 1.2 1999/01/19 19:39:22 archie Exp $
+
+KMOD= ng_tty
+SRCS= ng_tty.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/vjc/Makefile b/sys/modules/netgraph/vjc/Makefile
new file mode 100644
index 000000000000..bd0bf6a0967c
--- /dev/null
+++ b/sys/modules/netgraph/vjc/Makefile
@@ -0,0 +1,8 @@
+# $Whistle: Makefile,v 1.1 1999/01/24 06:48:07 archie Exp $
+
+.PATH: ${SRCTOP}/sys/net
+
+KMOD= ng_vjc
+SRCS= ng_vjc.c slcompress.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/vlan/Makefile b/sys/modules/netgraph/vlan/Makefile
new file mode 100644
index 000000000000..2f6708de3747
--- /dev/null
+++ b/sys/modules/netgraph/vlan/Makefile
@@ -0,0 +1,5 @@
+
+KMOD= ng_vlan
+SRCS= ng_vlan.c
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/vlan_rotate/Makefile b/sys/modules/netgraph/vlan_rotate/Makefile
new file mode 100644
index 000000000000..619b5b432ad7
--- /dev/null
+++ b/sys/modules/netgraph/vlan_rotate/Makefile
@@ -0,0 +1,5 @@
+
+KMOD= ng_vlan_rotate
+SRCS= ng_vlan_rotate.c
+
+.include <bsd.kmod.mk>