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.

21 lines
605 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. noheader:
  10. [ ! -f bits/stdc++.h.gch ] || rm -rf bits/stdc++.h.gch
  11. [ ! -f ext/pb_ds/assoc_container.hpp.gch ] || rm -rf ext/pb_ds/assoc_container.hpp.gch
  12. .PHONY: noheader
  13. clean: noheader
  14. [ ! -f *.in ] || rm *.in
  15. [ ! -f *.out ] || rm *.out
  16. [ ! -f *.res ] || rm *.res
  17. [ ! -f Main ] || rm Main
  18. .PHONY: clean