From b882004687554eb6f9ca7596af7f365b3e1b598b Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 19 Nov 2005 09:13:33 +0000 Subject: simplify Makefile rules for handling of LFS files by tweaking the way we compile the source files as suggested by psm --- libc/stdio/Makefile.in | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) (limited to 'libc/stdio/Makefile.in') diff --git a/libc/stdio/Makefile.in b/libc/stdio/Makefile.in index ba9468971..3de5436e3 100644 --- a/libc/stdio/Makefile.in +++ b/libc/stdio/Makefile.in @@ -7,8 +7,6 @@ # Licensed under LGPL v2.1, see the file COPYING.LIB in this tarball for details. # -# Note: The *64.o objects are empty when compiled without large file support. - # SUSv3 functions CSRC := \ fclose.c fcloseall.c fdopen.c fgetpos.c fopen.c freopen.c \ @@ -19,6 +17,9 @@ CSRC := \ asprintf.c sprintf.c vasprintf.c vdprintf.c vsnprintf.c \ tmpfile.c tmpnam.c tmpnam_r.c popen.c tempnam.c ctermid.c +# Note: The *64.o objects are empty when compiled without large file support +CSRC += fgetpos64.c fopen64.c freopen64.c fseeko64.c fsetpos64.c ftello64.c + # getc -> alias for fgetc # putc -> alias for fputc # rename is a syscall @@ -52,12 +53,6 @@ CUSRC := \ # getc_unlocked -> alias for fgetc_unlocked # putc_unlocked -> alias for fputc_unlocked -# Largefile functions (%64.o) -CLSRC := -ifeq ($(UCLIBC_HAS_LFS),y) -CLSRC := fgetpos.c fopen.c freopen.c fseeko.c fsetpos.c ftello.c # tmpfile -endif - # vfprintf and support functions MSRC1 := vfprintf.c ifneq ($(USE_OLD_VFPRINTF),y) @@ -104,8 +99,6 @@ STDIO_SRC := $(patsubst %.c,$(STDIO_DIR)/%.c,$(CSRC)) STDIO_OBJ := $(patsubst %.c,$(STDIO_OUT)/%.o,$(CSRC)) STDIO_CUSRC := $(patsubst %.c,$(STDIO_DIR)/%.c,$(CUSRC)) STDIO_CUOBJ := $(patsubst %.c,$(STDIO_OUT)/%_unlocked.o,$(CUSRC)) -STDIO_CLSRC := $(patsubst %.c,$(STDIO_OUT)/%64.c,$(CLSRC)) -STDIO_CLOBJ := $(patsubst %.c,$(STDIO_OUT)/%64.o,$(CLSRC)) STDIO_MSRC1 := $(patsubst %.c,$(STDIO_DIR)/%.c,$(MSRC1)) STDIO_MSRC2 := $(patsubst %.c,$(STDIO_DIR)/%.c,$(MSRC2)) @@ -129,16 +122,6 @@ STDIO_NO_MULTI := $(STDIO_CUOBJ) $(STDIO_CLOBJ) %_unlocked.os: %.c $(compile.c) -D__DO_UNLOCKED -# need this, else the other %64 files will get false rules -$(STDIO_CLSRC): $(STDIO_OUT)/%64.c : $(STDIO_DIR)/%.c - @cp $< $@ - -$(STDIO_CLOBJ): %.o : %.c - $(compile.c) -D__DO_LARGEFILE - -$(STDIO_CLOBJ:.o=.os): %.os : %.c - $(compile.c) -D__DO_LARGEFILE - $(STDIO_MOBJ1): $(STDIO_MSRC1) $(compile.m) -- cgit v1.2.3