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\mtafsdir.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 \
186 $(DESTDIR)\lib\opr.lib \
187 $(DESTDIR)\lib\afsroken.lib
189 ############################################################################
191 SALVAGER = $(DESTDIR)\root.server\usr\afs\bin\salvager.exe
193 $(OUT)\salvager.obj: salvager.c
194 $(C2OBJ) $** -DAFS_PTHREAD_ENV
196 $(OUT)\vol-salvage.obj: vol-salvage.c
197 $(C2OBJ) $** -DAFS_PTHREAD_ENV
199 $(OUT)\physio.obj: physio.c
200 $(C2OBJ) $** -DAFS_PTHREAD_ENV
203 $(OUT)\salvager.obj \
204 $(OUT)\vol-salvage.obj \
206 $(OUT)\AFS_component_version_number.obj \
209 $(SALVAGER): $(SALVAGER_EXEOBJS) $(EXEC_LIBS)
210 $(EXECONLINK) shell32.lib
211 $(_VC_MANIFEST_EMBED_EXE)
217 ############################################################################
219 FSSYNC_DEBUG = $(DESTDIR)\root.server\usr\afs\bin\fssync-debug.exe
221 $(OUT)\fssync-debug.obj: fssync-debug.c
222 $(C2OBJ) $** -DAFS_PTHREAD_ENV
224 FSSYNC_DEBUG_EXEOBJS =\
225 $(OUT)\fssync-debug.obj \
226 $(OUT)\AFS_component_version_number.obj \
227 $(OUT)\fssync-debug.res
229 $(FSSYNC_DEBUG): $(FSSYNC_DEBUG_EXEOBJS) $(EXEC_LIBS)
230 $(EXECONLINK) shell32.lib
231 $(_VC_MANIFEST_EMBED_EXE)
236 ############################################################################
237 # build volinfo and volscan
238 VOLINFO = $(DESTDIR)\root.server\usr\afs\bin\volinfo.exe
239 VOLSCAN = $(DESTDIR)\root.server\usr\afs\bin\volscan.exe
241 $(OUT)\vol-info.obj: vol-info.c
242 $(C2OBJ) $** -DAFS_PTHREAD_ENV
244 $(OUT)\volinfo-main.obj: volinfo-main.c
245 $(C2OBJ) $** -DAFS_PTHREAD_ENV
247 $(OUT)\volscan-main.obj: volscan-main.c
248 $(C2OBJ) $** -DAFS_PTHREAD_ENV
250 $(VOLINFO): $(OUT)\volinfo-main.obj $(OUT)\vol-info.obj $(OUT)\physio.obj $(OUT)\volinfo.res $(EXEC_LIBS)
251 $(EXECONLINK) shell32.lib
252 $(_VC_MANIFEST_EMBED_EXE)
257 $(VOLSCAN): $(OUT)\volscan-main.obj $(OUT)\vol-info.obj $(OUT)\physio.obj $(OUT)\volinfo.res $(EXEC_LIBS)
258 $(EXECONLINK) shell32.lib
259 $(_VC_MANIFEST_EMBED_EXE)
264 ############################################################################
266 VOLBLESS = $(DESTDIR)\root.server\usr\afs\bin\vol-bless.exe
268 $(OUT)\vol-bless.obj: vol-bless.c
269 $(C2OBJ) $** -DAFS_PTHREAD_ENV
271 $(VOLBLESS): $(OUT)\vol-bless.obj $(OUT)\physio.obj $(OUT)\vol-bless.res $(EXEC_LIBS)
272 $(EXECONLINK) shell32.lib
273 $(_VC_MANIFEST_EMBED_EXE)
278 ############################################################################
279 # generate versioninfo resources
280 $(OUT)\salvager.res: salvager.rc AFS_component_version_number.h
282 $(OUT)\volinfo.res: AFS_component_version_number.h
284 ############################################################################
286 install: $(INCFILES) $(LIBFILE) $(MT_LIBFILE) $(DAFS_LIBFILE) $(SALVAGER) $(VOLINFO) $(VOLSCAN)