diff options
Diffstat (limited to 'share/examples/lkm/misc/module/Makefile')
-rw-r--r-- | share/examples/lkm/misc/module/Makefile | 32 |
1 files changed, 8 insertions, 24 deletions
diff --git a/share/examples/lkm/misc/module/Makefile b/share/examples/lkm/misc/module/Makefile index 562a75d..edb2998 100644 --- a/share/examples/lkm/misc/module/Makefile +++ b/share/examples/lkm/misc/module/Makefile @@ -34,32 +34,16 @@ # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # +# $Id$ +# +BINDIR= /tmp +SRCS= misccall.c miscmod.c +KMOD= misc_mod +NOMAN= none -SRCS=miscmod.c -OBJS=$(SRCS:.c=.o) - -KSRCS=misccall.c -KOBJS=misccall.o - -MODOBJ=combined.o - -KMOD=miscmod -CFLAGS= -DKERNEL -I/sys/sys -I/sys - -all: $(MODOBJ) - -clean: - rm -f $(OBJS) $(KOBJS) $(MODOBJ) $(KMOD) - -load: - /sbin/modload -o $(KMOD) -e$(KMOD) $(MODOBJ) - -unload: - /sbin/modunload -n $(KMOD) - -$(MODOBJ): $(OBJS) $(KOBJS) - $(LD) -r -o $(MODOBJ) $(OBJS) $(KOBJS) +CLEANFILES+= ${KMOD} +.include <bsd.kmod.mk> # # EOF -- This file has not been truncated # |