Windows: Assembly makefile modification

Note that the explanation of how to set CODESIGN_PKT is located
in windows/README.

Remove dead code.

Add an @arch@ substitution rule which is replaced by either "32" or "64"
depending upon $(CPU).

Change-Id: Ia009209aa7837109669172dcd841db846dcc9127
This commit is contained in:
Jeffrey Altman
2013-09-14 20:52:32 -04:00
parent 4bd3708e6f
commit f8972159cd

View File

@@ -41,7 +41,7 @@ RELDIR=packages\windows\assembly
# ..to derive the public key token.
#
!ifndef CODESIGN_PKT
! error CODESIGN_PKT should be set to the public key token for codesigning certificate
! error CODESIGN_PKT should be set to the public key token for codesigning certificate. (See Windows\README).
!endif
prep:: mk-asm-dirs
@@ -69,11 +69,21 @@ ASMKRBBINS=\
$(ASMKRBDIR)\libhdb.pdb \
$(ASMKRBDIR)\libkadm5srv.pdb
!if ("$(CPU)" == "i386")
ARCH=32
!elseif ("$(CPU)" == "x86")
ARCH=32
!else
ARCH=64
!endif
$(ASMKRBDIR)\$(ASMKRBMAN).nohash: Heimdal.Kerberos.manifest.in
$(SED) -e "s,[@]name[@],$(ASMKRBNAME),g" \
-e "s,[@]cpu[@],$(MCPU),g" \
-e "s,[@]version[@],$(ASMKRBVER),g" \
-e "s,[@]pkt[@],$(CODESIGN_PKT),g" < $** > $@
-e "s,[@]pkt[@],$(CODESIGN_PKT),g" \
-e "s,[@]arch[@],$(ARCH),g" \
< $** > $@
$(ASMKRBDIR)\$(ASMKRBMAN) $(ASMKRBDIR)\$(ASMKRBMAN).cdf: \
$(ASMKRBDIR)\$(ASMKRBMAN).nohash $(ASMKRBBINS)
@@ -85,8 +95,6 @@ $(ASMKRBDIR)\$(ASMKRBNAME).cat: $(ASMKRBDIR)\$(ASMKRBMAN).cdf
cd $(ASMKRBDIR)
$(MAKECAT) $**
$(_CODESIGN)
# $(RM) $(ASMKRBMAN).cdf
# $(RM) $(ASMKRBMAN).nohash
cd $(SRCDIR)
asm-krb: \