Mercurial > sdl-ios-xcode
view Watcom.mif @ 1413:40edc79b0926
FIXME:
This code needs to be rewritten to reference the static data using relocatable addresses (e.g. http://www.gentoo.org/proj/en/hardened/pic-fix-guide.xml or http://nasm.sourceforge.net/doc/html/nasmdoc8.html#section-8.2)
This code currently breaks on systems with readonly text segments (hardened Linux / Intel Mac)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 21 Feb 2006 22:12:55 +0000 |
parents | 173c063d4f55 |
children |
line wrap: on
line source
#============================================================================= # This file contains the common includes for the # Watcom makefiles to build SDL.DLL for OS/2 # # #============================================================================= # Create debug build or not? #debug_build=defined # Special flags for building SDL SDLCFlags = -dBUILD_SDL -dCHECK_LEAKS # #============================================================================== # !ifdef debug_build debugflags = -d2 -dDEBUG_BUILD !else debugflags = !endif cflags = -zq $(debugflags) -bd -bm -bt=OS2 -5s -fpi -sg -otexan -wx -ei $(SDLCFlags) $(ExtraCFlags) .extensions: .extensions: .lib .dll .obj .c .asm .c.obj : .AUTODEPEND wcc386 $[* $(cflags) .asm.obj : .AUTODEPEND nasm -t -O2 -f obj -I$(%include) $[*.asm