d149662617bb8b6710ada0e6659ba5bee081fe0e
[openafs.git] / src / vol / NTMakefile
1 # Copyright 2000, International Business Machines Corporation and others.
2 # All Rights Reserved.
3
4 # This software has been released under the terms of the IBM Public
5 # License.  For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
7
8 AFSDEV_AUXCDEFINES = -DFSSYNC_BUILD_SERVER -DFSSYNC_BUILD_CLIENT
9
10 RELDIR=vol
11 !INCLUDE ..\config\NTMakefile.$(SYS_NAME)
12 !INCLUDE ..\config\NTMakefile.version
13
14 ############################################################################
15 # Definitions for installing header files
16
17 INCFILEDIR = $(DESTDIR)\include  # header file install directory
18
19 INCFILES =\
20         $(INCFILEDIR)\afs\fssync.h \
21         $(INCFILEDIR)\afs\ihandle.h \
22         $(INCFILEDIR)\afs\nfs.h \
23         $(INCFILEDIR)\afs\ntops.h \
24         $(INCFILEDIR)\afs\partition.h \
25         $(INCFILEDIR)\afs\viceinode.h \
26         $(INCFILEDIR)\afs\vnode.h \
27         $(INCFILEDIR)\afs\vnode_inline.h \
28         $(INCFILEDIR)\afs\volume.h \
29         $(INCFILEDIR)\afs\volume_inline.h \
30         $(INCFILEDIR)\afs\voldefs.h \
31         $(INCFILEDIR)\afs\daemon_com.h \
32         $(INCFILEDIR)\afs\vol_prototypes.h
33
34 ############################################################################
35 # Build afsvol.lib
36
37 LIBFILE = $(DESTDIR)\lib\afs\afsvol.lib
38
39 MT_LIBFILE = $(DESTDIR)\lib\afs\mtafsvol.lib
40
41 DAFS_LIBFILE = $(DESTDIR)\lib\afs\daafsvol.lib
42
43 LIBOBJS =\
44         $(OUT)\common.obj \
45         $(OUT)\clone.obj \
46         $(OUT)\fssync-client.obj \
47         $(OUT)\fssync-server.obj \
48         $(OUT)\daemon_com.obj \
49         $(OUT)\ntops.obj \
50         $(OUT)\nuke.obj \
51         $(OUT)\partition.obj \
52         $(OUT)\purge.obj \
53         $(OUT)\vnode.obj \
54         $(OUT)\volume.obj \
55         $(OUT)\vutil.obj \
56         $(OUT)\ihandle.obj \
57         $(OUT)\AFS_component_version_number.obj
58
59 MT_LIBOBJS =\
60         $(OUT)\common.obj \
61         $(OUT)\clone_mt.obj \
62         $(OUT)\fssync-client_mt.obj \
63         $(OUT)\fssync-server_mt.obj \
64         $(OUT)\daemon_com_mt.obj \
65         $(OUT)\ntops.obj \
66         $(OUT)\nuke_mt.obj \
67         $(OUT)\partition_mt.obj \
68         $(OUT)\purge.obj \
69         $(OUT)\vnode_mt.obj \
70         $(OUT)\volume_mt.obj \
71         $(OUT)\vutil_mt.obj \
72         $(OUT)\ihandle_mt.obj \
73         $(OUT)\AFS_component_version_number.obj
74
75 $(OUT)\clone_mt.obj:clone.c
76         $(C2OBJ) $** -DAFS_PTHREAD_ENV
77
78 $(OUT)\daemon_com_mt.obj:daemon_com.c
79         $(C2OBJ) $** -DAFS_PTHREAD_ENV
80
81 $(OUT)\fssync-client_mt.obj:fssync-client.c
82         $(C2OBJ) $** -DAFS_PTHREAD_ENV
83
84 $(OUT)\fssync-server_mt.obj:fssync-server.c
85         $(C2OBJ) $** -DAFS_PTHREAD_ENV
86
87 $(OUT)\ihandle_mt.obj:ihandle.c
88         $(C2OBJ) $** -DAFS_PTHREAD_ENV
89
90 $(OUT)\nuke_mt.obj:nuke.c
91         $(C2OBJ) $** -DAFS_PTHREAD_ENV
92
93 $(OUT)\partition_mt.obj:partition.c
94         $(C2OBJ) $** -DAFS_PTHREAD_ENV
95
96 $(OUT)\vnode_mt.obj:vnode.c
97         $(C2OBJ) $** -DAFS_PTHREAD_ENV
98
99 $(OUT)\volume_mt.obj:volume.c
100         $(C2OBJ) $** -DAFS_PTHREAD_ENV
101
102 $(OUT)\vutil_mt.obj:vutil.c
103         $(C2OBJ) $** -DAFS_PTHREAD_ENV
104
105 $(LIBFILE): $(LIBOBJS)
106         $(LIBARCH)
107
108 $(MT_LIBFILE): $(MT_LIBOBJS)
109         $(LIBARCH)
110
111 DAFS_LIBOBJS =\
112         $(OUT)\common.obj \
113         $(OUT)\clone_dafs.obj \
114         $(OUT)\fssync-client_dafs.obj \
115         $(OUT)\fssync-server_dafs.obj \
116         $(OUT)\daemon_com_dafs.obj \
117         $(OUT)\ntops.obj \
118         $(OUT)\nuke_dafs.obj \
119         $(OUT)\partition_dafs.obj \
120         $(OUT)\purge.obj \
121         $(OUT)\vnode_dafs.obj \
122         $(OUT)\volume_dafs.obj \
123         $(OUT)\vutil_dafs.obj \
124         $(OUT)\ihandle_dafs.obj \
125         $(OUT)\vg_cache.obj \
126         $(OUT)\vg_scan.obj \
127         $(OUT)\AFS_component_version_number.obj
128
129 $(OUT)\clone_dafs.obj:clone.c
130         $(C2OBJ) $** -DAFS_PTHREAD_ENV -DAFS_DEMAND_ATTACH_FS
131
132 $(OUT)\daemon_com_dafs.obj:daemon_com.c
133         $(C2OBJ) $** -DAFS_PTHREAD_ENV -DAFS_DEMAND_ATTACH_FS
134
135 $(OUT)\fssync-client_dafs.obj:fssync-client.c
136         $(C2OBJ) $** -DAFS_PTHREAD_ENV -DAFS_DEMAND_ATTACH_FS
137
138 $(OUT)\fssync-server_dafs.obj:fssync-server.c
139         $(C2OBJ) $** -DAFS_PTHREAD_ENV -DAFS_DEMAND_ATTACH_FS
140
141 $(OUT)\ihandle_dafs.obj:ihandle.c
142         $(C2OBJ) $** -DAFS_PTHREAD_ENV -DAFS_DEMAND_ATTACH_FS
143
144 $(OUT)\nuke_dafs.obj:nuke.c
145         $(C2OBJ) $** -DAFS_PTHREAD_ENV -DAFS_DEMAND_ATTACH_FS
146
147 $(OUT)\partition_dafs.obj:partition.c
148         $(C2OBJ) $** -DAFS_PTHREAD_ENV -DAFS_DEMAND_ATTACH_FS
149
150 $(OUT)\vnode_dafs.obj:vnode.c
151         $(C2OBJ) $** -DAFS_PTHREAD_ENV -DAFS_DEMAND_ATTACH_FS
152
153 $(OUT)\volume_dafs.obj:volume.c
154         $(C2OBJ) $** -DAFS_PTHREAD_ENV -DAFS_DEMAND_ATTACH_FS
155
156 $(OUT)\vutil_dafs.obj:vutil.c
157         $(C2OBJ) $** -DAFS_PTHREAD_ENV -DAFS_DEMAND_ATTACH_FS
158
159 $(OUT)\vg_cache.obj:vg_cache.c
160         $(C2OBJ) $** -DAFS_PTHREAD_ENV -DAFS_DEMAND_ATTACH_FS
161
162 $(OUT)\vg_scan.obj:vg_scan.c
163         $(C2OBJ) $** -DAFS_PTHREAD_ENV -DAFS_DEMAND_ATTACH_FS
164
165 $(DAFS_LIBFILE): $(DAFS_LIBOBJS)
166         $(LIBARCH)
167
168 ############################################################################
169 # External libraries
170
171 EXEC_LIBS = \
172         $(DESTDIR)\lib\afs\afscmd.lib \
173         $(DESTDIR)\lib\afs\mtafsvol.lib \
174         $(DESTDIR)\lib\afs\mtafsutil.lib \
175         $(DESTDIR)\lib\afsrpc.lib \
176         $(DESTDIR)\lib\afs\afsdir.lib \
177         $(DESTDIR)\lib\afs\afsacl.lib \
178         $(DESTDIR)\lib\afs\afsreg.lib \
179         $(DESTDIR)\lib\afs\afsprocmgmt.lib \
180         $(DESTDIR)\lib\afs\afseventlog.lib \
181         $(DESTDIR)\lib\afspthread.lib
182
183 ############################################################################
184 # build salvager
185 SALVAGER = $(DESTDIR)\root.server\usr\afs\bin\salvager.exe
186
187 $(OUT)\salvager.obj: salvager.c
188         $(C2OBJ) $** -DAFS_PTHREAD_ENV
189
190 $(OUT)\vol-salvage.obj: vol-salvage.c
191         $(C2OBJ) $** -DAFS_PTHREAD_ENV
192
193 $(OUT)\physio.obj: physio.c
194         $(C2OBJ) $** -DAFS_PTHREAD_ENV
195
196 SALVAGER_EXEOBJS =\
197         $(OUT)\salvager.obj \
198         $(OUT)\vol-salvage.obj \
199         $(OUT)\physio.obj \
200         $(OUT)\AFS_component_version_number.obj \
201         $(OUT)\salvager.res
202
203 $(SALVAGER): $(SALVAGER_EXEOBJS) $(EXEC_LIBS)
204         $(EXECONLINK) shell32.lib
205         $(_VC_MANIFEST_EMBED_EXE)
206         $(EXEPREP)
207         $(CODESIGN_USERLAND)
208         $(SYMSTORE_IMPORT)
209
210
211 ############################################################################
212 # build fssync-debug
213 FSSYNC_DEBUG = $(DESTDIR)\root.server\usr\afs\bin\fssync-debug.exe
214
215 $(OUT)\fssync-debug.obj: fssync-debug.c
216         $(C2OBJ) $** -DAFS_PTHREAD_ENV
217
218 FSSYNC_DEBUG_EXEOBJS =\
219         $(OUT)\fssync-debug.obj \
220         $(OUT)\AFS_component_version_number.obj \
221         $(OUT)\fssync-debug.res
222
223 $(FSSYNC_DEBUG): $(FSSYNC_DEBUG_EXEOBJS) $(EXEC_LIBS)
224         $(EXECONLINK) shell32.lib
225         $(_VC_MANIFEST_EMBED_EXE)
226         $(EXEPREP)
227         $(CODESIGN_USERLAND)
228         $(SYMSTORE_IMPORT)
229
230 ############################################################################
231 # build volinfo
232 VOLINFO = $(DESTDIR)\root.server\usr\afs\bin\volinfo.exe
233
234 $(OUT)\vol-info.obj: vol-info.c
235         $(C2OBJ) $** -DAFS_PTHREAD_ENV
236
237 $(VOLINFO): $(OUT)\vol-info.obj $(OUT)\physio.obj $(OUT)\volinfo.res $(EXEC_LIBS)
238         $(EXECONLINK) shell32.lib
239         $(_VC_MANIFEST_EMBED_EXE)
240         $(EXEPREP)
241         $(CODESIGN_USERLAND)
242         $(SYMSTORE_IMPORT)
243
244 ############################################################################
245 # build volinfo
246 VOLBLESS = $(DESTDIR)\root.server\usr\afs\bin\vol-bless.exe
247
248 $(OUT)\vol-bless.obj: vol-bless.c
249         $(C2OBJ) $** -DAFS_PTHREAD_ENV
250
251 $(VOLBLESS): $(OUT)\vol-bless.obj $(OUT)\physio.obj $(OUT)\vol-bless.res $(EXEC_LIBS)
252         $(EXECONLINK) shell32.lib
253         $(_VC_MANIFEST_EMBED_EXE)
254         $(EXEPREP)
255         $(CODESIGN_USERLAND)
256         $(SYMSTORE_IMPORT)
257
258 ############################################################################
259 # generate versioninfo resources
260 $(OUT)\salvager.res: salvager.rc AFS_component_version_number.h
261
262 $(OUT)\volinfo.res: AFS_component_version_number.h
263
264 ############################################################################
265 # Install targets
266 install: $(INCFILES) $(LIBFILE) $(MT_LIBFILE) $(DAFS_LIBFILE) $(SALVAGER) $(VOLINFO)
267
268 mkdir:
269