diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2021-05-13 20:00:21 +0100 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2021-05-13 20:03:47 +0100 |
commit | 243345506ea284242cd2b10844996f37080bde5a (patch) | |
tree | c3e54e9bac467e6d61f192e60c409e737fd76217 | |
parent | 0ddca8678be10d63548c1769ef0ebcd91e695718 (diff) | |
download | libhubbub-243345506ea284242cd2b10844996f37080bde5a.tar.gz libhubbub-243345506ea284242cd2b10844996f37080bde5a.tar.bz2 |
Perf tester: Add sample build commands and clean target.
-rw-r--r-- | perf/example.mk | 12 |
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) |