From 1c11a13ff33873bcc79d4597d31cd252d5c6c1ae Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Fri, 4 Oct 2024 19:41:10 -0400 Subject: refactor masm to add codegen step --- makefile.mk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'makefile.mk') diff --git a/makefile.mk b/makefile.mk index 8135205..e004a64 100644 --- a/makefile.mk +++ b/makefile.mk @@ -3,7 +3,7 @@ CFLAGS += -std=gnu2x # add include directory -CFLAGS += -isystem ../include +CFLAGS += -isystem ../include -DPREFIX=$(PREFIX) INCLUDE += ../include # add lib directory @@ -13,7 +13,7 @@ H_SRC = $(shell find $(SRC) $(INCLUDE) -type f -name "*.h") C_SRC = $(shell find $(SRC) -type f -name "*.c") C_OBJ = $(patsubst %.c,$(BIN)/%.o,$(C_SRC)) -.PHONY: clean build run test +.PHONY: clean build run fuzz build: $(BIN)/$(OUT) @@ -24,8 +24,8 @@ clean: run: build $(BIN)/$(OUT) -test: - make -C ../test $(OUT) +fuzz: clean + make -C . build CC=afl-cc LD=afl-cc mkdir -p ../fuzz rm -fr ../fuzz/$(OUT) afl-fuzz -i ../test/$(OUT) -o ../fuzz -M $(OUT) -- $(BIN)/$(OUT) @@ -- cgit v1.2.3-freya