X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile.am;h=d02ed4e19ad90897805063ed551b97b18b963de3;hb=2b6f9b8c607743ea7324b2b7e9a3b3fe7afa5f4e;hp=0b37ce974ff650919c615d478e3a8033d71d3be5;hpb=44326932c8227c64a87f7a92ef16ce83c2fba2d4;p=pspp diff --git a/Makefile.am b/Makefile.am index 0b37ce974f..d02ed4e19a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -16,11 +16,13 @@ AM_CFLAGS+=-Wall -W -Wwrite-strings -Wstrict-prototypes \ -Wpointer-arith -Wno-sign-compare -Wmissing-prototypes endif +CC_FOR_BUILD = @CC_FOR_BUILD@ +EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@ .q.c: @$(top_srcdir)/mkinstalldirs `dirname $@` - ./src/language/lexer/q2c $< $@ + ./src/language/lexer/q2c$(EXEEXT_FOR_BUILD) $< $@ -$(all_q_sources:.q=.c): src/language/lexer/q2c$(EXEEXT) +$(all_q_sources:.q=.c): src/language/lexer/q2c$(EXEEXT_FOR_BUILD) all_q_sources = pkgsysconfdir = $(sysconfdir)/@PACKAGE@