您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

Makefile 375B

1234567891011121314151617181920212223
  1. CFLAGS = -Wall -Wextra -Werror -pedantic -std=c99
  2. LDLIBS = -lpthread -lrt
  3. CC = gcc
  4. SOURCES = main.c
  5. OBJS = $(SOURCES:.c=.o)
  6. OUT = multithread-matrix-mult
  7. all: release
  8. debug: CFLAGS += -g3 -ggdb3
  9. debug: $(OUT)
  10. release: CFLAGS += -o3
  11. release: $(OUT)
  12. $(OUT): $(OBJS)
  13. $(LINK.c) $(OUTPUT_OPTION) $(OBJS) $(LDLIBS)
  14. clean:
  15. rm -f *.o
  16. distclean: clean
  17. rm -f *.a $(OUT)