Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. all: pi
  2. pi: Main.c
  3. gcc -o $@ Main.c -lm -O3 \
  4. -Wall \
  5. -Walloc-zero \
  6. -Walloca \
  7. -Wanalyzer-too-complex \
  8. -Warith-conversion \
  9. -Warray-bounds=2 \
  10. -Warray-parameter \
  11. -Wattribute-alias=2 \
  12. -Wbad-function-cast \
  13. -Wbidi-chars=any \
  14. -Wcast-align=strict \
  15. -Wcast-qual \
  16. -Wconversion \
  17. -Wdate-time \
  18. -Wdisabled-optimization \
  19. -Wdouble-promotion \
  20. -Wduplicated-branches \
  21. -Wduplicated-cond \
  22. -Wenum-compare \
  23. -Wenum-conversion \
  24. -Werror \
  25. -Wextra \
  26. -Wfloat-equal \
  27. -Wformat-overflow=2 \
  28. -Wformat-signedness \
  29. -Wformat-truncation=2 \
  30. -Wformat=2 \
  31. -Wframe-larger-than=8388608 \
  32. -Wimplicit-fallthrough=5 \
  33. -Winfinite-recursion \
  34. -Winit-self \
  35. -Winvalid-pch \
  36. -Wjump-misses-init \
  37. -Wlarger-than=1073741824 \
  38. -Wlogical-op \
  39. -Wmissing-braces \
  40. -Wmissing-declarations \
  41. -Wmissing-include-dirs \
  42. -Wmissing-prototypes \
  43. -Wmultichar \
  44. -Wnarrowing \
  45. -Wnested-externs \
  46. -Wnormalized=nfkc \
  47. -Wnull-dereference \
  48. -Wold-style-definition \
  49. -Woverlength-strings \
  50. -Wredundant-decls \
  51. -Wshadow \
  52. -Wshift-overflow=2 \
  53. -Wsign-conversion \
  54. -Wstack-protector \
  55. -Wstack-usage=8388608 \
  56. -Wstrict-overflow=2 \
  57. -Wstrict-prototypes \
  58. -Wstringop-overflow=4 \
  59. -Wswitch-enum \
  60. -Wtrampolines \
  61. -Wtrivial-auto-var-init \
  62. -Wundef \
  63. -Wunreachable-code \
  64. -Wunused-const-variable=2 \
  65. -Wuse-after-free=3 \
  66. -Wvla \
  67. -Wwrite-strings \
  68. -pedantic \
  69. -pedantic-errors
  70. run: pi
  71. ./pi
  72. clean:
  73. rm -f pi