VirtualBox

source: vbox/trunk/src/VBox/Frontends/Common/VBoxKeyboard/Makefile.kmk@ 48854

Last change on this file since 48854 was 41477, checked in by vboxsync, 12 years ago

/Makefile.kmk: Cosmetic changes.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.8 KB
Line 
1# $Id: Makefile.kmk 41477 2012-05-29 11:43:27Z vboxsync $
2## @file
3# Makefile for the VirtualBox X11 keyboard library
4#
5
6#
7# Copyright (C) 2006-2012 Oracle Corporation
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
18SUB_DEPTH = ../../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21if1of ($(KBUILD_TARGET), freebsd linux openbsd netbsd solaris) # X11
22 DLLS += VBoxKeyboard
23 OTHERS += $(PATH_STAGE_BIN)/vboxkeyboard.tar.bz2
24 OTHER_CLEAN += $(PATH_STAGE_BIN)/vboxkeyboard.tar.bz2
25endif
26
27
28#
29# VBoxKeyboard - keyboard library for X11.
30#
31VBoxKeyboard_TEMPLATE = VBOXR3
32VBoxKeyboard_SOURCES = \
33 keyboard.c
34VBoxKeyboard_LIBS = X11
35VBoxKeyboard_LIBPATH = $(VBOX_LIBPATH_X11)
36
37
38#
39# vboxkeyboard.tar.gz - the LGPLed keyboard library must always be
40# redistributed with usable sources.
41#
42# This rule will link create a temporary symlink to src/X11/ and tar
43# up the selected files into a tarball that is installed into the
44# bin directory (probably belongs in /usr/shared/somewhere really,
45# but wtf, it's not like we're even trying to be FHS compliant).
46#
47VBOX_KEYBOARD_STAGE_DIR = $(PATH_TARGET)/VBoxKeyboard/install
48VBOX_KEYBOARD_DEST_DIR = $(VBOX_KEYBOARD_STAGE_DIR)/VBoxKeyboard/
49
50## @todo kBuild need support for copying files into _1_OUTDIR.
51INSTALLS += VBoxKeyboard-Files
52VBoxKeyboard-Files_INSTTYPE = stage
53VBoxKeyboard-Files_INST = misc-staging/VBoxKeyboard/
54VBoxKeyboard-Files_MODE = a+r,u+w
55VBoxKeyboard-Files_SOURCES = \
56 COPYING.LIB \
57 keyboard.c \
58 keyboard-layouts.h \
59 keyboard-list.h \
60 keyboard-tables.h \
61 keyboard-types.h \
62 Makefile \
63 ../../../../../include/VBox/VBoxKeyboard.h=>VBox/VBoxKeyboard.h
64
65INSTALLS += VBoxKeyboard-Tarball
66VBoxKeyboard-Tarball_INST = $(INST_BIN)
67VBoxKeyboard-Tarball_MODE = a+r,u+w
68VBoxKeyboard-Tarball_SOURCES = $(VBoxKeyboard-Tarball_0_OUTDIR)/vboxkeyboard.tar.bz2
69VBoxKeyboard-Tarball_CLEAN = $(VBoxKeyboard-Tarball_0_OUTDIR)/vboxkeyboard.tar.bz2
70
71$$(VBoxKeyboard-Tarball_0_OUTDIR)/vboxkeyboard.tar.bz2: \
72 $$(VBoxKeyboard-Files_2_STAGE_TARGETS) \
73 $(MAKEFILE_CURRENT) \
74 | $$(dir $$@)
75 $(call MSG_L1,Packing $@)
76 $(QUIET)$(RM) -f -- $@ $(patsubst %.bz2,%,$@)
77ifdef VBOX_GTAR
78 $(QUIET)$(VBOX_GTAR) --dereference --owner 0 --group 0 --ignore-failed-read \
79 -cjRf $@ \
80 -C $(PATH_STAGE)/$(VBoxKeyboard-Files_INST).. VBoxKeyboard
81else
82 $(QUIET)tar -cjf $@ \
83 -C $(PATH_STAGE)/$(VBoxKeyboard-Files_INST).. VBoxKeyboard
84endif
85 $(QUIET)$(CHMOD) 0644 $@
86
87
88
89include $(FILE_KBUILD_SUB_FOOTER)
90
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