1XEN_ROOT = $(CURDIR)/../../..
2include $(XEN_ROOT)/tools/Rules.mk
3
4MAJOR    = 1
5MINOR    = 2
6LIBNAME  := gnttab
7USELIBS  := toollog toolcore
8
9SRCS-GNTTAB            += gnttab_core.c
10SRCS-GNTSHR            += gntshr_core.c
11
12SRCS-$(CONFIG_Linux)   += $(SRCS-GNTTAB) $(SRCS-GNTSHR) linux.c
13SRCS-$(CONFIG_MiniOS)  += $(SRCS-GNTTAB) gntshr_unimp.c minios.c
14SRCS-$(CONFIG_FreeBSD) += $(SRCS-GNTTAB) $(SRCS-GNTSHR) freebsd.c
15SRCS-$(CONFIG_SunOS)   += gnttab_unimp.c gntshr_unimp.c
16SRCS-$(CONFIG_NetBSD)  += gnttab_unimp.c gntshr_unimp.c
17
18include $(XEN_ROOT)/tools/libs/libs.mk
19
20$(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR = $(XEN_LIBXENGNTTAB)/include
21$(PKG_CONFIG_LOCAL): PKG_CONFIG_CFLAGS_LOCAL = $(CFLAGS_xeninclude)
22