windows-updates-20010108
[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 !INCLUDE ..\config\NTMakefile.$(SYS_NAME)
9 !INCLUDE ..\config\NTMakefile.version
10
11 ############################################################################
12 # Definitions for installing header files
13
14 INCFILEDIR = $(DESTDIR)\include  # header file install directory
15
16 INCFILES =\
17         $(INCFILEDIR)\afs\fssync.h \
18         $(INCFILEDIR)\afs\ihandle.h \
19         $(INCFILEDIR)\afs\nfs.h \
20         $(INCFILEDIR)\afs\ntops.h \
21         $(INCFILEDIR)\afs\partition.h \
22         $(INCFILEDIR)\afs\viceinode.h \
23         $(INCFILEDIR)\afs\vnode.h \
24         $(INCFILEDIR)\afs\volume.h \
25         $(INCFILEDIR)\afs\voldefs.h
26
27
28
29 ############################################################################
30 # Build afsvol.lib
31
32 LIBFILE = $(DESTDIR)\lib\afs\afsvol.lib
33
34 LIBOBJS =\
35         common.obj \
36         clone.obj \
37         fssync.obj \
38         ntops.obj \
39         nuke.obj \
40         partition.obj \
41         purge.obj \
42         vnode.obj \
43         volume.obj \
44         vutil.obj \
45         ihandle.obj \
46         AFS_component_version_number.obj        
47
48 $(LIBFILE): $(LIBOBJS)
49         $(LIBARCH)
50
51
52
53 ############################################################################
54 # External libraries
55
56 EXEC_LIBS = \
57         $(DESTDIR)\lib\afs\afscmd.lib \
58         $(DESTDIR)\lib\afs\afsvol.lib \
59         $(DESTDIR)\lib\afs\afsutil.lib \
60         $(DESTDIR)\lib\afs\afsdir.lib \
61         $(DESTDIR)\lib\afslwp.lib \
62         $(DESTDIR)\lib\afs\afsacl.lib \
63         $(DESTDIR)\lib\afs\afsreg.lib \
64         $(DESTDIR)\lib\afs\afsprocmgmt.lib \
65         $(DESTDIR)\lib\afs\afseventlog.lib \
66         $(DESTDIR)\lib\afspthread.lib
67
68 ############################################################################
69 # build salvager
70 SALVAGER = $(DESTDIR)\root.server\usr\afs\bin\salvager.exe
71
72 SALVAGER_EXEOBJS =\
73         vol-salvage.obj \
74         physio.obj \
75         AFS_component_version_number.obj \
76         salvager.res
77
78 $(SALVAGER): $(SALVAGER_EXEOBJS) $(EXEC_LIBS)
79         $(EXECONLINK)
80         $(EXEPREP)
81
82
83 ############################################################################
84 # build volinfo
85 VOLINFO = $(DESTDIR)\root.server\usr\afs\bin\volinfo.exe
86
87 $(VOLINFO): vol-info.obj physio.obj volinfo.res $(EXEC_LIBS)
88         $(EXECONLINK)
89         $(EXEPREP)
90
91 ############################################################################
92 # generate versioninfo resources
93 salvager.res: salvager.rc AFS_component_version_number.h
94
95 volinfo.res: volinfo.rc AFS_component_version_number.h
96
97 ############################################################################
98 # Install targets
99 install: $(INCFILES) $(LIBFILE) $(SALVAGER) $(VOLINFO)