Files
kernel/tools/vm/Makefile
T

33 lines
553 B
Makefile
Raw Normal View History

# SPDX-License-Identifier: GPL-2.0
# Makefile for vm tools
2013-02-20 16:32:33 +01:00
#
2020-04-20 18:14:23 -07:00
include ../scripts/Makefile.include
2014-12-12 16:56:01 -08:00
TARGETS=page-types slabinfo page_owner_sort
2013-02-20 16:32:33 +01:00
2013-12-09 17:14:23 +01:00
LIB_DIR = ../lib/api
2015-05-14 15:16:53 -07:00
LIBS = $(LIB_DIR)/libapi.a
2013-02-20 16:32:33 +01:00
CFLAGS = -Wall -Wextra -I../lib/
2013-12-09 17:14:23 +01:00
LDFLAGS = $(LIBS)
2013-02-20 16:32:33 +01:00
2017-02-22 15:40:12 -08:00
all: $(TARGETS)
2013-12-09 17:14:23 +01:00
$(TARGETS): $(LIBS)
2013-02-20 16:32:33 +01:00
2013-12-09 17:14:23 +01:00
$(LIBS):
make -C $(LIB_DIR)
%: %.c
2013-02-20 16:32:33 +01:00
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
clean:
2014-12-12 16:56:01 -08:00
$(RM) page-types slabinfo page_owner_sort
2013-12-09 17:14:23 +01:00
make -C $(LIB_DIR) clean
2017-02-22 15:40:12 -08:00
sbindir ?= /usr/sbin
install: all
install -d $(DESTDIR)$(sbindir)
install -m 755 -p $(TARGETS) $(DESTDIR)$(sbindir)