author | Ryan C. Gordon <icculus@icculus.org> |
Sun, 18 Sep 2005 21:44:42 +0000 | |
changeset 754 | e7cd7411eadf |
parent 718 | 2e809894a316 |
child 767 | db29bf06d171 |
permissions | -rw-r--r-- |
408 | 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 |
||
430
5a445b536027
Set a default language.
Ryan C. Gordon <icculus@icculus.org>
parents:
419
diff
changeset
|
8 |
set PHYSFSLANG=PHYSFS_LANG_ENGLISH |
415 | 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 | 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 | 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 | 20 |
@echo ;don't edit this directly! It is rewritten by makeos2.cmd! > bin\test_physfs.def |
21 |
@echo NAME TESTPHYSFS WINDOWCOMPAT >> bin\test_physfs.def |
|
22 |
@echo DESCRIPTION 'PhysicsFS: http://icculus.org/physfs/' >> bin\test_physfs.def |
|
23 |
@echo STACKSIZE 0x10000 >> bin\test_physfs.def |
|
24 |
@echo BASE=0x10000 >> bin\test_physfs.def |
|
25 |
@echo PROTMODE >> bin\test_physfs.def |
|
408 | 26 |
|
27 |
@echo ;don't edit this directly! It is rewritten by makeos2.cmd! > bin\physfs.def |
|
415 | 28 |
@echo LIBRARY 'physfs' INITINSTANCE TERMINSTANCE >> bin\physfs.def |
29 |
@echo STACKSIZE 0x10000 >> bin\physfs.def |
|
30 |
@echo CODE LOADONCALL >> bin\physfs.def |
|
31 |
@echo DATA LOADONCALL NONSHARED MULTIPLE >> bin\physfs.def |
|
408 | 32 |
@echo DESCRIPTION 'PhysicsFS: http://icculus.org/physfs/' >> bin\physfs.def |
415 | 33 |
@echo EXPORTS >> bin\physfs.def |
34 |
@echo "PHYSFS_getLinkedVersion" >> bin\physfs.def |
|
35 |
@echo "PHYSFS_init" >> bin\physfs.def |
|
36 |
@echo "PHYSFS_deinit" >> bin\physfs.def |
|
37 |
@echo "PHYSFS_supportedArchiveTypes" >> bin\physfs.def |
|
38 |
@echo "PHYSFS_freeList" >> bin\physfs.def |
|
39 |
@echo "PHYSFS_getLastError" >> bin\physfs.def |
|
40 |
@echo "PHYSFS_getDirSeparator" >> bin\physfs.def |
|
41 |
@echo "PHYSFS_permitSymbolicLinks" >> bin\physfs.def |
|
42 |
@echo "PHYSFS_getCdRomDirs" >> bin\physfs.def |
|
43 |
@echo "PHYSFS_getBaseDir" >> bin\physfs.def |
|
44 |
@echo "PHYSFS_getUserDir" >> bin\physfs.def |
|
45 |
@echo "PHYSFS_getWriteDir" >> bin\physfs.def |
|
46 |
@echo "PHYSFS_setWriteDir" >> bin\physfs.def |
|
47 |
@echo "PHYSFS_addToSearchPath" >> bin\physfs.def |
|
48 |
@echo "PHYSFS_removeFromSearchPath" >> bin\physfs.def |
|
49 |
@echo "PHYSFS_getSearchPath" >> bin\physfs.def |
|
50 |
@echo "PHYSFS_setSaneConfig" >> bin\physfs.def |
|
51 |
@echo "PHYSFS_mkdir" >> bin\physfs.def |
|
52 |
@echo "PHYSFS_delete" >> bin\physfs.def |
|
53 |
@echo "PHYSFS_getRealDir" >> bin\physfs.def |
|
54 |
@echo "PHYSFS_enumerateFiles" >> bin\physfs.def |
|
55 |
@echo "PHYSFS_exists" >> bin\physfs.def |
|
56 |
@echo "PHYSFS_isDirectory" >> bin\physfs.def |
|
57 |
@echo "PHYSFS_isSymbolicLink" >> bin\physfs.def |
|
58 |
@echo "PHYSFS_openWrite" >> bin\physfs.def |
|
59 |
@echo "PHYSFS_openAppend" >> bin\physfs.def |
|
60 |
@echo "PHYSFS_openRead" >> bin\physfs.def |
|
61 |
@echo "PHYSFS_close" >> bin\physfs.def |
|
62 |
@echo "PHYSFS_read" >> bin\physfs.def |
|
63 |
@echo "PHYSFS_write" >> bin\physfs.def |
|
64 |
@echo "PHYSFS_eof" >> bin\physfs.def |
|
65 |
@echo "PHYSFS_tell" >> bin\physfs.def |
|
66 |
@echo "PHYSFS_seek" >> bin\physfs.def |
|
67 |
@echo "PHYSFS_fileLength" >> bin\physfs.def |
|
68 |
@echo "PHYSFS_swapSLE16" >> bin\physfs.def |
|
69 |
@echo "PHYSFS_swapULE16" >> bin\physfs.def |
|
70 |
@echo "PHYSFS_swapSLE32" >> bin\physfs.def |
|
71 |
@echo "PHYSFS_swapULE32" >> bin\physfs.def |
|
72 |
@echo "PHYSFS_swapSLE64" >> bin\physfs.def |
|
73 |
@echo "PHYSFS_swapULE64" >> bin\physfs.def |
|
74 |
@echo "PHYSFS_swapSBE16" >> bin\physfs.def |
|
75 |
@echo "PHYSFS_swapUBE16" >> bin\physfs.def |
|
76 |
@echo "PHYSFS_swapSBE32" >> bin\physfs.def |
|
77 |
@echo "PHYSFS_swapUBE32" >> bin\physfs.def |
|
78 |
@echo "PHYSFS_swapSBE64" >> bin\physfs.def |
|
79 |
@echo "PHYSFS_swapUBE64" >> bin\physfs.def |
|
80 |
@echo "PHYSFS_getLastModTime" >> bin\physfs.def |
|
81 |
@echo "PHYSFS_readSLE16" >> bin\physfs.def |
|
82 |
@echo "PHYSFS_readULE16" >> bin\physfs.def |
|
83 |
@echo "PHYSFS_readSLE32" >> bin\physfs.def |
|
84 |
@echo "PHYSFS_readULE32" >> bin\physfs.def |
|
85 |
@echo "PHYSFS_readSLE64" >> bin\physfs.def |
|
86 |
@echo "PHYSFS_readULE64" >> bin\physfs.def |
|
87 |
@echo "PHYSFS_readSBE16" >> bin\physfs.def |
|
88 |
@echo "PHYSFS_readUBE16" >> bin\physfs.def |
|
89 |
@echo "PHYSFS_readSBE32" >> bin\physfs.def |
|
90 |
@echo "PHYSFS_readUBE32" >> bin\physfs.def |
|
91 |
@echo "PHYSFS_readSBE64" >> bin\physfs.def |
|
92 |
@echo "PHYSFS_readUBE64" >> bin\physfs.def |
|
93 |
@echo "PHYSFS_writeSLE16" >> bin\physfs.def |
|
94 |
@echo "PHYSFS_writeULE16" >> bin\physfs.def |
|
95 |
@echo "PHYSFS_writeSLE32" >> bin\physfs.def |
|
96 |
@echo "PHYSFS_writeULE32" >> bin\physfs.def |
|
97 |
@echo "PHYSFS_writeSLE64" >> bin\physfs.def |
|
98 |
@echo "PHYSFS_writeULE64" >> bin\physfs.def |
|
99 |
@echo "PHYSFS_writeSBE16" >> bin\physfs.def |
|
100 |
@echo "PHYSFS_writeUBE16" >> bin\physfs.def |
|
101 |
@echo "PHYSFS_writeSBE32" >> bin\physfs.def |
|
102 |
@echo "PHYSFS_writeUBE32" >> bin\physfs.def |
|
103 |
@echo "PHYSFS_writeSBE64" >> bin\physfs.def |
|
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 | 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 | 115 |
emximp -o bin/physfs.lib bin/physfs.def |
408 | 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 | 119 |
gcc %CFLAGS% -o bin/physfs.obj physfs.c |
120 |
gcc %CFLAGS% -o bin/physfs_byteorder.obj physfs_byteorder.c |
|
121 |
gcc %CFLAGS% -o bin/os2.obj platform/os2.c |
|
122 |
gcc %CFLAGS% -o bin/dir.obj archivers/dir.c |
|
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 | 125 |
gcc %CFLAGS% -o bin/zip.obj archivers/zip.c |
487 | 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 | 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 | 145 |
gcc %DEBUGFLAGS% -Zdll -Zcrtdll -Zomf -Zmt -Zmtd -o bin/physfs.dll bin/*.obj bin/physfs.def |
408 | 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 | 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 | 152 |
gcc %DEBUGFLAGS% -Zomf -Zcrtdll -Zmt -Zmtd -o bin/test_physfs.exe bin/test_physfs.obj bin/physfs.lib bin/test_physfs.def |
408 | 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 |