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.

Makefile 663B

123456789101112131415161718192021222324252627282930
  1. CFLAGS = -Wall -Wextra -Werror -pedantic -std=c99 -fopenmp
  2. LDLIBS = -lrt
  3. CC = gcc
  4. SOURCES_COMMON = common.c
  5. SOURCES_SEQ = $(SOURCES_COMMON) d2s.c
  6. OUT_SEQ = omp-fusion-sort-seq
  7. OBJS_SEQ = $(SOURCES_SEQ:.c=.o)
  8. SOURCES_PAR = $(SOURCES_COMMON) d2p.c
  9. OUT_PAR = omp-fusion-sort-par
  10. OBJS_PAR = $(SOURCES_PAR:.c=.o)
  11. all: release
  12. debug: CFLAGS += -g3 -ggdb3
  13. debug: $(OUT_SEQ) $(OUT_PAR)
  14. release: CFLAGS += -o3
  15. release: $(OUT_SEQ) $(OUT_PAR)
  16. $(OUT_SEQ): $(OBJS_SEQ)
  17. $(LINK.c) $(OUTPUT_OPTION) $(OBJS_SEQ) $(LDLIBS)
  18. $(OUT_PAR): $(OBJS_PAR)
  19. $(LINK.c) $(OUTPUT_OPTION) $(OBJS_PAR) $(LDLIBS)
  20. clean:
  21. rm -f *.o
  22. distclean: clean
  23. rm -f *.a $(OUT_SEQ) $(OUT_PAR)