wireguard-tools/contrib/highlighter/Makefile
Jason A. Donenfeld ee88038986 contrib: introduce simple highlighter library
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-01-23 14:29:44 +01:00

25 lines
477 B
Makefile

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