ARB prog parser: fix parameter binding type
[mesa.git] / progs / slang / Makefile
1 # progs/slang/Makefile
2
3 TOP = ../..
4
5 include $(TOP)/configs/current
6
7 INCDIR = $(TOP)/include
8
9 LIB_DEP = $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME)
10
11 LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS)
12
13 #
14 # targets
15 #
16
17 .PHONY: default tests clean
18
19 default: cltest sotest vstest
20
21 tests: default
22 ! ./sotest 2> /dev/null | (grep -e ^[*][*][*])
23 ! ./vstest 2> /dev/null | (grep -e ^[*][*][*])
24 ! ./cltest 2> /dev/null | (grep -e ^[*][*][*])
25
26 clean:
27 -rm -f cltest.o sotest.o vstest.o framework.o cltest sotest vstest
28
29 #
30 # executables
31 #
32
33 cltest: cltest.o framework.o $(LIB_DEP)
34 $(CC) $(CFLAGS) $(LDFLAGS) cltest.o framework.o $(LIBS) -o cltest
35
36 sotest: sotest.o framework.o $(LIB_DEP)
37 $(CC) $(CFLAGS) $(LDFLAGS) sotest.o framework.o $(LIBS) -o sotest
38
39 vstest: vstest.o framework.o $(LIB_DEP)
40 $(CC) $(CFLAGS) $(LDFLAGS) vstest.o framework.o $(LIBS) -o vstest
41
42 #
43 # objects
44 #
45
46 framework.o: framework.c framework.h
47 $(CC) -c -I$(INCDIR) $(CFLAGS) framework.c -o framework.o
48
49 cltest.o: cltest.c framework.h
50 $(CC) -c -I$(INCDIR) $(CFLAGS) cltest.c -o cltest.o
51
52 sotest.o: sotest.c framework.h
53 $(CC) -c -I$(INCDIR) $(CFLAGS) sotest.c -o sotest.o
54
55 vstest.o: vstest.c framework.h
56 $(CC) -c -I$(INCDIR) $(CFLAGS) vstest.c -o vstest.o
57