makeos2.cmd
author Ryan C. Gordon <icculus@icculus.org>
Sat, 23 Jul 2005 22:02:00 +0000
changeset 718 2e809894a316
parent 709 440369665d77
child 767 db29bf06d171
permissions -rw-r--r--
Moved to actual zlib 1.2.3.
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
430
5a445b536027 Set a default language.
Ryan C. Gordon <icculus@icculus.org>
parents: 419
diff changeset
     8
set PHYSFSLANG=PHYSFS_LANG_ENGLISH
415
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
     9
set DEBUGFLAGS=-D_NDEBUG -O2 -s
718
2e809894a316 Moved to actual zlib 1.2.3.
Ryan C. Gordon <icculus@icculus.org>
parents: 709
diff changeset
    10
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
2e809894a316 Moved to actual zlib 1.2.3.
Ryan C. Gordon <icculus@icculus.org>
parents: 709
diff changeset
    11
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
625
60b5f566a258 Last minute changes, fixes, and build system updates for 1.0.
Ryan C. Gordon <icculus@icculus.org>
parents: 618
diff changeset
    12
60b5f566a258 Last minute changes, fixes, and build system updates for 1.0.
Ryan C. Gordon <icculus@icculus.org>
parents: 618
diff changeset
    13
rem goto :dolinking
415
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    14
625
60b5f566a258 Last minute changes, fixes, and build system updates for 1.0.
Ryan C. Gordon <icculus@icculus.org>
parents: 618
diff changeset
    15
@echo cleaning up any previous build...
60b5f566a258 Last minute changes, fixes, and build system updates for 1.0.
Ryan C. Gordon <icculus@icculus.org>
parents: 618
diff changeset
    16
@mkdir bin 2>NUL
60b5f566a258 Last minute changes, fixes, and build system updates for 1.0.
Ryan C. Gordon <icculus@icculus.org>
parents: 618
diff changeset
    17
@erase /N bin\*.* 2>NUL
415
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    18
625
60b5f566a258 Last minute changes, fixes, and build system updates for 1.0.
Ryan C. Gordon <icculus@icculus.org>
parents: 618
diff changeset
    19
@echo Building export definitions...
415
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    20
@echo ;don't edit this directly! It is rewritten by makeos2.cmd! > bin\test_physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    21
@echo NAME TESTPHYSFS WINDOWCOMPAT >> bin\test_physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    22
@echo DESCRIPTION 'PhysicsFS: http://icculus.org/physfs/' >> bin\test_physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    23
@echo STACKSIZE 0x10000 >> bin\test_physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    24
@echo BASE=0x10000 >> bin\test_physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    25
@echo PROTMODE >> bin\test_physfs.def
408
db3ef8d2928e Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    26
db3ef8d2928e Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    27
@echo ;don't edit this directly! It is rewritten by makeos2.cmd! > bin\physfs.def
415
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    28
@echo LIBRARY 'physfs' INITINSTANCE TERMINSTANCE >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    29
@echo STACKSIZE 0x10000 >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    30
@echo CODE LOADONCALL >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    31
@echo DATA LOADONCALL NONSHARED MULTIPLE >> bin\physfs.def
408
db3ef8d2928e Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    32
@echo DESCRIPTION 'PhysicsFS: http://icculus.org/physfs/' >> bin\physfs.def
415
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    33
@echo EXPORTS >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    34
@echo  "PHYSFS_getLinkedVersion" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    35
@echo  "PHYSFS_init" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    36
@echo  "PHYSFS_deinit" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    37
@echo  "PHYSFS_supportedArchiveTypes" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    38
@echo  "PHYSFS_freeList" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    39
@echo  "PHYSFS_getLastError" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    40
@echo  "PHYSFS_getDirSeparator" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    41
@echo  "PHYSFS_permitSymbolicLinks" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    42
@echo  "PHYSFS_getCdRomDirs" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    43
@echo  "PHYSFS_getBaseDir" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    44
@echo  "PHYSFS_getUserDir" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    45
@echo  "PHYSFS_getWriteDir" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    46
@echo  "PHYSFS_setWriteDir" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    47
@echo  "PHYSFS_addToSearchPath" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    48
@echo  "PHYSFS_removeFromSearchPath" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    49
@echo  "PHYSFS_getSearchPath" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    50
@echo  "PHYSFS_setSaneConfig" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    51
@echo  "PHYSFS_mkdir" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    52
@echo  "PHYSFS_delete" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    53
@echo  "PHYSFS_getRealDir" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    54
@echo  "PHYSFS_enumerateFiles" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    55
@echo  "PHYSFS_exists" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    56
@echo  "PHYSFS_isDirectory" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    57
@echo  "PHYSFS_isSymbolicLink" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    58
@echo  "PHYSFS_openWrite" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    59
@echo  "PHYSFS_openAppend" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    60
@echo  "PHYSFS_openRead" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    61
@echo  "PHYSFS_close" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    62
@echo  "PHYSFS_read" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    63
@echo  "PHYSFS_write" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    64
@echo  "PHYSFS_eof" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    65
@echo  "PHYSFS_tell" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    66
@echo  "PHYSFS_seek" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    67
@echo  "PHYSFS_fileLength" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    68
@echo  "PHYSFS_swapSLE16" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    69
@echo  "PHYSFS_swapULE16" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    70
@echo  "PHYSFS_swapSLE32" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    71
@echo  "PHYSFS_swapULE32" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    72
@echo  "PHYSFS_swapSLE64" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    73
@echo  "PHYSFS_swapULE64" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    74
@echo  "PHYSFS_swapSBE16" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    75
@echo  "PHYSFS_swapUBE16" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    76
@echo  "PHYSFS_swapSBE32" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    77
@echo  "PHYSFS_swapUBE32" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    78
@echo  "PHYSFS_swapSBE64" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    79
@echo  "PHYSFS_swapUBE64" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    80
@echo  "PHYSFS_getLastModTime" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    81
@echo  "PHYSFS_readSLE16" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    82
@echo  "PHYSFS_readULE16" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    83
@echo  "PHYSFS_readSLE32" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    84
@echo  "PHYSFS_readULE32" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    85
@echo  "PHYSFS_readSLE64" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    86
@echo  "PHYSFS_readULE64" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    87
@echo  "PHYSFS_readSBE16" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    88
@echo  "PHYSFS_readUBE16" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    89
@echo  "PHYSFS_readSBE32" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    90
@echo  "PHYSFS_readUBE32" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    91
@echo  "PHYSFS_readSBE64" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    92
@echo  "PHYSFS_readUBE64" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    93
@echo  "PHYSFS_writeSLE16" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    94
@echo  "PHYSFS_writeULE16" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    95
@echo  "PHYSFS_writeSLE32" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    96
@echo  "PHYSFS_writeULE32" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    97
@echo  "PHYSFS_writeSLE64" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    98
@echo  "PHYSFS_writeULE64" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
    99
@echo  "PHYSFS_writeSBE16" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
   100
@echo  "PHYSFS_writeUBE16" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
   101
@echo  "PHYSFS_writeSBE32" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
   102
@echo  "PHYSFS_writeUBE32" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
   103
@echo  "PHYSFS_writeSBE64" >> bin\physfs.def
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
   104
@echo  "PHYSFS_writeUBE64" >> bin\physfs.def
536
2c41709b7b64 Added buffering API to list of exported symbols in OS/2 build.
Ryan C. Gordon <icculus@icculus.org>
parents: 504
diff changeset
   105
@echo  "PHYSFS_setBuffer" >> bin\physfs.def
2c41709b7b64 Added buffering API to list of exported symbols in OS/2 build.
Ryan C. Gordon <icculus@icculus.org>
parents: 504
diff changeset
   106
@echo  "PHYSFS_flush" >> bin\physfs.def
681
451025285d35 Some mount functionality stuff.
Ryan C. Gordon <icculus@icculus.org>
parents: 625
diff changeset
   107
@echo  "PHYSFS_mount" >> bin\physfs.def
686
4c8bc5f86c94 Added more entry points.
Ryan C. Gordon <icculus@icculus.org>
parents: 681
diff changeset
   108
@echo  "PHYSFS_getMountPoint" >> bin\physfs.def
4c8bc5f86c94 Added more entry points.
Ryan C. Gordon <icculus@icculus.org>
parents: 681
diff changeset
   109
@echo  "PHYSFS_setAllocator" >> bin\physfs.def
4c8bc5f86c94 Added more entry points.
Ryan C. Gordon <icculus@icculus.org>
parents: 681
diff changeset
   110
@echo  "PHYSFS_getCdRomDirsCallback" >> bin\physfs.def
4c8bc5f86c94 Added more entry points.
Ryan C. Gordon <icculus@icculus.org>
parents: 681
diff changeset
   111
@echo  "PHYSFS_getSearchPathCallback" >> bin\physfs.def
4c8bc5f86c94 Added more entry points.
Ryan C. Gordon <icculus@icculus.org>
parents: 681
diff changeset
   112
@echo  "PHYSFS_enumerateFilesCallback" >> bin\physfs.def
408
db3ef8d2928e Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   113
625
60b5f566a258 Last minute changes, fixes, and build system updates for 1.0.
Ryan C. Gordon <icculus@icculus.org>
parents: 618
diff changeset
   114
@echo Building export library...
415
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
   115
emximp -o bin/physfs.lib bin/physfs.def
408
db3ef8d2928e Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   116
625
60b5f566a258 Last minute changes, fixes, and build system updates for 1.0.
Ryan C. Gordon <icculus@icculus.org>
parents: 618
diff changeset
   117
@echo Compiling PhysicsFS library...
60b5f566a258 Last minute changes, fixes, and build system updates for 1.0.
Ryan C. Gordon <icculus@icculus.org>
parents: 618
diff changeset
   118
@echo on
408
db3ef8d2928e Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   119
gcc %CFLAGS% -o bin/physfs.obj physfs.c
db3ef8d2928e Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   120
gcc %CFLAGS% -o bin/physfs_byteorder.obj physfs_byteorder.c
db3ef8d2928e Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   121
gcc %CFLAGS% -o bin/os2.obj platform/os2.c
db3ef8d2928e Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   122
gcc %CFLAGS% -o bin/dir.obj archivers/dir.c
db3ef8d2928e Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   123
gcc %CFLAGS% -o bin/grp.obj archivers/grp.c
609
3a91332776e0 Added Doom WAD support.
Ryan C. Gordon <icculus@icculus.org>
parents: 602
diff changeset
   124
gcc %CFLAGS% -o bin/wad.obj archivers/wad.c
408
db3ef8d2928e Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   125
gcc %CFLAGS% -o bin/zip.obj archivers/zip.c
487
06d6072829ae Fixed build error.
Ryan C. Gordon <icculus@icculus.org>
parents: 453
diff changeset
   126
gcc %CFLAGS% -o bin/qpak.obj archivers/qpak.c
560
1940fbc893d1 Added Descent archives to OS/2 build system.
Ryan C. Gordon <icculus@icculus.org>
parents: 536
diff changeset
   127
gcc %CFLAGS% -o bin/hog.obj archivers/hog.c
1940fbc893d1 Added Descent archives to OS/2 build system.
Ryan C. Gordon <icculus@icculus.org>
parents: 536
diff changeset
   128
gcc %CFLAGS% -o bin/mvl.obj archivers/mvl.c
718
2e809894a316 Moved to actual zlib 1.2.3.
Ryan C. Gordon <icculus@icculus.org>
parents: 709
diff changeset
   129
gcc %CFLAGS% -o bin/adler32.obj zlib123/adler32.c
2e809894a316 Moved to actual zlib 1.2.3.
Ryan C. Gordon <icculus@icculus.org>
parents: 709
diff changeset
   130
gcc %CFLAGS% -o bin/compress.obj zlib123/compress.c
2e809894a316 Moved to actual zlib 1.2.3.
Ryan C. Gordon <icculus@icculus.org>
parents: 709
diff changeset
   131
gcc %CFLAGS% -o bin/crc32.obj zlib123/crc32.c
2e809894a316 Moved to actual zlib 1.2.3.
Ryan C. Gordon <icculus@icculus.org>
parents: 709
diff changeset
   132
gcc %CFLAGS% -o bin/deflate.obj zlib123/deflate.c
2e809894a316 Moved to actual zlib 1.2.3.
Ryan C. Gordon <icculus@icculus.org>
parents: 709
diff changeset
   133
gcc %CFLAGS% -o bin/gzio.obj zlib123/gzio.c
2e809894a316 Moved to actual zlib 1.2.3.
Ryan C. Gordon <icculus@icculus.org>
parents: 709
diff changeset
   134
gcc %CFLAGS% -o bin/infback.obj zlib123/infback.c
2e809894a316 Moved to actual zlib 1.2.3.
Ryan C. Gordon <icculus@icculus.org>
parents: 709
diff changeset
   135
gcc %CFLAGS% -o bin/inffast.obj zlib123/inffast.c
2e809894a316 Moved to actual zlib 1.2.3.
Ryan C. Gordon <icculus@icculus.org>
parents: 709
diff changeset
   136
gcc %CFLAGS% -o bin/inflate.obj zlib123/inflate.c
2e809894a316 Moved to actual zlib 1.2.3.
Ryan C. Gordon <icculus@icculus.org>
parents: 709
diff changeset
   137
gcc %CFLAGS% -o bin/inftrees.obj zlib123/inftrees.c
2e809894a316 Moved to actual zlib 1.2.3.
Ryan C. Gordon <icculus@icculus.org>
parents: 709
diff changeset
   138
gcc %CFLAGS% -o bin/trees.obj zlib123/trees.c
2e809894a316 Moved to actual zlib 1.2.3.
Ryan C. Gordon <icculus@icculus.org>
parents: 709
diff changeset
   139
gcc %CFLAGS% -o bin/uncompr.obj zlib123/uncompr.c
2e809894a316 Moved to actual zlib 1.2.3.
Ryan C. Gordon <icculus@icculus.org>
parents: 709
diff changeset
   140
gcc %CFLAGS% -o bin/zutil.obj zlib123/zutil.c
625
60b5f566a258 Last minute changes, fixes, and build system updates for 1.0.
Ryan C. Gordon <icculus@icculus.org>
parents: 618
diff changeset
   141
@echo off
408
db3ef8d2928e Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   142
625
60b5f566a258 Last minute changes, fixes, and build system updates for 1.0.
Ryan C. Gordon <icculus@icculus.org>
parents: 618
diff changeset
   143
:dolinking
60b5f566a258 Last minute changes, fixes, and build system updates for 1.0.
Ryan C. Gordon <icculus@icculus.org>
parents: 618
diff changeset
   144
@echo Linking PhysicsFS library...
415
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
   145
gcc %DEBUGFLAGS% -Zdll -Zcrtdll -Zomf -Zmt -Zmtd -o bin/physfs.dll bin/*.obj bin/physfs.def
408
db3ef8d2928e Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   146
625
60b5f566a258 Last minute changes, fixes, and build system updates for 1.0.
Ryan C. Gordon <icculus@icculus.org>
parents: 618
diff changeset
   147
rem goto :builddone
60b5f566a258 Last minute changes, fixes, and build system updates for 1.0.
Ryan C. Gordon <icculus@icculus.org>
parents: 618
diff changeset
   148
60b5f566a258 Last minute changes, fixes, and build system updates for 1.0.
Ryan C. Gordon <icculus@icculus.org>
parents: 618
diff changeset
   149
@echo Compiling test program...
415
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
   150
gcc %CFLAGS% -o bin/test_physfs.obj test/test_physfs.c
625
60b5f566a258 Last minute changes, fixes, and build system updates for 1.0.
Ryan C. Gordon <icculus@icculus.org>
parents: 618
diff changeset
   151
@echo Linking test program...
415
cd3495c18f03 Build system fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 408
diff changeset
   152
gcc %DEBUGFLAGS% -Zomf -Zcrtdll -Zmt -Zmtd -o bin/test_physfs.exe bin/test_physfs.obj bin/physfs.lib bin/test_physfs.def
408
db3ef8d2928e Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   153
625
60b5f566a258 Last minute changes, fixes, and build system updates for 1.0.
Ryan C. Gordon <icculus@icculus.org>
parents: 618
diff changeset
   154
:builddone
60b5f566a258 Last minute changes, fixes, and build system updates for 1.0.
Ryan C. Gordon <icculus@icculus.org>
parents: 618
diff changeset
   155
60b5f566a258 Last minute changes, fixes, and build system updates for 1.0.
Ryan C. Gordon <icculus@icculus.org>
parents: 618
diff changeset
   156
@echo "All done!"
60b5f566a258 Last minute changes, fixes, and build system updates for 1.0.
Ryan C. Gordon <icculus@icculus.org>
parents: 618
diff changeset
   157
60b5f566a258 Last minute changes, fixes, and build system updates for 1.0.
Ryan C. Gordon <icculus@icculus.org>
parents: 618
diff changeset
   158
rem end of makeos2.cmd ...
60b5f566a258 Last minute changes, fixes, and build system updates for 1.0.
Ryan C. Gordon <icculus@icculus.org>
parents: 618
diff changeset
   159