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.

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)