From 2d3e50537f03e29a17780a33a3e4b86dce8f39e8 Mon Sep 17 00:00:00 2001
From: Jon Griffiths <jon_p_griffiths@yahoo.com>
Date: Mon, 18 Aug 2003 19:49:10 +0000
Subject: [PATCH] Use $(EXEEXT) for the winedump executable.

---
 tools/winedump/Makefile.in | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/tools/winedump/Makefile.in b/tools/winedump/Makefile.in
index 52e076959c8..2c28c2ee55f 100644
--- a/tools/winedump/Makefile.in
+++ b/tools/winedump/Makefile.in
@@ -2,8 +2,10 @@ TOPSRCDIR = @top_srcdir@
 TOPOBJDIR = ../..
 SRCDIR    = @srcdir@
 VPATH     = @srcdir@
+EXEEXT    = @EXEEXT@
+
+PROGRAMS = winedump$(EXEEXT)
 
-PROGRAMS = winedump
 MODULE   = none
 
 C_SRCS = \
@@ -21,15 +23,15 @@ all: $(PROGRAMS)
 
 @MAKE_RULES@
 
-winedump: $(OBJS)
-	$(CC) $(CFLAGS) -o winedump $(OBJS) $(LIBPORT) $(LDFLAGS)
+winedump$(EXEEXT): $(OBJS)
+	$(CC) $(CFLAGS) -o winedump$(EXEEXT) $(OBJS) $(LIBPORT) $(LDFLAGS)
 
 install:: $(PROGRAMS)
 	$(MKINSTALLDIRS) $(bindir)
-	$(INSTALL_PROGRAM) winedump $(bindir)/winedump
+	$(INSTALL_PROGRAM) winedump$(EXEEXT) $(bindir)/winedump$(EXEEXT)
 	$(INSTALL_SCRIPT) $(SRCDIR)/function_grep.pl $(bindir)/function_grep.pl
 
 uninstall::
-	$(RM) $(bindir)/function_grep.pl $(bindir)/winedump
+	$(RM) $(bindir)/function_grep.pl $(bindir)/winedump$(EXEEXT)
 
 ### Dependencies:
-- 
GitLab