Merge tag 'md-3.10' of git://neil.brown.name/md
[platform/adaptation/renesas_rcar/renesas_kernel.git] / tools / vm / Makefile
1 # Makefile for vm tools
2 #
3 TARGETS=page-types slabinfo
4
5 LK_DIR = ../lib/lk
6 LIBLK = $(LK_DIR)/liblk.a
7
8 CC = $(CROSS_COMPILE)gcc
9 CFLAGS = -Wall -Wextra -I../lib/
10 LDFLAGS = $(LIBLK)
11
12 $(TARGETS): liblk
13
14 liblk:
15         make -C $(LK_DIR)
16
17 %: %.c
18         $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
19
20 clean:
21         $(RM) page-types slabinfo
22         make -C ../lib/lk clean