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
45 $(CC
) -c
-I
$(INCDIR
) framework.c
-o framework.o
48 $(CC
) -c
-I
$(INCDIR
) cltest.c
-o cltest.o
51 $(CC
) -c
-I
$(INCDIR
) sotest.c
-o sotest.o
54 $(CC
) -c
-I
$(INCDIR
) vstest.c
-o vstest.o
60 framework.c
: framework.h