mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-18 18:21:38 +00:00
dac94ce284
This includes a complete Windows header and library refresh, including the addition of 64-bit compiled libs: *libogg 1.3.0 *libvorbis 1.3.3 *zlib 1.2.7 *libpng 1.5.13 *libvpx 9a3de881c0e681ba1a79a166a86308bbc84b4acd *SDL_mixer 1.2.12 (for RENDERTYPE=SDL) *DirectX import libraries: dsound and dxguid (now included) To build in 64-bit, you essentially need MinGW's MSYS (but not MinGW itself) and MinGW-w64 at the top of your PATH. The target is automatically detected using `$(CC) -dumpmachine`. The EDukeWiki will get detailed instrucitons. All compiler and linker warnings when building in 64-bit mode have been fixed. Remaining 64-bit to-do: - The ebacktrace dll does not build under 64-bit. It uses code specific to the format of 32-bit executables and will have to be ported to work with 64-bit executables. A future 64-bit version will be named ebacktrace1-64.dll. - RENDERTYPE=SDL crashes in SDL_mixer's Mix_Linked_Version(). - DirectInput gives an error and does not function. This only affects joysticks, and the error never happens without any plugged in. - Port the classic renderer ASM to 64-bit. (Just kidding, this is way out of my league.) This commit includes a fair bit of Makefile development spanning all platforms, including simplifying the SDLCONFIG code, fixing build on Mac OS X (thanks rhoenie!), globally factoring Apple brew/port inclusion, enforcing that all -L come before all -l, and ensuring that $(shell ) is always :='d. In addition, I have resurrected the old GCC_MAJOR and GCC_MINOR detection using `$(CC) -dumpversion`, but I have made it failsafe in case the command fails or the version is manually specified. I have applied this new fine-grained detection where applicable, including allowing LTO, and restraining -W's to versions that support them. git-svn-id: https://svn.eduke32.com/eduke32@3278 1a8010ca-5511-0410-912e-c29ae57300e0
55 lines
1.5 KiB
Text
Executable file
55 lines
1.5 KiB
Text
Executable file
# Minimal LibPNG for EDuke32
|
|
# based on contrib/pngminim/encoder/pngusr.dfa of libpng
|
|
#
|
|
# Usage: from libpng source root and assuming zlib source in ../zlib,
|
|
# make -f scripts/pnglibconf.mak DFA_XTRA=./minipng.dfa CPP="gcc -E"
|
|
# make -f scripts/makefile.gcc libpng.a
|
|
#
|
|
# To clean up:
|
|
# make -f scripts/pnglibconf.mak clean
|
|
# make -f scripts/makefile.gcc clean
|
|
#
|
|
# For zlib, the following files are included in the 'mini' archive:
|
|
# crc32.o deflate.o adler32.o zutil.o trees.o
|
|
|
|
# ========== MODIFIED ORIGINAL FILE FOLLOWS ==========
|
|
|
|
|
|
# pngminim/encoder/pngusr.dfa
|
|
#
|
|
# Copyright (c) 2010-2011 Glenn Randers-Pehrson
|
|
#
|
|
# This code is released under the libpng license.
|
|
# For conditions of distribution and use, see the disclaimer
|
|
# and license in png.h
|
|
|
|
# First all the build options off:
|
|
|
|
everything = off
|
|
|
|
# Switch on the write code - this makes a minimalist encoder
|
|
|
|
option WRITE on
|
|
|
|
# You must choose fixed or floating point arithmetic:
|
|
|
|
#option FLOATING_POINT on
|
|
option FIXED_POINT on
|
|
|
|
# You must chose the internal fixed point implementation or to
|
|
# use the system floating point. The latter is considerably
|
|
# smaller (by about 1kbyte on an x86 system):
|
|
|
|
#option FLOATING_ARITHMETIC on
|
|
option FLOATING_ARITHMETIC off
|
|
|
|
# Your program will probably need other options. The example
|
|
# program here, pnm2pngm, requires the following. Take a look
|
|
# at pnglibconf.h to find out the full set of what has to be
|
|
# enabled to make the following work.
|
|
|
|
option SETJMP on
|
|
option USER_MEM on
|
|
option WRITE_TEXT on
|
|
option STDIO on
|
|
option INFO_IMAGE on
|