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

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

LIB  = x11 utils log

CFLAGS != pkg-config --cflags ${LIB}
LFLAGS != pkg-config --libs ${LIB}

CFLAGS += -I../build/include
LFLAGS += ../build/debug/static/libcherry.a

all: init-lib ${OBJ} ${NAME}

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

init-lib:
	cd ../ && make debug-static

${NAME}:
	${CC} ${LFLAGS} ${OBJ} -o $@