]> Git Repo - uclibc-ng.git/blame - libcrypt/Makefile.in
- less verbose make clean
[uclibc-ng.git] / libcrypt / Makefile.in
CommitLineData
a80fc77b 1# Makefile for uClibc
6648562b 2#
b74c3aa1 3# Copyright (C) 2000-2008 Erik Andersen <[email protected]>
a80fc77b
PM
4#
5# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
6648562b
PM
6#
7
31ae4299 8CFLAGS-libcrypt := -DNOT_IN_libc -DIS_IN_libcrypt $(SSP_ALL_CFLAGS)
6648562b 9
0a7b9d5d 10LDFLAGS-libcrypt.so := $(LDFLAGS)
65333434 11
0a7b9d5d 12LIBS-libcrypt.so := $(LIBS)
a80fc77b 13
6bc45b2d 14libcrypt_FULL_NAME := libcrypt-$(VERSION).so
a80fc77b 15
0a7b9d5d
PM
16libcrypt_DIR := $(top_srcdir)libcrypt
17libcrypt_OUT := $(top_builddir)libcrypt
a80fc77b 18
07beb34d
BRF
19ifeq ($(UCLIBC_HAS_CRYPT_IMPL),y)
20CSRC := crypt.c des.c md5.c
21endif
22ifeq ($(UCLIBC_HAS_CRYPT_STUB),y)
23CSRC := crypt_stub.c
24endif
25
26libcrypt_SRC := $(addprefix $(libcrypt_DIR)/,$(CSRC))
0a7b9d5d 27libcrypt_OBJ := $(patsubst $(libcrypt_DIR)/%.c,$(libcrypt_OUT)/%.o,$(libcrypt_SRC))
65333434 28
72c0f6a2
PM
29ifeq ($(DOPIC),y)
30libcrypt-a-y := $(libcrypt_OBJ:.o=.os)
31else
0a7b9d5d 32libcrypt-a-y := $(libcrypt_OBJ)
72c0f6a2 33endif
0a7b9d5d 34libcrypt-so-y := $(libcrypt_OBJ:.o=.os)
65333434 35
07beb34d 36ifeq ($(UCLIBC_HAS_CRYPT),y)
0a7b9d5d
PM
37lib-a-y += $(top_builddir)lib/libcrypt.a
38lib-so-y += $(top_builddir)lib/libcrypt.so
07beb34d 39endif
0a7b9d5d
PM
40objclean-y += libcrypt_clean
41
625d50e9 42ifeq ($(DOMULTI),n)
72c0f6a2 43ifeq ($(DOPIC),y)
68d02d64 44$(top_builddir)lib/libcrypt.so: $(top_builddir)lib/libcrypt.a $(libc.depend)
72c0f6a2 45else
68d02d64 46$(top_builddir)lib/libcrypt.so: $(libcrypt_OUT)/libcrypt_so.a $(libc.depend)
72c0f6a2 47endif
0a7b9d5d 48 $(call link.so,$(libcrypt_FULL_NAME),$(MAJOR_VERSION))
625d50e9 49else
68d02d64 50$(top_builddir)lib/libcrypt.so: $(libcrypt_OUT)/libcrypt.oS | $(libc.depend)
625d50e9
PM
51 $(call linkm.so,$(libcrypt_FULL_NAME),$(MAJOR_VERSION))
52endif
0a7b9d5d
PM
53
54$(libcrypt_OUT)/libcrypt_so.a: $(libcrypt-so-y)
55 $(Q)$(RM) $@
0a7b9d5d
PM
56 $(do_ar)
57
625d50e9
PM
58$(libcrypt_OUT)/libcrypt.oS: $(libcrypt_SRC)
59 $(Q)$(RM) $@
60 $(compile-m)
625d50e9 61
72c0f6a2 62$(top_builddir)lib/libcrypt.a: $(libcrypt-a-y)
0a7b9d5d
PM
63 $(Q)$(INSTALL) -d $(dir $@)
64 $(Q)$(RM) $@
0a7b9d5d
PM
65 $(do_ar)
66
67libcrypt_clean:
b74c3aa1 68 $(do_rm) $(addprefix $(libcrypt_OUT)/*., o os oS a)
This page took 0.100197 seconds and 4 git commands to generate.