Makefile 369 B

1234567891011121314151617181920212223
  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