netlink: access nlk groups safely in netlink bind and getname
[linux/fpc-iii.git] / tools / vm / Makefile
blob006029456988d637d74a1da983747ce5a9625e1f
1 # Makefile for vm tools
3 TARGETS=page-types slabinfo page_owner_sort
5 LIB_DIR = ../lib/api
6 LIBS = $(LIB_DIR)/libapi.a
8 CC = $(CROSS_COMPILE)gcc
9 CFLAGS = -Wall -Wextra -I../lib/
10 LDFLAGS = $(LIBS)
12 all: $(TARGETS)
14 $(TARGETS): $(LIBS)
16 $(LIBS):
17 make -C $(LIB_DIR)
19 %: %.c
20 $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
22 clean:
23 $(RM) page-types slabinfo page_owner_sort
24 make -C $(LIB_DIR) clean
26 sbindir ?= /usr/sbin
28 install: all
29 install -d $(DESTDIR)$(sbindir)
30 install -m 755 -p $(TARGETS) $(DESTDIR)$(sbindir)