Computer Organization and Design assignements
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.
 
 
 
 
 

33 lines
638 B

  1. SHELL := /bin/bash
  2. ######################################################################
  3. ### EXECUTABLES
  4. CC = gcc
  5. FLAGS = -O3 -Wall -std=gnu99
  6. RM = rm -rf
  7. LINK = -lm
  8. ######################################################################
  9. ### TARGET FILES
  10. MAIN = matmul
  11. ######################################################################
  12. ### CLEAN-UP FILES
  13. FILES_CLEAN = $(MAIN) *~
  14. ######################################################################
  15. ### COMMANDS -- ! DO NOT CHANGE BELOW !
  16. all: $(MAIN)
  17. $(MAIN): $(MAIN).c
  18. $(CC) $(FLAGS) $(DEFS) $^ -o $@ $(LINK)
  19. clean:
  20. $(RM) $(FILES_CLEAN) *.o *~
  21. .PHONY: $(MAIN)