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