1XEN_ROOT=$(CURDIR)/../..
2include $(XEN_ROOT)/tools/Rules.mk
3
4# In order to link against a package in Go, the package must live in a
5# directory tree in the way that Go expects.  To make this possible,
6# there must be a directory such that we can set GOPATH=${dir}, and
7# the package will be under $GOPATH/src/${full-package-path}.
8
9# So we set XEN_GOPATH to $XEN_ROOT/tools/golang.  The xenlight
10# "package build" directory ($PWD/xenlight) will create the "package
11# source" directory in the proper place.  Go programs can use this
12# package by setting GOPATH=$(XEN_GOPATH).
13
14SUBDIRS-y = xenlight
15
16.PHONY: build all
17all build: subdirs-all
18
19.PHONY: install
20install: subdirs-install
21
22.PHONY: uninstall
23uninstall: subdirs-uninstall
24
25.PHONY: clean
26clean: subdirs-clean
27	$(RM) -r src pkg
28
29.PHONY: distclean
30distclean: clean
31