blob: af20182da669c2c9c4d63f3c217ef40e5ff22ff8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
CC := gcc
CFLAGS := -std=c99 -m32 -ffreestanding -O0 -g -Wall -Werror
INCLUDES = -I../src
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
../src/string.o: ../src/string.c
$(CC) $(CFLAGS) -c -o ../src/string.o ../src/string.c
test: test_strlcpy
./test_strlcpy
clean:
-rm -f test_strlcpy *.o
|