1# Makefile for vm tools 2# 3TARGETS=page-types slabinfo page_owner_sort 4 5LIB_DIR = ../lib/api 6LIBS = $(LIB_DIR)/libapi.a 7 8CC = $(CROSS_COMPILE)gcc 9CFLAGS = -Wall -Wextra -I../lib/ 10LDFLAGS = $(LIBS) 11 12$(TARGETS): $(LIBS) 13 14$(LIBS): 15 make -C $(LIB_DIR) 16 17%: %.c 18 $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) 19 20clean: 21 $(RM) page-types slabinfo page_owner_sort 22 make -C $(LIB_DIR) clean 23