diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-01-08 18:50:00 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-01-08 18:50:00 +0000 |
commit | b6726570454264768e5e08d3ec2a3e8e9e333daa (patch) | |
tree | dc57347a5cdfe0b4afaea95f5ba88babbed6d70c /examples/Mkfile | |
parent | 347c2f7743996706d96a735b16fa7429f4ac223e (diff) | |
download | libhubbub-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/Mkfile | 18 |
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 $@ $< + |