| 12345678910111213141516171819202122232425262728293031323334353637383940 | # Makefile for uClibc## Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>## Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.#subdirs += libc/unistdUNISTD_DIR := $(top_srcdir)libc/unistdUNISTD_OUT := $(top_builddir)libc/unistdCSRC-y := $(notdir $(wildcard $(UNISTD_DIR)/*.c))OMIT-y := exec.c # multi sourceOMIT-$(ARCH_USE_MMU) += __exec_alloc.cOMIT-$(if $(UCLIBC_SUSV3_LEGACY),,y) += ualarm.c usleep.c#OMIT-$(UCLIBC_HAS_THREADS_NATIVE) += sleep.cifeq ($(UCLIBC_HAS_GNU_GETOPT),y)# GNU getopt familyOMIT-y += getopt-susv3.c getopt_long-simple.c getsubopt-susv3.cOMIT-y += $(if $(UCLIBC_HAS_GNU_GETSUBOPT),,getsubopt.c)else# SuS getopt familyOMIT-y += getopt.c getsubopt.cOMIT-y += $(if $(UCLIBC_HAS_GETOPT_LONG),,getopt_long-simple.c)OMIT-y += $(if $(UCLIBC_HAS_GNU_GETSUBOPT),,getsubopt-susv3.c)endifCSRC-y := $(filter-out $(OMIT-y),$(CSRC-y))UNISTD_SRC := $(patsubst %.c,$(UNISTD_DIR)/%.c,$(CSRC-y))UNISTD_OBJ := $(patsubst %.c,$(UNISTD_OUT)/%.o,$(CSRC-y))libc-y += $(UNISTD_OBJ)objclean-y += CLEAN_libc/unistdCLEAN_libc/unistd:	$(do_rm) $(addprefix $(UNISTD_OUT)/*., o os)
 |