blob: ba82ba3688080194feba0b80d418ed62084c454d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
Index: qemu/kqemu/Makefile
@@ -1,62 +1,5 @@
-ifeq ($(PATCHLEVEL),)
-# compile in kqemu directory
+KMOD= kqemu
+SRCS= kmod_bsd.c
+OBJS= kqemu-mod-i386.o
--include ../config-host.mak
-
-ifdef CONFIG_KBUILD26
-# 2.6 build
-
-all: kqemu.ko
-
-kqemu.ko:
- make -C $(KERNEL_PATH) M=`pwd` modules
-
-else
-# 2.4 build
-
-all: kqemu.o
-
-kqemu.o:
- make -C $(KERNEL_PATH) SUBDIRS=`pwd` modules
-
-endif # !CONFIG_KBUILD26
-
-clean:
- rm -f kqemu.o kqemu.ko kmod.o kqemu-mod.o kqemu.mod.c *~
-
-FILES=Makefile README LICENSE install.sh kmod.c kqemu.h kqemu-mod-i386.o \
- kqemu-doc.texi kqemu-doc.html
-VERSION=0.6.2
-
-tar:
- cd .. ; tar zcvf /tmp/kqemu-$(VERSION).tar.gz $(addprefix kqemu/, $(FILES))
-
-# documentation
-doc: kqemu-doc.html
-
-%.html: %.texi
- texi2html -monolithic -number $<
-
-else
-
-ifeq ($(PATCHLEVEL),4)
-# called from 2.4 kernel kbuild
-
-obj-m:= kqemu.o
-kqemu-objs:= kmod.o kqemu-mod-i386.o
-
-include $(TOPDIR)/Rules.make
-
-kqemu.o: $(kqemu-objs)
- $(LD) -r -o $@ $(kqemu-objs)
-
-else
-# called from 2.6 kernel kbuild
-
-obj-m:= kqemu.o
-kqemu-objs:= kmod.o kqemu-mod.o
-
-$(obj)/kqemu-mod.o: $(src)/kqemu-mod-i386.o
- cp $< $@
-endif
-endif # PATCHLEVEL
+.include <bsd.kmod.mk>
|