1XEN_ROOT = $(CURDIR)/../../..
2include $(XEN_ROOT)/tools/Rules.mk
3
4MAJOR	= 1
5MINOR	= 0
6LIBNAME  := toolcore
7AUTOINCS := include/_xentoolcore_list.h
8
9SRCS-y	+= handlereg.c
10
11include $(XEN_ROOT)/tools/libs/libs.mk
12
13$(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR = $(XEN_LIBXENTOOLCORE)/include
14
15$(LIB_OBJS): $(AUTOINCS)
16$(PIC_OBJS): $(AUTOINCS)
17
18include/_xentoolcore_list.h: $(XEN_INCLUDE)/xen-external/bsd-sys-queue-h-seddery $(XEN_INCLUDE)/xen-external/bsd-sys-queue.h
19	$(PERL) $^ --prefix=xentoolcore >$@.new
20	$(call move-if-changed,$@.new,$@)
21