makeos2.cmd
changeset 408 db3ef8d2928e
child 415 cd3495c18f03
equal deleted inserted replaced
407:81646aa3f6f8 408:db3ef8d2928e
       
     1 @echo off
       
     2 rem this is a simple batch file to build PhysicsFS on OS/2. You need to have
       
     3 rem  the EMX development tools installed for this to work.
       
     4 rem
       
     5 rem This script (and, indeed, our OS/2 support) could use some tweaking.
       
     6 rem  Patches go to icculus@clutteredmind.org ...
       
     7 
       
     8 set CFLAGS=-Wall -Werror -g -Zomf -Zmt -Zmtd -I. -Izlib114 -c -DDEBUG -DOS2 -DPHYSFS_SUPPORTS_ZIP -DPHYSFS_SUPPORTS_GRP
       
     9 
       
    10 @echo on
       
    11 mkdir bin
       
    12 
       
    13 @echo ;don't edit this directly! It is rewritten by makeos2.cmd! > bin\physfs.def
       
    14 @echo NAME PHYSFS WINDOWCOMPAT >> bin\physfs.def
       
    15 @echo DESCRIPTION 'PhysicsFS: http://icculus.org/physfs/' >> bin\physfs.def
       
    16 @echo STACKSIZE 20000 >> bin\physfs.def
       
    17 @echo BASE=0x10000 >> bin\physfs.def
       
    18 @echo PROTMODE >> bin\physfs.def
       
    19 
       
    20 
       
    21 gcc %CFLAGS% -o bin/physfs.obj physfs.c
       
    22 gcc %CFLAGS% -o bin/physfs_byteorder.obj physfs_byteorder.c
       
    23 gcc %CFLAGS% -o bin/os2.obj platform/os2.c
       
    24 gcc %CFLAGS% -o bin/dir.obj archivers/dir.c
       
    25 gcc %CFLAGS% -o bin/grp.obj archivers/grp.c
       
    26 gcc %CFLAGS% -o bin/zip.obj archivers/zip.c
       
    27 
       
    28 gcc %CFLAGS% -o bin/adler32.obj zlib114/adler32.c
       
    29 gcc %CFLAGS% -o bin/compress.obj zlib114/compress.c
       
    30 gcc %CFLAGS% -o bin/crc32.obj zlib114/crc32.c
       
    31 gcc %CFLAGS% -o bin/deflate.obj zlib114/deflate.c
       
    32 gcc %CFLAGS% -o bin/infblock.obj zlib114/infblock.c
       
    33 gcc %CFLAGS% -o bin/infcodes.obj zlib114/infcodes.c
       
    34 gcc %CFLAGS% -o bin/inffast.obj zlib114/inffast.c
       
    35 gcc %CFLAGS% -o bin/inflate.obj zlib114/inflate.c
       
    36 gcc %CFLAGS% -o bin/inftrees.obj zlib114/inftrees.c
       
    37 gcc %CFLAGS% -o bin/infutil.obj zlib114/infutil.c
       
    38 gcc %CFLAGS% -o bin/trees.obj zlib114/trees.c
       
    39 gcc %CFLAGS% -o bin/uncompr.obj zlib114/uncompr.c 
       
    40 gcc %CFLAGS% -o bin/zutil.obj zlib114/zutil.c
       
    41 
       
    42 gcc %CFLAGS% -o bin/test_physfs.obj test/test_physfs.c
       
    43 
       
    44 gcc -Zomf -Zmt -Zmtd -o bin/test_physfs.exe bin/*.obj bin/physfs.def
       
    45