1 | # $Id: Makefile.kmk 76553 2019-01-01 01:45:53Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the vboximg-mount Program.
|
---|
4 |
|
---|
5 | #
|
---|
6 | # Copyright (C) 2006-2019 Oracle Corporation
|
---|
7 | #
|
---|
8 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
9 | # available from http://www.virtualbox.org. This file is free software;
|
---|
10 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
11 | # General Public License (GPL) as published by the Free Software
|
---|
12 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
13 | # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
14 | # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
15 | #
|
---|
16 |
|
---|
17 |
|
---|
18 | SUB_DEPTH = ../../../..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
22 | VBOX_PATH_FUSE ?= $(lastword $(sort $(wildcard $(KBUILD_DEVTOOLS_TRG)/osxfuse/v*)))
|
---|
23 | ifneq ($(VBOX_PATH_FUSE),)
|
---|
24 | LIB_FUSE := $(VBOX_PATH_FUSE)/lib/libosxfuse.dylib
|
---|
25 | LIBPATH_FUSE := $(VBOX_PATH_FUSE)/lib
|
---|
26 | FUSE_INCS := $(VBOX_PATH_FUSE)/include/osxfuse
|
---|
27 | else
|
---|
28 | LIB_FUSE := /usr/local/lib/libosxfuse.dylib
|
---|
29 | LIBPATH_FUSE := /usr/local/lib
|
---|
30 | FUSE_INCS := /usr/local/include/osxfuse \
|
---|
31 | /usr/local/include
|
---|
32 | endif
|
---|
33 | else
|
---|
34 | LIB_FUSE := fuse
|
---|
35 | FUSE_INCS := /usr/include
|
---|
36 | endif
|
---|
37 |
|
---|
38 | #
|
---|
39 | # vboximg-mount - Disk Image Flatting FUSE Program.
|
---|
40 | #
|
---|
41 | PROGRAMS += vboximg-mount
|
---|
42 |
|
---|
43 | vboximg-mount_TEMPLATE = VBOXMAINCLIENTEXE
|
---|
44 | vboximg-mount_DEFS.darwin = __FreeBSD_==10
|
---|
45 | vboximg-mount_DEFS = _FILE_OFFSET_BITS=64
|
---|
46 |
|
---|
47 | vboximg-mount_SOURCES = \
|
---|
48 | vboximg-mount.cpp \
|
---|
49 | vboximg-mount.h \
|
---|
50 | vboximgCrypto.cpp \
|
---|
51 | vboximgCrypto.h \
|
---|
52 | vboximgMedia.cpp \
|
---|
53 | vboximgMedia.h \
|
---|
54 | vboximgOpts.h \
|
---|
55 | SelfSizingTable.h
|
---|
56 |
|
---|
57 | vboximg-mount_LIBS = \
|
---|
58 | $(LIB_DDU) \
|
---|
59 | $(LIB_RUNTIME) \
|
---|
60 | $(LIB_FUSE)
|
---|
61 |
|
---|
62 | vboximg-mount_INCS = $(FUSE_INCS)
|
---|
63 | #vboximg-mount_CXXFLAGS.darwin = -std=c++11
|
---|
64 |
|
---|
65 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|