Makefile 369 Bytes
Newer Older
1
# Makefile for vm tools
2
#
3
TARGETS=page-types slabinfo page_owner_sort
4

5
LIB_DIR = ../lib/api
Andi Kleen's avatar
Andi Kleen committed
6
LIBS = $(LIB_DIR)/libapi.a
7 8

CC = $(CROSS_COMPILE)gcc
9
CFLAGS = -Wall -Wextra -I../lib/
10
LDFLAGS = $(LIBS)
11

12
$(TARGETS): $(LIBS)
13

14 15
$(LIBS):
	make -C $(LIB_DIR)
16 17

%: %.c
18
	$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
19 20

clean:
21
	$(RM) page-types slabinfo page_owner_sort
22
	make -C $(LIB_DIR) clean