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