这是一个本人学习 csapp 的 learning 库

26 líneas
542 B

  1. #
  2. # Makefile that builds btest and other helper programs for the CS:APP data lab
  3. #
  4. CC = gcc
  5. CFLAGS = -O -Wall -m32
  6. LIBS = -lm
  7. all: btest fshow ishow
  8. btest: btest.c bits.c decl.c tests.c btest.h bits.h
  9. $(CC) $(CFLAGS) $(LIBS) -o btest bits.c btest.c decl.c tests.c
  10. fshow: fshow.c
  11. $(CC) $(CFLAGS) -o fshow fshow.c
  12. ishow: ishow.c
  13. $(CC) $(CFLAGS) -o ishow ishow.c
  14. # Forces a recompile. Used by the driver program.
  15. btestexplicit:
  16. $(CC) $(CFLAGS) $(LIBS) -o btest bits.c btest.c decl.c tests.c
  17. clean:
  18. rm -f *.o btest fshow ishow *~