source: MondoRescue/trunk/mindi-busybox/init/Makefile.in@ 954

Last change on this file since 954 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: 905 bytes
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
7INIT_AR:=init.a
8ifndef $(INIT_DIR)
9INIT_DIR:=$(top_builddir)/init/
10endif
11srcdir=$(top_srcdir)/init
12
13INIT-y:=
14INIT-$(CONFIG_HALT) += halt.o
15INIT-$(CONFIG_INIT) += init.o
16INIT-$(CONFIG_MESG) += mesg.o
17
18ifeq ($(strip $(CONFIG_HALT)),y)
19CONFIG_INIT_SHARED=y
20else
21ifeq ($(strip $(CONFIG_INIT)),y)
22CONFIG_INIT_SHARED=y
23else
24CONFIG_INIT_SHARED=n
25endif
26endif
27
28INIT-$(CONFIG_INIT_SHARED) += init_shared.o
29
30ifneq ($(strip $(INIT-y)),)
31libraries-y+=$(INIT_DIR)$(INIT_AR)
32endif
33
34INIT_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(INIT-y))
35INIT_SRC-a:=$(wildcard $(srcdir)/*.c)
36APPLET_SRC-y+=$(INIT_SRC-y)
37APPLET_SRC-a+=$(INIT_SRC-a)
38
39$(INIT_DIR)$(INIT_AR): $(patsubst %,$(INIT_DIR)%, $(INIT-y))
40 $(do_ar)
41
42$(INIT_DIR)%.o: $(srcdir)/%.c
43 $(compile.c)
Note: See TracBrowser for help on using the repository browser.