X-Git-Url: http://git.ozlabs.org/?p=yaboot.git;a=blobdiff_plain;f=Makefile;h=39f8633f0ec5fdfff3e8d23074fc3fdb20992abf;hp=733fb39f240216cc8c6f773f37b8afe88049c782;hb=cd202d3404a953404f59453e8998a9fa13fa8ccf;hpb=d56885f68390b6c6109dcf4feb4c9c56009453ca diff --git a/Makefile b/Makefile index 733fb39..39f8633 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ include Config -VERSION = 1.3.9 +VERSION = 1.3.13 # Debug mode (spam/verbose) DEBUG = 0 # make install vars @@ -26,11 +26,16 @@ KERNELADDR = 0x01400000 # Set this to the prefix of your cross-compiler, if you have one. # Else leave it empty. # -CROSS = +CROSS = + +CC := $(CROSS)gcc +LD := $(CROSS)ld +AS := $(CROSS)as +OBJCOPY := $(CROSS)objcopy # The flags for the yaboot binary. # -YBCFLAGS = -Os $(CFLAGS) -nostdinc -Wall -isystem `gcc -print-file-name=include` -fsigned-char +YBCFLAGS = -Os $(CFLAGS) -nostdinc -Wall -isystem `$(CC) -print-file-name=include` -fsigned-char YBCFLAGS += -DVERSION=\"${VERSION}\" #" YBCFLAGS += -DTEXTADDR=$(TEXTADDR) -DDEBUG=$(DEBUG) YBCFLAGS += -DMALLOCADDR=$(MALLOCADDR) -DMALLOCSIZE=$(MALLOCSIZE) @@ -59,7 +64,7 @@ endif # Link flags # -LFLAGS = -Ttext $(TEXTADDR) -Bstatic +LFLAGS = -Ttext $(TEXTADDR) -Bstatic # Libraries # @@ -94,11 +99,6 @@ OBJS += second/fs_reiserfs.o endif # compilation -CC := $(CROSS)gcc -LD := $(CROSS)ld -AS := $(CROSS)as -OBJCOPY := $(CROSS)objcopy - lgcc = `$(CC) -print-libgcc-file-name` all: yaboot addnote mkofboot