2 # Copyright (C) 2001,2002 Erik Andersen <andersen@uclibc.org>
4 # This program is free software; you can redistribute it and/or modify it under
5 # the terms of the GNU Library General Public License as published by the Free
6 # Software Foundation; either version 2 of the License, or (at your option) any
9 # This program is distributed in the hope that it will be useful, but WITHOUT
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 # FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more
14 # You should have received a copy of the GNU Library General Public License
15 # along with this program; if not, write to the Free Software Foundation, Inc.,
16 # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 # Derived in part from the Linux-8086 C library, the GNU C Library, and several
19 # other sundry sources. Files within this library are copyright by their
20 # respective copyright holders.
23 include $(TOPDIR)Rules.mak
25 CSRC = statvfs.c fstatvfs.c
26 ifeq ($(UCLIBC_HAS_LFS),y)
27 CSRC += fstatfs64.c statfs64.c statvfs64.c fstatvfs64.c
29 OBJS := $(patsubst %.c,%.o, $(CSRC))
31 OBJ_LIST := ../../obj.misc.statfs
36 $(STRIPTOOL) -x -R .note -R .comment $^
37 echo $(patsubst %, misc/statfs/%, $^) > $@
40 $(CC) $(CFLAGS) -c $< -o $@