Fix srcdir for VPATH build.

This commit is contained in:
Markus F.X.J. Oberhumer 2006-06-16 20:08:21 +02:00
parent 178198a417
commit 9382b68781

View File

@ -29,8 +29,10 @@ endif
# //
# ************************************************************************/
srcdir = .
top_srcdir = ../..
ifndef srcdir
srcdir := $(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)))
srcdir := $(shell echo '$(srcdir)' | sed 's,/*$$,,')
endif
STUBS += amd64-linux.elf-entry.h
STUBS += amd64-linux.elf-fold.h