1 # Copyright 2000, International Business Machines Corporation and others.
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
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
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 ############################################################################
38 LIBFILE = $(DESTDIR)\lib\afs\afsvol.lib
40 MT_LIBFILE = $(DESTDIR)\lib\afs\mtafsvol.lib
42 DAFS_LIBFILE = $(DESTDIR)\lib\afs\daafsvol.lib
47 $(OUT)\fssync-client.obj \
48 $(OUT)\fssync-server.obj \
49 $(OUT)\daemon_com.obj \
50 $(OUT)\namei_ops.obj \
53 $(OUT)\partition.obj \
59 $(OUT)\AFS_component_version_number.obj
64 $(OUT)\fssync-client_mt.obj \
65 $(OUT)\fssync-server_mt.obj \
66 $(OUT)\daemon_com_mt.obj \
67 $(OUT)\namei_ops.obj \
70 $(OUT)\partition_mt.obj \
73 $(OUT)\volume_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)
111 $(MT_LIBFILE): $(MT_LIBOBJS)
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 \
122 $(OUT)\nuke_dafs.obj \
123 $(OUT)\partition_dafs.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 \
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)
172 ############################################################################
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 ############################################################################
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
201 $(OUT)\salvager.obj \
202 $(OUT)\vol-salvage.obj \
204 $(OUT)\AFS_component_version_number.obj \
207 $(SALVAGER): $(SALVAGER_EXEOBJS) $(EXEC_LIBS)
208 $(EXECONLINK) shell32.lib
209 $(_VC_MANIFEST_EMBED_EXE)
215 ############################################################################
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)
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)
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)
262 ############################################################################
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)
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 ############################################################################
284 install: $(INCFILES) $(LIBFILE) $(MT_LIBFILE) $(DAFS_LIBFILE) $(SALVAGER) $(VOLINFO) $(VOLSCAN)