aboutsummaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/Makefile34
-rw-r--r--miscutils/Makefile.in42
2 files changed, 51 insertions, 25 deletions
diff --git a/miscutils/Makefile b/miscutils/Makefile
index 3a4d1b659..b1765f627 100644
--- a/miscutils/Makefile
+++ b/miscutils/Makefile
@@ -1,6 +1,6 @@
1# Makefile for busybox 1# Makefile for busybox
2# 2#
3# Copyright (C) 1999,2000,2001 by Erik Andersen <andersee@debian.org> 3# Copyright (C) 1999-2002 Erik Andersen <andersee@debian.org>
4# 4#
5# This program is free software; you can redistribute it and/or modify 5# This program is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by 6# it under the terms of the GNU General Public License as published by
@@ -17,30 +17,14 @@
17# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18# 18#
19 19
20TOPDIR :=.. 20TOPDIR:= ../
21L_TARGET := miscutils.a 21MISCUTILS_DIR:=./
22EXTRA_CFLAGS = -DBB_VER='"$(VERSION)"' -DBB_BT='"$(BUILDTIME)"' 22include $(TOPDIR).config
23 23include $(TOPDIR)Rules.mak
24obj-y := 24include Makefile.in
25obj-n := 25all: $(libraries-y)
26obj- := 26-include $(TOPDIR).depend
27
28
29obj-$(CONFIG_ADJTIMEX) += adjtimex.o
30obj-$(CONFIG_DC) += dc.o
31obj-$(CONFIG_DUTMP) += dutmp.o
32obj-$(CONFIG_MAKEDEVS) += makedevs.o
33obj-$(CONFIG_MKTEMP) += mktemp.o
34obj-$(CONFIG_MT) += mt.o
35obj-$(CONFIG_READLINK) += readlink.o
36obj-$(CONFIG_TIME) += time.o
37obj-$(CONFIG_UPDATE) += update.o
38obj-$(CONFIG_WATCHDOG) += watchdog.o
39
40
41# Hand off to toplevel Rules.mak
42include $(TOPDIR)/Rules.mak
43 27
44clean: 28clean:
45 rm -f $(L_TARGET) *.o core 29 rm -f *.o *.a $(AR_TARGET)
46 30
diff --git a/miscutils/Makefile.in b/miscutils/Makefile.in
new file mode 100644
index 000000000..078f87001
--- /dev/null
+++ b/miscutils/Makefile.in
@@ -0,0 +1,42 @@
1# Makefile for busybox
2#
3# Copyright (C) 1999-2002 Erik Andersen <andersee@debian.org>
4#
5# This program is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation; either version 2 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13# General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program; if not, write to the Free Software
17# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18#
19
20MISCUTILS_AR:=miscutils.a
21ifndef $(MISCUTILS_DIR)
22MISCUTILS_DIR:=$(TOPDIR)miscutils/
23endif
24
25
26MISCUTILS-y:=
27MISCUTILS-$(CONFIG_ADJTIMEX) += adjtimex.o
28MISCUTILS-$(CONFIG_DC) += dc.o
29MISCUTILS-$(CONFIG_DUTMP) += dutmp.o
30MISCUTILS-$(CONFIG_MAKEDEVS) += makedevs.o
31MISCUTILS-$(CONFIG_MKTEMP) += mktemp.o
32MISCUTILS-$(CONFIG_MT) += mt.o
33MISCUTILS-$(CONFIG_READLINK) += readlink.o
34MISCUTILS-$(CONFIG_TIME) += time.o
35MISCUTILS-$(CONFIG_UPDATE) += update.o
36MISCUTILS-$(CONFIG_WATCHDOG) += watchdog.o
37
38libraries-y+=$(MISCUTILS_DIR)$(MISCUTILS_AR)
39
40$(MISCUTILS_DIR)$(MISCUTILS_AR): $(patsubst %,$(MISCUTILS_DIR)%, $(MISCUTILS-y))
41 $(AR) -ro $@ $(patsubst %,$(MISCUTILS_DIR)%, $(MISCUTILS-y))
42