mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
While the lack of proper dependency tracking of #include-d files is wider than just the libs/ subtree, dealing with the problem universally there or in tools/Rules.mk is too much of a risk at this point in the release cycle. Add the missing inclusion of $(DEPS_INCLUDE) only in the specific Makefile-s, after having checked that their prior Makefile-s had such includes. Interestingly the $(DEPS_RM) use is present in tools/libs/libs.mk's clean target, so doesn't need taking care of in individual Makefile-s. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Wei Liu <wl@xen.org> Release-acked-by: Ian Jackson <iwj@xenproject.org>
63 lines
1.4 KiB
Makefile
63 lines
1.4 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))
|
|
|
|
-include $(DEPS_INCLUDE)
|
|
|
|
clean: cleanlocal
|
|
|
|
.PHONY: cleanlocal
|
|
cleanlocal:
|
|
$(RM) -f _*.h
|
|
$(RM) -f libxlutil.map
|