Makefile 1.5 KB

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