1 diff -urN vmmon-only.org/Makefile vmmon-only/Makefile
2 --- vmmon-only.org/Makefile 2004-05-12 16:49:05.732456176 +0200
3 +++ vmmon-only/Makefile 2004-05-12 16:57:25.454486880 +0200
5 VM_UNAME = $(shell uname -r)
7 # Header directory for the running kernel
8 -HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include
9 +HEADER_DIR = /usr/src/linux/include
11 -BUILD_DIR = $(HEADER_DIR)/..
18 VMCCVER := $(shell $(CC) -dumpversion)
20 -# If there is no version defined, we are in toplevel pass, not yet in kernel makefiles...
23 ifeq ($(VM_KBUILD), 24)
24 DRIVER_KO := $(DRIVER).o
27 $(DRIVER): $(DRIVER_KO)
30 -# Pass gcc version down the chain, so we can detect if kernel attempts to use unapproved compiler
31 -VM_CCVER := $(VMCCVER)
36 MAKEOVERRIDES := $(filter-out CC=%,$(MAKEOVERRIDES))
39 make -C $(BUILD_DIR) SUBDIRS=$$PWD SRCROOT=$$PWD/$(SRCROOT) modules
43 -ifneq ($(VM_CCVER), $(VMCCVER))
44 -$(warning *** Inappropriate build environment: you wanted to use gcc \
45 - version $(VM_CCVER) while kernel attempts to use gcc version $(VMCCVER).)
46 -$(error For proper build you'll have to replace $(CC) with symbolic \
52 include $(SRCROOT)/Makefile.kernel
55 -ifeq ($(VM_KBUILD), 24)
57 -O_TARGET := $(DRIVER).o
59 -obj-y := $($(DRIVER)-y)
61 -include $(TOPDIR)/Rules.make
67 include $(SRCROOT)/Makefile.normal
68 diff -urN vmnet-only.org/Makefile vmnet-only/Makefile
69 --- vmnet-only.org/Makefile 2004-05-12 16:49:09.091945456 +0200
70 +++ vmnet-only/Makefile 2004-05-12 16:49:19.904301728 +0200
72 VM_UNAME = $(shell uname -r)
74 # Header directory for the running kernel
75 -HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include
76 +HEADER_DIR = /usr/src/linux/include
78 -BUILD_DIR = $(HEADER_DIR)/..
85 VMCCVER := $(shell $(CC) -dumpversion)
87 -# If there is no version defined, we are in toplevel pass, not yet in kernel makefiles...
90 ifeq ($(VM_KBUILD), 24)
91 DRIVER_KO := $(DRIVER).o
94 auto-build: $(DRIVER_KO)
95 cp -f $< $(SRCROOT)/../$(DRIVER).o
97 -# Pass gcc version down the chain, so we can detect if kernel attempts to use unapproved compiler
98 -VM_CCVER := $(VMCCVER)
103 MAKEOVERRIDES := $(filter-out CC=%,$(MAKEOVERRIDES))
106 make -C $(BUILD_DIR) SUBDIRS=$$PWD SRCROOT=$$PWD/$(SRCROOT) modules
110 -ifneq ($(VM_CCVER), $(VMCCVER))
111 -$(warning *** Inappropriate build environment: you wanted to use gcc \
112 - version $(VM_CCVER) while kernel attempts to use gcc version $(VMCCVER).)
113 -$(error For proper build you'll have to replace $(CC) with symbolic \
119 include $(SRCROOT)/Makefile.kernel
122 -ifeq ($(VM_KBUILD), 24)
124 -O_TARGET := $(DRIVER).o
126 -obj-y := $($(DRIVER)-y)
128 -include $(TOPDIR)/Rules.make
134 include $(SRCROOT)/Makefile.normal