1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- AM_CFLAGS = -std=c99 -pedantic -pipe -funsigned-char -Wno-pointer-sign -fno-exceptions -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
- AM_LDFLAGS =
- AM_LDADD =
- if TARGET_WIN
- else
- AM_CFLAGS += -fPIC
- endif
- if DEBUG
- AM_CFLAGS += -g3 -O0
- else
- AM_CFLAGS += -O2
- endif
- if COVERAGE
- AM_CFLAGS += --coverage
- AM_LDFLAGS += --coverage
- endif
- if MULTITHREADING
- AM_LDADD += -lpthread
- endif
- export GLOBAL_AM_CFLAGS = $(AM_CFLAGS)
- export GLOBAL_AM_LDADD = $(AM_LDADD)
- SUBDIRS=src
- if HAVE_CHECK
- SUBDIRS+= tests
- endif
- if ENABLE_DOXYGEN
- SUBDIRS+= doc
- endif
- if TARGET_WIN
- else
- SUBDIRS += examples/src
- endif
- if PYTHON_WRAPPER
- SUBDIRS += wrappers wrappers/python
- endif
- if LUA_WRAPPER
- SUBDIRS += wrappers wrappers/lua
- endif
|