OBJS += platform/common/mp3_dummy.o
endif
-ifneq "$(DONT_COMPILE_IN_ZLIB)" "1"
+ifeq "$(PLATFORM)" "libretro"
# zlib
OBJS += zlib/gzio.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/trees.o \
zlib/deflate.o zlib/crc32.o zlib/adler32.o zlib/zutil.o zlib/compress.o zlib/uncompr.o
+CFLAGS += -Izlib
+endif
# unzip
OBJS += unzip/unzip.o unzip/unzip_stream.o
endif
#include <zlib.h>
int main(void) { uncompress(0, 0, 0, 0); }
EOF
- compile_binary
+ compile_binary "$@"
}
check_libpng()
compile_object "$@"
}
-#MAIN_LDLIBS="$MAIN_LDLIBS -lz"
-#check_zlib || fail "please install zlib (libz-dev)"
+MAIN_LDLIBS="$MAIN_LDLIBS -lz"
+check_zlib -lz || fail "please install zlib (libz-dev)"
MAIN_LDLIBS="-lpng $MAIN_LDLIBS"
check_libpng || fail "please install libpng (libpng-dev)"
*/\r
\r
#include "pico_int.h"\r
-#include "../zlib/zlib.h"\r
#include "../cpu/debug.h"\r
#include "../unzip/unzip.h"\r
-#include "../unzip/unzip_stream.h"\r
+#include <zlib.h>\r
\r
\r
static int rom_alloc_size;\r
*/\r
\r
#include "pico_int.h"\r
-#include <zlib/zlib.h>\r
+#include <zlib.h>\r
\r
#include "../cpu/sh2/sh2.h"\r
#include "sound/ym2612.h"\r
\r
#include <pico/pico_int.h>\r
#include <pico/patch.h>\r
-#include <zlib/zlib.h>\r
+#include <zlib.h>\r
\r
\r
#define gizKeyUnkn "???"\r
#include <pico/pico_int.h>\r
#include <pico/patch.h>\r
#include <pico/sound/mix.h>\r
-#include <zlib/zlib.h>\r
+#include <zlib.h>\r
\r
#ifdef BENCHMARK\r
#define OSD_FPS_X 220\r
#include <pico/pico_int.h>
#include <pico/patch.h>
-#include <zlib/zlib.h>
+#include <zlib.h>
#define pspKeyUnkn "???"
#include <ctype.h>\r
#include <assert.h>\r
\r
-#include "zlib/zlib.h"\r
+#include <zlib.h>\r
\r
/* public globals */\r
//int gUnzipQuiet = 0; /* flag controls error messages */\r