diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-03-24 14:05:12 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-03-24 14:05:12 +0000 |
commit | 59e5b86699b30dddbe173dac2e896764b2a88e46 (patch) | |
tree | 6c3cbb7f980b7243d4bc40224d83ba016db58889 /examples/makefile | |
parent | 0e4adae9299ee174fc7f364210d58da4e15c24e7 (diff) | |
download | libhubbub-59e5b86699b30dddbe173dac2e896764b2a88e46.tar.gz libhubbub-59e5b86699b30dddbe173dac2e896764b2a88e46.tar.bz2 |
First cut at porting hubbub's buildsystem to the core tools
svn path=/trunk/hubbub/; revision=6837
Diffstat (limited to 'examples/makefile')
-rw-r--r-- | examples/makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/makefile b/examples/makefile new file mode 100644 index 0000000..8c5d828 --- /dev/null +++ b/examples/makefile @@ -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 $@ $< + |