X-Git-Url: http://git.ozlabs.org/?p=yaboot.git;a=blobdiff_plain;f=Makefile;h=39f8633f0ec5fdfff3e8d23074fc3fdb20992abf;hp=27efdd0805b4efd9839aed53ad57603a81f03982;hb=75c4ba10686ac9d3a392cdcd537489eaf656951e;hpb=83e9d6ed91d623822919c0c8d8a1496b4c5b6f4c diff --git a/Makefile b/Makefile index 27efdd0..39f8633 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ include Config -VERSION = 1.3.7 +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