From 57f0f512b273f60d52568b8c6b77e17f5636edc0 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Wed, 5 Aug 2015 17:04:01 -0300 Subject: Initial import --- tools/vm/Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tools/vm/Makefile (limited to 'tools/vm/Makefile') diff --git a/tools/vm/Makefile b/tools/vm/Makefile new file mode 100644 index 000000000..93aadaf7f --- /dev/null +++ b/tools/vm/Makefile @@ -0,0 +1,22 @@ +# Makefile for vm tools +# +TARGETS=page-types slabinfo page_owner_sort + +LIB_DIR = ../lib/api +LIBS = $(LIB_DIR)/libapi.a + +CC = $(CROSS_COMPILE)gcc +CFLAGS = -Wall -Wextra -I../lib/ +LDFLAGS = $(LIBS) + +$(TARGETS): $(LIBS) + +$(LIBS): + make -C $(LIB_DIR) + +%: %.c + $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) + +clean: + $(RM) page-types slabinfo page_owner_sort + make -C $(LIB_DIR) clean -- cgit v1.2.3-54-g00ecf