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