123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- # Makefile for uClibc
- #
- # Copyright (C) 2000 by Lineo, inc.
- # Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
- #
- # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
- #
- CFLAGS-libcrypt := -DNOT_IN_libc $(SSP_ALL_CFLAGS)
- LDFLAGS-libcrypt.so := $(LDFLAGS)
- LIBS-libcrypt.so := $(LIBS)
- libcrypt_FULL_NAME := libcrypt-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so
- libcrypt_DIR := $(top_srcdir)libcrypt
- libcrypt_OUT := $(top_builddir)libcrypt
- libcrypt_SRC := $(wildcard $(libcrypt_DIR)/*.c)
- libcrypt_OBJ := $(patsubst $(libcrypt_DIR)/%.c,$(libcrypt_OUT)/%.o,$(libcrypt_SRC))
- libcrypt-a-y := $(libcrypt_OBJ)
- libcrypt-so-y := $(libcrypt_OBJ:.o=.os)
- libcrypt-multi-y := $(libcrypt_SRC)
- lib-a-y += $(top_builddir)lib/libcrypt.a
- lib-so-y += $(top_builddir)lib/libcrypt.so
- objclean-y += libcrypt_clean
- $(top_builddir)lib/libcrypt.so: $(libcrypt_OUT)/libcrypt_so.a libc-y
- $(call link.so,$(libcrypt_FULL_NAME),$(MAJOR_VERSION))
- $(libcrypt_OUT)/libcrypt_so.a: $(libcrypt-so-y)
- $(Q)$(RM) $@
- $(do_strip)
- $(do_ar)
- ifeq ($(DOPIC),y)
- $(top_builddir)lib/libcrypt.a: $(libcrypt-a-y:.o=.os)
- else
- $(top_builddir)lib/libcrypt.a: $(libcrypt-a-y)
- endif
- $(Q)$(INSTALL) -d $(dir $@)
- $(Q)$(RM) $@
- $(do_strip)
- $(do_ar)
- libcrypt_clean:
- $(RM) $(libcrypt_OUT)/*.{o,os,a}
|