Makefile 369 B

12345678910111213141516171819202122
  1. # Makefile for vm tools
  2. #
  3. TARGETS=page-types slabinfo page_owner_sort
  4. LIB_DIR = ../lib/api
  5. LIBS = $(LIB_DIR)/libapi.a
  6. CC = $(CROSS_COMPILE)gcc
  7. CFLAGS = -Wall -Wextra -I../lib/
  8. LDFLAGS = $(LIBS)
  9. $(TARGETS): $(LIBS)
  10. $(LIBS):
  11. make -C $(LIB_DIR)
  12. %: %.c
  13. $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
  14. clean:
  15. $(RM) page-types slabinfo page_owner_sort
  16. make -C $(LIB_DIR) clean