Makefile 721 B

12345678910111213141516171819202122232425262728293031323334
  1. #Stephen Stengel <stephen.stengel@cwu.edu> 40819903
  2. #makefile for lab2
  3. #Make executable. No -O2 optimization
  4. lab2: lab2-stephen-stengel.o
  5. gcc -Wall -fopenmp -o lab2 lab2-stephen-stengel.o -lm
  6. #Make the object file
  7. lab2-stephen-stengel.o: lab2-stephen-stengel.c lab2-stephen-stengel.h mylab1functions.h
  8. gcc -Wall -fopenmp -c lab2-stephen-stengel.c -lm
  9. #Miscellaneous
  10. .PHONY: clean
  11. clean:
  12. rm -f lab2 *.o lab2-stephen-stengel.zip
  13. .PHONY: backup
  14. backup:
  15. ssh-backup-pi | lolcat
  16. .PHONY: zip
  17. zip:
  18. 7z a lab2-stephen-stengel.zip *.c *.h *.py Makefile helpfile \
  19. ../paper/stephen-stengel-lab2.pdf ../video/*.mkv ../pics \
  20. ../data
  21. ##README
  22. .PHONY: script
  23. script:
  24. make clean && make && make zip && make backup