Merge tag 'block-5.11-2021-01-16' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / tools / vm / Makefile
blob9860622cbb151126571ef0962cdab5735c59c5dd
1 # SPDX-License-Identifier: GPL-2.0
2 # Makefile for vm tools
4 include ../scripts/Makefile.include
6 TARGETS=page-types slabinfo page_owner_sort
8 LIB_DIR = ../lib/api
9 LIBS = $(LIB_DIR)/libapi.a
11 CFLAGS = -Wall -Wextra -I../lib/
12 LDFLAGS = $(LIBS)
14 all: $(TARGETS)
16 $(TARGETS): $(LIBS)
18 $(LIBS):
19 make -C $(LIB_DIR)
21 %: %.c
22 $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
24 clean:
25 $(RM) page-types slabinfo page_owner_sort
26 make -C $(LIB_DIR) clean
28 sbindir ?= /usr/sbin
30 install: all
31 install -d $(DESTDIR)$(sbindir)
32 install -m 755 -p $(TARGETS) $(DESTDIR)$(sbindir)