2 # Copyright (c) 2005,2006 Secure Endpoints Inc.
4 # Permission is hereby granted, free of charge, to any person
5 # obtaining a copy of this software and associated documentation files
6 # (the "Software"), to deal in the Software without restriction,
7 # including without limitation the rights to use, copy, modify, merge,
8 # publish, distribute, sublicense, and/or sell copies of the Software,
9 # and to permit persons to whom the Software is furnished to do so,
10 # subject to the following conditions:
12 # The above copyright notice and this permission notice shall be
13 # included in all copies or substantial portions of the Software.
15 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
19 # BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
20 # ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24 AFSDEV_AUXRCFLAGS=/i ..\kfw\inc\netidmgr
25 RELDIR=WINNT\netidmgr_plugin
26 !INCLUDE ..\..\config\NTMakefile.$(SYS_NAME)
27 !INCLUDE ..\..\config\NTMakefile.version
29 AFSPLUGIN_VERSION_MAJOR=$(AFSPRODUCT_VER_MAJOR)
30 AFSPLUGIN_VERSION_MINOR=$(AFSPRODUCT_VER_MINOR)
31 AFSPLUGIN_VERSION_PATCH=$(AFSPRODUCT_VER_PATCH)
32 AFSPLUGIN_VERSION_AUX =$(AFSPRODUCT_VER_BUILD)
34 AFSPLUGIN_VERSION=$(AFSPLUGIN_VERSION_MAJOR).$(AFSPLUGIN_VERSION_MINOR).$(AFSPLUGIN_VERSION_PATCH).$(AFSPLUGIN_VERSION_AUX)
35 AFSPLUGIN_VERLIST=$(AFSPLUGIN_VERSION_MAJOR),$(AFSPLUGIN_VERSION_MINOR),$(AFSPLUGIN_VERSION_PATCH),$(AFSPLUGIN_VERSION_AUX)
37 # short form version numbers
38 TAFSPLUGIN_VERSION=$(AFSPLUGIN_VERSION_MAJOR).$(AFSPLUGIN_VERSION_MINOR).$(AFSPLUGIN_VERSION_PATCH)
40 !INCLUDE afsp_version.h.in
44 EXEDIR = $(DESTDIR)\root.client\usr\vice\etc
46 INCFILEDIR = $(DESTDIR)\include\WINNT
48 LIBFILEDIR = $(DESTDIR)\lib
50 KFWINCDIR = ..\kfw\inc
52 KFWLIBDIR = ..\kfw\lib\$(CPU)
56 kfwincflags=-I$(KFWINCDIR)\krb5\KerberosIV -I$(KFWINCDIR)\loadfuncs -I$(KFWINCDIR)\krb5 -I$(KFWINCDIR)\netidmgr -I$(KFWINCDIR)
57 afsincflags=-I$(DESTDIR)\include -I$(DESTDIR)\include\afs -I$(DESTDIR)\include\rx
59 incflags=$(kfwincflags) $(afsincflags) -I.
60 pldefines=-DUNICODE -D_UNICODE
61 cdebug=$(cdebug) -Os -Zi
64 plcflags=$(cdebug) $(cflags) $(incflags) $(pldefines) $(cwarn) $(cvarsdll)
66 PC2OBJ=$(CC) $(plcflags) /Fo"$@" /c $**
73 CHMFILE=$(EXEDIR)\afsplhlp.chm
75 DLLFILE=$(EXEDIR)\afscred.dll
77 LIBFILE=$(LIBFILEDIR)\afscred.lib
80 AFS_component_version_number.h \
82 $(INCFILEDIR)\afspext.h \
83 $(INCFILEDIR)\afsp_version.h
86 $(OUT)\AFS_component_version_number.obj \
88 $(OUT)\afsplugin.obj \
90 $(OUT)\afsconfig.obj \
91 $(OUT)\afsconfigdlg.obj \
92 $(OUT)\afsnewcreds.obj \
96 $(OUT)\dynimport.obj \
99 !if "$(CPU)" == "AMD64"
101 $(KFWLIBDIR)\nidmgr64.lib
104 $(KFWLIBDIR)\nidmgr32.lib
108 $(DESTDIR)\lib\afsauthent.lib \
109 $(DESTDIR)\lib\libafsconf.lib \
110 $(DESTDIR)\lib\afs\mtafsutil.lib\
111 $(KFWLIBDIR)\loadfuncs.lib \
119 VERRESFILE=$(OUT)\version.res
121 $(OUT)\afsfuncs.obj: afsfuncs.c
124 $(OUT)\afsplugin.obj: afsplugin.c
127 $(OUT)\main.obj: main.c
130 $(OUT)\afsconfig.obj: afsconfig.c
133 $(OUT)\afsconfigdlg.obj: afsconfigdlg.c
136 $(OUT)\afsnewcreds.obj: afsnewcreds.c
139 $(OUT)\afsext.obj: afsext.c
142 $(OUT)\afshelp.obj: afshelp.c
145 $(OUT)\afsicon.obj: afsicon.c
148 $(OUT)\dynimport.obj: dynimport.c
151 $(OUT)\krb5common.obj: krb5common.c
154 $(DLLFILE): $(OBJFILES) $(VERRESFILE)
155 $(DLLGUILINK) $(LIBFILES) $(SDKLIBFILES)
156 $(_VC_MANIFEST_EMBED_DLL)
157 $(_VC_MANIFEST_CLEAN)
165 nmake /f NTMakefile install
168 install: $(INCFILES) $(CHMFILE) $(DLLFILE) lang
172 # Repeat this block as necessary redefining LANG for additional
175 # Begin language block
178 LANGDLL=$(EXEDIR)\afscred_$(LANG).dll
182 $(LANGDLL): $(OUT)\langres_$(LANG).res $(OUT)\langres_ver_$(LANG).res
186 $(OUT)\langres_ver_$(LANG).res: version.rc
187 $(RC) /d LANGVER /d LANG_$(LANG) /fo $@ $**
189 $(OUT)\langres_$(LANG).res: lang\$(LANG)\langres.rc
197 $(MAKECMD) /f NTMakefile clean