Make: make TOPDIR actually work and get rid of unused CDIR
Signed-off-by: Richard Hughes <richard@hughsie.com> Signed-off-by: Peter Jones <pjones@redhat.com>
This commit is contained in:
parent
95dbde278c
commit
31913f8489
@ -34,7 +34,7 @@
|
|||||||
# SUCH DAMAGE.
|
# SUCH DAMAGE.
|
||||||
#
|
#
|
||||||
|
|
||||||
TOPDIR := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
|
TOPDIR ?= $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Variables below overridable from command-line:
|
# Variables below overridable from command-line:
|
||||||
|
@ -37,12 +37,10 @@
|
|||||||
SRCDIR = .
|
SRCDIR = .
|
||||||
|
|
||||||
VPATH = $(SRCDIR)
|
VPATH = $(SRCDIR)
|
||||||
|
TOPDIR = $(SRCDIR)/..
|
||||||
|
|
||||||
include $(SRCDIR)/../Make.defaults
|
include $(SRCDIR)/../Make.defaults
|
||||||
|
|
||||||
TOPDIR = $(SRCDIR)/..
|
|
||||||
|
|
||||||
CDIR=$(TOPDIR)/..
|
|
||||||
LINUX_HEADERS = /usr/src/sys/build
|
LINUX_HEADERS = /usr/src/sys/build
|
||||||
APPSDIR = $(LIBDIR)/gnuefi/apps
|
APPSDIR = $(LIBDIR)/gnuefi/apps
|
||||||
CPPFLAGS += -D__KERNEL__ -I$(LINUX_HEADERS)/include
|
CPPFLAGS += -D__KERNEL__ -I$(LINUX_HEADERS)/include
|
||||||
|
@ -37,12 +37,10 @@
|
|||||||
SRCDIR = .
|
SRCDIR = .
|
||||||
|
|
||||||
VPATH = $(SRCDIR)
|
VPATH = $(SRCDIR)
|
||||||
|
TOPDIR = $(SRCDIR)/..
|
||||||
|
|
||||||
include $(SRCDIR)/../Make.defaults
|
include $(SRCDIR)/../Make.defaults
|
||||||
|
|
||||||
TOPDIR = $(SRCDIR)/..
|
|
||||||
|
|
||||||
CDIR=$(TOPDIR)/..
|
|
||||||
PKGCONFIGDIR ?= $(LIBDIR)/pkgconfig
|
PKGCONFIGDIR ?= $(LIBDIR)/pkgconfig
|
||||||
FILES = reloc_$(ARCH)
|
FILES = reloc_$(ARCH)
|
||||||
|
|
||||||
|
@ -1,12 +1,9 @@
|
|||||||
SRCDIR = .
|
SRCDIR = .
|
||||||
|
|
||||||
VPATH = $(SRCDIR)
|
VPATH = $(SRCDIR)
|
||||||
|
|
||||||
include $(SRCDIR)/../Make.defaults
|
|
||||||
|
|
||||||
TOPDIR = $(SRCDIR)/..
|
TOPDIR = $(SRCDIR)/..
|
||||||
|
|
||||||
CDIR=$(TOPDIR)/..
|
include $(SRCDIR)/../Make.defaults
|
||||||
|
|
||||||
all:
|
all:
|
||||||
|
|
||||||
|
@ -37,12 +37,10 @@
|
|||||||
SRCDIR = .
|
SRCDIR = .
|
||||||
|
|
||||||
VPATH = $(SRCDIR)
|
VPATH = $(SRCDIR)
|
||||||
|
TOPDIR = $(SRCDIR)/..
|
||||||
|
|
||||||
include $(SRCDIR)/../Make.defaults
|
include $(SRCDIR)/../Make.defaults
|
||||||
|
|
||||||
TOPDIR = $(SRCDIR)/..
|
|
||||||
|
|
||||||
CDIR = $(TOPDIR)/..
|
|
||||||
FILES = boxdraw smbios console crc data debug dpath \
|
FILES = boxdraw smbios console crc data debug dpath \
|
||||||
entry error event exit guid hand hw init lock \
|
entry error event exit guid hand hw init lock \
|
||||||
misc pause print sread str cmdline\
|
misc pause print sread str cmdline\
|
||||||
|
Loading…
Reference in New Issue
Block a user