x86/oprofile: Fix bogus GCC-8 warning in nmi_setup()
[cris-mirror.git] / tools / vm / Makefile
blobbe320b905ea75db150da97dfac999b0f7e90b47b
1 # SPDX-License-Identifier: GPL-2.0
2 # Makefile for vm tools
4 TARGETS=page-types slabinfo page_owner_sort
6 LIB_DIR = ../lib/api
7 LIBS = $(LIB_DIR)/libapi.a
9 CC = $(CROSS_COMPILE)gcc
10 CFLAGS = -Wall -Wextra -I../lib/
11 LDFLAGS = $(LIBS)
13 all: $(TARGETS)
15 $(TARGETS): $(LIBS)
17 $(LIBS):
18 make -C $(LIB_DIR)
20 %: %.c
21 $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
23 clean:
24 $(RM) page-types slabinfo page_owner_sort
25 make -C $(LIB_DIR) clean
27 sbindir ?= /usr/sbin
29 install: all
30 install -d $(DESTDIR)$(sbindir)
31 install -m 755 -p $(TARGETS) $(DESTDIR)$(sbindir)