Makefile.in 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
  4. #
  5. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  6. #
  7. CSRC:= sleep.c usleep.c ualarm.c getpass.c sysconf.c getlogin.c \
  8. fpathconf.c confstr.c pathconf.c swab.c usershell.c \
  9. getsubopt.c daemon.c
  10. MSRC:=exec.c
  11. MOBJ:=execl.o execv.o execle.o execlp.o execvp.o
  12. ifneq ($(ARCH_HAS_MMU),y)
  13. MOBJ+=__exec_alloc.o
  14. endif
  15. ifeq ($(UCLIBC_HAS_GNU_GETOPT),y)
  16. CSRC+=getopt.c
  17. else
  18. CSRC+=getopt-susv3.c
  19. endif
  20. UNISTD_DIR:=$(top_srcdir)libc/unistd
  21. UNISTD_OUT:=$(top_builddir)libc/unistd
  22. UNISTD_SRC:=$(patsubst %.c,$(UNISTD_DIR)/%.c,$(CSRC))
  23. UNISTD_OBJ:=$(patsubst %.c,$(UNISTD_OUT)/%.o,$(CSRC))
  24. UNISTD_MSRC:=$(patsubst %.c,$(UNISTD_DIR)/%.c,$(MSRC))
  25. UNISTD_MOBJ:=$(patsubst %.o,$(UNISTD_OUT)/%.o,$(MOBJ))
  26. UNISTD_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(UNISTD_MOBJ))))
  27. UNISTD_OBJS:=$(UNISTD_OBJ) $(UNISTD_MOBJ)
  28. $(UNISTD_MOBJ): $(UNISTD_MSRC)
  29. $(compile.m)
  30. $(UNISTD_MOBJ:.o=.os): $(UNISTD_MSRC)
  31. $(compile.m)
  32. libc-a-y+=$(UNISTD_OBJS)
  33. libc-so-y+=$(UNISTD_OBJS:.o=.os)
  34. CFLAGS-multi-y+=$(UNISTD_DEF)
  35. libc-multi-y+=$(UNISTD_SRC) $(UNISTD_MSRC)
  36. objclean-y+=unistd_objclean
  37. unistd_objclean:
  38. $(RM) $(UNISTD_OUT)/*.{o,os}