Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. all: line_counter
  2. line_counter: Main.c
  3. gcc -o $@ Main.c \
  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. -O3
  71. test: line_counter
  72. ./line_counter .. .c .h
  73. clean:
  74. rm -f line_counter