makeos2.cmd
changeset 415 cd3495c18f03
parent 408 db3ef8d2928e
child 419 5bbbb82ec525
equal deleted inserted replaced
414:6375f2e2a6e7 415:cd3495c18f03
     3 rem  the EMX development tools installed for this to work.
     3 rem  the EMX development tools installed for this to work.
     4 rem
     4 rem
     5 rem This script (and, indeed, our OS/2 support) could use some tweaking.
     5 rem This script (and, indeed, our OS/2 support) could use some tweaking.
     6 rem  Patches go to icculus@clutteredmind.org ...
     6 rem  Patches go to icculus@clutteredmind.org ...
     7 
     7 
     8 set CFLAGS=-Wall -Werror -g -Zomf -Zmt -Zmtd -I. -Izlib114 -c -DDEBUG -DOS2 -DPHYSFS_SUPPORTS_ZIP -DPHYSFS_SUPPORTS_GRP
     8 set DEBUGFLAGS=-D_NDEBUG -O2 -s
       
     9 rem set DEBUGFLAGS=-DDEBUG -g
       
    10 set CFLAGS=%DEBUGFLAGS% -Wall -Werror -Zomf -Zmt -Zmtd -I. -Izlib114 -c -D__ST_MT_ERRNO__ -DOS2 -DPHYSFS_SUPPORTS_ZIP -DPHYSFS_SUPPORTS_GRP
       
    11 
     9 
    12 
    10 @echo on
    13 @echo on
    11 mkdir bin
    14 mkdir bin
       
    15 erase /N bin\*.*
       
    16 
       
    17 @echo ;don't edit this directly! It is rewritten by makeos2.cmd! > bin\test_physfs.def
       
    18 @echo NAME TESTPHYSFS WINDOWCOMPAT >> bin\test_physfs.def
       
    19 @echo DESCRIPTION 'PhysicsFS: http://icculus.org/physfs/' >> bin\test_physfs.def
       
    20 @echo STACKSIZE 0x10000 >> bin\test_physfs.def
       
    21 @echo BASE=0x10000 >> bin\test_physfs.def
       
    22 @echo PROTMODE >> bin\test_physfs.def
    12 
    23 
    13 @echo ;don't edit this directly! It is rewritten by makeos2.cmd! > bin\physfs.def
    24 @echo ;don't edit this directly! It is rewritten by makeos2.cmd! > bin\physfs.def
    14 @echo NAME PHYSFS WINDOWCOMPAT >> bin\physfs.def
    25 @echo LIBRARY 'physfs' INITINSTANCE TERMINSTANCE >> bin\physfs.def
       
    26 @echo STACKSIZE 0x10000 >> bin\physfs.def
       
    27 @echo CODE LOADONCALL >> bin\physfs.def
       
    28 @echo DATA LOADONCALL NONSHARED MULTIPLE >> bin\physfs.def
    15 @echo DESCRIPTION 'PhysicsFS: http://icculus.org/physfs/' >> bin\physfs.def
    29 @echo DESCRIPTION 'PhysicsFS: http://icculus.org/physfs/' >> bin\physfs.def
    16 @echo STACKSIZE 20000 >> bin\physfs.def
    30 @echo EXPORTS >> bin\physfs.def
    17 @echo BASE=0x10000 >> bin\physfs.def
    31 @echo  "PHYSFS_getLinkedVersion" >> bin\physfs.def
    18 @echo PROTMODE >> bin\physfs.def
    32 @echo  "PHYSFS_init" >> bin\physfs.def
       
    33 @echo  "PHYSFS_deinit" >> bin\physfs.def
       
    34 @echo  "PHYSFS_supportedArchiveTypes" >> bin\physfs.def
       
    35 @echo  "PHYSFS_freeList" >> bin\physfs.def
       
    36 @echo  "PHYSFS_getLastError" >> bin\physfs.def
       
    37 @echo  "PHYSFS_getDirSeparator" >> bin\physfs.def
       
    38 @echo  "PHYSFS_permitSymbolicLinks" >> bin\physfs.def
       
    39 @echo  "PHYSFS_getCdRomDirs" >> bin\physfs.def
       
    40 @echo  "PHYSFS_getBaseDir" >> bin\physfs.def
       
    41 @echo  "PHYSFS_getUserDir" >> bin\physfs.def
       
    42 @echo  "PHYSFS_getWriteDir" >> bin\physfs.def
       
    43 @echo  "PHYSFS_setWriteDir" >> bin\physfs.def
       
    44 @echo  "PHYSFS_addToSearchPath" >> bin\physfs.def
       
    45 @echo  "PHYSFS_removeFromSearchPath" >> bin\physfs.def
       
    46 @echo  "PHYSFS_getSearchPath" >> bin\physfs.def
       
    47 @echo  "PHYSFS_setSaneConfig" >> bin\physfs.def
       
    48 @echo  "PHYSFS_mkdir" >> bin\physfs.def
       
    49 @echo  "PHYSFS_delete" >> bin\physfs.def
       
    50 @echo  "PHYSFS_getRealDir" >> bin\physfs.def
       
    51 @echo  "PHYSFS_enumerateFiles" >> bin\physfs.def
       
    52 @echo  "PHYSFS_exists" >> bin\physfs.def
       
    53 @echo  "PHYSFS_isDirectory" >> bin\physfs.def
       
    54 @echo  "PHYSFS_isSymbolicLink" >> bin\physfs.def
       
    55 @echo  "PHYSFS_openWrite" >> bin\physfs.def
       
    56 @echo  "PHYSFS_openAppend" >> bin\physfs.def
       
    57 @echo  "PHYSFS_openRead" >> bin\physfs.def
       
    58 @echo  "PHYSFS_close" >> bin\physfs.def
       
    59 @echo  "PHYSFS_read" >> bin\physfs.def
       
    60 @echo  "PHYSFS_write" >> bin\physfs.def
       
    61 @echo  "PHYSFS_eof" >> bin\physfs.def
       
    62 @echo  "PHYSFS_tell" >> bin\physfs.def
       
    63 @echo  "PHYSFS_seek" >> bin\physfs.def
       
    64 @echo  "PHYSFS_fileLength" >> bin\physfs.def
       
    65 @echo  "PHYSFS_swapSLE16" >> bin\physfs.def
       
    66 @echo  "PHYSFS_swapULE16" >> bin\physfs.def
       
    67 @echo  "PHYSFS_swapSLE32" >> bin\physfs.def
       
    68 @echo  "PHYSFS_swapULE32" >> bin\physfs.def
       
    69 @echo  "PHYSFS_swapSLE64" >> bin\physfs.def
       
    70 @echo  "PHYSFS_swapULE64" >> bin\physfs.def
       
    71 @echo  "PHYSFS_swapSBE16" >> bin\physfs.def
       
    72 @echo  "PHYSFS_swapUBE16" >> bin\physfs.def
       
    73 @echo  "PHYSFS_swapSBE32" >> bin\physfs.def
       
    74 @echo  "PHYSFS_swapUBE32" >> bin\physfs.def
       
    75 @echo  "PHYSFS_swapSBE64" >> bin\physfs.def
       
    76 @echo  "PHYSFS_swapUBE64" >> bin\physfs.def
       
    77 @echo  "PHYSFS_getLastModTime" >> bin\physfs.def
       
    78 @echo  "PHYSFS_readSLE16" >> bin\physfs.def
       
    79 @echo  "PHYSFS_readULE16" >> bin\physfs.def
       
    80 @echo  "PHYSFS_readSLE32" >> bin\physfs.def
       
    81 @echo  "PHYSFS_readULE32" >> bin\physfs.def
       
    82 @echo  "PHYSFS_readSLE64" >> bin\physfs.def
       
    83 @echo  "PHYSFS_readULE64" >> bin\physfs.def
       
    84 @echo  "PHYSFS_readSBE16" >> bin\physfs.def
       
    85 @echo  "PHYSFS_readUBE16" >> bin\physfs.def
       
    86 @echo  "PHYSFS_readSBE32" >> bin\physfs.def
       
    87 @echo  "PHYSFS_readUBE32" >> bin\physfs.def
       
    88 @echo  "PHYSFS_readSBE64" >> bin\physfs.def
       
    89 @echo  "PHYSFS_readUBE64" >> bin\physfs.def
       
    90 @echo  "PHYSFS_writeSLE16" >> bin\physfs.def
       
    91 @echo  "PHYSFS_writeULE16" >> bin\physfs.def
       
    92 @echo  "PHYSFS_writeSLE32" >> bin\physfs.def
       
    93 @echo  "PHYSFS_writeULE32" >> bin\physfs.def
       
    94 @echo  "PHYSFS_writeSLE64" >> bin\physfs.def
       
    95 @echo  "PHYSFS_writeULE64" >> bin\physfs.def
       
    96 @echo  "PHYSFS_writeSBE16" >> bin\physfs.def
       
    97 @echo  "PHYSFS_writeUBE16" >> bin\physfs.def
       
    98 @echo  "PHYSFS_writeSBE32" >> bin\physfs.def
       
    99 @echo  "PHYSFS_writeUBE32" >> bin\physfs.def
       
   100 @echo  "PHYSFS_writeSBE64" >> bin\physfs.def
       
   101 @echo  "PHYSFS_writeUBE64" >> bin\physfs.def
    19 
   102 
       
   103 emximp -o bin/physfs.lib bin/physfs.def
    20 
   104 
    21 gcc %CFLAGS% -o bin/physfs.obj physfs.c
   105 gcc %CFLAGS% -o bin/physfs.obj physfs.c
    22 gcc %CFLAGS% -o bin/physfs_byteorder.obj physfs_byteorder.c
   106 gcc %CFLAGS% -o bin/physfs_byteorder.obj physfs_byteorder.c
    23 gcc %CFLAGS% -o bin/os2.obj platform/os2.c
   107 gcc %CFLAGS% -o bin/os2.obj platform/os2.c
    24 gcc %CFLAGS% -o bin/dir.obj archivers/dir.c
   108 gcc %CFLAGS% -o bin/dir.obj archivers/dir.c
    37 gcc %CFLAGS% -o bin/infutil.obj zlib114/infutil.c
   121 gcc %CFLAGS% -o bin/infutil.obj zlib114/infutil.c
    38 gcc %CFLAGS% -o bin/trees.obj zlib114/trees.c
   122 gcc %CFLAGS% -o bin/trees.obj zlib114/trees.c
    39 gcc %CFLAGS% -o bin/uncompr.obj zlib114/uncompr.c 
   123 gcc %CFLAGS% -o bin/uncompr.obj zlib114/uncompr.c 
    40 gcc %CFLAGS% -o bin/zutil.obj zlib114/zutil.c
   124 gcc %CFLAGS% -o bin/zutil.obj zlib114/zutil.c
    41 
   125 
       
   126 gcc %DEBUGFLAGS% -Zdll -Zcrtdll -Zomf -Zmt -Zmtd -o bin/physfs.dll bin/*.obj bin/physfs.def
       
   127 
    42 gcc %CFLAGS% -o bin/test_physfs.obj test/test_physfs.c
   128 gcc %CFLAGS% -o bin/test_physfs.obj test/test_physfs.c
       
   129 gcc %DEBUGFLAGS% -Zomf -Zcrtdll -Zmt -Zmtd -o bin/test_physfs.exe bin/test_physfs.obj bin/physfs.lib bin/test_physfs.def
    43 
   130 
    44 gcc -Zomf -Zmt -Zmtd -o bin/test_physfs.exe bin/*.obj bin/physfs.def
       
    45 
   131