Makefile.in 800 B

1234567891011121314151617181920212223242526272829
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
  4. #
  5. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  6. #
  7. CSRC := statvfs.c fstatvfs.c
  8. ifeq ($(UCLIBC_HAS_LFS),y)
  9. ifeq ($(UCLIBC_LINUX_SPECIFIC),y)
  10. CSRC += fstatfs64.c statfs64.c
  11. endif
  12. CSRC += statvfs64.c fstatvfs64.c
  13. endif
  14. MISC_STATFS_DIR := $(top_srcdir)libc/misc/statfs
  15. MISC_STATFS_OUT := $(top_builddir)libc/misc/statfs
  16. MISC_STATFS_SRC := $(patsubst %.c,$(MISC_STATFS_DIR)/%.c,$(CSRC))
  17. MISC_STATFS_OBJ := $(patsubst %.c,$(MISC_STATFS_OUT)/%.o,$(CSRC))
  18. libc-y += $(MISC_STATFS_OBJ)
  19. libc-nomulti-$(UCLIBC_HAS_LFS) += $(MISC_STATFS_OUT)/statvfs64.o $(MISC_STATFS_OUT)/fstatvfs64.o
  20. objclean-y += misc_statfs_clean
  21. misc_statfs_clean:
  22. $(do_rm) $(addprefix $(MISC_STATFS_OUT)/*., o os oS)