Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / xstat / 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 # Makefile for the module providing the client side of the File Server
9 # and Cache Manager extended statistics gathering.
10
11 RELDIR=xstat
12 !INCLUDE ..\config\NTMakefile.$(SYS_NAME)
13 !INCLUDE ..\config\NTMakefile.version
14
15 LIBDIR = $(DESTDIR)\lib
16 INCDIR = $(DESTDIR)\include
17 BINDIR = $(DESTDIR)\bin
18
19 RPCINCLS=$(INCDIR)\lwp.h $(INCDIR)\rx\rx.h
20
21 LIBS= \
22 $(LIBDIR)\afs\afsint.lib \
23 $(LIBDIR)\afs\afscmd.lib \
24 $(LIBDIR)\afsrx.lib \
25 $(LIBDIR)\afshcrypto.lib \
26 $(LIBDIR)\afslwp.lib \
27 $(LIBDIR)\afs\afspioctl.lib \
28 $(LIBDIR)\afs\afsutil.lib \
29 $(LIBDIR)\afs\afsreg.lib \
30 $(LIBDIR)\afsroken.lib \
31 $(LIBDIR)\opr.lib
32
33
34 install: \
35 $(INCDIR)\afs\xstat_fs.h \
36 $(INCDIR)\afs\xstat_cm.h \
37 $(LIBDIR)\afs_xstat_fs.lib \
38 $(LIBDIR)\afs_xstat_cm.lib \
39 $(BINDIR)\xstat_fs_test.exe \
40 $(BINDIR)\xstat_cm_test.exe
41
42 #
43 # File Server data collection
44 #
45 FSINCLS= $(INCDIR)\xstat_fs.h $(RPCINCLS)
46
47 {.}.c{$(OUT)}.obj:
48 $(C2OBJ) $<
49
50 $(LIBDIR)\afs_xstat_fs.lib: $(OUT)\xstat_fs.obj $(OUT)\xstat_fs_callback.obj $(OUT)\AFS_component_version_number.obj
51 $(LIBARCH)
52
53 $(OUT)\xstat_fs_test.res: xstat_fs_test.rc AFS_component_version_number.h
54
55 $(BINDIR)\xstat_fs_test.exe: $(OUT)\xstat_fs_test.obj $(OUT)\xstat_fs_test.res $(LIBDIR)\afs_xstat_fs.lib $(LIBS)
56 $(EXECONLINK) rpcrt4.lib
57 $(_VC_MANIFEST_EMBED_EXE)
58 $(EXEPREP)
59 $(CODESIGN_USERLAND)
60 $(SYMSTORE_IMPORT)
61
62 #
63 # Cache Manager data collection
64 #
65 CMINCLS=$(INCDIR)\xstat_cm.h $(RPCINCLS)
66
67 $(LIBDIR)\afs_xstat_cm.lib: $(OUT)\xstat_cm.obj $(OUT)\AFS_component_version_number.obj
68 $(LIBARCH)
69
70 $(OUT)\xstat_cm_test.res: xstat_cm_test.rc AFS_component_version_number.h
71
72 $(BINDIR)\xstat_cm_test.exe: $(OUT)\xstat_cm_test.obj $(OUT)\xstat_cm_test.res $(LIBDIR)\afs_xstat_cm.lib $(LIBS)
73 $(EXECONLINK)
74 $(_VC_MANIFEST_EMBED_EXE)
75 $(EXEPREP)
76 $(CODESIGN_USERLAND)
77 $(SYMSTORE_IMPORT)
78
79 #
80 # Misc targets
81 #
82 clean::
83 $(DEL) -f $(OUT)\*.obj
84 $(DEL) -f $(OUT)\*.res
85 $(DEL) -f $(OUT)\*.pdb
86 $(DEL) -f $(OUT)\*.ilk
87 $(DEL) -f $(INCDIR)\afs\xstat_fs.h
88 $(DEL) -f $(INCDIR)\afs\xstat_cm.h
89 $(DEL) -f $(LIBDIR)\afs_xstat_fs.lib
90 $(DEL) -f $(LIBDIR)\afs_xstat_cm.lib
91 $(DEL) -f $(BINDIR)\xstat_cm_test.exe
92 $(DEL) -f $(BINDIR)\xstat_fs_test.exe
93 $(DEL) -f AFS_component_version_number.?