2024-09-09 08:52:07 +00:00
|
|
|
# Makefile for vm tools
|
2024-09-09 08:57:42 +00:00
|
|
|
#
|
|
|
|
TARGETS=page-types slabinfo
|
|
|
|
|
|
|
|
LIB_DIR = ../lib/api
|
|
|
|
LIBS = $(LIB_DIR)/libapikfs.a
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
CC = $(CROSS_COMPILE)gcc
|
2024-09-09 08:57:42 +00:00
|
|
|
CFLAGS = -Wall -Wextra -I../lib/
|
|
|
|
LDFLAGS = $(LIBS)
|
|
|
|
|
|
|
|
$(TARGETS): $(LIBS)
|
|
|
|
|
|
|
|
$(LIBS):
|
|
|
|
make -C $(LIB_DIR)
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
%: %.c
|
2024-09-09 08:57:42 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) page-types slabinfo
|
2024-09-09 08:57:42 +00:00
|
|
|
make -C $(LIB_DIR) clean
|