• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Makefile for vm tools
2#
3TARGETS=page-types slabinfo
4
5LK_DIR = ../lib/lk
6LIBLK = $(LK_DIR)/liblk.a
7
8CC = $(CROSS_COMPILE)gcc
9CFLAGS = -Wall -Wextra -I../lib/
10LDFLAGS = $(LIBLK)
11
12$(TARGETS): liblk
13
14liblk:
15	make -C $(LK_DIR)
16
17%: %.c
18	$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
19
20clean:
21	$(RM) page-types slabinfo
22	make -C ../lib/lk clean
23