1996-10-17 09:51:38 +08:00
|
|
|
# Copyright (C) 1991, 92, 93, 94, 95, 96 Free Software Foundation, Inc.
|
1995-02-18 09:27:10 +08:00
|
|
|
# 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.
|
|
|
|
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
# You should have received a copy of the GNU Library General Public
|
1996-11-15 12:08:00 +08:00
|
|
|
# License along with the GNU C Library; see the file COPYING.LIB. If not,
|
|
|
|
# write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
# Boston, MA 02111-1307, USA.
|
1995-02-18 09:27:10 +08:00
|
|
|
|
|
|
|
$(common-objpfx)stdio_lim.h: $(common-objpfx)mk-stdiolim
|
|
|
|
$(dir $<)$(notdir $<) > $@-t
|
|
|
|
mv $@-t $@
|
|
|
|
|
|
|
|
# Turn into a version that works when cd'd into $(objdir).
|
1995-02-20 06:45:57 +08:00
|
|
|
cded-objdir-includes = $(patsubst -I$$cwd//%,-I/%,\
|
|
|
|
$(patsubst -I%,-I$$cwd/%,$(+includes)))
|
1995-02-18 09:27:10 +08:00
|
|
|
# $(BUILD_CFLAGS) needs to come last because it contains unwanted -Is.
|
|
|
|
$(common-objpfx)mk-stdiolim: $(sysdep_dir)/posix/mk-stdiolim.c \
|
1996-11-15 12:08:00 +08:00
|
|
|
$(..)posix/posix1_lim.h local_lim.h
|
1996-10-17 09:51:38 +08:00
|
|
|
cwd=`pwd`; cd $(objpfx).; \
|
1995-02-20 06:45:57 +08:00
|
|
|
$(BUILD_CC) $(cded-objdir-includes) $(BUILD_CFLAGS) \
|
1996-10-17 09:51:38 +08:00
|
|
|
$$cwd/$< -o $(patsubst $(common-objpfx)%,$(..)%,$@)
|
1995-02-18 09:27:10 +08:00
|
|
|
|
|
|
|
|
|
|
|
common-generated := $(common-generated) stdio_lim.h mk-stdiolim
|
|
|
|
before-compile := $(before-compile) $(common-objpfx)stdio_lim.h
|