Compare commits

..

2 Commits

Author SHA1 Message Date
kilroy
2a7bd4bef7 Added feature to run after compiling in Makefile 2025-11-28 19:43:53 -05:00
kilroy
b222c27f46 Fixed tests 2025-11-28 19:41:37 -05:00
2 changed files with 9 additions and 0 deletions

View File

@@ -29,6 +29,10 @@ $(OBJS): dir
@mkdir -p $(BUILD_DIR)/$(@D) @mkdir -p $(BUILD_DIR)/$(@D)
@$(CC) $(CFLAGS) -o $(BUILD_DIR)/$@ -c $*.c @$(CC) $(CFLAGS) -o $(BUILD_DIR)/$@ -c $*.c
# Compiles and runs
run: dir $(OBJS) $(NAME)
@$(BIN_DIR)/$(NAME)
# Runs CUnit tests # Runs CUnit tests
# test: dir # test: dir
# @$(CC) $(CFLAGS) -lcunit -o $(BIN_DIR)/$(NAME)_test $(TESTS_DIR)/*.c # @$(CC) $(CFLAGS) -lcunit -o $(BIN_DIR)/$(NAME)_test $(TESTS_DIR)/*.c

5
tests/other_src.c Normal file
View File

@@ -0,0 +1,5 @@
/* For adding all necessary source files.
* I could just do symlinks rather than this.
*/
#include "../src/lenstr.c"