1 # SPDX-License-Identifier: GPL-2.0
2 # Makefile for vm tools
4 include ../scripts/Makefile.include
6 BUILD_TARGETS=page-types slabinfo page_owner_sort thp_swap_allocator_test
7 INSTALL_TARGETS = $(BUILD_TARGETS) thpmaps
10 LIBS = $(LIB_DIR)/libapi.a
12 CFLAGS += -Wall -Wextra -I../lib/ -pthread
13 LDFLAGS += $(LIBS) -pthread
17 $(BUILD_TARGETS): $(LIBS)
23 $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
26 $(RM) page-types slabinfo page_owner_sort
27 make -C $(LIB_DIR) clean
32 install -d $(DESTDIR)$(sbindir)
33 install -m 755 -p $(INSTALL_TARGETS) $(DESTDIR)$(sbindir)