408da36c994bafaf5402b7a3370003ad66a0fc3a
[openafs.git] / src / config / NTMakefile.version-NOCML
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 # This makefile creates the AFS_component_version_number.c header file
9 # for binaries. It is invoked from the NTMakefile in the binary's tree. Hence
10 # the paths are correct for those trees.
11
12 !IFNDEF VERSFILE
13 VERSFILE=AFS_component_version_number
14 !ENDIF
15
16 $(VERSFILE).c:
17         echo char $(CML_PREFIX)cml_version_number[]="@(#)OpenAFS$(AFSPRODUCT_VERSION)"; >$(VERSFILE).c
18         echo char* AFSVersion = "OpenAFS$(AFSPRODUCT_VERSION)";  >>$(VERSFILE).c
19
20 $(VERSFILE).h:
21         echo #define AFS_VERINFO_BUILD "OpenAFS$(AFSPRODUCT_VERSION)" >$(VERSFILE).h
22
23 $(VERSFILE).txt:
24         echo OpenAFS$(AFSPRODUCT_VERSION)>$(VERSFILE).txt