5
include $(TOP)/configs/current
7
INCDIR = $(TOP)/include
9
LIB_DEP = $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME)
15
.PHONY: default tests clean
17
default: cltest sotest vstest
20
! ./sotest 2> /dev/null | (grep -e ^[*][*][*])
21
! ./vstest 2> /dev/null | (grep -e ^[*][*][*])
22
! ./cltest 2> /dev/null | (grep -e ^[*][*][*])
25
rm -f cltest.o sotest.o vstest.o framework.o cltest sotest vstest
31
cltest: cltest.o framework.o $(LIB_DEP)
32
$(CC) cltest.o framework.o $(APP_LIB_DEPS) -o cltest
34
sotest: sotest.o framework.o $(LIB_DEP)
35
$(CC) sotest.o framework.o $(APP_LIB_DEPS) -o sotest
37
vstest: vstest.o framework.o $(LIB_DEP)
38
$(CC) vstest.o framework.o $(APP_LIB_DEPS) -o vstest
44
framework.o: framework.c framework.h
45
$(CC) -c -I$(INCDIR) framework.c -o framework.o
47
cltest.o: cltest.c framework.h
48
$(CC) -c -I$(INCDIR) cltest.c -o cltest.o
50
sotest.o: sotest.c framework.h
51
$(CC) -c -I$(INCDIR) sotest.c -o sotest.o
53
vstest.o: vstest.c framework.h
54
$(CC) -c -I$(INCDIR) vstest.c -o vstest.o