aboutsummaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak18
1 files changed, 7 insertions, 11 deletions
diff --git a/Rules.mak b/Rules.mak
index b18d09b96..1e519fbf1 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -27,7 +27,7 @@ BUILDTIME := $(shell TZ=UTC date -u "+%Y.%m.%d-%H:%M%z")
27# With a modern GNU make(1) (highly recommended, that's what all the 27# With a modern GNU make(1) (highly recommended, that's what all the
28# developers use), all of the following configuration values can be 28# developers use), all of the following configuration values can be
29# overridden at the command line. For example: 29# overridden at the command line. For example:
30# make CROSS=powerpc-linux- BB_SRC_DIR=$HOME/busybox PREFIX=/mnt/app 30# make CROSS=powerpc-linux- top_srcdir="$HOME/busybox" PREFIX=/mnt/app
31#-------------------------------------------------------- 31#--------------------------------------------------------
32 32
33# If you are running a cross compiler, you will want to set 'CROSS' 33# If you are running a cross compiler, you will want to set 'CROSS'
@@ -60,11 +60,6 @@ LC_ALL:= C
60# For optimization overrides, it's better still to set OPTIMIZATION. 60# For optimization overrides, it's better still to set OPTIMIZATION.
61CFLAGS_EXTRA=$(subst ",, $(strip $(EXTRA_CFLAGS_OPTIONS))) 61CFLAGS_EXTRA=$(subst ",, $(strip $(EXTRA_CFLAGS_OPTIONS)))
62 62
63# If you have a "pristine" source directory, point BB_SRC_DIR to it.
64# Experimental and incomplete; tell the mailing list
65# <busybox@busybox.net> if you do or don't like it so far.
66BB_SRC_DIR=
67
68# To compile vs some other alternative libc, you may need to use/adjust 63# To compile vs some other alternative libc, you may need to use/adjust
69# the following lines to meet your needs... 64# the following lines to meet your needs...
70# 65#
@@ -176,19 +171,20 @@ ifeq ($(strip $(CONFIG_STATIC)),y)
176 LDFLAGS += --static 171 LDFLAGS += --static
177endif 172endif
178 173
174ifeq ($(strip $(CONFIG_SELINUX)),y)
175 LIBRARIES += -lselinux
176endif
177
179ifeq ($(strip $(PREFIX)),) 178ifeq ($(strip $(PREFIX)),)
180 PREFIX:=`pwd`/_install 179 PREFIX:=`pwd`/_install
181endif 180endif
182 181
183# Additional complications due to support for pristine source dir. 182# Additional complications due to support for pristine source dir.
184# Include files in the build directory should take precedence over 183# Include files in the build directory should take precedence over
185# the copy in BB_SRC_DIR, both during the compilation phase and the 184# the copy in top_srcdir, both during the compilation phase and the
186# shell script that finds the list of object files. 185# shell script that finds the list of object files.
187# Work in progress by <ldoolitt@recycle.lbl.gov>. 186# Work in progress by <ldoolitt@recycle.lbl.gov>.
188# 187
189ifneq ($(strip $(BB_SRC_DIR)),)
190 VPATH:=$(BB_SRC_DIR)
191endif
192 188
193OBJECTS:=$(APPLET_SOURCES:.c=.o) busybox.o usage.o applets.o 189OBJECTS:=$(APPLET_SOURCES:.c=.o) busybox.o usage.o applets.o
194CFLAGS += $(CROSS_CFLAGS) 190CFLAGS += $(CROSS_CFLAGS)