Commit | Line | Data |
---|---|---|
5733b1e1 RS |
1 | rem build script for win32\r |
2 | rem set the \r | |
3 | rem\r | |
4 | \r | |
5 | rem EDIT THESE\r | |
6 | set RPCINCLUDE="C:\...where my rpc includes live...\include"\r | |
7 | set RPCDLL="C:\...where my rpc DLL can be found...\rpc.dll"\r | |
8 | set RPCLIB="C:\...where my rpc link library can be found...\rpc.lib"\r | |
9 | set RPCGEN="C:\...where my rpcgen executable lives...\rpcgen.exe"\r | |
10 | \r | |
11 | \r | |
12 | \r | |
13 | rem generate NFS from .x\r | |
14 | rem\r | |
15 | copy nfs\nfs.x nfs\libnfs-raw-nfs.x\r | |
16 | %RPCGEN% -h nfs\libnfs-raw-nfs.x > nfs\libnfs-raw-nfs.h\r | |
17 | %RPCGEN% -c nfs\libnfs-raw-nfs.x > nfs\libnfs-raw-nfs.c\r | |
18 | cl /I. /Iinclude /I%RPCINCLUDE% -Zi -Od -c -DWIN32 -D_WIN32_WINNT=0x0600 -MDd nfs\libnfs-raw-nfs.c -Fonfs\libnfs-raw-nfs.obj\r | |
19 | cl /I. /Iinclude /I%RPCINCLUDE% -Zi -Od -c -DWIN32 -D_WIN32_WINNT=0x0600 -MDd nfs\nfs.c -Fonfs\nfs.obj\r | |
20 | cl /I. /Iinclude /I%RPCINCLUDE% -Zi -Od -c -DWIN32 -D_WIN32_WINNT=0x0600 -MDd nfs\nfsacl.c -Fonfs\nfsacl.obj\r | |
21 | \r | |
22 | \r | |
23 | \r | |
24 | rem\r | |
25 | rem generate RQUOTA from .x\r | |
26 | rem\r | |
27 | copy rquota\rquota.x rquota\libnfs-raw-rquota.x\r | |
28 | %RPCGEN% -h rquota\libnfs-raw-rquota.x > rquota\libnfs-raw-rquota.h\r | |
29 | %RPCGEN% -c rquota\libnfs-raw-rquota.x > rquota\libnfs-raw-rquota.c\r | |
30 | cl /I. /Iinclude /I%RPCINCLUDE% -Zi -Od -c -DWIN32 -D_WIN32_WINNT=0x0600 -MDd rquota\libnfs-raw-rquota.c -Forquota\libnfs-raw-rquota.obj\r | |
31 | cl /I. /Iinclude /I%RPCINCLUDE% -Zi -Od -c -DWIN32 -D_WIN32_WINNT=0x0600 -MDd rquota\rquota.c -Forquota\rquota.obj\r | |
32 | \r | |
33 | \r | |
34 | \r | |
35 | rem\r | |
36 | rem generate PORTMAP from .x\r | |
37 | rem\r | |
38 | copy portmap\portmap.x portmap\libnfs-raw-portmap.x\r | |
39 | %RPCGEN% -h portmap\libnfs-raw-portmap.x > portmap\libnfs-raw-portmap.h\r | |
40 | %RPCGEN% -c portmap\libnfs-raw-portmap.x > portmap\libnfs-raw-portmap.c\r | |
41 | cl /I. /Iinclude /I%RPCINCLUDE% -Zi -Od -c -DWIN32 -D_WIN32_WINNT=0x0600 -MDd portmap\libnfs-raw-portmap.c -Foportmap\libnfs-raw-portmap.obj\r | |
42 | cl /I. /Iinclude /I%RPCINCLUDE% -Zi -Od -c -DWIN32 -D_WIN32_WINNT=0x0600 -MDd portmap\portmap.c -Foportmap\portmap.obj\r | |
43 | \r | |
44 | \r | |
45 | rem\r | |
46 | rem generate MOUNT from .x\r | |
47 | rem\r | |
48 | copy mount\mount.x mount\libnfs-raw-mount.x\r | |
49 | %RPCGEN% -h mount\libnfs-raw-mount.x > mount\libnfs-raw-mount.h\r | |
50 | %RPCGEN% -c mount\libnfs-raw-mount.x > mount\libnfs-raw-mount.c\r | |
51 | cl /I. /Iinclude /I%RPCINCLUDE% -Zi -Od -c -DWIN32 -D_WIN32_WINNT=0x0600 -MDd mount\libnfs-raw-mount.c -Fomount\libnfs-raw-mount.obj\r | |
52 | cl /I. /Iinclude /I%RPCINCLUDE% -Zi -Od -c -DWIN32 -D_WIN32_WINNT=0x0600 -MDd mount\mount.c -Fomount\mount.obj\r | |
53 | \r | |
54 | \r | |
55 | \r | |
56 | rem\r | |
57 | rem generate core part of library\r | |
58 | rem\r | |
59 | cl /I. /Iinclude /I%RPCINCLUDE% -Zi -Od -c -DWIN32 -D_WIN32_WINNT=0x0600 -MDd lib\init.c -Folib\init.obj\r | |
60 | cl /I. /Iinclude /I%RPCINCLUDE% -Zi -Od -c -DWIN32 -D_WIN32_WINNT=0x0600 -MDd -D_U_="" lib\pdu.c -Folib\pdu.obj\r | |
61 | cl /I. /Iinclude /I%RPCINCLUDE% -Zi -Od -c -DWIN32 -D_WIN32_WINNT=0x0600 -MDd -D_U_="" lib\socket.c -Folib\socket.obj\r | |
62 | cl /I. /Iinclude /I%RPCINCLUDE% /Imount /Infs -Zi -Od -c -DWIN32 -D_WIN32_WINNT=0x0600 -MDd -D_U_="" lib\libnfs.c -Folib\libnfs.obj\r | |
63 | cl /I. /Iinclude /I%RPCINCLUDE% /Imount /Infs -Zi -Od -c -DWIN32 -D_WIN32_WINNT=0x0600 -MDd -D_U_="" lib\libnfs-sync.c -Folib\libnfs-sync.obj\r | |
64 | \r | |
65 | \r | |
66 | \r | |
67 | rem\r | |
68 | rem create a linklibrary/dll\r | |
69 | rem\r | |
4b1097cd | 70 | 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\r |
5733b1e1 RS |
71 | \r |
72 | 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 %RPCLIB% ws2_32.lib\r | |
73 | \r | |
74 | \r | |
75 | \r | |
76 | rem\r | |
77 | rem build a test application\r | |
78 | rem\r | |
79 | cl /I. /Iinclude /I%RPCINCLUDE% /Imount /Infs -Zi -Od -DWIN32 -D_WIN32_WINNT=0x0600 -MDd -D_U_="" examples\nfsclient-sync.c lib\libnfs.lib %RPCLIB% WS2_32.lib kernel32.lib mswsock.lib advapi32.lib wsock32.lib advapi32.lib\r | |
80 | \r | |
81 | \r | |
82 | \r | |
83 | \r | |
84 | \r | |
85 | \r | |
86 | \r | |
87 | \r |