makefile.conf

来自「ADaM is a data mining and image processi」· CONF 代码 · 共 83 行

CONF
83
字号
# Set USE_ZLIB to 1 if you want zlib support for datafile loading# dynamically linked into the programs.  This allows loading of gzip'd# datafiles.  If USE_ZLIB is set, the the ZLIB variable is used to link# in a ZLIB library.  Set USE_ZLIB to 0 if you do not want zlib support.USE_ZLIB := 1ZLIB := -lz# Used in several places.CP := cp# These are used for the called and uncalled targets in Makefile.# These targets are *not* essential, even for developers.  fgrep# should support -x (exact match) and -f (read patterns from file).# The GNU version does this.CAT := cat  FGREP := fgrepCTAGS := ctagsCUT := cut# These are used for the release target.RMDIR := rmdirDATE := date# Note, if you use a different profile, then you may have to fix# Makefile and testing/stripprof.sh in order for the "called"# and "uncalled" targets to work.PROF := gprofGMON := gmon.out# This is used for the valgrind target, which we use for memory debugging.VALGRIND := valgrind --tool=memcheck --leak-check=yes --num-callers=15################################################################ CFLAGS and LDFLAGS for various compile "types" (make t=foo)# This undefines ZLIB if USE_ZLIB is not 1.ifneq ($(USE_ZLIB),1)  ZLIB :=endif# We will always include -DAMFAST until we have removed all legacy code# that depends on it.CFLAGS := -Wall -DAMFAST -DUSE_ZLIB=$(USE_ZLIB) -O2 \          -Werror-implicit-function-declarationLDFLAGS := $(ZLIB) -lmifeq ($(t),fastdebug)  CFLAGS := -Wall -DAMFAST -DUSE_ZLIB=$(USE_ZLIB) -g -O2 \            -Werror-implicit-function-declaration  LDFLAGS := $(ZLIB) -lmendififeq ($(t),debug)  CFLAGS := -Wall -g -O0 -DAMFAST -DUSE_ZLIB=$(USE_ZLIB) \            -Werror-implicit-function-declaration  LDFLAGS := $(ZLIB) -lmendififeq ($(t),profile)  CFLAGS := -Wall -pg -DAMFAST -DUSE_ZLIB=$(USE_ZLIB) -O2 \            -Werror-implicit-function-declaration  LDFLAGS := -pg $(ZLIB) -lmendif# WINDOWS builds.ifeq ($(t),mingw)  # zlib appears broken in this build.  It tries to dereference the  # _flags member from a gzFile.  A gzFile is void *, and the compiler  # complains.  This does not happen with the same version of zlib  # on a GNU/Linux system.  CFLAGS := -Wall -mno-cygwin -DAMFAST -DUSE_ZLIB=0 -O2 \            -Werror-implicit-function-declaration  LDFLAGS := -mno-cygwin -lmendififeq ($(t),win32)  # I am not sure how to specify zlib linking with MSVC, and have  # explicity turned it off in the CFLAGS and omitted ZLIB from  # from the link flags.  CC := cl  CFLAGS := /DWIN32 /DAMFAST /DUSE_ZLIB=0 /O2  LDFLAGS := /DWIN32endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?