From 243345506ea284242cd2b10844996f37080bde5a Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 13 May 2021 20:00:21 +0100 Subject: Perf tester: Add sample build commands and clean target. --- perf/example.mk | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'perf') 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) -- cgit v1.2.3