OSDN Git Service

f91b619fac32828aea2f8539f91e6223f56b9495
[uclinux-h8/uClibc.git] / libc / misc / statfs / Makefile
1 # Makefile for uClibc
2 # Copyright (C) 2001,2002 Erik Andersen <andersen@uclibc.org>
3 #
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
7 # later version.
8 #
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
12 # details.
13 #
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
17 #
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.
21
22 TOPDIR=../../../
23 include $(TOPDIR)Rules.mak
24
25 CSRC = statvfs.c fstatvfs.c
26 ifeq ($(UCLIBC_HAS_LFS),y)
27 CSRC += fstatfs64.c statfs64.c statvfs64.c fstatvfs64.c
28 endif
29 OBJS := $(patsubst %.c,%.o, $(CSRC))
30
31 OBJ_LIST := ../../obj.misc.statfs
32
33 all: $(OBJ_LIST)
34
35 $(OBJ_LIST): $(OBJS)
36         $(STRIPTOOL) -x -R .note -R .comment $^
37         echo $(patsubst %, misc/statfs/%, $^) > $@
38
39 $(OBJS): %.o : %.c
40         $(CC) $(CFLAGS) -c $< -o $@
41
42 clean:
43         $(RM) *.o *~ core