2002-07-27 08:26:16 +02:00
|
|
|
@echo off
|
|
|
|
rem this is a simple batch file to build PhysicsFS on OS/2. You need to have
|
|
|
|
rem the EMX development tools installed for this to work.
|
|
|
|
rem
|
|
|
|
rem This script (and, indeed, our OS/2 support) could use some tweaking.
|
2006-01-01 13:33:19 +01:00
|
|
|
rem Patches go to icculus@icculus.org ...
|
2002-07-27 08:26:16 +02:00
|
|
|
|
2002-07-29 22:59:43 +02:00
|
|
|
set PHYSFSLANG=PHYSFS_LANG_ENGLISH
|
2002-07-28 00:41:19 +02:00
|
|
|
set DEBUGFLAGS=-D_NDEBUG -O2 -s
|
2005-07-24 00:02:00 +02:00
|
|
|
rem set CFLAGS=%DEBUGFLAGS% -Wall -Werror -Zomf -Zmt -Zmtd -I. -Izlib123 -c -D__ST_MT_ERRNO__ -DOS2 -DZ_PREFIX -DPHYSFS_SUPPORTS_ZIP -DPHYSFS_SUPPORTS_GRP -DPHYSFS_SUPPORTS_WAD -DPHYSFS_SUPPORTS_QPAK -DPHYSFS_SUPPORTS_HOG -DPHYSFS_SUPPORTS_MVL -DPHYSFS_LANG=%PHYSFSLANG% -DHAVE_ASSERT_H
|
|
|
|
set CFLAGS=%DEBUGFLAGS% -Wall -Werror -Zomf -Zmt -Zmtd -I. -Izlib123 -c -D__ST_MT_ERRNO__ -DOS2 -DZ_PREFIX -DPHYSFS_SUPPORTS_ZIP -DPHYSFS_SUPPORTS_GRP -DPHYSFS_SUPPORTS_WAD -DPHYSFS_SUPPORTS_QPAK -DPHYSFS_SUPPORTS_HOG -DPHYSFS_SUPPORTS_MVL -DHAVE_ASSERT_H
|
2002-07-28 00:41:19 +02:00
|
|
|
|
2004-01-08 06:53:28 +01:00
|
|
|
rem goto :dolinking
|
|
|
|
|
|
|
|
@echo cleaning up any previous build...
|
|
|
|
@mkdir bin 2>NUL
|
|
|
|
@erase /N bin\*.* 2>NUL
|
2002-07-28 00:41:19 +02:00
|
|
|
|
2004-01-08 06:53:28 +01:00
|
|
|
@echo Building export definitions...
|
2002-07-28 00:41:19 +02:00
|
|
|
@echo ;don't edit this directly! It is rewritten by makeos2.cmd! > bin\test_physfs.def
|
|
|
|
@echo NAME TESTPHYSFS WINDOWCOMPAT >> bin\test_physfs.def
|
|
|
|
@echo DESCRIPTION 'PhysicsFS: http://icculus.org/physfs/' >> bin\test_physfs.def
|
|
|
|
@echo STACKSIZE 0x10000 >> bin\test_physfs.def
|
|
|
|
@echo BASE=0x10000 >> bin\test_physfs.def
|
|
|
|
@echo PROTMODE >> bin\test_physfs.def
|
2002-07-27 08:26:16 +02:00
|
|
|
|
|
|
|
@echo ;don't edit this directly! It is rewritten by makeos2.cmd! > bin\physfs.def
|
2002-07-28 00:41:19 +02:00
|
|
|
@echo LIBRARY 'physfs' INITINSTANCE TERMINSTANCE >> bin\physfs.def
|
|
|
|
@echo STACKSIZE 0x10000 >> bin\physfs.def
|
|
|
|
@echo CODE LOADONCALL >> bin\physfs.def
|
|
|
|
@echo DATA LOADONCALL NONSHARED MULTIPLE >> bin\physfs.def
|
2002-07-27 08:26:16 +02:00
|
|
|
@echo DESCRIPTION 'PhysicsFS: http://icculus.org/physfs/' >> bin\physfs.def
|
2002-07-28 00:41:19 +02:00
|
|
|
@echo EXPORTS >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_getLinkedVersion" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_init" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_deinit" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_supportedArchiveTypes" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_freeList" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_getLastError" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_getDirSeparator" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_permitSymbolicLinks" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_getCdRomDirs" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_getBaseDir" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_getUserDir" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_getWriteDir" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_setWriteDir" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_addToSearchPath" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_removeFromSearchPath" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_getSearchPath" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_setSaneConfig" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_mkdir" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_delete" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_getRealDir" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_enumerateFiles" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_exists" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_isDirectory" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_isSymbolicLink" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_openWrite" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_openAppend" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_openRead" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_close" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_read" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_write" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_eof" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_tell" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_seek" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_fileLength" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_swapSLE16" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_swapULE16" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_swapSLE32" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_swapULE32" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_swapSLE64" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_swapULE64" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_swapSBE16" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_swapUBE16" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_swapSBE32" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_swapUBE32" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_swapSBE64" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_swapUBE64" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_getLastModTime" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_readSLE16" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_readULE16" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_readSLE32" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_readULE32" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_readSLE64" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_readULE64" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_readSBE16" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_readUBE16" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_readSBE32" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_readUBE32" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_readSBE64" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_readUBE64" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_writeSLE16" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_writeULE16" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_writeSLE32" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_writeULE32" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_writeSLE64" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_writeULE64" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_writeSBE16" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_writeUBE16" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_writeSBE32" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_writeUBE32" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_writeSBE64" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_writeUBE64" >> bin\physfs.def
|
2003-01-31 03:10:15 +01:00
|
|
|
@echo "PHYSFS_setBuffer" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_flush" >> bin\physfs.def
|
2005-03-13 12:59:53 +01:00
|
|
|
@echo "PHYSFS_mount" >> bin\physfs.def
|
2005-03-14 08:14:58 +01:00
|
|
|
@echo "PHYSFS_getMountPoint" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_setAllocator" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_getCdRomDirsCallback" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_getSearchPathCallback" >> bin\physfs.def
|
|
|
|
@echo "PHYSFS_enumerateFilesCallback" >> bin\physfs.def
|
2002-07-27 08:26:16 +02:00
|
|
|
|
2004-01-08 06:53:28 +01:00
|
|
|
@echo Building export library...
|
2002-07-28 00:41:19 +02:00
|
|
|
emximp -o bin/physfs.lib bin/physfs.def
|
2002-07-27 08:26:16 +02:00
|
|
|
|
2004-01-08 06:53:28 +01:00
|
|
|
@echo Compiling PhysicsFS library...
|
|
|
|
@echo on
|
2002-07-27 08:26:16 +02:00
|
|
|
gcc %CFLAGS% -o bin/physfs.obj physfs.c
|
|
|
|
gcc %CFLAGS% -o bin/physfs_byteorder.obj physfs_byteorder.c
|
|
|
|
gcc %CFLAGS% -o bin/os2.obj platform/os2.c
|
|
|
|
gcc %CFLAGS% -o bin/dir.obj archivers/dir.c
|
|
|
|
gcc %CFLAGS% -o bin/grp.obj archivers/grp.c
|
2003-12-15 05:01:18 +01:00
|
|
|
gcc %CFLAGS% -o bin/wad.obj archivers/wad.c
|
2002-07-27 08:26:16 +02:00
|
|
|
gcc %CFLAGS% -o bin/zip.obj archivers/zip.c
|
2002-08-30 06:14:36 +02:00
|
|
|
gcc %CFLAGS% -o bin/qpak.obj archivers/qpak.c
|
2003-03-30 22:50:09 +02:00
|
|
|
gcc %CFLAGS% -o bin/hog.obj archivers/hog.c
|
|
|
|
gcc %CFLAGS% -o bin/mvl.obj archivers/mvl.c
|
2005-07-24 00:02:00 +02:00
|
|
|
gcc %CFLAGS% -o bin/adler32.obj zlib123/adler32.c
|
|
|
|
gcc %CFLAGS% -o bin/compress.obj zlib123/compress.c
|
|
|
|
gcc %CFLAGS% -o bin/crc32.obj zlib123/crc32.c
|
|
|
|
gcc %CFLAGS% -o bin/deflate.obj zlib123/deflate.c
|
|
|
|
gcc %CFLAGS% -o bin/gzio.obj zlib123/gzio.c
|
|
|
|
gcc %CFLAGS% -o bin/infback.obj zlib123/infback.c
|
|
|
|
gcc %CFLAGS% -o bin/inffast.obj zlib123/inffast.c
|
|
|
|
gcc %CFLAGS% -o bin/inflate.obj zlib123/inflate.c
|
|
|
|
gcc %CFLAGS% -o bin/inftrees.obj zlib123/inftrees.c
|
|
|
|
gcc %CFLAGS% -o bin/trees.obj zlib123/trees.c
|
|
|
|
gcc %CFLAGS% -o bin/uncompr.obj zlib123/uncompr.c
|
|
|
|
gcc %CFLAGS% -o bin/zutil.obj zlib123/zutil.c
|
2004-01-08 06:53:28 +01:00
|
|
|
@echo off
|
2002-07-27 08:26:16 +02:00
|
|
|
|
2004-01-08 06:53:28 +01:00
|
|
|
:dolinking
|
|
|
|
@echo Linking PhysicsFS library...
|
2002-07-28 00:41:19 +02:00
|
|
|
gcc %DEBUGFLAGS% -Zdll -Zcrtdll -Zomf -Zmt -Zmtd -o bin/physfs.dll bin/*.obj bin/physfs.def
|
|
|
|
|
2004-01-08 06:53:28 +01:00
|
|
|
rem goto :builddone
|
|
|
|
|
|
|
|
@echo Compiling test program...
|
2002-07-27 08:26:16 +02:00
|
|
|
gcc %CFLAGS% -o bin/test_physfs.obj test/test_physfs.c
|
2004-01-08 06:53:28 +01:00
|
|
|
@echo Linking test program...
|
2002-07-28 00:41:19 +02:00
|
|
|
gcc %DEBUGFLAGS% -Zomf -Zcrtdll -Zmt -Zmtd -o bin/test_physfs.exe bin/test_physfs.obj bin/physfs.lib bin/test_physfs.def
|
2002-07-27 08:26:16 +02:00
|
|
|
|
2004-01-08 06:53:28 +01:00
|
|
|
:builddone
|
|
|
|
|
|
|
|
@echo "All done!"
|
|
|
|
|
|
|
|
rem end of makeos2.cmd ...
|
|
|
|
|