VirtualBox

source: vbox/trunk/src/VBox/Additions/freebsd/Makefile.kmk@ 22633

Last change on this file since 22633 was 22575, checked in by vboxsync, 15 years ago

Additions/FreeBSD: Fixes several problems. The X11 part is mostly working now for FreeBSD 7.x and 8. Contributed by Alexander Kabaev.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 5.0 KB
Line 
1# $Id: Makefile.kmk 22575 2009-08-30 20:02:08Z vboxsync $
2## @file
3# Sub-Makefile for the FreeBSD guest additions base directory.
4#
5
6#
7# Copyright (C) 2008 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
25ifneq ($(KBUILD_HOST),freebsd)
26$(error "The FreeBSD guest additions installer can only be built on FreeBSD!")
27endif
28
29# Include sub-makefiles.
30#include $(PATH_SUB_CURRENT)/vboxvfs/Makefile.kmk
31#include $(PATH_SUB_CURRENT)/drm/Makefile.kmk
32
33# Globals
34VBOX_FBSD_ADD_INS_OUT_DIR := $(PATH_TARGET)/Additions/FreeBSD/Installer
35BLDDIRS += $(VBOX_FBSD_ADD_INS_OUT_DIR)
36
37VBOX_FBSD_ADD_PKG_FILENAME := VBoxFreeBSDAdditions.tbz
38VBOX_FBSD_ADD_PKGINFO_ARCH = $(shell uname -p)
39VBOX_PATH_FREEBSD_ADDITION_INSTALLER := $(PATH_SUB_CURRENT)/Installer
40VBOX_PATH_X11_ADDITION_INSTALLER := $(PATH_ROOT)/src/VBox/Additions/x11/Installer
41
42ifeq ($(KBUILD_TYPE),debug)
43 VBOX_FBSD_ADD_BIN_COPY := $(CP) -f
44 VBOX_FBSD_ADD_BIN_COPY_SYMBOLS := $(CP) -f
45else
46 VBOX_FBSD_ADD_BIN_COPY := objcopy -S -R .comment
47 VBOX_FBSD_ADD_BIN_COPY_SYMBOLS := objcopy -g -R .comment
48endif
49
50# Targets.
51PACKING += $(PATH_BIN)/additions/$(VBOX_FBSD_ADD_PKG_FILENAME)
52OTHER_CLEAN += $(PACKING)
53
54include $(KBUILD_PATH)/subfooter.kmk
55
56$(PATH_BIN)/additions/VBoxFreeBSDAdditions.tbz: \
57 $(VBOX_VERSION_STAMP) \
58 $(VBOX_PATH_FREEBSD_ADDITION_INSTALLER)/pkg-descr \
59 $(VBOX_PATH_FREEBSD_ADDITION_INSTALLER)/vboxguest.sh \
60 $(VBOX_PATH_X11_ADDITION_INSTALLER)/98vboxadd-xclient \
61 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11config.pl \
62 $(PATH_BIN)/additions/vboxguest.ko \
63 $(PATH_BIN)/additions/vboxvideo.ko \
64 $(PATH_BIN)/additions/vboxvfs.ko \
65 $(PATH_BIN)/additions/VBoxClient \
66 $(PATH_BIN)/additions/VBoxService \
67 $(PATH_BIN)/additions/VBoxControl \
68 $(PATH_BIN)/additions/vboxvideo_drv_13.so \
69 $(PATH_BIN)/additions/vboxvideo_drv_14.so \
70 $(PATH_BIN)/additions/vboxvideo_drv_70.so \
71 $(PATH_BIN)/additions/vboxvideo_drv_71.so \
72 $(PATH_BIN)/additions/vboxmouse_drv_14.so \
73 $(PATH_BIN)/additions/vboxmouse_drv_70.so \
74 $(PATH_BIN)/additions/vboxmouse_drv_71.so \
75 $(PATH_SUB_CURRENT)/freebsd/Makefile.kmk
76 $(call MSG_L1,Installing guest additions)
77 @# Clear out the existing package files if needed
78 $(QUIET)$(RM) -Rf -- $(VBOX_FBSD_ADD_INS_OUT_DIR)
79 $(QUIET)$(MKDIR) -p $(VBOX_FBSD_ADD_INS_OUT_DIR)
80 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_FREEBSD_ADDITION_INSTALLER)/vboxguest.sh $(VBOX_FBSD_ADD_INS_OUT_DIR)/vboxguest.sh
81 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_X11_ADDITION_INSTALLER)/98vboxadd-xclient $(VBOX_FBSD_ADD_INS_OUT_DIR)/1099.vboxclient
82 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11config.pl $(VBOX_FBSD_ADD_INS_OUT_DIR)/x11config.pl
83 $(QUIET)$(CP) -f $(PATH_BIN)/additions/vboxguest.ko $(VBOX_FBSD_ADD_INS_OUT_DIR)/vboxguest.ko
84 $(QUIET)$(if $(VBOX_DO_STRIP),strip $(VBOX_FBSD_ADD_INS_OUT_DIR)/vboxguest.ko,)
85 $(QUIET)$(VBOX_FBSD_ADD_BIN_COPY) $(PATH_BIN)/additions/VBoxClient $(VBOX_FBSD_ADD_INS_OUT_DIR)/VBoxClient
86 $(QUIET)$(VBOX_FBSD_ADD_BIN_COPY) $(PATH_BIN)/additions/VBoxService $(VBOX_FBSD_ADD_INS_OUT_DIR)/VBoxService
87 $(QUIET)$(VBOX_FBSD_ADD_BIN_COPY) $(PATH_BIN)/additions/VBoxControl $(VBOX_FBSD_ADD_INS_OUT_DIR)/VBoxControl
88 $(QUIET)$(VBOX_FBSD_ADD_BIN_COPY) $(PATH_BIN)/additions/vboxvideo_drv_13.so $(VBOX_FBSD_ADD_INS_OUT_DIR)/vboxvideo_drv_13.so
89 $(QUIET)$(VBOX_FBSD_ADD_BIN_COPY) $(PATH_BIN)/additions/vboxvideo_drv_14.so $(VBOX_FBSD_ADD_INS_OUT_DIR)/vboxvideo_drv_14.so
90 $(QUIET)$(VBOX_FBSD_ADD_BIN_COPY) $(PATH_BIN)/additions/vboxvideo_drv_70.so $(VBOX_FBSD_ADD_INS_OUT_DIR)/vboxvideo_drv_70.so
91 $(QUIET)$(VBOX_FBSD_ADD_BIN_COPY) $(PATH_BIN)/additions/vboxvideo_drv_71.so $(VBOX_FBSD_ADD_INS_OUT_DIR)/vboxvideo_drv_71.so
92 $(QUIET)$(VBOX_FBSD_ADD_BIN_COPY) $(PATH_BIN)/additions/vboxmouse_drv_14.so $(VBOX_FBSD_ADD_INS_OUT_DIR)/vboxmouse_drv_14.so
93 $(QUIET)$(VBOX_FBSD_ADD_BIN_COPY) $(PATH_BIN)/additions/vboxmouse_drv_70.so $(VBOX_FBSD_ADD_INS_OUT_DIR)/vboxmouse_drv_70.so
94 $(QUIET)$(VBOX_FBSD_ADD_BIN_COPY) $(PATH_BIN)/additions/vboxmouse_drv_71.so $(VBOX_FBSD_ADD_INS_OUT_DIR)/vboxmouse_drv_71.so
95 $(call MSG_L1,Creating install package: $@)
96 $(QUIET)$(VBOX_MAKESELF) $(VBOX_FBSD_ADD_INS_OUT_DIR) $@ \
97 "VirtualBox $(VBOX_VERSION_STRING) Guest Additions for FreeBSD installation" /bin/sh ./install.sh " 1> /dev/null 2> /dev/null"
98
Note: See TracBrowser for help on using the repository browser.

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