Commit | Line | Data |
---|---|---|
7f799388 M |
1 | rem build script for win32 |
2 | rem set the | |
3 | rem | |
4 | ||
5 | rem EDIT THESE | |
7f799388 M |
6 | set LIBNFS_BASE_DIR=.. |
7 | rem END EDIT | |
8 | ||
7f799388 M |
9 | |
10 | cd %LIBNFS_BASE_DIR% | |
11 | ||
ec70621f | 12 | rem NFS |
7f799388 | 13 | rem |
ec70621f RS |
14 | cl /I. /Iinclude /Iwin32 -Zi -Od -c -DWIN32 -D_WIN32_WINNT=0x0501 -MDd nfs\libnfs-raw-nfs.c -Fonfs\libnfs-raw-nfs.obj |
15 | cl /I. /Iinclude /Iwin32 -Zi -Od -c -DWIN32 -D_WIN32_WINNT=0x0501 -MDd nfs\nfs.c -Fonfs\nfs.obj | |
16 | cl /I. /Iinclude /Iwin32 -Zi -Od -c -DWIN32 -D_WIN32_WINNT=0x0501 -MDd nfs\nfsacl.c -Fonfs\nfsacl.obj | |
7f799388 M |
17 | |
18 | ||
19 | ||
20 | rem | |
ec70621f | 21 | rem RQUOTA |
7f799388 | 22 | rem |
ec70621f RS |
23 | cl /I. /Iinclude /Iwin32 -Zi -Od -c -DWIN32 -D_WIN32_WINNT=0x0501 -MDd rquota\libnfs-raw-rquota.c -Forquota\libnfs-raw-rquota.obj |
24 | cl /I. /Iinclude /Iwin32 -Zi -Od -c -DWIN32 -D_WIN32_WINNT=0x0501 -MDd rquota\rquota.c -Forquota\rquota.obj | |
7f799388 M |
25 | |
26 | ||
27 | ||
28 | rem | |
ec70621f | 29 | rem PORTMAP |
7f799388 | 30 | rem |
ec70621f RS |
31 | cl /I. /Iinclude /Iwin32 -Zi -Od -c -DWIN32 -D_WIN32_WINNT=0x0501 -MDd portmap\libnfs-raw-portmap.c -Foportmap\libnfs-raw-portmap.obj |
32 | cl /I. /Iinclude /Iwin32 -Zi -Od -c -DWIN32 -D_WIN32_WINNT=0x0501 -MDd portmap\portmap.c -Foportmap\portmap.obj | |
7f799388 M |
33 | |
34 | ||
35 | rem | |
ec70621f | 36 | rem MOUNT |
7f799388 | 37 | rem |
ec70621f RS |
38 | cl /I. /Iinclude /Iwin32 -Zi -Od -c -DWIN32 -D_WIN32_WINNT=0x0501 -MDd mount\libnfs-raw-mount.c -Fomount\libnfs-raw-mount.obj |
39 | cl /I. /Iinclude /Iwin32 -Zi -Od -c -DWIN32 -D_WIN32_WINNT=0x0501 -MDd mount\mount.c -Fomount\mount.obj | |
7f799388 M |
40 | |
41 | ||
42 | ||
43 | rem | |
44 | rem generate core part of library | |
45 | rem | |
ec70621f RS |
46 | cl /I. /Iinclude /Iwin32 -Zi -Od -c -DWIN32 -D_WIN32_WINNT=0x0501 -MDd lib\init.c -Folib\init.obj |
47 | cl /I. /Iinclude /Iwin32 -Zi -Od -c -DWIN32 -D_WIN32_WINNT=0x0501 -MDd -D_U_="" lib\pdu.c -Folib\pdu.obj | |
48 | cl /I. /Iinclude /Iwin32 -Zi -Od -c -DWIN32 -D_WIN32_WINNT=0x0501 -MDd -D_U_="" lib\socket.c -Folib\socket.obj | |
49 | cl /I. /Iinclude /Iwin32 /Imount /Infs -Zi -Od -c -DWIN32 -D_WIN32_WINNT=0x0501 -MDd -D_U_="" lib\libnfs.c -Folib\libnfs.obj | |
50 | cl /I. /Iinclude /Iwin32 /Imount /Infs -Zi -Od -c -DWIN32 -D_WIN32_WINNT=0x0501 -MDd -D_U_="" lib\libnfs-sync.c -Folib\libnfs-sync.obj | |
7f799388 M |
51 | |
52 | rem | |
53 | rem generate win32 compat layer | |
54 | rem | |
55 | cl /I. -Zi -Od -c -DWIN32 -D_WIN32_WINNT=0x0501 -MDd -D_U_="" win32\win32_compat.c -Fowin32\win32_compat.obj | |
56 | ||
57 | ||
58 | ||
59 | rem | |
60 | rem create a linklibrary/dll | |
61 | rem | |
62 | lib /out:lib\libnfs.lib /def:lib\libnfs-win32.def nfs\nfs.obj nfs\nfsacl.obj nfs\libnfs-raw-nfs.obj rquota\rquota.obj rquota\libnfs-raw-rquota.obj mount\mount.obj mount\libnfs-raw-mount.obj portmap\portmap.obj portmap\libnfs-raw-portmap.obj lib\init.obj lib\pdu.obj lib\socket.obj lib\libnfs.obj lib\libnfs-sync.obj win32\win32_compat.obj | |
63 | ||
ec70621f | 64 | link /DLL /out:lib\libnfs.dll /DEBUG /DEBUGTYPE:cv lib\libnfs.exp nfs\nfs.obj nfs\nfsacl.obj nfs\libnfs-raw-nfs.obj rquota\rquota.obj rquota\libnfs-raw-rquota.obj mount\mount.obj mount\libnfs-raw-mount.obj portmap\portmap.obj portmap\libnfs-raw-portmap.obj lib\init.obj lib\pdu.obj lib\socket.obj lib\libnfs.obj lib\libnfs-sync.obj win32\win32_compat.obj ws2_32.lib |
7f799388 M |
65 | |
66 | ||
67 | ||
68 | rem | |
69 | rem build a test application | |
70 | rem | |
ec70621f | 71 | cl /I. /Iinclude /Iwin32 /Imount /Infs -Zi -Od -DWIN32 -D_WIN32_WINNT=0x0501 -MDd -D_U_="" examples\nfsclient-sync.c lib\libnfs.lib WS2_32.lib kernel32.lib mswsock.lib advapi32.lib wsock32.lib advapi32.lib |
7f799388 M |
72 | |
73 | ||
74 | ||
75 | ||
76 | ||
77 | ||
78 | ||
79 |