defs.mk, ytools.mk.in: Debug options ytools.mk -> defs.mk

Move trace and other debug options from ytools.mk into defs.mk to
make them visible to other projects, too
This commit is contained in:
Jan Lindemann 2004-01-14 20:38:04 +00:00 committed by Jan Lindemann
commit 08c7f4f9be
2 changed files with 9 additions and 11 deletions

View file

@ -237,4 +237,12 @@ export LD_LIBRARY_PATH
UPLOAD_URL_RPM_BIN=rsync_ssh://ftp.jannet.de:/home/ftp/dat/pub/packages/rpm/bin/
UPLOAD_URL_RPM_SRC=rsync_ssh://ftp.jannet.de:/home/ftp/dat/pub/packages/rpm/src/
ifeq ($(USE_COMPILER_DEBUG_OPTS),true)
PROJECT_CFLAGS += -Wall -g3 -D_DO_TRACE_
PROJECT_CPPFLAGS += -Wall -g3 -D_DO_TRACE_
PROJECT_LDFLAGS += -Wall -g3
else
ifeq ($(USE_COMPILER_OPTIMIZATION_OPTS),true)
PROJECT_CFLAGS += -funroll-loops -O2 -NDEBUG
endif
endif

View file

@ -48,14 +48,4 @@ else
include $(TOPDIR)/make/cfg_dist.mk
endif
ifeq ($(USE_COMPILER_DEBUG_OPTS),true)
PROJECT_CFLAGS += -Wall -g3 -D_DO_TRACE_
PROJECT_CPPFLAGS += -Wall -g3 -D_DO_TRACE_
PROJECT_LDFLAGS += -Wall -g3
else
ifeq ($(USE_COMPILER_OPTIMIZATION_OPTS),true)
PROJECT_CFLAGS += -funroll-loops -O2 -NDEBUG
endif
endif
LDFLAGS += -lytools -ldl -pthread