diff options
| author | Meizu OpenSource <patchwork@meizu.com> | 2016-08-15 10:19:42 +0800 |
|---|---|---|
| committer | Meizu OpenSource <patchwork@meizu.com> | 2016-08-15 10:19:42 +0800 |
| commit | d2e1446d81725c351dc73a03b397ce043fb18452 (patch) | |
| tree | 4dbc616b7f92aea39cd697a9084205ddb805e344 /tools/vm/Makefile | |
first commit
Diffstat (limited to 'tools/vm/Makefile')
| -rw-r--r-- | tools/vm/Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/vm/Makefile b/tools/vm/Makefile new file mode 100644 index 000000000..24e9ddd93 --- /dev/null +++ b/tools/vm/Makefile @@ -0,0 +1,22 @@ +# Makefile for vm tools +# +TARGETS=page-types slabinfo + +LK_DIR = ../lib/lk +LIBLK = $(LK_DIR)/liblk.a + +CC = $(CROSS_COMPILE)gcc +CFLAGS = -Wall -Wextra -I../lib/ +LDFLAGS = $(LIBLK) + +$(TARGETS): liblk + +liblk: + make -C $(LK_DIR) + +%: %.c + $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) + +clean: + $(RM) page-types slabinfo + make -C ../lib/lk clean |
