competitive programming scripts on Linux
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.

23 lines
497 B

3 years ago
  1. CXX=g++
  2. CXXFLAGS=-std=c++11 -Wall -Wextra -pedantic -fsanitize=address -fsanitize=undefined -D_GLIBCXX_DEBUG -D DEBUG
  3. FFLAGS=-std=c++11 -O2 -Wall -Wextra # for fast flags
  4. PROG=PROB_NAME
  5. header:
  6. $(CXX) $(CXXFLAGS) bits/stdc++.h
  7. $(CXX) $(CXXFLAGS) ext/pb_ds/assoc_container.hpp
  8. .PHONY: header
  9. fast:
  10. $(CXX) $(FFLAGS) -o Main Main.cpp
  11. .PHONY:fast
  12. noheader:
  13. rm -rf bits/stdc++.h.gch
  14. rm -rf ext/pb_ds/assoc_container.hpp.gch
  15. .PHONY: noheader
  16. clean: noheader
  17. rm *.in *.out *.res
  18. .PHONY: clean