diff options
-rw-r--r-- | sysdeps/m68k/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/m68k/Makefile b/sysdeps/m68k/Makefile index 4690591cba..09f3b4355e 100644 --- a/sysdeps/m68k/Makefile +++ b/sysdeps/m68k/Makefile @@ -3,3 +3,9 @@ # No existing m68k ports use Motorola syntax. crypt := crypt.sun3 # Use uf-crypt/crypt.sun3.S. + +# Disgusting magic to get `#'s into the asm code. +$(objpfx)%.o: %.S + $(CC) $(CPPFLAGS) -E $< \ + | sed 's/(@@@Hash-Here@@@)/#/g' | $(AS) $(ASFLAGS) -o $@ +.S-rule := t |