X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;ds=sidebyside;f=Rules.mak;h=7b6642631df47e534fa5e49194240a62816e9876;hb=948d4907a0d13f0b4f2a8b5985504ef406686b04;hp=3ee323527136f3ec5353c81c4786d883a2d5b81a;hpb=b8b6816f7b0aa20e1e08e0881f4a428ccd76850e;p=oweals%2Fbusybox.git diff --git a/Rules.mak b/Rules.mak index 3ee323527..7b6642631 100644 --- a/Rules.mak +++ b/Rules.mak @@ -19,7 +19,7 @@ #-------------------------------------------------------- PROG := busybox -VERSION := 1.00-pre3 +VERSION := 1.00-pre8 BUILDTIME := $(shell TZ=UTC date -u "+%Y.%m.%d-%H:%M%z") @@ -34,23 +34,22 @@ BUILDTIME := $(shell TZ=UTC date -u "+%Y.%m.%d-%H:%M%z") # to something more interesting... Target architecture is determined # by asking the CC compiler what arch it compiles things for, so unless # your compiler is broken, you should not need to specify TARGET_ARCH -CROSS ?=$(subst ",, $(strip $(CROSS_COMPILER_PREFIX))) -#CROSS =/usr/i386-linux-uclibc/bin/i386-uclibc- -CC ?= $(CROSS)gcc -AR ?= $(CROSS)ar -AS ?= $(CROSS)as -LD ?= $(CROSS)ld -NM ?= $(CROSS)nm -STRIP ?= $(CROSS)strip -CPP ?= $(CC) -E +CROSS =$(subst ",, $(strip $(CROSS_COMPILER_PREFIX))) +CC = $(CROSS)gcc +AR = $(CROSS)ar +AS = $(CROSS)as +LD = $(CROSS)ld +NM = $(CROSS)nm +STRIP = $(CROSS)strip +CPP = $(CC) -E MAKEFILES = $(TOPDIR).config # What OS are you compiling busybox for? This allows you to include # OS specific things, syscall overrides, etc. -TARGET_OS?=linux +TARGET_OS=linux # Select the compiler needed to build binaries for your development system -HOSTCC ?= gcc +HOSTCC = gcc HOSTCFLAGS= -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer # Ensure consistent sort order, 'gcc -print-search-dirs' behavior, etc. @@ -86,7 +85,8 @@ ARFLAGS=-r #-------------------------------------------------------- export VERSION BUILDTIME TOPDIR HOSTCC HOSTCFLAGS CROSS CC AR AS LD NM STRIP CPP -TARGET_ARCH?=$(shell $(CC) -dumpmachine | sed -e s'/-.*//' \ +ifeq ($(strip $(TARGET_ARCH)),) +TARGET_ARCH=$(shell $(CC) -dumpmachine | sed -e s'/-.*//' \ -e 's/i.86/i386/' \ -e 's/sparc.*/sparc/' \ -e 's/arm.*/arm/g' \ @@ -98,6 +98,7 @@ TARGET_ARCH?=$(shell $(CC) -dumpmachine | sed -e s'/-.*//' \ -e 's/mipsel-.*/mipsel/' \ -e 's/cris.*/cris/' \ ) +endif # Pull in the user's busybox configuration ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),)