diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2005-10-13 10:40:18 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2005-10-13 10:40:18 +0000 |
commit | 8c7a7e6e63c01d2d575bbaa43e1768ad2b97179b (patch) | |
tree | 08c307c55926456b2001311f7fbf7c04959a5cec | |
parent | bb66a6c94ed7cf195a50478fa8415cbed54b3566 (diff) | |
download | busybox-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-- | Makefile | 7 | ||||
-rw-r--r-- | Rules.mak | 15 |
2 files changed, 20 insertions, 2 deletions
@@ -53,6 +53,11 @@ else | |||
53 | KBUILD_OUTPUT := $(top_builddir) | 53 | KBUILD_OUTPUT := $(top_builddir) |
54 | endif | 54 | endif |
55 | 55 | ||
56 | ifneq ($(strip $(HAVE_DOT_CONFIG)),y) | ||
57 | # pull in OS specific commands like cp, mkdir, etc. early | ||
58 | -include $(top_srcdir)/Rules.mak | ||
59 | endif | ||
60 | |||
56 | # All object directories. | 61 | # All object directories. |
57 | OBJ_DIRS := $(DIRS) | 62 | OBJ_DIRS := $(DIRS) |
58 | all_tree := $(patsubst %,$(top_builddir)/%,$(OBJ_DIRS) scripts scripts/config include) | 63 | all_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 |
258 | doc: docs/busybox.pod docs/BusyBox.txt docs/BusyBox.1 docs/BusyBox.html | 263 | doc: docs/busybox.pod docs/BusyBox.txt docs/BusyBox.1 docs/BusyBox.html |
@@ -19,7 +19,11 @@ | |||
19 | 19 | ||
20 | #-------------------------------------------------------- | 20 | #-------------------------------------------------------- |
21 | PROG := busybox | 21 | PROG := busybox |
22 | VERSION := 1.1.0-pre1 | 22 | MAJOR_VERSION :=1 |
23 | MINOR_VERSION :=1 | ||
24 | SUBLEVEL_VERSION:=0 | ||
25 | EXTRAVERSION :=-pre1 | ||
26 | VERSION :=$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL_VERSION)$(EXTRAVERSION) | ||
23 | BUILDTIME := $(shell TZ=UTC date -u "+%Y.%m.%d-%H:%M%z") | 27 | BUILDTIME := $(shell TZ=UTC date -u "+%Y.%m.%d-%H:%M%z") |
24 | 28 | ||
25 | 29 | ||
@@ -43,6 +47,15 @@ NM = $(CROSS)nm | |||
43 | STRIP = $(CROSS)strip | 47 | STRIP = $(CROSS)strip |
44 | CPP = $(CC) -E | 48 | CPP = $(CC) -E |
45 | # MAKEFILES = $(top_builddir)/.config | 49 | # MAKEFILES = $(top_builddir)/.config |
50 | RM = rm | ||
51 | RM_F = $(RM) -f | ||
52 | LN = ln | ||
53 | LN_S = $(LN) -s | ||
54 | MKDIR = mkdir | ||
55 | MKDIR_P = $(MKDIR) -p | ||
56 | MV = mv | ||
57 | CP = 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. |