From b6726570454264768e5e08d3ec2a3e8e9e333daa Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Thu, 8 Jan 2009 18:50:00 +0000 Subject: Make libxml binding example actually work. A rudimentary makefile for this, too. svn path=/trunk/hubbub/; revision=5992 --- examples/Mkfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 examples/Mkfile (limited to 'examples/Mkfile') diff --git a/examples/Mkfile b/examples/Mkfile new file mode 100644 index 0000000..8c5d828 --- /dev/null +++ b/examples/Mkfile @@ -0,0 +1,18 @@ +CC := gcc +LD := gcc + +CFLAGS := `pkg-config --cflags libhubbub` `xml2-config --cflags` +LDFLAGS := `pkg-config --libs libhubbub` `xml2-config --libs` + +SRC := libxml.c + +libxml: $(SRC:.c=.o) + @$(LD) -o $@ $^ $(LDFLAGS) + +.PHONY: clean +clean: + $(RM) libxml $(SRC:.c=.o) + +%.o: %.c + @$(CC) -c $(CFLAGS) -o $@ $< + -- cgit v1.2.3