Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / tools / vm / Makefile
blob20f6cf04377f0c257aeb4bacb3133b6a35e9e9b6
1 # SPDX-License-Identifier: GPL-2.0
2 # Makefile for vm tools
4 TARGETS=page-types slabinfo page_owner_sort
6 LIB_DIR = ../lib/api
7 LIBS = $(LIB_DIR)/libapi.a
9 CFLAGS = -Wall -Wextra -I../lib/
10 LDFLAGS = $(LIBS)
12 all: $(TARGETS)
14 $(TARGETS): $(LIBS)
16 $(LIBS):
17 make -C $(LIB_DIR)
19 %: %.c
20 $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
22 clean:
23 $(RM) page-types slabinfo page_owner_sort
24 make -C $(LIB_DIR) clean
26 sbindir ?= /usr/sbin
28 install: all
29 install -d $(DESTDIR)$(sbindir)
30 install -m 755 -p $(TARGETS) $(DESTDIR)$(sbindir)