Makefile.in 1.3 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. CFLAGS-libutil := -DNOT_IN_libc $(SSP_ALL_CFLAGS)
  8. LDFLAGS-libutil.so := $(LDFLAGS)
  9. LIBS-libutil.so := $(LIBS)
  10. libutil_FULL_NAME := libutil-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so
  11. libutil_DIR := $(top_srcdir)libutil
  12. libutil_OUT := $(top_builddir)libutil
  13. libutil_SRC := $(wildcard $(libutil_DIR)/*.c)
  14. ifneq ($(ARCH_HAS_MMU),y)
  15. libutil_SRC := $(filter-out $(libutil_DIR)/forkpty.c,$(libutil_SRC))
  16. endif
  17. libutil_OBJ := $(patsubst $(libutil_DIR)/%.c,$(libutil_OUT)/%.o,$(libutil_SRC))
  18. libutil-a-y := $(libutil_OBJ)
  19. libutil-so-y := $(libutil_OBJ:.o=.os)
  20. libutil-multi-y := $(libutil_SRC)
  21. lib-a-y += $(top_builddir)lib/libutil.a
  22. lib-so-y += $(top_builddir)lib/libutil.so
  23. objclean-y += libutil_clean
  24. $(top_builddir)lib/libutil.so: $(libutil_OUT)/libutil_so.a libc-y
  25. $(call link.so,$(libutil_FULL_NAME),$(MAJOR_VERSION))
  26. $(libutil_OUT)/libutil_so.a: $(libutil-so-y)
  27. $(Q)$(RM) $@
  28. $(do_strip)
  29. $(do_ar)
  30. ifeq ($(DOPIC),y)
  31. $(top_builddir)lib/libutil.a: $(libutil-a-y:.o=.os)
  32. else
  33. $(top_builddir)lib/libutil.a: $(libutil-a-y)
  34. endif
  35. $(Q)$(INSTALL) -d $(dir $@)
  36. $(Q)$(RM) $@
  37. $(do_strip)
  38. $(do_ar)
  39. libutil_clean:
  40. $(RM) $(libutil_OUT)/*.{o,os,a}