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