Blob
- Date:
- Message:
- portable: propagate AM_CFLAGS/AM_CPPFLAGS Compiling with warnings and certain compiler flags is important for security and bug-free code. Set a bunch of warnings via AM_CFLAGS in a common Makefile, and let those values propagate to all other Makefiles. While here, also fix the version string to remove quotes.
- Actions:
- History | Blame | Raw File
1 AM_CFLAGS += \2 @AM_CPPFLAGS@ \3 -g -Wall -Wno-long-long -W -Wformat=2 -Wmissing-prototypes \4 -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings \5 -Wshadow -Wpointer-arith -Wsign-compare -Wundef \6 -Wbad-function-cast -Winline -Wcast-align \7 -Wdeclaration-after-statement -Wno-pointer-sign \8 -Wno-attributes -Wno-unused-result10 AM_CPPFLAGS += \11 @AM_CPPFLAGS@ \12 -DGOT_VERSION=@VERSION@ \13 -DGOT_VERSION_NUMBER=@VERSION@ \14 -DGOT_LIBEXECDIR="$(libexecdir)" \15 -I$(top_srcdir) \16 -I$(top_srcdir)/compat \17 -I$(top_srcdir)/lib \18 -I$(top_srcdir)/include \19 -I.