2012-03-29 01:42:55 +04:00
|
|
|
# Makefile for vm tools
|
2013-02-20 19:32:33 +04:00
|
|
|
#
|
|
|
|
TARGETS=page-types slabinfo
|
|
|
|
|
2013-12-09 20:14:23 +04:00
|
|
|
LIB_DIR = ../lib/api
|
|
|
|
LIBS = $(LIB_DIR)/libapikfs.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/
|
2013-12-09 20:14:23 +04:00
|
|
|
LDFLAGS = $(LIBS)
|
2013-02-20 19:32:33 +04:00
|
|
|
|
2013-12-09 20:14:23 +04:00
|
|
|
$(TARGETS): $(LIBS)
|
2013-02-20 19:32:33 +04:00
|
|
|
|
2013-12-09 20:14:23 +04:00
|
|
|
$(LIBS):
|
|
|
|
make -C $(LIB_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-12-09 20:14:23 +04:00
|
|
|
make -C $(LIB_DIR) clean
|