mb/google/nissa/var/rull: Add 6W and 15W DPTF parameters
[coreboot.git] / util / intelp2m / Makefile
blob5f6bc292618150cd11f5c06a56e40aa3ea4abc9d
1 ## SPDX-License-Identifier: GPL-2.0-only
3 PROJECT_NAME := intelp2m
4 THIS_FILE := $(lastword $(MAKEFILE_LIST))
5 THIS_DIR := $(abspath $(dir $(THIS_FILE)))
6 SCRIPTS_DIR := $(THIS_DIR)/scripts/linux
8 OUTPUT_DIR := $(THIS_DIR)/generate
9 VERSION ?= $(shell $(SCRIPTS_DIR)/version.sh)
10 LDFLAGS = "-X main.Version=$(VERSION)"
12 default: version
13 go version
14 go build -ldflags=$(LDFLAGS) -v
16 test:
17 go test ./... -v -count=1
19 clean:
20 rm -Rf $(THIS_DIR)/$(PROJECT_NAME) $(OUTPUT_DIR)
22 version:
23 @echo $(VERSION)