Last change
on this file since 3371 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:
963 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 | EDITOR_AR:=editors.a
|
---|
8 | ifndef $(EDITOR_DIR)
|
---|
9 | EDITOR_DIR:=$(top_builddir)/editors/
|
---|
10 | endif
|
---|
11 | srcdir=$(top_srcdir)/editors
|
---|
12 |
|
---|
13 | EDITOR-y:=
|
---|
14 | EDITOR-$(CONFIG_AWK) += awk.o
|
---|
15 | EDITOR-$(CONFIG_ED) += ed.o
|
---|
16 | EDITOR-$(CONFIG_PATCH) += patch.o
|
---|
17 | EDITOR-$(CONFIG_SED) += sed.o
|
---|
18 | EDITOR-$(CONFIG_VI) += vi.o
|
---|
19 |
|
---|
20 | ifneq ($(strip $(EDITOR-y)),)
|
---|
21 | libraries-y+=$(EDITOR_DIR)$(EDITOR_AR)
|
---|
22 | endif
|
---|
23 |
|
---|
24 | EDITOR_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(EDITOR-y))
|
---|
25 | EDITOR_SRC-a:=$(wildcard $(srcdir)/*.c)
|
---|
26 | APPLET_SRC-y+=$(EDITOR_SRC-y)
|
---|
27 | APPLET_SRC-a+=$(EDITOR_SRC-a)
|
---|
28 |
|
---|
29 | needlibm-y:=
|
---|
30 | needlibm-$(CONFIG_FEATURE_AWK_MATH) := y
|
---|
31 |
|
---|
32 | ifeq ($(needlibm-y),y)
|
---|
33 | LIBRARIES := -lm $(filter-out -lm,$(LIBRARIES))
|
---|
34 | endif
|
---|
35 |
|
---|
36 | $(EDITOR_DIR)$(EDITOR_AR): $(patsubst %,$(EDITOR_DIR)%, $(EDITOR-y))
|
---|
37 | $(do_ar)
|
---|
38 |
|
---|
39 | $(EDITOR_DIR)%.o: $(srcdir)/%.c
|
---|
40 | $(compile.c)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.