1 HFUZZ_CC ?= ../../hfuzz_cc/hfuzz-clang 2 CC ?= cc 3 4 CFLAGS += -std=c99 5 6 BIN = terminal-test 7 LIBCLOSE = libclose.so 8 9 all: $(BIN) $(LIBCLOSE) 10 11 $(BIN): $(BIN:=.c) 12 $(HFUZZ_CC) $(CFLAGS) $(LDFLAGS) -o $(BIN) $< 13 14 $(LIBCLOSE): $(LIBCLOSE:.so=.c) 15 $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $(LIBCLOSE) $< 16 17 clean: 18 rm -f -- $(BIN) $(LIBCLOSE) 19