diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-06-05 13:46:47 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-06-05 13:46:47 +0000 |
commit | 07beb34d51523f7f30e354ef08a802ed79cf09da (patch) | |
tree | 544c7c04669d4793e5e228aaa29123f4c9922521 /libcrypt/Makefile.in | |
parent | 64ba3e5e0836bde4e85d6d2fdd133e2d37211e86 (diff) | |
download | uClibc-alpine-07beb34d51523f7f30e354ef08a802ed79cf09da.tar.bz2 uClibc-alpine-07beb34d51523f7f30e354ef08a802ed79cf09da.tar.xz |
- make libcrypt optional. Untested.
Diffstat (limited to 'libcrypt/Makefile.in')
-rw-r--r-- | libcrypt/Makefile.in | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libcrypt/Makefile.in b/libcrypt/Makefile.in index 40a73d1c8..d93e6abab 100644 --- a/libcrypt/Makefile.in +++ b/libcrypt/Makefile.in @@ -16,7 +16,14 @@ libcrypt_FULL_NAME := libcrypt-$(VERSION).so libcrypt_DIR := $(top_srcdir)libcrypt libcrypt_OUT := $(top_builddir)libcrypt -libcrypt_SRC := $(wildcard $(libcrypt_DIR)/*.c) +ifeq ($(UCLIBC_HAS_CRYPT_IMPL),y) +CSRC := crypt.c des.c md5.c +endif +ifeq ($(UCLIBC_HAS_CRYPT_STUB),y) +CSRC := crypt_stub.c +endif + +libcrypt_SRC := $(addprefix $(libcrypt_DIR)/,$(CSRC)) libcrypt_OBJ := $(patsubst $(libcrypt_DIR)/%.c,$(libcrypt_OUT)/%.o,$(libcrypt_SRC)) ifeq ($(DOPIC),y) @@ -26,8 +33,10 @@ libcrypt-a-y := $(libcrypt_OBJ) endif libcrypt-so-y := $(libcrypt_OBJ:.o=.os) +ifeq ($(UCLIBC_HAS_CRYPT),y) lib-a-y += $(top_builddir)lib/libcrypt.a lib-so-y += $(top_builddir)lib/libcrypt.so +endif objclean-y += libcrypt_clean ifeq ($(DOMULTI),n) |