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