aboutsummaryrefslogtreecommitdiff
path: root/test/Makefile
blob: 5cc71c6a7b39d318362057950c48f920d93124c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# See LICENSE file for copyright and license details.

CC   = cc
SRC != find * -name '*.c'
OBJ  = ${SRC:.c=.o}

CFLAGS  = -Wall -ansi --std=c89 -pedantic\
	-I../src/
LDFLAGS = -L../ -l:libstr.a

tests: test-app
	./test-app

.c.o:
	${CC} ${CFLAGS} -c $< -o $@

test-app: ${OBJ}
	${CC} ${LDFLAGS} -o $@ ${OBJ}

clean:
	rm -f ${test-app} ${OBJ}