mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 00:39:53 +00:00
Makefile: use different build directories for debug and release.
add _DEBUG defines for debug builds.
This commit is contained in:
parent
41575a63ac
commit
5918e15999
7
Makefile
7
Makefile
@ -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
5
deps/libz/deflate.c
vendored
@ -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 ";
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user