Makefile 329 Bytes
Newer Older
1
# Makefile for vm tools
2 3 4 5 6
#
TARGETS=page-types slabinfo

LK_DIR = ../lib/lk
LIBLK = $(LK_DIR)/liblk.a
7 8

CC = $(CROSS_COMPILE)gcc
9 10 11 12 13 14 15
CFLAGS = -Wall -Wextra -I../lib/
LDFLAGS = $(LIBLK)

$(TARGETS): liblk

liblk:
	make -C $(LK_DIR)
16 17

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

clean:
21
	$(RM) page-types slabinfo
22
	make -C ../lib/lk clean