From 5b1b3bec3f25ea5fc1f48c269f300c4211a1bac7 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Fri, 19 Apr 2024 16:11:24 -0400 Subject: initial commit; mostly documented. --- Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5a81cb1 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +CFILES := $(wildcard *.c) +CFILES += $(wildcard test/*.c) +OFILES := $(patsubst %.c,%.o,$(CFILES)) + +OUT := malloc-test + +CFLAGS := -Wall -Wextra -Wpedantic + +all: $(OUT) + ./$(OUT) + +clean: + rm $(OFILES) + +$(OUT): ${OFILES} $(JDTLIB) + $(CC) $(OFILES) -o $(OUT) + +%.o: %.c + $(CC) $(CFLAGS) -c $< -o $@ -- cgit v1.2.1