1 # Copyright (C) 1993 Free Software Foundation, Inc.
2 # This file is part of the GNU C Library.
4 # The GNU C Library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Library General Public License
6 # as published by the Free Software Foundation; either version 2 of
7 # the License, or (at your option) any later version.
9 # The GNU C Library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Library General Public License for more details.
14 # You should have received a copy of the GNU Library General Public
15 # License along with the GNU C Library; see the file COPYING.LIB. If
16 # not, write to the Free Software Foundation, Inc., 675 Mass Ave,
17 # Cambridge, MA 02139, USA.
19 # This uses MIT assembler syntax. We have no convenient
20 # way to choose a sysdep file based on MIT vs Motorola syntax.
21 # No existing m68k ports use Motorola syntax.
23 crypt := crypt.sun3 # Use crypt/crypt.sun3.S.
25 # Disgusting magic to get `#'s into the asm code.
27 # Set `as-pipe-ok' if piping input to the assembler is likely to work.
28 ifneq (,$(filter -pipe,$(compile.c) $(compile.S)))
29 # The `-pipe' switch the compiler does it, so it must work.
33 # GNU as can deal with input pipes.
39 define compile-command.S
40 $(CC) $(CPPFLAGS) $(asm-CPPFLAGS) -E $< \
41 | sed 's/(@@@Hash-Here@@@)/#/g' | $(AS) $(ASFLAGS) -o $@
46 define compile-command.S
48 $(CC) $(CPPFLAGS) $(asm-CPPFLAGS) -E $< \
49 | sed 's/(@@@Hash-Here@@@)/#/g' > $@s
50 $(AS) $(ASFLAGS) $@s -o $@