lin
2025-02-25 a02983e50ab34c3e7366b27cdeca427a327faebd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#########################################################################
# COMMON COMPILATION FLAGS                                              #
#########################################################################
CFLAGS          := -Wall -Wbad-function-cast -Wcast-align \
          -Werror-implicit-function-declaration -Wextra \
          -Wfloat-equal -Wformat-nonliteral -Wformat-security \
          -Wformat=2 -Winit-self -Wmissing-declarations \
          -Wmissing-format-attribute -Wmissing-include-dirs \
          -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs \
          -Wpointer-arith -Wshadow -Wstrict-prototypes \
          -Wswitch-default \
          -Wwrite-strings -Werror
CFLAGS          += -c -fPIC
DEBUG       ?= 0
ifeq ($(DEBUG), 1)
CFLAGS          += -DDEBUG -O0 -g
endif
 
RM              := rm -rf