From 483e4eaa3ec57807b5552f91c7a39f83d69d594b Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 3 Dec 2010 16:51:17 +0000 Subject: Add incomplete LibDOM example. svn path=/trunk/dom/; revision=10953 --- examples/makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 examples/makefile (limited to 'examples/makefile') 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 $@ $< + -- cgit v1.2.3