From 2a7bd4bef7db7598bf0c89897207e73aa1264f88 Mon Sep 17 00:00:00 2001 From: kilroy <> Date: Fri, 28 Nov 2025 19:43:53 -0500 Subject: [PATCH] Added feature to run after compiling in Makefile --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index ff6633d..3d8d095 100644 --- a/Makefile +++ b/Makefile @@ -29,6 +29,10 @@ $(OBJS): dir @mkdir -p $(BUILD_DIR)/$(@D) @$(CC) $(CFLAGS) -o $(BUILD_DIR)/$@ -c $*.c +# Compiles and runs +run: dir $(OBJS) $(NAME) + @$(BIN_DIR)/$(NAME) + # Runs CUnit tests # test: dir # @$(CC) $(CFLAGS) -lcunit -o $(BIN_DIR)/$(NAME)_test $(TESTS_DIR)/*.c