aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2005-10-13 10:40:18 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2005-10-13 10:40:18 +0000
commit8c7a7e6e63c01d2d575bbaa43e1768ad2b97179b (patch)
tree08c307c55926456b2001311f7fbf7c04959a5cec
parentbb66a6c94ed7cf195a50478fa8415cbed54b3566 (diff)
downloadbusybox-w32-8c7a7e6e63c01d2d575bbaa43e1768ad2b97179b.tar.gz
busybox-w32-8c7a7e6e63c01d2d575bbaa43e1768ad2b97179b.tar.bz2
busybox-w32-8c7a7e6e63c01d2d575bbaa43e1768ad2b97179b.zip
- split VERSION into parts
- add some filesystem operation wrapper variables for use in the makefiles and pull them in early in the toplevel makefile - use the cross-toolchain for "make sizes"
-rw-r--r--Makefile7
-rw-r--r--Rules.mak15
2 files changed, 20 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 63a2c1327..9c3ed40a8 100644
--- a/Makefile
+++ b/Makefile
@@ -53,6 +53,11 @@ else
53 KBUILD_OUTPUT := $(top_builddir) 53 KBUILD_OUTPUT := $(top_builddir)
54endif 54endif
55 55
56ifneq ($(strip $(HAVE_DOT_CONFIG)),y)
57# pull in OS specific commands like cp, mkdir, etc. early
58-include $(top_srcdir)/Rules.mak
59endif
60
56# All object directories. 61# All object directories.
57OBJ_DIRS := $(DIRS) 62OBJ_DIRS := $(DIRS)
58all_tree := $(patsubst %,$(top_builddir)/%,$(OBJ_DIRS) scripts scripts/config include) 63all_tree := $(patsubst %,$(top_builddir)/%,$(OBJ_DIRS) scripts scripts/config include)
@@ -252,7 +257,7 @@ sizes:
252 -rm -f busybox 257 -rm -f busybox
253 $(MAKE) top_srcdir=$(top_srcdir) top_builddir=$(top_builddir) \ 258 $(MAKE) top_srcdir=$(top_srcdir) top_builddir=$(top_builddir) \
254 -f $(top_srcdir)/Makefile STRIPCMD=/bin/true 259 -f $(top_srcdir)/Makefile STRIPCMD=/bin/true
255 nm --size-sort busybox 260 $(NM) --size-sort busybox
256 261
257# Documentation Targets 262# Documentation Targets
258doc: docs/busybox.pod docs/BusyBox.txt docs/BusyBox.1 docs/BusyBox.html 263doc: docs/busybox.pod docs/BusyBox.txt docs/BusyBox.1 docs/BusyBox.html
diff --git a/Rules.mak b/Rules.mak
index 1e519fbf1..6c4472644 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -19,7 +19,11 @@
19 19
20#-------------------------------------------------------- 20#--------------------------------------------------------
21PROG := busybox 21PROG := busybox
22VERSION := 1.1.0-pre1 22MAJOR_VERSION :=1
23MINOR_VERSION :=1
24SUBLEVEL_VERSION:=0
25EXTRAVERSION :=-pre1
26VERSION :=$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL_VERSION)$(EXTRAVERSION)
23BUILDTIME := $(shell TZ=UTC date -u "+%Y.%m.%d-%H:%M%z") 27BUILDTIME := $(shell TZ=UTC date -u "+%Y.%m.%d-%H:%M%z")
24 28
25 29
@@ -43,6 +47,15 @@ NM = $(CROSS)nm
43STRIP = $(CROSS)strip 47STRIP = $(CROSS)strip
44CPP = $(CC) -E 48CPP = $(CC) -E
45# MAKEFILES = $(top_builddir)/.config 49# MAKEFILES = $(top_builddir)/.config
50RM = rm
51RM_F = $(RM) -f
52LN = ln
53LN_S = $(LN) -s
54MKDIR = mkdir
55MKDIR_P = $(MKDIR) -p
56MV = mv
57CP = cp
58
46 59
47# What OS are you compiling busybox for? This allows you to include 60# What OS are you compiling busybox for? This allows you to include
48# OS specific things, syscall overrides, etc. 61# OS specific things, syscall overrides, etc.