summaryrefslogtreecommitdiff
path: root/examples/Mkfile
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-01-08 18:50:00 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-01-08 18:50:00 +0000
commitb6726570454264768e5e08d3ec2a3e8e9e333daa (patch)
treedc57347a5cdfe0b4afaea95f5ba88babbed6d70c /examples/Mkfile
parent347c2f7743996706d96a735b16fa7429f4ac223e (diff)
downloadlibhubbub-b6726570454264768e5e08d3ec2a3e8e9e333daa.tar.gz
libhubbub-b6726570454264768e5e08d3ec2a3e8e9e333daa.tar.bz2
Make libxml binding example actually work.
A rudimentary makefile for this, too. svn path=/trunk/hubbub/; revision=5992
Diffstat (limited to 'examples/Mkfile')
-rw-r--r--examples/Mkfile18
1 files changed, 18 insertions, 0 deletions
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 $@ $<
+