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 |
|
415
|
8 |
set DEBUGFLAGS=-D_NDEBUG -O2 -s
|
|
9 |
set CFLAGS=%DEBUGFLAGS% -Wall -Werror -Zomf -Zmt -Zmtd -I. -Izlib114 -c -D__ST_MT_ERRNO__ -DOS2 -DPHYSFS_SUPPORTS_ZIP -DPHYSFS_SUPPORTS_GRP
|
|
10 |
|
408
|
11 |
@echo on
|
|
12 |
mkdir bin
|
415
|
13 |
erase /N bin\*.*
|
|
14 |
|
|
15 |
@echo ;don't edit this directly! It is rewritten by makeos2.cmd! > bin\test_physfs.def
|
|
16 |
@echo NAME TESTPHYSFS WINDOWCOMPAT >> bin\test_physfs.def
|
|
17 |
@echo DESCRIPTION 'PhysicsFS: http://icculus.org/physfs/' >> bin\test_physfs.def
|
|
18 |
@echo STACKSIZE 0x10000 >> bin\test_physfs.def
|
|
19 |
@echo BASE=0x10000 >> bin\test_physfs.def
|
|
20 |
@echo PROTMODE >> bin\test_physfs.def
|
408
|
21 |
|
|
22 |
@echo ;don't edit this directly! It is rewritten by makeos2.cmd! > bin\physfs.def
|
415
|
23 |
@echo LIBRARY 'physfs' INITINSTANCE TERMINSTANCE >> bin\physfs.def
|
|
24 |
@echo STACKSIZE 0x10000 >> bin\physfs.def
|
|
25 |
@echo CODE LOADONCALL >> bin\physfs.def
|
|
26 |
@echo DATA LOADONCALL NONSHARED MULTIPLE >> bin\physfs.def
|
408
|
27 |
@echo DESCRIPTION 'PhysicsFS: http://icculus.org/physfs/' >> bin\physfs.def
|
415
|
28 |
@echo EXPORTS >> bin\physfs.def
|
|
29 |
@echo "PHYSFS_getLinkedVersion" >> bin\physfs.def
|
|
30 |
@echo "PHYSFS_init" >> bin\physfs.def
|
|
31 |
@echo "PHYSFS_deinit" >> bin\physfs.def
|
|
32 |
@echo "PHYSFS_supportedArchiveTypes" >> bin\physfs.def
|
|
33 |
@echo "PHYSFS_freeList" >> bin\physfs.def
|
|
34 |
@echo "PHYSFS_getLastError" >> bin\physfs.def
|
|
35 |
@echo "PHYSFS_getDirSeparator" >> bin\physfs.def
|
|
36 |
@echo "PHYSFS_permitSymbolicLinks" >> bin\physfs.def
|
|
37 |
@echo "PHYSFS_getCdRomDirs" >> bin\physfs.def
|
|
38 |
@echo "PHYSFS_getBaseDir" >> bin\physfs.def
|
|
39 |
@echo "PHYSFS_getUserDir" >> bin\physfs.def
|
|
40 |
@echo "PHYSFS_getWriteDir" >> bin\physfs.def
|
|
41 |
@echo "PHYSFS_setWriteDir" >> bin\physfs.def
|
|
42 |
@echo "PHYSFS_addToSearchPath" >> bin\physfs.def
|
|
43 |
@echo "PHYSFS_removeFromSearchPath" >> bin\physfs.def
|
|
44 |
@echo "PHYSFS_getSearchPath" >> bin\physfs.def
|
|
45 |
@echo "PHYSFS_setSaneConfig" >> bin\physfs.def
|
|
46 |
@echo "PHYSFS_mkdir" >> bin\physfs.def
|
|
47 |
@echo "PHYSFS_delete" >> bin\physfs.def
|
|
48 |
@echo "PHYSFS_getRealDir" >> bin\physfs.def
|
|
49 |
@echo "PHYSFS_enumerateFiles" >> bin\physfs.def
|
|
50 |
@echo "PHYSFS_exists" >> bin\physfs.def
|
|
51 |
@echo "PHYSFS_isDirectory" >> bin\physfs.def
|
|
52 |
@echo "PHYSFS_isSymbolicLink" >> bin\physfs.def
|
|
53 |
@echo "PHYSFS_openWrite" >> bin\physfs.def
|
|
54 |
@echo "PHYSFS_openAppend" >> bin\physfs.def
|
|
55 |
@echo "PHYSFS_openRead" >> bin\physfs.def
|
|
56 |
@echo "PHYSFS_close" >> bin\physfs.def
|
|
57 |
@echo "PHYSFS_read" >> bin\physfs.def
|
|
58 |
@echo "PHYSFS_write" >> bin\physfs.def
|
|
59 |
@echo "PHYSFS_eof" >> bin\physfs.def
|
|
60 |
@echo "PHYSFS_tell" >> bin\physfs.def
|
|
61 |
@echo "PHYSFS_seek" >> bin\physfs.def
|
|
62 |
@echo "PHYSFS_fileLength" >> bin\physfs.def
|
|
63 |
@echo "PHYSFS_swapSLE16" >> bin\physfs.def
|
|
64 |
@echo "PHYSFS_swapULE16" >> bin\physfs.def
|
|
65 |
@echo "PHYSFS_swapSLE32" >> bin\physfs.def
|
|
66 |
@echo "PHYSFS_swapULE32" >> bin\physfs.def
|
|
67 |
@echo "PHYSFS_swapSLE64" >> bin\physfs.def
|
|
68 |
@echo "PHYSFS_swapULE64" >> bin\physfs.def
|
|
69 |
@echo "PHYSFS_swapSBE16" >> bin\physfs.def
|
|
70 |
@echo "PHYSFS_swapUBE16" >> bin\physfs.def
|
|
71 |
@echo "PHYSFS_swapSBE32" >> bin\physfs.def
|
|
72 |
@echo "PHYSFS_swapUBE32" >> bin\physfs.def
|
|
73 |
@echo "PHYSFS_swapSBE64" >> bin\physfs.def
|
|
74 |
@echo "PHYSFS_swapUBE64" >> bin\physfs.def
|
|
75 |
@echo "PHYSFS_getLastModTime" >> bin\physfs.def
|
|
76 |
@echo "PHYSFS_readSLE16" >> bin\physfs.def
|
|
77 |
@echo "PHYSFS_readULE16" >> bin\physfs.def
|
|
78 |
@echo "PHYSFS_readSLE32" >> bin\physfs.def
|
|
79 |
@echo "PHYSFS_readULE32" >> bin\physfs.def
|
|
80 |
@echo "PHYSFS_readSLE64" >> bin\physfs.def
|
|
81 |
@echo "PHYSFS_readULE64" >> bin\physfs.def
|
|
82 |
@echo "PHYSFS_readSBE16" >> bin\physfs.def
|
|
83 |
@echo "PHYSFS_readUBE16" >> bin\physfs.def
|
|
84 |
@echo "PHYSFS_readSBE32" >> bin\physfs.def
|
|
85 |
@echo "PHYSFS_readUBE32" >> bin\physfs.def
|
|
86 |
@echo "PHYSFS_readSBE64" >> bin\physfs.def
|
|
87 |
@echo "PHYSFS_readUBE64" >> bin\physfs.def
|
|
88 |
@echo "PHYSFS_writeSLE16" >> bin\physfs.def
|
|
89 |
@echo "PHYSFS_writeULE16" >> bin\physfs.def
|
|
90 |
@echo "PHYSFS_writeSLE32" >> bin\physfs.def
|
|
91 |
@echo "PHYSFS_writeULE32" >> bin\physfs.def
|
|
92 |
@echo "PHYSFS_writeSLE64" >> bin\physfs.def
|
|
93 |
@echo "PHYSFS_writeULE64" >> bin\physfs.def
|
|
94 |
@echo "PHYSFS_writeSBE16" >> bin\physfs.def
|
|
95 |
@echo "PHYSFS_writeUBE16" >> bin\physfs.def
|
|
96 |
@echo "PHYSFS_writeSBE32" >> bin\physfs.def
|
|
97 |
@echo "PHYSFS_writeUBE32" >> bin\physfs.def
|
|
98 |
@echo "PHYSFS_writeSBE64" >> bin\physfs.def
|
|
99 |
@echo "PHYSFS_writeUBE64" >> bin\physfs.def
|
408
|
100 |
|
415
|
101 |
emximp -o bin/physfs.lib bin/physfs.def
|
408
|
102 |
|
|
103 |
gcc %CFLAGS% -o bin/physfs.obj physfs.c
|
|
104 |
gcc %CFLAGS% -o bin/physfs_byteorder.obj physfs_byteorder.c
|
|
105 |
gcc %CFLAGS% -o bin/os2.obj platform/os2.c
|
|
106 |
gcc %CFLAGS% -o bin/dir.obj archivers/dir.c
|
|
107 |
gcc %CFLAGS% -o bin/grp.obj archivers/grp.c
|
|
108 |
gcc %CFLAGS% -o bin/zip.obj archivers/zip.c
|
|
109 |
|
|
110 |
gcc %CFLAGS% -o bin/adler32.obj zlib114/adler32.c
|
|
111 |
gcc %CFLAGS% -o bin/compress.obj zlib114/compress.c
|
|
112 |
gcc %CFLAGS% -o bin/crc32.obj zlib114/crc32.c
|
|
113 |
gcc %CFLAGS% -o bin/deflate.obj zlib114/deflate.c
|
|
114 |
gcc %CFLAGS% -o bin/infblock.obj zlib114/infblock.c
|
|
115 |
gcc %CFLAGS% -o bin/infcodes.obj zlib114/infcodes.c
|
|
116 |
gcc %CFLAGS% -o bin/inffast.obj zlib114/inffast.c
|
|
117 |
gcc %CFLAGS% -o bin/inflate.obj zlib114/inflate.c
|
|
118 |
gcc %CFLAGS% -o bin/inftrees.obj zlib114/inftrees.c
|
|
119 |
gcc %CFLAGS% -o bin/infutil.obj zlib114/infutil.c
|
|
120 |
gcc %CFLAGS% -o bin/trees.obj zlib114/trees.c
|
|
121 |
gcc %CFLAGS% -o bin/uncompr.obj zlib114/uncompr.c
|
|
122 |
gcc %CFLAGS% -o bin/zutil.obj zlib114/zutil.c
|
|
123 |
|
415
|
124 |
gcc %DEBUGFLAGS% -Zdll -Zcrtdll -Zomf -Zmt -Zmtd -o bin/physfs.dll bin/*.obj bin/physfs.def
|
408
|
125 |
|
415
|
126 |
gcc %CFLAGS% -o bin/test_physfs.obj test/test_physfs.c
|
|
127 |
gcc %DEBUGFLAGS% -Zomf -Zcrtdll -Zmt -Zmtd -o bin/test_physfs.exe bin/test_physfs.obj bin/physfs.lib bin/test_physfs.def
|
408
|
128 |
|