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

Makefile 386B

1234567891011121314151617181920212223
  1. CFLAGS = -Wall -Wextra -Werror -pedantic -std=c99 -fopenmp
  2. LDLIBS = -lrt
  3. CC = gcc
  4. SOURCES = common.c d2s.c d2p.c main.c
  5. OUT = omp-merge-sort
  6. OBJS = $(SOURCES:.c=.o)
  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)