include Config
-VERSION = 1.3.9-UNRELEASED
+VERSION = 1.3.13
# Debug mode (spam/verbose)
DEBUG = 0
# make install vars
# 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)
# Link flags
#
-LFLAGS = -Ttext $(TEXTADDR) -Bstatic
+LFLAGS = -Ttext $(TEXTADDR) -Bstatic
# Libraries
#
-LLIBS = lib/libext2fs.a
+LLIBS = -lext2fs
# For compiling userland utils
#
endif
# compilation
-CC := $(CROSS)gcc
-LD := $(CROSS)ld
-AS := $(CROSS)as
-OBJCOPY := $(CROSS)objcopy
-
lgcc = `$(CC) -print-libgcc-file-name`
all: yaboot addnote mkofboot