X-Git-Url: http://git.csclub.uwaterloo.ca/?p=kopensolaris-gnu%2Fglibc.git;a=blobdiff_plain;f=sysdeps%2Fm68k%2FMakefile;h=2515df7324c279a23457389f87145635c547c75f;hp=637bca3b629c36d9abfdbda98eeb357343e2227e;hb=a1c58554752f170648af11e53c8c9e4c0451e68c;hpb=d50bcb218fd2ab46f67e326a4ed3a1335d334f7b diff --git a/sysdeps/m68k/Makefile b/sysdeps/m68k/Makefile index 637bca3b62..2515df7324 100644 --- a/sysdeps/m68k/Makefile +++ b/sysdeps/m68k/Makefile @@ -1,55 +1,51 @@ -# Copyright (C) 1993 Free Software Foundation, Inc. +# Copyright (C) 1993, 1994, 1996, 1997 Free Software Foundation, Inc. # This file is part of the GNU C Library. # The GNU C Library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Library General Public License -# as published by the Free Software Foundation; either version 2 of -# the License, or (at your option) any later version. +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. # The GNU C Library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Library General Public License for more details. +# Lesser General Public License for more details. + +# You should have received a copy of the GNU Lesser General Public +# License along with the GNU C Library; if not, write to the Free +# Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +# 02111-1307 USA. + +# 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 + +asm-CPPFLAGS += $(m68k-syntax-flag) -# You should have received a copy of the GNU Library General Public -# License along with the GNU C Library; see the file COPYING.LIB. If -# not, write to the Free Software Foundation, Inc., 675 Mass Ave, -# Cambridge, MA 02139, USA. +pic-ccflag = -fpic -# This uses MIT assembler syntax. We have no convenient -# way to choose a sysdep file based on MIT vs Motorola syntax. -# No existing m68k ports use Motorola syntax. +# Make sure setjmp.c is compiled with a frame pointer +CFLAGS-setjmp.c := -fno-omit-frame-pointer -crypt := crypt.sun3 # Use crypt/crypt.sun3.S. - -# Disgusting magic to get `#'s into the asm code. +# The 68k `long double' is a distinct type we support. +long-double-fcts = yes -# Set `as-pipe-ok' if piping input to the assembler is likely to work. -ifneq (,$(filter -pipe,$(compile.c) $(compile.S))) -# The `-pipe' switch the compiler does it, so it must work. -as-pipe-ok = yes +ifeq ($(subdir),csu) +ifeq (yes,$(build-shared)) +# Compatibility +sysdep_routines += divdi3 +shared-only-routines += divdi3 endif -ifdef gnu-as -# GNU as can deal with input pipes. -as-pipe-ok = yes endif -ifdef as-pipe-ok - -define compile-command.S -$(CC) $(CPPFLAGS) $(asm-CPPFLAGS) -E $< \ -| sed 's/(@@@Hash-Here@@@)/#/g' | $(AS) $(ASFLAGS) -o $@ -endef - -else - -define compile-command.S -@-rm -f $@s -$(CC) $(CPPFLAGS) $(asm-CPPFLAGS) -E $< \ -| sed 's/(@@@Hash-Here@@@)/#/g' > $@s -$(AS) $(ASFLAGS) $@s -o $@ --rm -f $@ -endef - +ifeq ($(subdir),elf) +CFLAGS-rtld.c += -Wno-uninitialized -Wno-unused endif +ifeq ($(subdir),math) +# Avoid a bug in gcc +CFLAGS-s_copysignl.c += -mnobitfield +endif