]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - tools/vm/Makefile
Merge remote-tracking branches 'asoc/topic/sta529', 'asoc/topic/sti', 'asoc/topic...
[mirror_ubuntu-artful-kernel.git] / tools / vm / Makefile
1 # Makefile for vm tools
2 #
3 TARGETS=page-types slabinfo page_owner_sort
4
5 LIB_DIR = ../lib/api
6 LIBS = $(LIB_DIR)/libapi.a
7
8 CC = $(CROSS_COMPILE)gcc
9 CFLAGS = -Wall -Wextra -I../lib/
10 LDFLAGS = $(LIBS)
11
12 all: $(TARGETS)
13
14 $(TARGETS): $(LIBS)
15
16 $(LIBS):
17 make -C $(LIB_DIR)
18
19 %: %.c
20 $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
21
22 clean:
23 $(RM) page-types slabinfo page_owner_sort
24 make -C $(LIB_DIR) clean
25
26 sbindir ?= /usr/sbin
27
28 install: all
29 install -d $(DESTDIR)$(sbindir)
30 install -m 755 -p $(TARGETS) $(DESTDIR)$(sbindir)