~n-muench/ubuntu/quantal/open-vm-tools/open-vm-tools.may2.sid-sync

« back to all changes in this revision

Viewing changes to modules/linux/vmmemctl/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-05-30 09:48:43 UTC
  • mfrom: (1.1.5 upstream) (2.4.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090530094843-gdpza57r5iqsf124
Tags: 2009.05.22-167859-1
MergingĀ upstreamĀ versionĀ 2009.05.22-167859.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
####
27
27
SRCROOT = .
28
28
 
 
29
#
 
30
# open-vm-tools doesn't replicate shared source files for different modules;
 
31
# instead, files are kept in shared locations. So define a few useful macros
 
32
# to be able to handle both cases cleanly.
 
33
#
 
34
INCLUDE      :=
 
35
ifdef OVT_SOURCE_DIR
 
36
AUTOCONF_DIR := $(OVT_SOURCE_DIR)/modules/linux/shared/autoconf
 
37
VMLIB_PATH   = $(OVT_SOURCE_DIR)/lib/$(1)
 
38
INCLUDE      += -I$(OVT_SOURCE_DIR)/modules/linux/shared
 
39
INCLUDE      += -I$(OVT_SOURCE_DIR)/lib/include
 
40
else
 
41
AUTOCONF_DIR := $(SRCROOT)/shared/autoconf
 
42
INCLUDE      += -I$(SRCROOT)/shared
 
43
endif
 
44
 
 
45
 
29
46
VM_UNAME = $(shell uname -r)
30
47
 
31
48
# Header directory for the running kernel
34
51
BUILD_DIR = $(HEADER_DIR)/..
35
52
 
36
53
DRIVER := vmmemctl
37
 
PRODUCT := @PRODUCT@
 
54
PRODUCT := tools
38
55
 
39
56
# Grep program
40
57
GREP = /bin/grep
106
123
postbuild:: ;
107
124
 
108
125
$(DRIVER_KO): prebuild
109
 
        make -C $(BUILD_DIR) SUBDIRS=$$PWD SRCROOT=$$PWD/$(SRCROOT) modules
110
 
        make -C $$PWD SRCROOT=$$PWD/$(SRCROOT) postbuild
 
126
        make -C $(BUILD_DIR) SUBDIRS=$$PWD SRCROOT=$$PWD/$(SRCROOT) \
 
127
          MODULEBUILDDIR=$(MODULEBUILDDIR) modules
 
128
        make -C $$PWD SRCROOT=$$PWD/$(SRCROOT) \
 
129
          MODULEBUILDDIR=$(MODULEBUILDDIR) postbuild
111
130
endif
112
131
 
113
132
vm_check_build = $(shell if $(CC) $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS) \