summaryrefslogtreecommitdiff
path: root/examples/makefile
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2010-12-03 16:51:17 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2010-12-03 16:51:17 +0000
commit483e4eaa3ec57807b5552f91c7a39f83d69d594b (patch)
treeae692b928f94a2673717fedfb62c23eef107e370 /examples/makefile
parentc46af7ce360697ec321284f20c26e5d98976d606 (diff)
downloadlibdom-483e4eaa3ec57807b5552f91c7a39f83d69d594b.tar.gz
libdom-483e4eaa3ec57807b5552f91c7a39f83d69d594b.tar.bz2
Add incomplete LibDOM example.
svn path=/trunk/dom/; revision=10953
Diffstat (limited to 'examples/makefile')
-rw-r--r--examples/makefile18
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 $@ $<
+