1# Copyright 2018 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 7# Driver. 8 9MODULE := $(LOCAL_DIR) 10 11MODULE_TYPE := driver 12 13MODULE_SRCS := \ 14 $(LOCAL_DIR)/aml-bad-block.cpp \ 15 $(LOCAL_DIR)/bad-block.cpp \ 16 $(LOCAL_DIR)/binding.c \ 17 $(LOCAL_DIR)/nandpart.cpp \ 18 $(LOCAL_DIR)/nandpart-utils.cpp \ 19 20MODULE_STATIC_LIBS := \ 21 system/ulib/ddk \ 22 system/ulib/ddktl \ 23 system/ulib/fbl \ 24 system/ulib/sync \ 25 system/ulib/zx \ 26 system/ulib/zxcpp \ 27 28MODULE_LIBS := \ 29 system/ulib/c \ 30 system/ulib/driver \ 31 system/ulib/zircon \ 32 33include make/module.mk 34 35# Unit tests. 36 37MODULE := $(LOCAL_DIR).test 38 39MODULE_TYPE := usertest 40 41MODULE_NAME := nandpart-test 42 43TEST_DIR := $(LOCAL_DIR)/test 44 45MODULE_SRCS := \ 46 $(LOCAL_DIR)/aml-bad-block.cpp \ 47 $(LOCAL_DIR)/bad-block.cpp \ 48 $(LOCAL_DIR)/nandpart-utils.cpp \ 49 $(TEST_DIR)/main.cpp\ 50 $(TEST_DIR)/aml-bad-block-test.cpp\ 51 $(TEST_DIR)/nandpart-utils-test.cpp\ 52 53MODULE_COMPILEFLAGS := \ 54 -I$(LOCAL_DIR) \ 55 -DTEST \ 56 57MODULE_STATIC_LIBS := \ 58 system/ulib/fbl \ 59 system/ulib/ddk \ 60 system/ulib/ddktl \ 61 system/ulib/sync \ 62 system/ulib/zx \ 63 system/ulib/zxcpp \ 64 65MODULE_LIBS := \ 66 system/ulib/c \ 67 system/ulib/fdio \ 68 system/ulib/unittest \ 69 system/ulib/zircon \ 70 71include make/module.mk 72