Няма описание
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526272829
  1. objs = main.o tree_alloc.o util.o
  2. CC = clang
  3. COMMON_FLAGS = -std=gnu11
  4. OUT_NAME = the_alloc
  5. dev: CFLAGS= $(COMMON_FLAGS) -g -D UNIT_TESTS -D DEBUG=1
  6. dev: $(OUT_NAME)
  7. rm -f vgcore.*
  8. valgrind ./$(OUT_NAME)
  9. release: CFLAGS= $(COMMON_FLAGS) -O2
  10. release: clean $(OUT_NAME)
  11. rm *.o
  12. $(OUT_NAME): $(objs)
  13. $(CC) $(CFLAGS) -o $(OUT_NAME) $(objs)
  14. clean:
  15. rm -f *.o $(OUT_NAME)
  16. main.o: main.c alloc_api.h
  17. $(CC) $(CFLAGS) -c main.c -o main.o
  18. tree_alloc.o: tree_alloc.c allocator_internal.h
  19. $(CC) $(CFLAGS) -c tree_alloc.c -o tree_alloc.o
  20. util.o: util.c
  21. $(CC) $(CFLAGS) -c util.c