Update NEWS for 1.6.22
[pkg-k5-afs_openafs.git] / src / vol / NTMakefile
blobdeeeb5272200fd6fc81b97198861fdeabe3fc184
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
8 AFSDEV_AUXCDEFINES = -DFSSYNC_BUILD_SERVER -DFSSYNC_BUILD_CLIENT
10 RELDIR=vol
11 !INCLUDE ..\config\NTMakefile.$(SYS_NAME)
12 !INCLUDE ..\config\NTMakefile.version
14 ############################################################################
15 # Definitions for installing header files
17 INCFILEDIR = $(DESTDIR)\include  # header file install directory
19 INCFILES =\
20         $(INCFILEDIR)\afs\fssync.h \
21         $(INCFILEDIR)\afs\ihandle.h \
22         $(INCFILEDIR)\afs\nfs.h \
23         $(INCFILEDIR)\afs\namei_ops.h \
24         $(INCFILEDIR)\afs\ntops.h \
25         $(INCFILEDIR)\afs\partition.h \
26         $(INCFILEDIR)\afs\viceinode.h \
27         $(INCFILEDIR)\afs\vnode.h \
28         $(INCFILEDIR)\afs\vnode_inline.h \
29         $(INCFILEDIR)\afs\volume.h \
30         $(INCFILEDIR)\afs\volume_inline.h \
31         $(INCFILEDIR)\afs\voldefs.h \
32         $(INCFILEDIR)\afs\daemon_com.h \
33         $(INCFILEDIR)\afs\vol_prototypes.h
35 ############################################################################
36 # Build afsvol.lib
38 LIBFILE = $(DESTDIR)\lib\afs\afsvol.lib
40 MT_LIBFILE = $(DESTDIR)\lib\afs\mtafsvol.lib
42 DAFS_LIBFILE = $(DESTDIR)\lib\afs\daafsvol.lib
44 LIBOBJS =\
45         $(OUT)\common.obj \
46         $(OUT)\clone.obj \
47         $(OUT)\fssync-client.obj \
48         $(OUT)\fssync-server.obj \
49         $(OUT)\daemon_com.obj \
50         $(OUT)\namei_ops.obj \
51         $(OUT)\ntops.obj \
52         $(OUT)\nuke.obj \
53         $(OUT)\partition.obj \
54         $(OUT)\purge.obj \
55         $(OUT)\vnode.obj \
56         $(OUT)\volume.obj \
57         $(OUT)\vutil.obj \
58         $(OUT)\ihandle.obj \
59         $(OUT)\AFS_component_version_number.obj
61 MT_LIBOBJS =\
62         $(OUT)\common.obj \
63         $(OUT)\clone_mt.obj \
64         $(OUT)\fssync-client_mt.obj \
65         $(OUT)\fssync-server_mt.obj \
66         $(OUT)\daemon_com_mt.obj \
67         $(OUT)\namei_ops.obj \
68         $(OUT)\ntops.obj \
69         $(OUT)\nuke_mt.obj \
70         $(OUT)\partition_mt.obj \
71         $(OUT)\purge.obj \
72         $(OUT)\vnode_mt.obj \
73         $(OUT)\volume_mt.obj \
74         $(OUT)\vutil_mt.obj \
75         $(OUT)\ihandle_mt.obj \
76         $(OUT)\AFS_component_version_number.obj
78 $(OUT)\clone_mt.obj:clone.c
79         $(C2OBJ) $** -DAFS_PTHREAD_ENV
81 $(OUT)\daemon_com_mt.obj:daemon_com.c
82         $(C2OBJ) $** -DAFS_PTHREAD_ENV
84 $(OUT)\fssync-client_mt.obj:fssync-client.c
85         $(C2OBJ) $** -DAFS_PTHREAD_ENV
87 $(OUT)\fssync-server_mt.obj:fssync-server.c
88         $(C2OBJ) $** -DAFS_PTHREAD_ENV
90 $(OUT)\ihandle_mt.obj:ihandle.c
91         $(C2OBJ) $** -DAFS_PTHREAD_ENV
93 $(OUT)\nuke_mt.obj:nuke.c
94         $(C2OBJ) $** -DAFS_PTHREAD_ENV
96 $(OUT)\partition_mt.obj:partition.c
97         $(C2OBJ) $** -DAFS_PTHREAD_ENV
99 $(OUT)\vnode_mt.obj:vnode.c
100         $(C2OBJ) $** -DAFS_PTHREAD_ENV
102 $(OUT)\volume_mt.obj:volume.c
103         $(C2OBJ) $** -DAFS_PTHREAD_ENV
105 $(OUT)\vutil_mt.obj:vutil.c
106         $(C2OBJ) $** -DAFS_PTHREAD_ENV
108 $(LIBFILE): $(LIBOBJS)
109         $(LIBARCH)
111 $(MT_LIBFILE): $(MT_LIBOBJS)
112         $(LIBARCH)
114 DAFS_LIBOBJS =\
115         $(OUT)\common.obj \
116         $(OUT)\clone_dafs.obj \
117         $(OUT)\fssync-client_dafs.obj \
118         $(OUT)\fssync-server_dafs.obj \
119         $(OUT)\daemon_com_dafs.obj \
120         $(OUT)\namei_ops.obj \
121         $(OUT)\ntops.obj \
122         $(OUT)\nuke_dafs.obj \
123         $(OUT)\partition_dafs.obj \
124         $(OUT)\purge.obj \
125         $(OUT)\vnode_dafs.obj \
126         $(OUT)\volume_dafs.obj \
127         $(OUT)\vutil_dafs.obj \
128         $(OUT)\ihandle_dafs.obj \
129         $(OUT)\vg_cache.obj \
130         $(OUT)\vg_scan.obj \
131         $(OUT)\AFS_component_version_number.obj
133 $(OUT)\clone_dafs.obj:clone.c
134         $(C2OBJ) $** -DAFS_PTHREAD_ENV -DAFS_DEMAND_ATTACH_FS
136 $(OUT)\daemon_com_dafs.obj:daemon_com.c
137         $(C2OBJ) $** -DAFS_PTHREAD_ENV -DAFS_DEMAND_ATTACH_FS
139 $(OUT)\fssync-client_dafs.obj:fssync-client.c
140         $(C2OBJ) $** -DAFS_PTHREAD_ENV -DAFS_DEMAND_ATTACH_FS
142 $(OUT)\fssync-server_dafs.obj:fssync-server.c
143         $(C2OBJ) $** -DAFS_PTHREAD_ENV -DAFS_DEMAND_ATTACH_FS
145 $(OUT)\ihandle_dafs.obj:ihandle.c
146         $(C2OBJ) $** -DAFS_PTHREAD_ENV -DAFS_DEMAND_ATTACH_FS
148 $(OUT)\nuke_dafs.obj:nuke.c
149         $(C2OBJ) $** -DAFS_PTHREAD_ENV -DAFS_DEMAND_ATTACH_FS
151 $(OUT)\partition_dafs.obj:partition.c
152         $(C2OBJ) $** -DAFS_PTHREAD_ENV -DAFS_DEMAND_ATTACH_FS
154 $(OUT)\vnode_dafs.obj:vnode.c
155         $(C2OBJ) $** -DAFS_PTHREAD_ENV -DAFS_DEMAND_ATTACH_FS
157 $(OUT)\volume_dafs.obj:volume.c
158         $(C2OBJ) $** -DAFS_PTHREAD_ENV -DAFS_DEMAND_ATTACH_FS
160 $(OUT)\vutil_dafs.obj:vutil.c
161         $(C2OBJ) $** -DAFS_PTHREAD_ENV -DAFS_DEMAND_ATTACH_FS
163 $(OUT)\vg_cache.obj:vg_cache.c
164         $(C2OBJ) $** -DAFS_PTHREAD_ENV -DAFS_DEMAND_ATTACH_FS
166 $(OUT)\vg_scan.obj:vg_scan.c
167         $(C2OBJ) $** -DAFS_PTHREAD_ENV -DAFS_DEMAND_ATTACH_FS
169 $(DAFS_LIBFILE): $(DAFS_LIBOBJS)
170         $(LIBARCH)
172 ############################################################################
173 # External libraries
175 EXEC_LIBS = \
176         $(DESTDIR)\lib\afs\afscmd.lib \
177         $(DESTDIR)\lib\afs\mtafsvol.lib \
178         $(DESTDIR)\lib\afs\mtafsutil.lib \
179         $(DESTDIR)\lib\afsrpc.lib \
180         $(DESTDIR)\lib\afs\afsdir.lib \
181         $(DESTDIR)\lib\afs\afsacl.lib \
182         $(DESTDIR)\lib\afs\afsreg.lib \
183         $(DESTDIR)\lib\afs\afsprocmgmt.lib \
184         $(DESTDIR)\lib\afs\afseventlog.lib \
185         $(DESTDIR)\lib\afspthread.lib
187 ############################################################################
188 # build salvager
189 SALVAGER = $(DESTDIR)\root.server\usr\afs\bin\salvager.exe
191 $(OUT)\salvager.obj: salvager.c
192         $(C2OBJ) $** -DAFS_PTHREAD_ENV
194 $(OUT)\vol-salvage.obj: vol-salvage.c
195         $(C2OBJ) $** -DAFS_PTHREAD_ENV
197 $(OUT)\physio.obj: physio.c
198         $(C2OBJ) $** -DAFS_PTHREAD_ENV
200 SALVAGER_EXEOBJS =\
201         $(OUT)\salvager.obj \
202         $(OUT)\vol-salvage.obj \
203         $(OUT)\physio.obj \
204         $(OUT)\AFS_component_version_number.obj \
205         $(OUT)\salvager.res
207 $(SALVAGER): $(SALVAGER_EXEOBJS) $(EXEC_LIBS)
208         $(EXECONLINK) shell32.lib
209         $(_VC_MANIFEST_EMBED_EXE)
210         $(EXEPREP)
211         $(CODESIGN_USERLAND)
212         $(SYMSTORE_IMPORT)
215 ############################################################################
216 # build fssync-debug
217 FSSYNC_DEBUG = $(DESTDIR)\root.server\usr\afs\bin\fssync-debug.exe
219 $(OUT)\fssync-debug.obj: fssync-debug.c
220         $(C2OBJ) $** -DAFS_PTHREAD_ENV
222 FSSYNC_DEBUG_EXEOBJS =\
223         $(OUT)\fssync-debug.obj \
224         $(OUT)\AFS_component_version_number.obj \
225         $(OUT)\fssync-debug.res
227 $(FSSYNC_DEBUG): $(FSSYNC_DEBUG_EXEOBJS) $(EXEC_LIBS)
228         $(EXECONLINK) shell32.lib
229         $(_VC_MANIFEST_EMBED_EXE)
230         $(EXEPREP)
231         $(CODESIGN_USERLAND)
232         $(SYMSTORE_IMPORT)
234 ############################################################################
235 # build volinfo and volscan
236 VOLINFO = $(DESTDIR)\root.server\usr\afs\bin\volinfo.exe
237 VOLSCAN = $(DESTDIR)\root.server\usr\afs\bin\volscan.exe
239 $(OUT)\vol-info.obj: vol-info.c
240         $(C2OBJ) $** -DAFS_PTHREAD_ENV
242 $(OUT)\volinfo-main.obj: volinfo-main.c
243         $(C2OBJ) $** -DAFS_PTHREAD_ENV
245 $(OUT)\volscan-main.obj: volscan-main.c
246         $(C2OBJ) $** -DAFS_PTHREAD_ENV
248 $(VOLINFO): $(OUT)\volinfo-main.obj $(OUT)\vol-info.obj $(OUT)\physio.obj $(OUT)\volinfo.res $(EXEC_LIBS)
249         $(EXECONLINK) shell32.lib
250         $(_VC_MANIFEST_EMBED_EXE)
251         $(EXEPREP)
252         $(CODESIGN_USERLAND)
253         $(SYMSTORE_IMPORT)
255 $(VOLSCAN): $(OUT)\volscan-main.obj $(OUT)\vol-info.obj $(OUT)\physio.obj $(OUT)\volinfo.res $(EXEC_LIBS)
256         $(EXECONLINK) shell32.lib
257         $(_VC_MANIFEST_EMBED_EXE)
258         $(EXEPREP)
259         $(CODESIGN_USERLAND)
260         $(SYMSTORE_IMPORT)
262 ############################################################################
263 # build vol-bless
264 VOLBLESS = $(DESTDIR)\root.server\usr\afs\bin\vol-bless.exe
266 $(OUT)\vol-bless.obj: vol-bless.c
267         $(C2OBJ) $** -DAFS_PTHREAD_ENV
269 $(VOLBLESS): $(OUT)\vol-bless.obj $(OUT)\physio.obj $(OUT)\vol-bless.res $(EXEC_LIBS)
270         $(EXECONLINK) shell32.lib
271         $(_VC_MANIFEST_EMBED_EXE)
272         $(EXEPREP)
273         $(CODESIGN_USERLAND)
274         $(SYMSTORE_IMPORT)
276 ############################################################################
277 # generate versioninfo resources
278 $(OUT)\salvager.res: salvager.rc AFS_component_version_number.h
280 $(OUT)\volinfo.res: AFS_component_version_number.h
282 ############################################################################
283 # Install targets
284 install: $(INCFILES) $(LIBFILE) $(MT_LIBFILE) $(DAFS_LIBFILE) $(SALVAGER) $(VOLINFO) $(VOLSCAN)
286 mkdir:
287