mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
gmp dev files are installed. If files are missing, Makefile exits with a message indicating that these tools will not be built, rather than an error, which prevents Xen from building. Signed-off-by: Vinnie Scarlata <vincent.r.scarlata@intel.com>
40 lines
832 B
Makefile
40 lines
832 B
Makefile
# Base definitions and rules (XEN_ROOT must be defined in including Makefile)
|
|
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
#
|
|
# Tool definitions
|
|
#
|
|
|
|
# Installation program and options
|
|
INSTALL = install
|
|
INSTALL_PROG = $(INSTALL) -m0755
|
|
INSTALL_DIR = $(INSTALL) -d -m0755
|
|
|
|
# Xen tools installation directory
|
|
TOOLS_INSTALL_DIR = $(DESTDIR)/usr/bin
|
|
|
|
# General compiler flags
|
|
CFLAGS = -Wall -Werror -g3 -I.
|
|
|
|
# For generating dependencies
|
|
CFLAGS += -Wp,-MD,.$(@F).d
|
|
|
|
DEP_FILES = .*.d
|
|
|
|
# Generic project files
|
|
HDRS = $(wildcard *.h)
|
|
SRCS = $(wildcard *.c)
|
|
OBJS = $(patsubst %.c,%.o,$(SRCS))
|
|
|
|
# Generic (non-header) dependencies
|
|
$(SRCS): Makefile $(XEN_ROOT)/tools/Rules.mk $(XEN_ROOT)/tools/vtpm/Rules.mk
|
|
|
|
$(OBJS): $(SRCS)
|
|
|
|
-include $(DEP_FILES)
|
|
|
|
BUILD_EMULATOR = n
|
|
|
|
# Make sure these are just rules
|
|
.PHONY : all build install clean
|