| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 | # 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.#UNISTD_DIR := $(top_srcdir)libc/unistdUNISTD_OUT := $(top_builddir)libc/unistdCSRC := $(notdir $(wildcard $(UNISTD_DIR)/*.c))# multi sourceCSRC := $(filter-out exec.c,$(CSRC))ifeq ($(ARCH_USE_MMU),y)CSRC := $(filter-out __exec_alloc.c,$(CSRC))endififeq ($(UCLIBC_HAS_GNU_GETOPT),y)CSRC := $(filter-out getopt-susv3.c getopt_long-simple.c,$(CSRC))elseCSRC := $(filter-out getopt.c,$(CSRC))ifneq ($(UCLIBC_HAS_GETOPT_LONG),y)CSRC := $(filter-out getopt_long-simple.c,$(CSRC))endifendififeq ($(UCLIBC_HAS_GNU_GETSUBOPT),y)CSRC := $(filter-out getsubopt-susv3.c,$(CSRC))elseCSRC := $(filter-out getsubopt.c,$(CSRC))endififneq ($(UCLIBC_SUSV3_LEGACY),y)CSRC := $(filter-out ualarm.c usleep.c,$(CSRC))endififeq ($(UCLIBC_HAS_THREADS_NATIVE),y)CSRC := $(filter-out sleep.c,$(CSRC))endifUNISTD_SRC := $(patsubst %.c,$(UNISTD_DIR)/%.c,$(CSRC))UNISTD_OBJ := $(patsubst %.c,$(UNISTD_OUT)/%.o,$(CSRC))libc-y += $(UNISTD_OBJ)objclean-y += unistd_cleanunistd_clean:	$(do_rm) $(addprefix $(UNISTD_OUT)/*., o os)
 |