diff options
Diffstat (limited to '')
-rw-r--r-- | contrib/examples/highlighter/Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/contrib/examples/highlighter/Makefile b/contrib/examples/highlighter/Makefile new file mode 100644 index 0000000..29e1402 --- /dev/null +++ b/contrib/examples/highlighter/Makefile @@ -0,0 +1,25 @@ +CFLAGS ?= -O3 -march=native +CFLAGS += -std=gnu99 +CFLAGS += -Wall +CFLAGS += -MMD -MP + +highlight: highlight.o highlighter.o + +fuzz: CC := clang +fuzz: CFLAGS += -fsanitize=fuzzer +fuzz: fuzz.c highlighter.c + +gui/Makefile: gui/highlight.pro + cd gui && qmake +gui: gui/Makefile + @$(MAKE) -C gui + +clean: + rm -f highlight fuzz *.o *.d + @if [ -f gui/Makefile ]; then $(MAKE) -C gui distclean; fi + +.PHONY: clean gui +.DEFAULT_GOAL: highlight +MAKEFLAGS += --no-print-directory + +-include *.d |