xref: /spdk/examples/go/hello_gorpc/Makefile (revision fa79ecf8b6db6c553206c85143871baf27bd6f2d)
1#  SPDX-License-Identifier: BSD-3-Clause
2#  Copyright (C) 2023 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
10
11BUILDFLAGS=-trimpath -mod=readonly -gcflags="all=-spectre=all -N -l" -asmflags="all=-spectre=all" -ldflags="all=-s -w"
12
13all:
14	$(Q)go build $(BUILDFLAGS) -o $(SPDK_ROOT_DIR)/build/examples/hello_gorpc
15
16clean:
17	$(Q)rm -rf $(SPDK_ROOT_DIR)/build/examples/hello_gorpc
18