Makefile: use different build directories for debug and release.

add _DEBUG defines for debug builds.
This commit is contained in:
aliaspider 2018-01-20 20:02:45 +01:00
parent 41575a63ac
commit 5918e15999
2 changed files with 10 additions and 2 deletions

View File

@ -16,7 +16,11 @@ include config.mk
TARGET = retroarch
OBJDIR := obj-unix
ifeq ($(DEBUG), 1)
OBJDIR := obj-unix/debug
else
OBJDIR := obj-unix/release
endif
OBJ :=
LIBS :=
@ -71,6 +75,7 @@ endif
ifeq ($(DEBUG), 1)
OPTIMIZE_FLAG = -O0 -g
DEFINES += -DDEBUG -D_DEBUG
else
OPTIMIZE_FLAG = -O3 -ffast-math
endif

5
deps/libz/deflate.c vendored
View File

@ -49,8 +49,11 @@
/* @(#) $Id$ */
#include "deflate.h"
#ifdef DEBUG
#include <stdio.h>
#endif
#include "deflate.h"
const char deflate_copyright[] =
" deflate 1.2.8 Copyright 1995-2013 Jean-loup Gailly and Mark Adler ";
/*