~n-muench/ubuntu/precise/open-vm-tools/open-vm-tools-precise.sid-merge1

« back to all changes in this revision

Viewing changes to modules/linux/vmxnet3/Makefile.kernel

  • Committer: Evan Broder
  • Date: 2010-03-21 23:26:53 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: broder@mit.edu-20100321232653-5a57r7v7ch4o6byv
Merging shared upstream rev into target branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/make -f
2
 
##########################################################
3
 
# Copyright (C) 2008 VMware, Inc. All rights reserved.
4
 
#
5
 
# This program is free software; you can redistribute it and/or modify it
6
 
# under the terms of the GNU General Public License as published by the
7
 
# Free Software Foundation version 2 and no later version.
8
 
#
9
 
# This program is distributed in the hope that it will be useful, but
10
 
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11
 
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12
 
# for more details.
13
 
#
14
 
# You should have received a copy of the GNU General Public License along
15
 
# with this program; if not, write to the Free Software Foundation, Inc.,
16
 
# 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
17
 
#
18
 
##########################################################
19
 
 
20
 
####
21
 
####  VMware vmxnet3 Makefile to be distributed externally
22
 
####
23
 
 
24
 
INCLUDE += -I.
25
 
 
26
 
ifdef OVT_SOURCE_DIR
27
 
INCLUDE += -I$(OVT_SOURCE_DIR)/modules/shared/vmxnet
28
 
endif
29
 
 
30
 
EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE)
31
 
 
32
 
EXTRA_CFLAGS += $(call vm_check_build, $(AUTOCONF_DIR)/skblin.c, -DVMW_SKB_LINEARIZE_2618, )
33
 
EXTRA_CFLAGS += $(call vm_check_build, $(AUTOCONF_DIR)/netif_num_params.c, , -DVMW_NETIF_SINGLE_NAPI_PARM)
34
 
 
35
 
obj-m += $(DRIVER).o
36
 
 
37
 
$(DRIVER)-y := $(subst $(SRCROOT)/, , $(patsubst %.c, %.o, $(wildcard $(SRCROOT)/*.c)))
38
 
 
39
 
clean:
40
 
        rm -rf $(wildcard $(DRIVER).mod.c $(DRIVER).ko .tmp_versions \
41
 
               Module.symvers Modules.symvers Module.markers modules.order \
42
 
               $(foreach dir,./,$(addprefix $(dir),.*.cmd .*.o.flags *.o)))