2
# Copyright (c) 2004,2005,2006 Massachusetts Institute of Technology
3
# Copyright (c) 2006 Secure Endpoints Inc.
5
# Permission is hereby granted, free of charge, to any person
6
# obtaining a copy of this software and associated documentation files
7
# (the "Software"), to deal in the Software without restriction,
8
# including without limitation the rights to use, copy, modify, merge,
9
# publish, distribute, sublicense, and/or sell copies of the Software,
10
# and to permit persons to whom the Software is furnished to do so,
11
# subject to the following conditions:
13
# The above copyright notice and this permission notice shall be
14
# included in all copies or substantial portions of the Software.
16
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
20
# BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
21
# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
!include <Makefile.w32>
29
all: showvars showvers mkalldirs mkversion
33
$(ECHO) DESTDIR = $(DESTDIR)
34
$(ECHO) OBJDIR = $(OBJDIR)
37
$(ECHO) DOXYGEN = $(DOXYGEN)
41
$(ECHO) ---- Version Information ----
42
$(ECHO) NETIDMGR_VERSION= $(NETIDMGR_VERSION)
43
$(ECHO) NETIDMGR_VERSION_API=$(NETIDMGR_VERSION_API)
44
$(ECHO) NETIDMGR_RELEASEDESC=$(NETIDMGR_RELEASEDESC)
45
$(ECHO) Build Type :$(KH_BUILD), $(KH_RELEASE)
47
$(ECHO) Company = $(NETIDMGR_SRC_COMPANY_1033)
48
$(ECHO) Copyright = $(NETIDMGR_SRC_COPYRIGHT_1033)
49
$(ECHO) ---- End Version Information ---
53
! if !exist($(DESTROOT))
56
! if !exist($(OBJROOT))
59
! if !exist($(DESTDIR))
62
! if !exist($(OBJDIR))
65
! if !exist($(INCDIR))
68
! if !exist($(BINDIR))
71
! if !exist($(LIBDIR))
74
! if !exist($(DOCDIR))
77
! if !exist($(OBJDIR)\W2K)
78
-$(MKDIR) $(OBJDIR)\W2K
80
! if !exist($(BINDIR)\W2K)
81
-$(MKDIR) $(BINDIR)\W2K
83
! if !exist($(LIBDIR)\W2K)
84
-$(MKDIR) $(LIBDIR)\W2K
86
$(ECHO) Done creating directories.
88
VERSIONINT=$(INCDIR)\netidmgr_intver.h
90
VERSIONEXT=$(INCDIR)\netidmgr_version.h
92
# Version related defines
94
! if "$(KH_BUILD)"=="RETAIL"
97
kh_fileflags=VS_FF_DEBUG
99
! if "$(KH_RELEASE)"=="PRERELEASE"
100
kh_fileflags=$(kh_fileflags) | VS_FF_PRERELEASE
101
! elseif "$(KH_RELEASE)"=="PRIVATE"
102
kh_fileflags=$(kh_fileflags) | VS_FF_PRIVATEBUILD
103
! elseif "$(KH_RELEASE)"=="SPECIAL"
104
kh_fileflags=$(kh_fileflags) | VS_FF_SPECIALBUILD
107
kh_fileos=VOS_NT_WINDOWS32
108
kh_filetype_app=VFT_APP
109
kh_filetype_dll=VFT_DLL
111
mkversion: $(VERSIONINT) $(VERSIONEXT)
113
# Version and build strings
115
!if "$(KH_RELEASE)" == "OFFICIAL"
116
NETIDMGR_VERSION_STR_1033=$(NETIDMGR_VERSION)
117
NETIDMGR_COMMENT_STR_1033=Official build. Please send bug reports to kfw-bugs@MIT.EDU
118
!elseif "$(KH_RELEASE)" == "PRERELEASE"
119
NETIDMGR_VERSION_STR_1033=$(NETIDMGR_VERSION) Prelease $(NETIDMGR_RELEASEDESC)
120
NETIDMGR_COMMENT_STR_1033=Prerelease build. Please send bug reports to kfw-bugs@MIT.EDU
121
!elseif "$(KH_RELEASE)" == "PRIVATE"
122
NETIDMGR_VERSION_STR_1033=$(NETIDMGR_VERSION).PRIVATE
123
NETIDMGR_PRIVATE_STR_1033=Private build. Please send bug reports to kfw-bugs@MIT.EDU
124
!elseif "$(KH_RELEASE)" == "SPECIAL"
125
NETIDMGR_VERSION_STR_1033=$(NETIDMGR_VERSION).SPECIAL
126
NETIDMGR_SPECIAL_STR_1033=Special build. Please send bug reports to kfw-bugs@MIT.EDU
129
!if "$(KH_BUILD)" == "DEBUG"
130
NETIDMGR_VERSION_STR_1033=$(NETIDMGR_VERSION_STR_1033).DEBUG
134
NETIDMGR_PRODUCT_1033=NetIDMgr $(NETIDMGR_VERSION_STR_1033)
136
!include netidmgr_version.h.in
138
!include netidmgr_intver.h.in
141
! if exist($(VERSIONINT))
144
! if exist($(VERSIONEXT))