]> git.ipfire.org Git - people/arne_f/kernel.git/blame - tools/vm/Makefile
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[people/arne_f/kernel.git] / tools / vm / Makefile
CommitLineData
b2441318 1# SPDX-License-Identifier: GPL-2.0
c6dd897f 2# Makefile for vm tools
5a439645 3#
48c96a36 4TARGETS=page-types slabinfo page_owner_sort
5a439645 5
553873e1 6LIB_DIR = ../lib/api
4933f55f 7LIBS = $(LIB_DIR)/libapi.a
c6dd897f
DY
8
9CC = $(CROSS_COMPILE)gcc
5a439645 10CFLAGS = -Wall -Wextra -I../lib/
553873e1 11LDFLAGS = $(LIBS)
5a439645 12
0937577d
DT
13all: $(TARGETS)
14
553873e1 15$(TARGETS): $(LIBS)
5a439645 16
553873e1
BP
17$(LIBS):
18 make -C $(LIB_DIR)
c6dd897f 19
c6dd897f 20%: %.c
5a439645 21 $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
c6dd897f
DY
22
23clean:
48c96a36 24 $(RM) page-types slabinfo page_owner_sort
553873e1 25 make -C $(LIB_DIR) clean
0937577d
DT
26
27sbindir ?= /usr/sbin
28
29install: all
30 install -d $(DESTDIR)$(sbindir)
31 install -m 755 -p $(TARGETS) $(DESTDIR)$(sbindir)