summaryrefslogtreecommitdiff
path: root/perf/example.mk
diff options
context:
space:
mode:
Diffstat (limited to 'perf/example.mk')
-rw-r--r--perf/example.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/perf/example.mk b/perf/example.mk
index 7304ebb..a45fc8a 100644
--- a/perf/example.mk
+++ b/perf/example.mk
@@ -1,3 +1,10 @@
+# From the top level:
+#
+# make -C perf -f example.mk clean
+# make -C perf -f example.mk
+# time ./perf/libxml2 ~/Downloads/html5.html
+# time ./perf/hubbub ~/Downloads/html5.html
+
all: libxml2 hubbub
CC = gcc
@@ -15,3 +22,8 @@ hubbub: hubbub.c
hubbub: CFLAGS += `pkg-config --cflags libparserutils libhubbub`
hubbub: $(HUBBUB_OBJS)
gcc -o hubbub $(HUBBUB_OBJS) `pkg-config --libs libhubbub libparserutils`
+
+.PHONY: clean
+clean:
+ $(RM) hubbub $(HUBBUB_OBJS)
+ $(RM) libxml2 $(LIBXML2_OBJS)