Compare commits
2 Commits
b16e085240
...
2a7bd4bef7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2a7bd4bef7 | ||
|
|
b222c27f46 |
4
Makefile
4
Makefile
@@ -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
5
tests/other_src.c
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
/* For adding all necessary source files.
|
||||||
|
* I could just do symlinks rather than this.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "../src/lenstr.c"
|
||||||
Reference in New Issue
Block a user