Last change
on this file since 3217 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 |
|
---|
7 | INIT_AR:=init.a
|
---|
8 | ifndef $(INIT_DIR)
|
---|
9 | INIT_DIR:=$(top_builddir)/init/
|
---|
10 | endif
|
---|
11 | srcdir=$(top_srcdir)/init
|
---|
12 |
|
---|
13 | INIT-y:=
|
---|
14 | INIT-$(CONFIG_HALT) += halt.o
|
---|
15 | INIT-$(CONFIG_INIT) += init.o
|
---|
16 | INIT-$(CONFIG_MESG) += mesg.o
|
---|
17 |
|
---|
18 | ifeq ($(strip $(CONFIG_HALT)),y)
|
---|
19 | CONFIG_INIT_SHARED=y
|
---|
20 | else
|
---|
21 | ifeq ($(strip $(CONFIG_INIT)),y)
|
---|
22 | CONFIG_INIT_SHARED=y
|
---|
23 | else
|
---|
24 | CONFIG_INIT_SHARED=n
|
---|
25 | endif
|
---|
26 | endif
|
---|
27 |
|
---|
28 | INIT-$(CONFIG_INIT_SHARED) += init_shared.o
|
---|
29 |
|
---|
30 | ifneq ($(strip $(INIT-y)),)
|
---|
31 | libraries-y+=$(INIT_DIR)$(INIT_AR)
|
---|
32 | endif
|
---|
33 |
|
---|
34 | INIT_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(INIT-y))
|
---|
35 | INIT_SRC-a:=$(wildcard $(srcdir)/*.c)
|
---|
36 | APPLET_SRC-y+=$(INIT_SRC-y)
|
---|
37 | APPLET_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.