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)/..
17 VM_KBUILD_OUTPUT := $(O)
20 -ifeq ($(VM_KBUILD_OUTPUT),)
21 -VM_KBUILD_OUTPUT := $(BUILD_DIR)
23 -ifeq ($(call vm_check_file,$(BUILD_DIR)/Makefile), yes)
24 -ifeq ($(call vm_check_file,$(VM_KBUILD_OUTPUT)/.config), no)
25 -VM_DUMMY := $(shell echo >&2 '*** Your sources installation is broken:')
26 -VM_DUMMY := $(shell echo >&2 '*** $(BUILD_DIR) does not contain .config file')
27 -VM_DUMMY := $(shell echo >&2 '*** vmmon/vmnet build may fail, or built vmmon/vmnet may crash.')
28 -ifeq ($(call vm_check_file,/boot/vmlinuz.config), yes)
29 -VM_DUMMY := $(shell echo >&2 '*** You are apparently use SuSE system. You should copy')
30 -VM_DUMMY := $(shell echo >&2 '*** /boot/vmlinuz.config to the $(BUILD_DIR)/.config.')
32 -VM_DUMMY := $(shell echo >&2)
33 -VM_DUMMY := $(shell echo >&2 '*** Hit ENTER to continue, or ^C to stop build.')
34 -VM_DUMMY := $(shell read dummy)
36 -ifneq ($(call vm_check_file,$(BUILD_DIR)/Rules.make), yes)
39 -ifeq ($(shell if $(GREP) "^PATCHLEVEL = 4$$" $(BUILD_DIR)/Makefile > /dev/null 2>&1; then echo "yes"; fi), yes)
48 ifndef VM_KBUILD_SHOWN
51 VMCCVER := $(shell $(CC) -dumpversion)
53 -# If there is no version defined, we are in toplevel pass, not yet in kernel makefiles...
56 ifeq ($(VM_KBUILD), 24)
57 DRIVER_KO := $(DRIVER).o
60 $(DRIVER): $(DRIVER_KO)
63 -# Pass gcc version down the chain, so we can detect if kernel attempts to use unapproved compiler
64 -VM_CCVER := $(VMCCVER)
69 ifneq ($(FORCE_CC), yes)
70 MAKEOVERRIDES := $(filter-out CC=%,$(MAKEOVERRIDES))
74 make -C $(BUILD_DIR) SUBDIRS=$$PWD SRCROOT=$$PWD/$(SRCROOT) modules
78 -ifneq ($(VM_CCVER), $(VMCCVER))
79 -$(warning *** Inappropriate build environment: you wanted to use gcc \
80 - version $(VM_CCVER) while kernel attempts to use gcc version $(VMCCVER).)
81 -$(error For proper build you'll have to replace $(CC) with symbolic \
87 include $(SRCROOT)/Makefile.kernel
90 -ifeq ($(VM_KBUILD), 24)
92 -O_TARGET := $(DRIVER).o
94 -obj-y := $($(DRIVER)-y)
96 -include $(TOPDIR)/Rules.make
102 include $(SRCROOT)/Makefile.normal
103 diff -urN vmnet-only.org/Makefile vmnet-only/Makefile
104 --- vmnet-only.org/Makefile 2004-05-12 16:49:09.091945456 +0200
105 +++ vmnet-only/Makefile 2004-05-12 16:49:19.904301728 +0200
107 VM_UNAME = $(shell uname -r)
109 # Header directory for the running kernel
110 -HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include
111 +HEADER_DIR = /usr/src/linux/include
113 -BUILD_DIR = $(HEADER_DIR)/..
119 ifeq ($(VM_KBUILD_OUTPUT),)
120 VM_KBUILD_OUTPUT := $(BUILD_DIR)
122 -ifeq ($(call vm_check_file,$(BUILD_DIR)/Makefile), yes)
123 -ifeq ($(call vm_check_file,$(VM_KBUILD_OUTPUT)/.config), no)
124 -VM_DUMMY := $(shell echo >&2 '*** Your sources installation is broken:')
125 -VM_DUMMY := $(shell echo >&2 '*** $(BUILD_DIR) does not contain .config file')
126 -VM_DUMMY := $(shell echo >&2 '*** vmmon/vmnet build may fail, or built vmmon/vmnet may crash.')
127 -ifeq ($(call vm_check_file,/boot/vmlinuz.config), yes)
128 -VM_DUMMY := $(shell echo >&2 '*** You are apparently use SuSE system. You should copy')
129 -VM_DUMMY := $(shell echo >&2 '*** /boot/vmlinuz.config to the $(BUILD_DIR)/.config.')
131 -VM_DUMMY := $(shell echo >&2)
132 -VM_DUMMY := $(shell echo >&2 '*** Hit ENTER to continue, or ^C to stop build.')
133 -VM_DUMMY := $(shell read dummy)
135 -ifeq ($(call vm_check_file,$(BUILD_DIR)/Rules.make), yes)
136 -ifeq ($(shell if $(GREP) "^PATCHLEVEL = 4$$" $(BUILD_DIR)/Makefile > /dev/null 2>&1; then echo "yes"; fi), yes)
147 ifndef VM_KBUILD_SHOWN
150 VMCCVER := $(shell $(CC) -dumpversion)
152 -# If there is no version defined, we are in toplevel pass, not yet in kernel makefiles...
155 ifeq ($(VM_KBUILD), 24)
156 DRIVER_KO := $(DRIVER).o
159 auto-build: $(DRIVER_KO)
160 cp -f $< $(SRCROOT)/../$(DRIVER).o
162 -# Pass gcc version down the chain, so we can detect if kernel attempts to use unapproved compiler
163 -VM_CCVER := $(VMCCVER)
168 MAKEOVERRIDES := $(filter-out CC=%,$(MAKEOVERRIDES))
171 make -C $(BUILD_DIR) SUBDIRS=$$PWD SRCROOT=$$PWD/$(SRCROOT) modules
175 -ifneq ($(VM_CCVER), $(VMCCVER))
176 -$(warning *** Inappropriate build environment: you wanted to use gcc \
177 - version $(VM_CCVER) while kernel attempts to use gcc version $(VMCCVER).)
178 -$(error For proper build you'll have to replace $(CC) with symbolic \
184 include $(SRCROOT)/Makefile.kernel
187 -ifeq ($(VM_KBUILD), 24)
189 -O_TARGET := $(DRIVER).o
191 -obj-y := $($(DRIVER)-y)
193 -include $(TOPDIR)/Rules.make
199 include $(SRCROOT)/Makefile.normal