summaryrefslogtreecommitdiff
path: root/tests/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile16
1 files changed, 12 insertions, 4 deletions
diff --git a/tests/Makefile b/tests/Makefile
index af20182..6b91c9b 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -5,19 +5,27 @@ LD := ld
all: test
-test_strlcpy: test_strlcpy.o
-
test_strlcpy: test_strlcpy.o ../src/string.o
$(CC) -o test_strlcpy test_strlcpy.o ../src/string.o
test_strlcpy.o: test_strlcpy.c
$(CC) $(CFLAGS) $(INCLUDES) -c -o test_strlcpy.o test_strlcpy.c
+test_itoa: test_itoa.o ../src/stdlib.o ../src/string.o
+ $(CC) -o test_itoa test_itoa.o ../src/stdlib.o ../src/string.o
+
+test_itoa.o: test_itoa.c ../src/stdlib.o
+ $(CC) $(CFLAGS) $(INCLUDES) -c -o test_itoa.o test_itoa.c
+
../src/string.o: ../src/string.c
$(CC) $(CFLAGS) -c -o ../src/string.o ../src/string.c
-test: test_strlcpy
+../src/stdlib.o: ../src/stdlib.c
+ $(CC) $(CFLAGS) -c -o ../src/stdlib.o ../src/stdlib.c
+
+test: test_strlcpy test_itoa
./test_strlcpy
+ ./test_itoa
clean:
- -rm -f test_strlcpy *.o
+ -rm -f test_strlcpy test_itoa *.o