Makefile.am 921 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. AM_CFLAGS = -std=c99 -pedantic -pipe -fstack-protector -Wall -Wextra -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 -ffunction-sections -fdata-sections -Wl,--gc-sections
  2. AM_LDFLAGS =
  3. AM_LDADD =
  4. if TARGET_WIN
  5. else
  6. AM_CFLAGS += -fPIC
  7. endif
  8. if DEBUG
  9. AM_CFLAGS += -g3 -O0
  10. else
  11. AM_CFLAGS += -O2
  12. endif
  13. if COVERAGE
  14. AM_CFLAGS += --coverage
  15. AM_LDFLAGS += --coverage
  16. endif
  17. if MULTITHREADING
  18. AM_LDADD += -lpthread
  19. endif
  20. export GLOBAL_AM_CFLAGS = $(AM_CFLAGS)
  21. export GLOBAL_AM_LDADD = $(AM_LDADD)
  22. SUBDIRS=src
  23. if HAVE_CHECK
  24. SUBDIRS+= tests
  25. endif
  26. if ENABLE_DOXYGEN
  27. SUBDIRS+= doc
  28. endif
  29. if TARGET_WIN
  30. else
  31. SUBDIRS += examples/src
  32. endif
  33. if PYTHON_WRAPPER
  34. SUBDIRS += wrappers wrappers/python
  35. endif
  36. if LUA_WRAPPER
  37. SUBDIRS += wrappers wrappers/lua
  38. endif