Makefile.am 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. #AM_CFLAGS = -std=c99 -pedantic -pipe -fPIC -fno-exceptions -fstack-protector -Wl,-z,relro -Wl,-z,now -fvisibility=hidden -W -Wall -Wno-unused-parameter -Wno-unused-function -Wno-unused-label -Wpointer-arith -Wformat -Wreturn-type -Wsign-compare -Wmultichar -Wformat-nonliteral -Winit-self -Wuninitialized -Wno-deprecated -Wformat-security -Werror
  2. AM_CFLAGS = -std=c99 -pedantic -pipe -fPIC -funsigned-char -Wno-pointer-sign -fno-exceptions -fstack-protector -fvisibility=hidden -W -Wall -Wno-unused-parameter -Wno-unused-function -Wno-unused-label -Wpointer-arith -Wformat -Wreturn-type -Wsign-compare -Wmultichar -Wformat-nonliteral -Winit-self -Wuninitialized -Wno-deprecated -Wformat-security -Werror
  3. AM_LDFLAGS =
  4. AM_LDADD =
  5. if DEBUG
  6. AM_CFLAGS += -g3 -O0
  7. else
  8. AM_CFLAGS += -O2
  9. endif
  10. if COVERAGE
  11. AM_CFLAGS += --coverage
  12. AM_LDFLAGS += --coverage
  13. endif
  14. if MULTITHREADING
  15. AM_LDADD += -lpthread
  16. endif
  17. export GLOBAL_AM_CFLAGS = $(AM_CFLAGS)
  18. export GLOBAL_AM_LDADD = $(AM_LDADD)
  19. SUBS=src
  20. if HAVE_CHECK
  21. SUBS+= tests
  22. endif
  23. if ENABLE_DOXYGEN
  24. SUBS+= doc
  25. endif
  26. SUBDIRS = $(SUBS) examples/src