2012-03-28 21:42:55 +00:00
|
|
|
# Makefile for vm tools
|
2013-02-20 15:32:33 +00:00
|
|
|
#
|
|
|
|
TARGETS=page-types slabinfo
|
|
|
|
|
2013-12-09 16:14:23 +00:00
|
|
|
LIB_DIR = ../lib/api
|
|
|
|
LIBS = $(LIB_DIR)/libapikfs.a
|
2012-03-28 21:42:55 +00:00
|
|
|
|
|
|
|
CC = $(CROSS_COMPILE)gcc
|
2013-02-20 15:32:33 +00:00
|
|
|
CFLAGS = -Wall -Wextra -I../lib/
|
2013-12-09 16:14:23 +00:00
|
|
|
LDFLAGS = $(LIBS)
|
2013-02-20 15:32:33 +00:00
|
|
|
|
2013-12-09 16:14:23 +00:00
|
|
|
$(TARGETS): $(LIBS)
|
2013-02-20 15:32:33 +00:00
|
|
|
|
2013-12-09 16:14:23 +00:00
|
|
|
$(LIBS):
|
|
|
|
make -C $(LIB_DIR)
|
2012-03-28 21:42:55 +00:00
|
|
|
|
|
|
|
%: %.c
|
2013-02-20 15:32:33 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
|
2012-03-28 21:42:55 +00:00
|
|
|
|
|
|
|
clean:
|
2012-03-28 21:42:55 +00:00
|
|
|
$(RM) page-types slabinfo
|
2013-12-09 16:14:23 +00:00
|
|
|
make -C $(LIB_DIR) clean
|