mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
Instead of each library having an own include directory move the official headers to tools/include instead. This will drop the need to link those headers to tools/include and there is no need any longer to have library-specific include paths when building Xen. While at it remove setting of the unused variable PKG_CONFIG_CFLAGS_LOCAL in libs/*/Makefile. Signed-off-by: Juergen Gross <jgross@suse.com> Acked-by: Christian Lindig <christian.lindig@citrix.com> Tested-by: Bertrand Marquis <bertrand.marquis@arm.com> Acked-by: Ian Jackson <iwj@xenproject.org>
61 lines
1.3 KiB
Makefile
61 lines
1.3 KiB
Makefile
XEN_ROOT = $(CURDIR)/../../..
|
|
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
SRCS-y += libxlu_cfg_y.c
|
|
SRCS-y += libxlu_cfg_l.c
|
|
SRCS-y += libxlu_cfg.c
|
|
SRCS-y += libxlu_disk_l.c
|
|
SRCS-y += libxlu_disk.c
|
|
SRCS-y += libxlu_vif.c
|
|
SRCS-y += libxlu_pci.c
|
|
|
|
CFLAGS += -Wno-format-zero-length -Wmissing-declarations \
|
|
-Wno-declaration-after-statement -Wformat-nonliteral
|
|
CFLAGS += -I. $(CFLAGS_libxenctrl)
|
|
|
|
CFLAGS += $(PTHREAD_CFLAGS)
|
|
LDFLAGS += $(PTHREAD_LDFLAGS)
|
|
|
|
ifeq ($(FLEX),)
|
|
%.c %.h:: %.l
|
|
$(warning Flex is needed to rebuild some libxl parsers and \
|
|
scanners, please install it and rerun configure)
|
|
endif
|
|
|
|
ifeq ($(BISON),)
|
|
%.c %.h:: %.y
|
|
$(warning Bison is needed to rebuild some libxl parsers and \
|
|
scanners, please install it and rerun configure)
|
|
endif
|
|
|
|
AUTOINCS = libxlu_cfg_y.h libxlu_cfg_l.h libxlu_disk_l.h
|
|
AUTOSRCS = libxlu_cfg_y.c libxlu_cfg_l.c
|
|
|
|
LIBHEADER := libxlutil.h
|
|
PKG_CONFIG_NAME := Xlutil
|
|
PKG_CONFIG_DESC := The xl utility library for Xen hypervisor
|
|
|
|
NO_HEADERS_CHK := y
|
|
|
|
include $(XEN_ROOT)/tools/libs/libs.mk
|
|
|
|
$(LIB_OBJS) $(PIC_OBJS): $(AUTOINCS) _paths.h
|
|
|
|
%.c %.h:: %.y
|
|
@rm -f $*.[ch]
|
|
$(BISON) --output=$*.c $<
|
|
|
|
%.c %.h:: %.l
|
|
@rm -f $*.[ch]
|
|
$(FLEX) --header-file=$*.h --outfile=$*.c $<
|
|
|
|
genpath-target = $(call buildmakevars2header,_paths.h)
|
|
$(eval $(genpath-target))
|
|
|
|
clean: cleanlocal
|
|
|
|
.PHONY: cleanlocal
|
|
cleanlocal:
|
|
$(RM) -f _*.h
|
|
$(RM) -f libxlutil.map
|