aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2022-03-28 16:08:07 +0900
committerNIIBE Yutaka <[email protected]>2022-03-28 16:08:07 +0900
commit5d6a1c396396ba7b44f11af10a9c51b1b573e03c (patch)
treeb2271bcb18c1b765e1f8aec07ea642f067a6eed0
parente24fe678656156502bd3ef1b7805cddede1dd2de (diff)
downloadlibgcrypt-5d6a1c396396ba7b44f11af10a9c51b1b573e03c.tar.gz
libgcrypt-5d6a1c396396ba7b44f11af10a9c51b1b573e03c.tar.bz2
libgcrypt-5d6a1c396396ba7b44f11af10a9c51b1b573e03c.zip
build: Fix for build for Windows.
* cipher/Makefile.am: Use EXEEXT_FOR_BUILD. * doc/Makefile.am: Likewise. -- Signed-off-by: NIIBE Yutaka <[email protected]>
-rw-r--r--cipher/Makefile.am8
-rw-r--r--doc/Makefile.am8
2 files changed, 8 insertions, 8 deletions
diff --git a/cipher/Makefile.am b/cipher/Makefile.am
index 6eec9bd8..1ac1923b 100644
--- a/cipher/Makefile.am
+++ b/cipher/Makefile.am
@@ -28,7 +28,7 @@ AM_CCASFLAGS = $(NOEXECSTACK_FLAGS)
EXTRA_DIST = gost-s-box.c
-CLEANFILES = gost-s-box
+CLEANFILES = gost-s-box$(EXEEXT_FOR_BUILD)
DISTCLEANFILES = gost-sb.h
noinst_LTLIBRARIES = libcipher.la
@@ -145,10 +145,10 @@ EXTRA_libcipher_la_SOURCES = \
blake2b-amd64-avx2.S blake2s-amd64-avx.S
gost28147.lo: gost-sb.h
-gost-sb.h: gost-s-box
- ./gost-s-box [email protected]
+gost-sb.h: gost-s-box$(EXEEXT_FOR_BUILD)
+ ./gost-s-box$(EXEEXT_FOR_BUILD) [email protected]
-gost-s-box: gost-s-box.c
+gost-s-box$(EXEEXT_FOR_BUILD): gost-s-box.c
$(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) \
$(CPPFLAGS_FOR_BUILD) -o [email protected] $(srcdir)/gost-s-box.c
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 706afdc9..ca3061bc 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -23,7 +23,7 @@ EXTRA_DIST = README.apichanges HACKING DCO \
yat2m.c
DISTCLEANFILES = gcrypt.cps yat2m-stamp.tmp yat2m-stamp $(myman_pages)
-CLEANFILES = yat2m
+CLEANFILES = yat2m$(EXEEXT_FOR_BUILD)
BUILT_SOURCES = libgcrypt-modules.png fips-fsm.png \
libgcrypt-modules.pdf fips-fsm.pdf
@@ -39,7 +39,7 @@ myman_pages = hmac256.1
man_MANS = $(myman_pages)
-yat2m: yat2m.c
+yat2m$(EXEEXT_FOR_BUILD): yat2m.c
$(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) \
$(CPPFLAGS_FOR_BUILD) -o [email protected] $(srcdir)/yat2m.c
@@ -59,11 +59,11 @@ yat2m-stamp: $(myman_sources)
@rm -f yat2m-stamp.tmp
@touch yat2m-stamp.tmp
for file in $(myman_sources) ; do \
- ./yat2m $(YAT2M_OPTIONS) --store \
+ ./yat2m$(EXEEXT_FOR_BUILD) $(YAT2M_OPTIONS) --store \
`test -f '$$file' || echo '$(srcdir)/'`$$file ; done
@mv -f yat2m-stamp.tmp [email protected]
-yat2m-stamp: yat2m
+yat2m-stamp: yat2m$(EXEEXT_FOR_BUILD)
$(myman_pages) : yat2m-stamp
@if test -f [email protected]; then :; else \