diff options
author | ewan@linford.intra <ewan@linford.intra> | 2006-10-07 18:22:09 +0100 |
---|---|---|
committer | ewan@linford.intra <ewan@linford.intra> | 2006-10-07 18:22:09 +0100 |
commit | 273a416d0390837723afa57b320b6e7085e3dc0e (patch) | |
tree | a29891674aa1253d91f330aeb5d00491f5d14131 /tools/libxen/Makefile | |
parent | 7d5ba9b43007bd4c514c81d6310976a5a7f9b3d6 (diff) | |
download | xen-273a416d0390837723afa57b320b6e7085e3dc0e.tar.gz xen-273a416d0390837723afa57b320b6e7085e3dc0e.tar.bz2 xen-273a416d0390837723afa57b320b6e7085e3dc0e.zip |
Import libxen-src-0.4.3-2.tar.bz2.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Diffstat (limited to 'tools/libxen/Makefile')
-rw-r--r-- | tools/libxen/Makefile | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/tools/libxen/Makefile b/tools/libxen/Makefile new file mode 100644 index 0000000000..0060ef9f6c --- /dev/null +++ b/tools/libxen/Makefile @@ -0,0 +1,37 @@ +# +# Copyright (c) 2006, XenSource Inc. +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# + +CFLAGS = -Iinclude \ + $(shell xml2-config --cflags) \ + $(shell curl-config --cflags) \ + -W -Wall -Werror -std=c99 -O2 -fPIC + +LDFLAGS = $(shell xml2-config --libs) \ + $(shell curl-config --libs) + +test/test_bindings: test/test_bindings.o src/libxen.so + $(CC) $(LDFLAGS) -o $@ $< -L src -lxen + +src/libxen.so: $(patsubst %.c, %.o, $(wildcard src/*.c)) + $(CC) -shared -o $@ $^ + +.PHONY: clean +clean: + rm -f `find -name *.o` + rm -f src/libxen.so + rm -f test/test_bindings |