1# SPDX-License-Identifier: BSD-3-Clause 2# Copyright (c) Intel Corporation. 3# All rights reserved. 4# 5 6ALL_DEPDIRS+= hello_world passthru nvme 7 8ifneq ($(SPDK_HEADER_DIR),) 9COMMON_CFLAGS+=-I$(SPDK_HEADER_DIR) 10endif 11 12ifneq ($(SPDK_LIB_DIR),) 13COMMON_CFLAGS+=-L$(SPDK_LIB_DIR) 14endif 15 16ifneq ($(DPDK_LIB_DIR),) 17COMMON_CFLAGS+=-L$(DPDK_LIB_DIR) 18endif 19 20ifneq ($(VFIO_LIB_DIR),) 21COMMON_CFLAGS+=-L$(VFIO_LIB_DIR) 22endif 23export 24.PHONY: all 25 26all: hello_world_bdev_shared_combo nvme_shared 27 28static: hello_world_bdev_static nvme_static 29 30hello_world_bdev_shared_combo: passthru_shared 31 $(MAKE) --directory=hello_world bdev_shared_combo 32 33hello_world_bdev_shared_iso: passthru_shared 34 $(MAKE) --directory=hello_world bdev_shared_iso 35 36hello_world_no_bdev_shared_combo: 37 $(MAKE) --directory=hello_world alone_shared_combo 38 39hello_world_no_bdev_shared_iso: 40 $(MAKE) --directory=hello_world alone_shared_iso 41 42hello_world_bdev_static: passthru_static 43 $(MAKE) --directory=hello_world bdev_static 44 45hello_world_no_bdev_static: 46 $(MAKE) --directory=hello_world alone_static 47 48passthru_shared: 49 $(MAKE) --directory=passthru shared 50 51passthru_static: 52 $(MAKE) --directory=passthru static 53 54nvme_shared: 55 $(MAKE) --directory=nvme shared 56 57nvme_static: 58 $(MAKE) --directory=nvme static 59 60clean: 61 rm -f ./hello_world/hello_bdev 62 rm -f ./passthru/libpassthru_external.* 63 rm -f ./nvme/*.{so,o} ./nvme/identify 64