Makefile.am 753 B

123456789101112131415161718192021222324252627282930313233
  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_LDFLAGS =
  3. AM_LDADD =
  4. if DEBUG
  5. AM_CFLAGS += -g3 -O0
  6. else
  7. AM_CFLAGS += -O2
  8. endif
  9. if COVERAGE
  10. AM_CFLAGS += --coverage
  11. AM_LDFLAGS += --coverage
  12. endif
  13. if MULTITHREADING
  14. AM_LDADD += -lpthread
  15. endif
  16. export GLOBAL_AM_CFLAGS = $(AM_CFLAGS)
  17. export GLOBAL_AM_LDADD = $(AM_LDADD)
  18. SUBS=tools include src
  19. if HAVE_CHECK
  20. SUBS+= tests
  21. endif
  22. if ENABLE_DOXYGEN
  23. SUBS+= doc
  24. endif
  25. SUBDIRS = $(SUBS) examples/src