24 |
|
|
25 |
NOSTDINC_FLAGS := -nostdlib -nostdinc -isystem $(shell $(CC) -print-file-name=include) |
NOSTDINC_FLAGS := -nostdlib -nostdinc -isystem $(shell $(CC) -print-file-name=include) |
26 |
|
|
27 |
ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/parisc64/parisc/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/) |
ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/parisc64/parisc/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/ -e s/sh4/sh/) |
28 |
export KLIBCARCH ?= $(ARCH) |
export KLIBCARCH ?= $(ARCH) |
29 |
export KLIBCARCHDIR := $(shell echo $(KLIBCARCH) | sed -e s/s390x/s390/) |
export KLIBCARCHDIR := $(shell echo $(KLIBCARCH) | sed -e s/s390x/s390/) |
30 |
|
|
89 |
@false |
@false |
90 |
|
|
91 |
linux: |
linux: |
92 |
ln -snf /lib/modules/$(shell uname -r)/build linux |
@echo "The 'linux' symlink is missing; it should point to a kernel tree " |
93 |
|
@echo "configured for the $(KLIBCARCH) architecture." |
94 |
|
@false |
95 |
|
|
96 |
rpmbuild = $(shell which rpmbuild 2>/dev/null || which rpm) |
rpmbuild = $(shell which rpmbuild 2>/dev/null || which rpm) |
97 |
|
|