1# Copyright 2017 The Fuchsia Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5LOCAL_DIR := $(GET_LOCAL_DIR)
6
7MODULE := $(LOCAL_DIR)
8
9MODULE_TYPE := hostapp
10
11MODULE_SRCS += \
12    $(LOCAL_DIR)/main.cpp \
13    $(LOCAL_DIR)/container/container.cpp \
14    $(LOCAL_DIR)/container/fvm.cpp \
15    $(LOCAL_DIR)/container/sparse.cpp \
16    $(LOCAL_DIR)/format/blobfs.cpp \
17    $(LOCAL_DIR)/format/format.cpp \
18    $(LOCAL_DIR)/format/minfs.cpp \
19
20MODULE_COMPILEFLAGS := \
21    -Werror-implicit-function-declaration \
22    -Wstrict-prototypes -Wwrite-strings \
23    -Ithird_party/ulib/lz4/include \
24    -Isystem/uapp/fvm/include \
25    -Isystem/ulib/bitmap/include \
26    -Isystem/ulib/blobfs/include \
27    -Isystem/ulib/digest/include \
28    -Isystem/ulib/fbl/include \
29    -Isystem/ulib/fdio/include \
30    -Isystem/ulib/fit/include \
31    -Isystem/ulib/fs/include \
32    -Isystem/ulib/fs-management/include \
33    -Isystem/ulib/fvm/include \
34    -Isystem/ulib/fzl/include \
35    -Isystem/ulib/gpt/include \
36    -Isystem/ulib/minfs/include \
37
38MODULE_HOST_LIBS := \
39    third_party/ulib/uboringssl.hostlib \
40    third_party/ulib/lz4.hostlib \
41    system/uapp/blobfs.hostlib \
42    system/ulib/fvm.hostlib \
43    system/ulib/fbl.hostlib \
44    system/ulib/fs.hostlib \
45    system/ulib/digest.hostlib \
46    system/ulib/minfs.hostlib \
47
48MODULE_PACKAGE := bin
49
50include make/module.mk
51