xref: /kernel/linux/linux-5.10/tools/vm/Makefile
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/tools/vm/
18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci# Makefile for vm tools
38c2ecf20Sopenharmony_ci#
48c2ecf20Sopenharmony_ciinclude ../scripts/Makefile.include
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ciTARGETS=page-types slabinfo page_owner_sort
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ciLIB_DIR = ../lib/api
98c2ecf20Sopenharmony_ciLIBS = $(LIB_DIR)/libapi.a
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ciCFLAGS = -Wall -Wextra -I../lib/
128c2ecf20Sopenharmony_ciLDFLAGS = $(LIBS)
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ciall: $(TARGETS)
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci$(TARGETS): $(LIBS)
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci$(LIBS):
198c2ecf20Sopenharmony_ci	make -C $(LIB_DIR)
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci%: %.c
228c2ecf20Sopenharmony_ci	$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ciclean:
258c2ecf20Sopenharmony_ci	$(RM) page-types slabinfo page_owner_sort
268c2ecf20Sopenharmony_ci	make -C $(LIB_DIR) clean
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_cisbindir ?= /usr/sbin
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ciinstall: all
318c2ecf20Sopenharmony_ci	install -d $(DESTDIR)$(sbindir)
328c2ecf20Sopenharmony_ci	install -m 755 -p $(TARGETS) $(DESTDIR)$(sbindir)
33

Indexes created Thu Nov 07 10:32:03 CST 2024