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:
@@ -41,7 +41,7 @@ RELDIR=packages\windows\assembly
|
|||||||
# ..to derive the public key token.
|
# ..to derive the public key token.
|
||||||
#
|
#
|
||||||
!ifndef CODESIGN_PKT
|
!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
|
!endif
|
||||||
|
|
||||||
prep:: mk-asm-dirs
|
prep:: mk-asm-dirs
|
||||||
@@ -69,11 +69,21 @@ ASMKRBBINS=\
|
|||||||
$(ASMKRBDIR)\libhdb.pdb \
|
$(ASMKRBDIR)\libhdb.pdb \
|
||||||
$(ASMKRBDIR)\libkadm5srv.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
|
$(ASMKRBDIR)\$(ASMKRBMAN).nohash: Heimdal.Kerberos.manifest.in
|
||||||
$(SED) -e "s,[@]name[@],$(ASMKRBNAME),g" \
|
$(SED) -e "s,[@]name[@],$(ASMKRBNAME),g" \
|
||||||
-e "s,[@]cpu[@],$(MCPU),g" \
|
-e "s,[@]cpu[@],$(MCPU),g" \
|
||||||
-e "s,[@]version[@],$(ASMKRBVER),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) $(ASMKRBDIR)\$(ASMKRBMAN).cdf: \
|
||||||
$(ASMKRBDIR)\$(ASMKRBMAN).nohash $(ASMKRBBINS)
|
$(ASMKRBDIR)\$(ASMKRBMAN).nohash $(ASMKRBBINS)
|
||||||
@@ -85,8 +95,6 @@ $(ASMKRBDIR)\$(ASMKRBNAME).cat: $(ASMKRBDIR)\$(ASMKRBMAN).cdf
|
|||||||
cd $(ASMKRBDIR)
|
cd $(ASMKRBDIR)
|
||||||
$(MAKECAT) $**
|
$(MAKECAT) $**
|
||||||
$(_CODESIGN)
|
$(_CODESIGN)
|
||||||
# $(RM) $(ASMKRBMAN).cdf
|
|
||||||
# $(RM) $(ASMKRBMAN).nohash
|
|
||||||
cd $(SRCDIR)
|
cd $(SRCDIR)
|
||||||
|
|
||||||
asm-krb: \
|
asm-krb: \
|
||||||
|
Reference in New Issue
Block a user