diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2010-12-03 16:51:17 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2010-12-03 16:51:17 +0000 |
commit | 16f5f761c89188d5d80defb40748f1c8b1a3b0fd (patch) | |
tree | ae692b928f94a2673717fedfb62c23eef107e370 /examples/makefile | |
parent | 7afd0d75ff4043cfe6b08ec4aab06eaffbaaf47d (diff) | |
download | libdom-16f5f761c89188d5d80defb40748f1c8b1a3b0fd.tar.gz libdom-16f5f761c89188d5d80defb40748f1c8b1a3b0fd.tar.bz2 |
Add incomplete LibDOM example.
svn path=/trunk/dom/; revision=10953
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..fc315cc --- /dev/null +++ b/examples/makefile @@ -0,0 +1,18 @@ +CC := gcc +LD := gcc + +CFLAGS := `pkg-config --cflags libdom` `pkg-config --cflags libwapcaplet` +LDFLAGS := `pkg-config --libs libdom` `pkg-config --libs libwapcaplet` + +SRC := dom-structure-dump.c + +dom-structure-dump: $(SRC:.c=.o) + @$(LD) -o $@ $^ $(LDFLAGS) + +.PHONY: clean +clean: + $(RM) dom-structure-dump $(SRC:.c=.o) + +%.o: %.c + @$(CC) -c $(CFLAGS) -o $@ $< + |