1 # SPDX-License-Identifier: GPL-2.0
2 # Makefile for vm tools
4 TARGETS
=page-types slabinfo page_owner_sort
7 LIBS
= $(LIB_DIR
)/libapi.a
9 CC
= $(CROSS_COMPILE
)gcc
10 CFLAGS
= -Wall
-Wextra
-I..
/lib
/
21 $(CC
) $(CFLAGS
) -o
$@
$< $(LDFLAGS
)
24 $(RM
) page-types slabinfo page_owner_sort
25 make
-C
$(LIB_DIR
) clean
30 install -d
$(DESTDIR
)$(sbindir
)
31 install -m
755 -p
$(TARGETS
) $(DESTDIR
)$(sbindir
)