2012-03-29 01:42:55 +04:00
|
|
|
# Makefile for vm tools
|
2013-02-20 19:32:33 +04:00
|
|
|
#
|
|
|
|
TARGETS=page-types slabinfo
|
|
|
|
|
|
|
|
LK_DIR = ../lib/lk
|
|
|
|
LIBLK = $(LK_DIR)/liblk.a
|
2012-03-29 01:42:55 +04:00
|
|
|
|
|
|
|
CC = $(CROSS_COMPILE)gcc
|
2013-02-20 19:32:33 +04:00
|
|
|
CFLAGS = -Wall -Wextra -I../lib/
|
|
|
|
LDFLAGS = $(LIBLK)
|
|
|
|
|
|
|
|
$(TARGETS): liblk
|
|
|
|
|
|
|
|
liblk:
|
|
|
|
make -C $(LK_DIR)
|
2012-03-29 01:42:55 +04:00
|
|
|
|
|
|
|
%: %.c
|
2013-02-20 19:32:33 +04:00
|
|
|
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
|
2012-03-29 01:42:55 +04:00
|
|
|
|
|
|
|
clean:
|
2012-03-29 01:42:55 +04:00
|
|
|
$(RM) page-types slabinfo
|
2013-02-20 19:32:33 +04:00
|
|
|
make -C ../lib/lk clean
|