VirtualBox

Changeset 6757 in vbox


Ignore:
Timestamp:
Feb 2, 2008 8:51:14 AM (17 years ago)
Author:
vboxsync
Message:

Converted the (recursive) linux makefiles to sub-makefiles.

Location:
trunk/src/VBox/Additions
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/Makefile.kmk

    r6756 r6757  
    5757endif
    5858ifdef VBOX_WITH_LINUX_ADDITIONS
    59  SUBDIRS += linux
    60  #include $(PATH_SUB_CURRENT)/linux/Makefile.kmk
    6159 include $(PATH_SUB_CURRENT)/x11/Makefile.kmk
     60 include $(PATH_SUB_CURRENT)/linux/Makefile.kmk
    6261else if1of ($(BUILD_TARGET), solaris)
    6362 include $(PATH_SUB_CURRENT)/x11/Makefile.kmk
  • trunk/src/VBox/Additions/linux/Makefile.kmk

    r6595 r6757  
    1616#
    1717
    18 DEPTH = ../../../..
    19 include $(PATH_KBUILD)/header.kmk
     18DEPTH ?= ../../../..
     19SUB_DEPTH = ..
     20include $(PATH_KBUILD)/subheader.kmk
    2021
    2122# This can only be built on a real Linux system.
    22 SUBDIRS =
    2323ifeq ($(filter-out linux l4, $(BUILD_TARGET)),)
    24 SUBDIRS += \
    25         module \
    26         daemon \
    27         sharedfolders
     24 include $(PATH_SUB_CURRENT)/module/Makefile.kmk
     25 include $(PATH_SUB_CURRENT)/daemon/Makefile.kmk
     26 include $(PATH_SUB_CURRENT)/sharedfolders/Makefile.kmk
    2827endif
    2928
    3029ifndef VBOX_OSE
    31 PACKING      = $(PATH_BIN)/additions/VBoxLinuxAdditions.run
    32 OTHER_CLEAN  = $(PACKING)
    33 # OSE only contains the source code for this
    34 SELINUX_CMPLD = selinux-fedora/vbox_x11.pp
     30 PACKING     += $(PATH_BIN)/additions/VBoxLinuxAdditions.run
     31 OTHER_CLEAN += $(PACKING)
     32 # OSE only contains the source code for this
     33 VBOX_SELINUX_CMPLD := $(PATH_SUB_CURRENT)/selinux-fedora/vbox_x11.pp
    3534endif
    3635
     36VBOX_PATH_LINUX_ADDITION_INSTALLER := $(PATH_SUB_CURRENT)/installer
    3737
    38 include $(PATH_KBUILD)/footer.kmk
     38include $(PATH_KBUILD)/subfooter.kmk
    3939
    4040
     
    4242# Build the Linux Guest Additions self extracting installer.
    4343#
    44 
     44# Note that $(PATH_SUB_CURRENT) was changed by subfooter.kmk above and
     45# any references should be made via variables assigned a know value via := .
     46#
    4547# We need to depend on all source files for the additions and shared
    4648# folders kernel modules.
     49## @todo Replace the wildcard stuff by the correct file lists now that
     50#        we've got everything included.
     51#
    4752$(PATH_BIN)/additions/VBoxLinuxAdditions.run: \
    4853                $(INSTARGET_vboxmod-bin) \
    4954                $(PATH_BIN)/additions/vboxadd-timesync \
    5055                $(PATH_BIN)/additions/VBoxClient \
    51                 installer/vboxadd-timesync.sh \
    52                 installer/98vboxadd-xclient \
    53                 installer/vboxadd.sh \
    54                 installer/install.sh \
    55                 ../../Installer/linux/routines.sh \
    56                 installer/x11config.pl \
    57                 installer/Makefile.test \
    58                 installer/test.c \
     56                $(VBOX_PATH_LINUX_ADDITION_INSTALLER)/vboxadd-timesync.sh \
     57                $(VBOX_PATH_LINUX_ADDITION_INSTALLER)/98vboxadd-xclient \
     58                $(VBOX_PATH_LINUX_ADDITION_INSTALLER)/vboxadd.sh \
     59                $(VBOX_PATH_LINUX_ADDITION_INSTALLER)/install.sh \
     60                $(PATH_ROOT)/src/VBox/Installer/linux/routines.sh \
     61                $(VBOX_PATH_LINUX_ADDITION_INSTALLER)/x11config.pl \
     62                $(VBOX_PATH_LINUX_ADDITION_INSTALLER)/Makefile.test \
     63                $(VBOX_PATH_LINUX_ADDITION_INSTALLER)/test.c \
    5964                $(PATH_BIN)/additions/vboxmouse_drv.o \
    6065                $(PATH_BIN)/additions/vboxmouse_drv_70.so \
     
    6671                $(PATH_BIN)/additions/vboxvideo_drv_13.so \
    6772                $(PATH_BIN)/additions/vboxvideo_drv_14.so \
    68                 installer/vboxvfs.sh $(PATH_BIN)/additions/mountvboxsf \
    69                 $(SELINUX_CMPLD) \
     73                $(VBOX_PATH_LINUX_ADDITION_INSTALLER)/vboxvfs.sh $(PATH_BIN)/additions/mountvboxsf \
     74                $(VBOX_SELINUX_CMPLD) \
    7075                $(wildcard $(PATH_BIN)/additions/src/*) \
    7176                $(wildcard $(PATH_BIN)/additions/src/*/*) \
     
    8085        $(QUIET)cp -af $(PATH_BIN)/additions/src $(PATH_TARGET)/install/module
    8186        $(QUIET)$(MKDIR) -p $(PATH_TARGET)/install/module/test
    82         $(QUIET)$(INSTALL) -m 0644 installer/Makefile.test  $(PATH_TARGET)/install/module/test/Makefile
    83         $(QUIET)$(INSTALL) -m 0644 installer/test.c $(PATH_TARGET)/install/module/test/
    84         $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxadd-timesync $(PATH_TARGET)/install/vboxadd-timesync
    85         $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/VBoxClient $(PATH_TARGET)/install/VBoxClient
    86         $(QUIET)$(SED) "s;_VERSION_;$(VBOX_VERSION_STRING);g" installer/install.sh | $(SED) "s;_BUILD_;$(shell date);g" | $(SED) "s;_OSE_;$(VBOX_OSE);g" | $(SED) "s;_BUILDTYPE_;$(BUILD_TYPE);g" > $(PATH_TARGET)/install/install_.sh
     87        $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_LINUX_ADDITION_INSTALLER)/Makefile.test  $(PATH_TARGET)/install/module/test/Makefile
     88        $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_LINUX_ADDITION_INSTALLER)/test.c         $(PATH_TARGET)/install/module/test/
     89        $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxadd-timesync           $(PATH_TARGET)/install/vboxadd-timesync
     90        $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/VBoxClient                 $(PATH_TARGET)/install/VBoxClient
     91        $(QUIET)$(SED) "s;_VERSION_;$(VBOX_VERSION_STRING);g" $(VBOX_PATH_LINUX_ADDITION_INSTALLER)/install.sh \
     92                | $(SED) "s;_BUILD_;$(shell date);g" \
     93                | $(SED) "s;_OSE_;$(VBOX_OSE);g" \
     94                | $(SED) "s;_BUILDTYPE_;$(BUILD_TYPE);g" \
     95                > $(PATH_TARGET)/install/install_.sh
    8796        $(QUIET)$(INSTALL) -m 0755 $(PATH_TARGET)/install/install_.sh $(PATH_TARGET)/install/install.sh
    8897        $(QUIET)$(RM) $(PATH_TARGET)/install/install_.sh
    89         $(QUIET)$(INSTALL) -m 0755 installer/vboxadd-timesync.sh $(PATH_TARGET)/install
    90         $(QUIET)$(INSTALL) -m 0755 installer/98vboxadd-xclient $(PATH_TARGET)/install
    91         $(QUIET)$(INSTALL) -m 0755 installer/vboxadd.sh   $(PATH_TARGET)/install
    92         $(QUIET)$(INSTALL) -m 0755 ../../Installer/linux/routines.sh  $(PATH_TARGET)/install
    93         $(QUIET)$(INSTALL) -m 0755 installer/x11config.pl $(PATH_TARGET)/install
    94         $(QUIET)objcopy -g -R .comment $(PATH_BIN)/additions/vboxmouse_drv.o  $(PATH_TARGET)/install/vboxmouse_drv.o
    95         $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxmouse_drv_70.so $(PATH_TARGET)/install/vboxmouse_drv_70.so
    96         $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxmouse_drv_71.so $(PATH_TARGET)/install/vboxmouse_drv_71.so
    97         $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxmouse_drv_14.so $(PATH_TARGET)/install/vboxmouse_drv_14.so
    98         $(QUIET)objcopy -g -R .comment $(PATH_BIN)/additions/vboxvideo_drv.o  $(PATH_TARGET)/install/vboxvideo_drv.o
    99         $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxvideo_drv_70.so $(PATH_TARGET)/install/vboxvideo_drv_70.so
    100         $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxvideo_drv_71.so $(PATH_TARGET)/install/vboxvideo_drv_71.so
    101         $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxvideo_drv_13.so $(PATH_TARGET)/install/vboxvideo_drv_13.so
    102         $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxvideo_drv_14.so $(PATH_TARGET)/install/vboxvideo_drv_14.so
    103         $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/mountvboxsf $(PATH_TARGET)/install/mount.vboxsf
    104         $(QUIET)$(INSTALL) -m 0755 installer/vboxvfs.sh $(PATH_TARGET)/install
    105 #ifndef VBOX_OSE
    106         $(QUIET)$(INSTALL) -m 0755 selinux-fedora/vbox_x11.pp $(PATH_TARGET)/install
    107 #endif
     98        $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_LINUX_ADDITION_INSTALLER)/vboxadd-timesync.sh $(PATH_TARGET)/install
     99        $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_LINUX_ADDITION_INSTALLER)/98vboxadd-xclient  $(PATH_TARGET)/install
     100        $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_LINUX_ADDITION_INSTALLER)/vboxadd.sh          $(PATH_TARGET)/install
     101        $(QUIET)$(INSTALL) -m 0755 $(PATH_ROOT)/src/VBox/Installer/linux/routines.sh         $(PATH_TARGET)/install
     102        $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_LINUX_ADDITION_INSTALLER)/x11config.pl        $(PATH_TARGET)/install
     103        $(QUIET)objcopy -g -R .comment $(PATH_BIN)/additions/vboxmouse_drv.o        $(PATH_TARGET)/install/vboxmouse_drv.o
     104        $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxmouse_drv_70.so    $(PATH_TARGET)/install/vboxmouse_drv_70.so
     105        $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxmouse_drv_71.so    $(PATH_TARGET)/install/vboxmouse_drv_71.so
     106        $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxmouse_drv_14.so    $(PATH_TARGET)/install/vboxmouse_drv_14.so
     107        $(QUIET)objcopy -g -R .comment $(PATH_BIN)/additions/vboxvideo_drv.o        $(PATH_TARGET)/install/vboxvideo_drv.o
     108        $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxvideo_drv_70.so    $(PATH_TARGET)/install/vboxvideo_drv_70.so
     109        $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxvideo_drv_71.so    $(PATH_TARGET)/install/vboxvideo_drv_71.so
     110        $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxvideo_drv_13.so    $(PATH_TARGET)/install/vboxvideo_drv_13.so
     111        $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxvideo_drv_14.so    $(PATH_TARGET)/install/vboxvideo_drv_14.so
     112        $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/mountvboxsf            $(PATH_TARGET)/install/mount.vboxsf
     113        $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_LINUX_ADDITION_INSTALLER)/vboxvfs.sh $(PATH_TARGET)/install
     114ifdef VBOX_SELINUX_CMPLD
     115        $(QUIET)$(INSTALL) -m 0755 $(VBOX_SELINUX_CMPLD)                            $(PATH_TARGET)/install
     116endif
    108117        $(QUIET)$(VBOX_MAKESELF) $(PATH_TARGET)/install $@ \
    109118        "VirtualBox $(VBOX_VERSION_STRING) Guest Additions for Linux installation" /bin/sh ./install.sh "> /dev/null"
  • trunk/src/VBox/Additions/linux/daemon/Makefile.kmk

    r6732 r6757  
    11# $Id$
    22## @file
    3 # Makefile for the VirtualBox Linux Guest Addition Linux Daemon.
     3# Sub-Makefile for the VirtualBox Linux Guest Addition Linux Daemon.
    44#
    55
     
    1616#
    1717
    18 DEPTH = ../../../../..
    19 include $(PATH_KBUILD)/header.kmk
     18DEPTH ?= ../../../../..
     19SUB_DEPTH = ../..
     20include $(PATH_KBUILD)/subheader.kmk
    2021
    2122
    2223## @todo Replace with VBoxService.
    23 PROGRAMS = vboxadd-timesync
     24PROGRAMS += vboxadd-timesync
    2425
    2526vboxadd-timesync_TEMPLATE = VBOXGUESTR3EXE
     
    3233
    3334
    34 include $(PATH_KBUILD)/footer.kmk
     35include $(PATH_KBUILD)/subfooter.kmk
    3536
  • trunk/src/VBox/Additions/linux/module/Makefile.kmk

    r6693 r6757  
    11# $Id$
    22## @file
    3 # Makefile for the VirtualBox Linux Guest Additions Kernel Module.
     3# Sub-Makefile for the VirtualBox Linux Guest Additions Kernel Module.
    44#
    55
     
    1616#
    1717
    18 DEPTH = ../../../../..
    19 include $(PATH_KBUILD)/header.kmk
     18DEPTH ?= ../../../../..
     19SUB_DEPTH = ../..
     20include $(PATH_KBUILD)/subheader.kmk
    2021
    21 INSTALLS = vboxmod-bin vboxmod-sh
     22INSTALLS += vboxmod-bin vboxmod-sh
    2223ifdef VBOX_WITH_ADDITION_DRIVERS
    23  SYSMODS = vboxadd
     24 SYSMODS += vboxadd
    2425endif
    2526
     
    2728# Populate FILES_VBOXADD_NOBIN and FILES_VBOXADD_BIN
    2829#
    29 include files_vboxadd
     30include $(PATH_SUB_CURRENT)/files_vboxadd
    3031
    3132vboxmod-bin_INST    = $(INST_ADDITIONS)/src/vboxadd/
     
    5556        $(VBOX_LIB_IPRT_GUEST_R0)
    5657
    57 include $(PATH_KBUILD)/footer.kmk
     58include $(PATH_KBUILD)/subfooter.kmk
    5859
  • trunk/src/VBox/Additions/linux/sharedfolders/Makefile.kmk

    r6734 r6757  
    11# $Id$
    22## @file
    3 # Makefile for the vboxvfs (linux shared folders module).
     3# Sub-Makefile for the vboxvfs (linux shared folders module).
    44#
    55
     
    1616#
    1717
    18 DEPTH = ../../../../..
    19 include $(PATH_KBUILD)/header.kmk
     18DEPTH ?= ../../../../..
     19SUB_DEPTH = ../..
     20include $(PATH_KBUILD)/subheader.kmk
    2021
    2122ifdef VBOX_WITH_ADDITION_DRIVERS
    22  SYSMODS  = vboxvfs
     23 SYSMODS += vboxvfs
    2324endif
    24 PROGRAMS = mountvboxsf
    25 INSTALLS = vboxvfs-bin vboxvfs-sh
     25PROGRAMS += mountvboxsf
     26INSTALLS += vboxvfs-bin vboxvfs-sh
    2627
    2728#
    2829# Populate FILES_VBOXVFS_NOBIN and FILES_VBOXVFS_BIN
    2930#
    30 include files_vboxvfs
     31include $(PATH_SUB_CURRENT)/files_vboxvfs
    3132
    3233#
     
    5253        KBUILD_BASENAME=KBUILD_STR\(vboxadd\)
    5354vboxvfs_INCS            = \
    54         ../../common/VBoxGuestLib \
     55        $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuestLib \
    5556        $(PATH_ROOT)/src/VBox/Runtime/r0drv/linux
    5657vboxvfs_SOURCES         = \
     
    8485
    8586
    86 include $(PATH_KBUILD)/footer.kmk
     87include $(PATH_KBUILD)/subfooter.kmk
Note: See TracChangeset for help on using the changeset viewer.

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