这是一个本人学习 csapp 的 learning 库
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.

30 lines
691 B

2 years ago
2 years ago
  1. #
  2. # Students' Makefile for the Malloc Lab
  3. #
  4. TEAM = bovik
  5. VERSION = 1
  6. HANDINDIR = /afs/cs.cmu.edu/academic/class/15213-f01/malloclab/handin
  7. CC = gcc
  8. CFLAGS = -Wall -Werror -O3 -g -DDRIVER -std=gnu99 -Wno-unused-function -Wno-unused-parameter -m32
  9. OBJS = mdriver.o mm.o memlib.o fsecs.o fcyc.o clock.o ftimer.o
  10. mdriver: $(OBJS)
  11. $(CC) $(CFLAGS) -o mdriver $(OBJS)
  12. mdriver.o: mdriver.c fsecs.h fcyc.h clock.h memlib.h config.h mm.h
  13. memlib.o: memlib.c memlib.h
  14. mm.o: mm.c mm.h memlib.h
  15. fsecs.o: fsecs.c fsecs.h config.h
  16. fcyc.o: fcyc.c fcyc.h
  17. ftimer.o: ftimer.c ftimer.h config.h
  18. clock.o: clock.c clock.h
  19. handin:
  20. cp mm.c $(HANDINDIR)/$(TEAM)-$(VERSION)-mm.c
  21. clean:
  22. rm -f *~ *.o mdriver