VirtualBox

source: vbox/trunk/src/VBox/HostDrivers/VBoxNetAdp/Makefile.kmk@ 17185

Last change on this file since 17185 was 17025, checked in by vboxsync, 16 years ago

VBoxNetAdp: Build fix and other bits.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.7 KB
Line 
1# $Id: Makefile.kmk 17025 2009-02-23 15:17:24Z vboxsync $
2## @file
3# Sub-Makefile for the Network Adapter Driver (VBoxNetAdp).
4#
5
6#
7# Copyright (C) 2009 Sun Microsystems, Inc.
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18# Clara, CA 95054 USA or visit http://www.sun.com if you need
19# additional information or have any questions.
20#
21
22SUB_DEPTH = ../../../..
23include $(KBUILD_PATH)/subheader.kmk
24
25
26if1of ($(KBUILD_TARGET), solaris darwin)
27#
28# VBoxNetAdp - Virtual Network Adapter
29# Note! On Solaris the name has to be <= 8 chars long.
30#
31 ifdef VBOX_WITH_VBOXDRV
32SYSMODS += VBoxNetAdp
33VBoxNetAdp_TEMPLATE = VBOXR0DRV
34VBoxNetAdp_INST = $(INST_VBOXNETADP)$(if $(eq $(KBUILD_TARGET),darwin),Contents/MacOS/)
35VBoxNetAdp_NAME.solaris = vboxnet
36VBoxNetAdp_DEPS.solaris += $(VBOX_SVN_REV_KMK)
37VBoxNetAdp_DEFS = IN_RT_R0 VBOX_SVN_REV=$(VBOX_SVN_REV) IN_SUP_STATIC
38VBoxNetAdp_LDFLAGS.darwin = -v -Wl,-whyload -Wl,-v -Wl,-whatsloaded
39VBoxNetAdp_LDFLAGS.solaris += -N misc/gld -N drv/vboxdrv
40VBoxNetAdp_INCS = \
41 .
42VBoxNetAdp_SOURCES.darwin = \
43 darwin/VBoxNetAdp-darwin.cpp
44VBoxNetAdp_SOURCES.solaris = \
45 solaris/VBoxNetAdp-solaris.c
46VBoxNetAdp_SOURCES = \
47 VBoxNetAdp.c
48VBoxNetAdp_LIBS.solaris += \
49 $(PATH_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB)
50VBoxNetAdp_LIBS += \
51 $(PATH_LIB)/SUPR0IdcClient$(VBOX_SUFF_LIB)
52 endif
53endif
54
55#
56# Darwin extras.
57#
58ifeq ($(KBUILD_TARGET),darwin)
59INSTALLS += VBoxNetAdp.kext
60VBoxNetAdp.kext_INST = $(INST_VBOXNETADP)Contents/
61VBoxNetAdp.kext_SOURCES = \
62 $(PATH_VBoxNetAdp.kext)/Info.plist
63VBoxNetAdp.kext_CLEAN = \
64 $(PATH_VBoxNetAdp.kext)/Info.plist
65
66$$(PATH_VBoxNetAdp.kext)/Info.plist: $(PATH_SUB_CURRENT)/darwin/Info.plist $(VBOX_VERSION_MK) | $$(dir $$@)
67 $(call MSG_GENERATE,VBoxNetAdp,$@,$<)
68 $(xQUIET)$(RM) -f $@
69 $(xQUIET)$(SED) \
70 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
71 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
72 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
73 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
74 --output $@ \
75 $<
76
77INSTALLS.darwin += Scripts-darwin-adp
78Scripts-darwin-adp_INST = $(INST_DIST)
79Scripts-darwin-adp_SOURCES = \
80 darwin/loadnetadp.sh
81endif # darwin
82
83include $(KBUILD_PATH)/subfooter.kmk
84
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette