forked from xinyu391/zircon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrules.mk
More file actions
35 lines (29 loc) · 1002 Bytes
/
rules.mk
File metadata and controls
35 lines (29 loc) · 1002 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright 2017 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
LOCAL_DIR := $(GET_LOCAL_DIR)
ifeq ($(call TOBOOL, $(ENABLE_USER_PCI)), true)
$(warning Building with userspace pci!)
MODULE := $(LOCAL_DIR)
MODULE_TYPE := driver
MODULE_NAME := bus-pci
MODULE_SRCS := $(LOCAL_DIR)/upci.c
MODULE_STATIC_LIBS := system/ulib/ddk
MODULE_LIBS := system/ulib/driver system/ulib/zircon system/ulib/c
include make/module.mk
else
MODULE := $(LOCAL_DIR)
MODULE_TYPE := driver
MODULE_NAME := bus-pci
MODULE_SRCS := $(LOCAL_DIR)/kpci.c
MODULE_STATIC_LIBS := system/ulib/ddk
MODULE_LIBS := system/ulib/driver system/ulib/zircon system/ulib/c
include make/module.mk
MODULE := $(LOCAL_DIR).proxy
MODULE_TYPE := driver
MODULE_NAME := bus-pci.proxy
MODULE_SRCS := $(LOCAL_DIR)/proxy.c
MODULE_STATIC_LIBS := system/ulib/ddk
MODULE_LIBS := system/ulib/driver system/ulib/zircon system/ulib/c
include make/module.mk
endif