From 1cfb0487a6fc04757046874a97d607df89556aa0 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 23 Dec 1993 23:51:09 +0000 Subject: [PATCH] Formerly m68k/Makefile.~9~ --- sysdeps/m68k/Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sysdeps/m68k/Makefile b/sysdeps/m68k/Makefile index 188102dbf89..7d6f62de3e2 100644 --- a/sysdeps/m68k/Makefile +++ b/sysdeps/m68k/Makefile @@ -37,7 +37,7 @@ endif ifdef as-pipe-ok define compile-command.S -$(CC) $(CPPFLAGS) $(asm-CPPFLAGS) -E $< \ +$(CC) $(CPPFLAGS) $(m68k-syntax-flag) $(asm-CPPFLAGS) -E $< \ | sed 's/(@@@Hash-Here@@@)/#/g' | $(AS) $(ASFLAGS) -o $@ endef @@ -45,7 +45,7 @@ else define compile-command.S @-rm -f $@s -$(CC) $(CPPFLAGS) $(asm-CPPFLAGS) -E $< \ +$(CC) $(CPPFLAGS) $(m68k-syntax-flag) $(asm-CPPFLAGS) -E $< \ | sed 's/(@@@Hash-Here@@@)/#/g' > $@s $(AS) $(ASFLAGS) $@s -o $@ -rm -f $@s @@ -53,3 +53,9 @@ endef endif +# The mpn functions need this. All existing 68k ports use MIT syntax. If +# a new port wants to use Motorola or Sony syntax, it can redefine this +# variable. +ifndef m68k-syntax-flag +m68k-syntax-flag = -DMIT_SYNTAX +endif -- 2.47.3