diff options
| author | Roman Kurakin <rik@FreeBSD.org> | 2006-03-07 13:44:33 +0000 |
|---|---|---|
| committer | Roman Kurakin <rik@FreeBSD.org> | 2006-03-07 13:44:33 +0000 |
| commit | c8573774526e6a7e13bd8c8bfff958e1ac7ed763 (patch) | |
| tree | ab201c69d7ffe5fbe889aa02016af787926074a0 /sys/modules/ce | |
| parent | 33efd96b381790dda8251b66d2dafb8a378c4a9b (diff) | |
Notes
Diffstat (limited to 'sys/modules/ce')
| -rw-r--r-- | sys/modules/ce/Makefile | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/sys/modules/ce/Makefile b/sys/modules/ce/Makefile index 9ab7a3d87c1d..fee4042186c5 100644 --- a/sys/modules/ce/Makefile +++ b/sys/modules/ce/Makefile @@ -4,26 +4,36 @@ .PATH: ${.CURDIR}/../../dev/ce KMOD = if_ce SRCS = if_ce.c ceddk.c tau32-ddk.c -SRCS += opt_bpf.h opt_netgraph.h opt_ng_cronyx.h device_if.h bus_if.h \ - pci_if.h -NO_MAN= +SRCS += opt_netgraph.h opt_ng_cronyx.h device_if.h bus_if.h opt_bpf.h\ + pci_if.h sppp.h +NOMAN= -.if !defined(KERNBUILDDIR) +NBPF?= 0 PROTOS?= -DINET NG_CRONYX?= 0 NETGRAPH= ${NG_CRONYX} CFLAGS+= ${PROTOS} +CLEANFILES+= opt_ng_cronyx.h opt_netgraph.h pci.h bpf.h sppp.h -.if ${NETGRAPH} != 0 opt_netgraph.h: echo "#define NETGRAPH ${NETGRAPH}" > opt_netgraph.h -.endif -.if ${NG_CRONYX} != 0 opt_ng_cronyx.h: +.if ${NG_CRONYX} != 0 echo "#define NETGRAPH_CRONYX 1" > opt_ng_cronyx.h +.else + echo "" > opt_ng_cronyx.h .endif -.endif + +sppp.h: +.if ${NG_CRONYX} == 0 + echo "#define NSPPP 1" > sppp.h +.else + echo "#define NSPPP 0" > sppp.h +.endif + +opt_bpf.h: + echo "#define DEV_BPF ${NBPF}" > opt_bpf.h .include <bsd.kmod.mk> |
