xref: /spdk/isalbuild/Makefile (revision 488570ebd418ba07c9e69e65106dcc964f3bb41b)
1#  SPDX-License-Identifier: BSD-3-Clause
2#  Copyright (c) Intel Corporation.
3#  All rights reserved.
4#
5
6SPDK_ROOT_DIR := $(abspath $(CURDIR)/..)
7include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
8
9.PHONY: all clean install
10
11ifneq ($(Q),)
12REDIRECT=> /dev/null
13endif
14
15# Force-disable scan-build
16SUB_CC = $(patsubst %ccc-analyzer,$(DEFAULT_CC),$(CC))
17
18$(ISAL_DIR)/isa-l:
19	@ln -s $(ISAL_DIR)/include $(ISAL_DIR)/isa-l
20
21all: $(ISAL_DIR)/isa-l
22	$(Q)$(MAKE) -C $(SPDK_ROOT_DIR)/isa-l all CC="$(SUB_CC)" $(REDIRECT)
23
24install: all
25
26uninstall:
27	@:
28
29clean:
30	$(Q)$(MAKE) -C $(SPDK_ROOT_DIR)/isa-l clean $(REDIRECT)
31	$(Q)rm -rf $(ISAL_DIR)/isa-l
32