]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Formerly m68k/Makefile.~9~
authorRoland McGrath <roland@gnu.org>
Thu, 23 Dec 1993 23:51:09 +0000 (23:51 +0000)
committerRoland McGrath <roland@gnu.org>
Thu, 23 Dec 1993 23:51:09 +0000 (23:51 +0000)
sysdeps/m68k/Makefile

index 188102dbf894bbd6e49ee37faed902b713fe7d75..7d6f62de3e2c0909825d3e52736d62648a7f31cb 100644 (file)
@@ -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