source: MondoRescue/branches/2.2.2/mindi-busybox/loginutils/Makefile.in@ 1247

Last change on this file since 1247 was 821, checked in by Bruno Cornec, 18 years ago

Addition of busybox 1.2.1 as a mindi-busybox new package
This should avoid delivering binary files in mindi not built there (Fedora and Debian are quite serious about that)

File size: 1.4 KB
Line 
1# Makefile for busybox
2#
3# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
4#
5# Licensed under the GPL v2, see the file LICENSE in this tarball.
6
7LOGINUTILS_AR:=loginutils.a
8ifndef LOGINUTILS_DIR
9LOGINUTILS_DIR:=$(top_builddir)/loginutils/
10endif
11srcdir=$(top_srcdir)/loginutils
12
13LOGINUTILS-y:=
14LOGINUTILS-$(CONFIG_ADDGROUP) += addgroup.o
15LOGINUTILS-$(CONFIG_ADDUSER) += adduser.o
16LOGINUTILS-$(CONFIG_GETTY) += getty.o
17LOGINUTILS-$(CONFIG_LOGIN) += login.o
18LOGINUTILS-$(CONFIG_PASSWD) += passwd.o
19LOGINUTILS-$(CONFIG_SU) += su.o
20LOGINUTILS-$(CONFIG_SULOGIN) += sulogin.o
21LOGINUTILS-$(CONFIG_VLOCK) += vlock.o
22LOGINUTILS-$(CONFIG_DELUSER) += deluser.o
23LOGINUTILS-$(CONFIG_DELGROUP) += deluser.o
24
25LOGINUTILS-y:=$(sort $(LOGINUTILS-y))
26
27ifneq ($(strip $(LOGINUTILS-y)),)
28libraries-y+=$(LOGINUTILS_DIR)$(LOGINUTILS_AR)
29endif
30
31LOGINUTILS_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(LOGINUTILS-y))
32LOGINUTILS_SRC-a:=$(wildcard $(srcdir)/*.c)
33APPLET_SRC-y+=$(LOGINUTILS_SRC-y)
34APPLET_SRC-a+=$(LOGINUTILS_SRC-a)
35
36needcrypt-y:=
37needcrypt-$(CONFIG_LOGIN) := y
38needcrypt-$(CONFIG_PASSWD) := y
39needcrypt-$(CONFIG_SU) := y
40needcrypt-$(CONFIG_SULOGIN) := y
41needcrypt-$(CONFIG_VLOCK) := y
42
43
44ifeq ($(needcrypt-y),y)
45 LIBRARIES := -lcrypt $(filter-out -lcrypt,$(LIBRARIES))
46endif
47
48$(LOGINUTILS_DIR)$(LOGINUTILS_AR): $(patsubst %,$(LOGINUTILS_DIR)%, $(LOGINUTILS-y))
49 $(do_ar)
50
51$(LOGINUTILS_DIR)%.o: $(srcdir)/%.c
52 $(compile.c)
Note: See TracBrowser for help on using the repository browser.