mirror of
https://gitlab.com/qemu-project/capstone.git
synced 2025-09-17 02:01:15 +08:00
Makefile: allow BUILDDIR
to be a relative path
This commit is contained in:
4
Makefile
4
Makefile
@ -35,7 +35,7 @@ ifndef BUILDDIR
|
||||
BLDIR = .
|
||||
OBJDIR = .
|
||||
else
|
||||
BLDIR = $(BUILDDIR)
|
||||
BLDIR = $(abspath $(BUILDDIR))
|
||||
OBJDIR = $(BLDIR)/obj
|
||||
endif
|
||||
INCDIR = $(DESTDIR)$(PREFIX)/include
|
||||
@ -254,7 +254,7 @@ PKGCFGF = $(BLDIR)/$(LIBNAME).pc
|
||||
.PHONY: all clean install uninstall dist
|
||||
|
||||
all: $(LIBRARY) $(ARCHIVE) $(PKGCFGF)
|
||||
$(MAKE) -C tests
|
||||
$(MAKE) -C tests BUILDDIR=$(BLDIR)
|
||||
$(INSTALL_DATA) $(BLDIR)/lib$(LIBNAME).$(EXT) $(BLDIR)/tests/
|
||||
|
||||
$(LIBRARY): $(LIBOBJ)
|
||||
|
Reference in New Issue
Block a user