代码拉取完成,页面将自动刷新
# Makefile.inc - common definitions used by all makefiles
TLPI_DIR = ..
TLPI_LIB =
TLPI_INCL_DIR = ${TLPI_DIR}/inc
JSON_INCL_DIR = ${TLPI_DIR}/lib
LINUX_LIBRT = -lrt
LINUX_LIBDL = -ldl
LINUX_LIBACL = -lacl
LINUX_LIBCRYPT = -lcrypt
LINUX_LIBCAP = -lcap
# "-Wextra" is a more descriptive synonym for "-W", but only
# available in more recent gcc versions
# Defining _DEFAULT_SOURCE is a workaround to avoid the warnings that
# would otherwise be produced when compiling code that defines _BSD_SOURCE
# or _SVID_SOURCE against glibc headers in version 2.20 and later.
# (The alternative would be to replace each instance of "#define _SVID_SOURCE"
# or "#define _BSD_SOURCE" in the example programs with
# "#define _DEFAULT_SOURCE".)
IMPL_CFLAGS = -std=c99 -D_XOPEN_SOURCE=600 \
-D_DEFAULT_SOURCE \
-g -I${TLPI_INCL_DIR} \
-pedantic \
-I${JSON_INCL_DIR} \
-Wall \
-W \
-Wmissing-prototypes \
-Wno-sign-compare \
-Wno-unused-parameter
# clang(1) is a little more zealous than gcc(1) with respect to some warnings.
# Suppress those warnings (which, at least in the book code, relate to code
# that is fine).
ifeq ($(CC),clang)
IMPL_CFLAGS += -Wno-uninitialized -Wno-infinite-recursion
endif
CFLAGS = ${IMPL_CFLAGS}
IMPL_THREAD_FLAGS = -pthread
IMPL_LDLIBS = ${TLPI_LIB} -lm
LDLIBS = ${IMPL_LDLIBS}
RM = rm -f
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。