Append $(EXEEXT_FOR_BUILD) to output file name when building q2c.
authorBen Pfaff <blp@gnu.org>
Sat, 4 Oct 2008 03:53:51 +0000 (20:53 -0700)
committerBen Pfaff <blp@gnu.org>
Sat, 4 Oct 2008 03:53:51 +0000 (20:53 -0700)
Thanks to "Michel Boaventura" <michel.boaventura@gmail.com> for reporting
this problem and to John Darrington for assisting with the solution.

src/language/lexer/automake.mk

index e0efbb66b8c9bbf1d12b1f59485a20a6a5c295b4..0ce371afb8b6c37c36b81478c76108ec70eab3fb 100644 (file)
@@ -17,7 +17,7 @@ EXTRA_DIST += src/language/lexer/q2c.c
 
 src/language/lexer/q2c$(EXEEXT_FOR_BUILD): $(top_srcdir)/src/language/lexer/q2c.c 
        @$(MKDIR_P) `dirname $@`
-       $(CC_FOR_BUILD) $(top_srcdir)/src/language/lexer/q2c.c -o $(top_builddir)/src/language/lexer/q2c
+       $(CC_FOR_BUILD) $(top_srcdir)/src/language/lexer/q2c.c -o $(top_builddir)/src/language/lexer/q2c$(EXEEXT_FOR_BUILD)
 
 
 CLEANFILES += src/language/lexer/q2c$(EXEEXT_FOR_BUILD)