diff options
author | Robert Griebl <griebl@gmx.de> | 2002-12-16 21:55:39 +0000 |
---|---|---|
committer | Robert Griebl <griebl@gmx.de> | 2002-12-16 21:55:39 +0000 |
commit | 53f133ac33936d25ed1fdfd7cd02098cb5819be8 (patch) | |
tree | 390cb4b8d7bf226893ce8f42e89763b617802099 | |
parent | 275be87be71dab9b00a67bd5010f8acf7255ce04 (diff) | |
download | busybox-w32-53f133ac33936d25ed1fdfd7cd02098cb5819be8.tar.gz busybox-w32-53f133ac33936d25ed1fdfd7cd02098cb5819be8.tar.bz2 busybox-w32-53f133ac33936d25ed1fdfd7cd02098cb5819be8.zip |
changed most assignments from ":=" to "=" to allow setting some variables
at the command line (this is also needed for cross-compilation)
-rw-r--r-- | Rules.mak | 34 |
1 files changed, 17 insertions, 17 deletions
@@ -36,21 +36,21 @@ BUILDTIME := $(shell TZ=UTC date -u "+%Y.%m.%d-%H:%M%z") | |||
36 | # your compiler is broken, you should not need to specify TARGET_ARCH | 36 | # your compiler is broken, you should not need to specify TARGET_ARCH |
37 | CROSS =$(subst ",, $(strip $(CROSS_COMPILER_PREFIX))) | 37 | CROSS =$(subst ",, $(strip $(CROSS_COMPILER_PREFIX))) |
38 | CC = $(CROSS)gcc | 38 | CC = $(CROSS)gcc |
39 | AR := $(CROSS)ar | 39 | AR = $(CROSS)ar |
40 | AS := $(CROSS)as | 40 | AS = $(CROSS)as |
41 | LD := $(CROSS)ld | 41 | LD = $(CROSS)ld |
42 | NM := $(CROSS)nm | 42 | NM = $(CROSS)nm |
43 | STRIP := $(CROSS)strip | 43 | STRIP = $(CROSS)strip |
44 | CPP := $(CC) -E | 44 | CPP = $(CC) -E |
45 | MAKEFILES := $(TOPDIR).config | 45 | MAKEFILES = $(TOPDIR).config |
46 | 46 | ||
47 | # What OS are you compiling busybox for? This allows you to include | 47 | # What OS are you compiling busybox for? This allows you to include |
48 | # OS specific things, syscall overrides, etc. | 48 | # OS specific things, syscall overrides, etc. |
49 | TARGET_OS:=linux | 49 | TARGET_OS=linux |
50 | 50 | ||
51 | # Select the compiler needed to build binaries for your development system | 51 | # Select the compiler needed to build binaries for your development system |
52 | HOSTCC := gcc | 52 | HOSTCC = gcc |
53 | HOSTCFLAGS:= -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer | 53 | HOSTCFLAGS= -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer |
54 | 54 | ||
55 | # If you want to add some simple compiler switches (like -march=i686), | 55 | # If you want to add some simple compiler switches (like -march=i686), |
56 | # especially from the command line, use this instead of CFLAGS directly. | 56 | # especially from the command line, use this instead of CFLAGS directly. |
@@ -60,7 +60,7 @@ CFLAGS_EXTRA=$(subst ",, $(strip $(EXTRA_CFLAGS_OPTIONS))) | |||
60 | # If you have a "pristine" source directory, point BB_SRC_DIR to it. | 60 | # If you have a "pristine" source directory, point BB_SRC_DIR to it. |
61 | # Experimental and incomplete; tell the mailing list | 61 | # Experimental and incomplete; tell the mailing list |
62 | # <busybox@busybox.net> if you do or don't like it so far. | 62 | # <busybox@busybox.net> if you do or don't like it so far. |
63 | BB_SRC_DIR:= | 63 | BB_SRC_DIR= |
64 | 64 | ||
65 | # To compile vs some other alternative libc, you may need to use/adjust | 65 | # To compile vs some other alternative libc, you may need to use/adjust |
66 | # the following lines to meet your needs... | 66 | # the following lines to meet your needs... |
@@ -80,9 +80,9 @@ BB_SRC_DIR:= | |||
80 | #CROSS_CFLAGS+=-nostdinc -I$(LIBCDIR)/include -I$(GCCINCDIR) | 80 | #CROSS_CFLAGS+=-nostdinc -I$(LIBCDIR)/include -I$(GCCINCDIR) |
81 | #GCCINCDIR:=$(shell gcc -print-search-dirs | sed -ne "s/install: \(.*\)/\1include/gp") | 81 | #GCCINCDIR:=$(shell gcc -print-search-dirs | sed -ne "s/install: \(.*\)/\1include/gp") |
82 | 82 | ||
83 | WARNINGS:=-Wall -Wstrict-prototypes -Wshadow | 83 | WARNINGS=-Wall -Wstrict-prototypes -Wshadow |
84 | CFLAGS:=-I$(TOPDIR)include | 84 | CFLAGS=-I$(TOPDIR)include |
85 | ARFLAGS:=-r | 85 | ARFLAGS=-r |
86 | 86 | ||
87 | #-------------------------------------------------------- | 87 | #-------------------------------------------------------- |
88 | export VERSION BUILDTIME TOPDIR HOSTCC HOSTCFLAGS CROSS CC AR AS LD NM STRIP CPP | 88 | export VERSION BUILDTIME TOPDIR HOSTCC HOSTCFLAGS CROSS CC AR AS LD NM STRIP CPP |
@@ -116,8 +116,8 @@ check_gcc=$(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null > /dev/null 2>&1; | |||
116 | # for OPTIMIZATION... | 116 | # for OPTIMIZATION... |
117 | 117 | ||
118 | # use '-Os' optimization if available, else use -O2 | 118 | # use '-Os' optimization if available, else use -O2 |
119 | OPTIMIZATION:= | 119 | OPTIMIZATION= |
120 | OPTIMIZATION+=${call check_gcc,-Os,-O2} | 120 | OPTIMIZATION=${call check_gcc,-Os,-O2} |
121 | 121 | ||
122 | # Some nice architecture specific optimizations | 122 | # Some nice architecture specific optimizations |
123 | ifeq ($(strip $(TARGET_ARCH)),arm) | 123 | ifeq ($(strip $(TARGET_ARCH)),arm) |
@@ -129,7 +129,7 @@ ifeq ($(strip $(TARGET_ARCH)),i386) | |||
129 | OPTIMIZATION+=$(call check_gcc,-falign-functions=0 -falign-jumps=0 -falign-loops=0,\ | 129 | OPTIMIZATION+=$(call check_gcc,-falign-functions=0 -falign-jumps=0 -falign-loops=0,\ |
130 | -malign-functions=0 -malign-jumps=0 -malign-loops=0) | 130 | -malign-functions=0 -malign-jumps=0 -malign-loops=0) |
131 | endif | 131 | endif |
132 | OPTIMIZATIONS:=$(OPTIMIZATION) -fomit-frame-pointer | 132 | OPTIMIZATIONS=$(OPTIMIZATION) -fomit-frame-pointer |
133 | 133 | ||
134 | # | 134 | # |
135 | #-------------------------------------------------------- | 135 | #-------------------------------------------------------- |