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 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)