]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - tools/vm/Makefile
selftests/powerpc: Remove redundant cp_abort test
[mirror_ubuntu-bionic-kernel.git] / tools / vm / Makefile
1 # SPDX-License-Identifier: GPL-2.0
2 # Makefile for vm tools
3 #
4 TARGETS=page-types slabinfo page_owner_sort
5
6 LIB_DIR = ../lib/api
7 LIBS = $(LIB_DIR)/libapi.a
8
9 CC = $(CROSS_COMPILE)gcc
10 CFLAGS = -Wall -Wextra -I../lib/
11 LDFLAGS = $(LIBS)
12
13 all: $(TARGETS)
14
15 $(TARGETS): $(LIBS)
16
17 $(LIBS):
18 make -C $(LIB_DIR)
19
20 %: %.c
21 $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
22
23 clean:
24 $(RM) page-types slabinfo page_owner_sort
25 make -C $(LIB_DIR) clean
26
27 sbindir ?= /usr/sbin
28
29 install: all
30 install -d $(DESTDIR)$(sbindir)
31 install -m 755 -p $(TARGETS) $(DESTDIR)$(sbindir)