3061873320c2afb52e0ab5438ae9a78c35532960
[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)\afslwp.lib \
26         $(LIBDIR)\afs\afspioctl.lib \
27         $(LIBDIR)\afs\afsutil.lib \
28         $(LIBDIR)\afs\afsreg.lib \
29         $(LIBDIR)\afsroken.lib
30
31
32 install: \
33         $(INCDIR)\afs\xstat_fs.h \
34         $(INCDIR)\afs\xstat_cm.h \
35         $(LIBDIR)\afs_xstat_fs.lib \
36         $(LIBDIR)\afs_xstat_cm.lib \
37         $(BINDIR)\xstat_fs_test.exe \
38         $(BINDIR)\xstat_cm_test.exe
39
40 #
41 # File Server data collection
42 #
43 FSINCLS= $(INCDIR)\xstat_fs.h $(RPCINCLS)
44
45 {.}.c{$(OUT)}.obj:
46     $(C2OBJ) $<
47
48 $(LIBDIR)\afs_xstat_fs.lib: $(OUT)\xstat_fs.obj $(OUT)\xstat_fs_callback.obj $(OUT)\AFS_component_version_number.obj
49         $(LIBARCH)
50
51 $(OUT)\xstat_fs_test.res: xstat_fs_test.rc AFS_component_version_number.h
52
53 $(BINDIR)\xstat_fs_test.exe: $(OUT)\xstat_fs_test.obj $(OUT)\xstat_fs_test.res $(LIBDIR)\afs_xstat_fs.lib $(LIBS)
54         $(EXECONLINK) rpcrt4.lib
55         $(_VC_MANIFEST_EMBED_EXE)
56         $(EXEPREP)
57         $(CODESIGN_USERLAND)
58         $(SYMSTORE_IMPORT)
59
60 #
61 # Cache Manager data collection
62 #
63 CMINCLS=$(INCDIR)\xstat_cm.h $(RPCINCLS)
64
65 $(LIBDIR)\afs_xstat_cm.lib: $(OUT)\xstat_cm.obj $(OUT)\AFS_component_version_number.obj
66         $(LIBARCH)
67
68 $(OUT)\xstat_cm_test.res: xstat_cm_test.rc AFS_component_version_number.h
69
70 $(BINDIR)\xstat_cm_test.exe: $(OUT)\xstat_cm_test.obj $(OUT)\xstat_cm_test.res $(LIBDIR)\afs_xstat_cm.lib $(LIBS)
71         $(EXECONLINK) 
72         $(_VC_MANIFEST_EMBED_EXE)
73         $(EXEPREP)
74         $(CODESIGN_USERLAND)
75         $(SYMSTORE_IMPORT)
76
77 #
78 # Misc targets
79 #
80 clean::
81         $(DEL) -f $(OUT)\*.obj
82         $(DEL) -f $(OUT)\*.res
83         $(DEL) -f $(OUT)\*.pdb
84         $(DEL) -f $(OUT)\*.ilk
85         $(DEL) -f $(INCDIR)\afs\xstat_fs.h
86         $(DEL) -f $(INCDIR)\afs\xstat_cm.h
87         $(DEL) -f $(LIBDIR)\afs_xstat_fs.lib
88         $(DEL) -f $(LIBDIR)\afs_xstat_cm.lib
89         $(DEL) -f $(BINDIR)\xstat_cm_test.exe
90         $(DEL) -f $(BINDIR)\xstat_fs_test.exe
91         $(DEL) -f AFS_component_version_number.?