summaryrefslogtreecommitdiff
path: root/progs/es1/xegl/Makefile
blob: 7f684d68e3ba69e37076fbb9fcab1aa876d67433 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# progs/es1/xegl/Makefile

TOP = ../../..
include $(TOP)/configs/current


INCLUDE_DIRS = \
	-I$(TOP)/include \

HEADERS = $(TOP)/include/GLES/egl.h


ES1_LIB_DEPS = \
	$(TOP)/$(LIB_DIR)/libEGL.so \
	$(TOP)/$(LIB_DIR)/libGLESv1_CM.so


ES1_LIBS = \
	-L$(TOP)/$(LIB_DIR) -lEGL \
	-L$(TOP)/$(LIB_DIR) -lGLESv1_CM $(LIBDRM_LIB) -lX11

PROGRAMS = \
	drawtex \
	es1_info \
	msaa \
	pbuffer \
	render_tex \
	torus \
	tri \
	two_win


.c.o:
	$(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $< -o $@



default: $(PROGRAMS)



drawtex: drawtex.o $(ES1_LIB_DEPS)
	$(CC) $(CFLAGS) drawtex.o $(ES1_LIBS) -o $@


es1_info: es1_info.o $(ES1_LIB_DEPS)
	$(CC) $(CFLAGS) es1_info.o $(ES1_LIBS) -o $@


msaa: msaa.o $(ES1_LIB_DEPS)
	$(CC) $(CFLAGS) msaa.o $(ES1_LIBS) -o $@


pbuffer: pbuffer.o $(ES1_LIB_DEPS)
	$(CC) $(CFLAGS) pbuffer.o $(ES1_LIBS) -o $@


render_tex: render_tex.o $(ES1_LIB_DEPS)
	$(CC) $(CFLAGS) render_tex.o $(ES1_LIBS) -o $@


torus: torus.o $(ES1_LIB_DEPS)
	$(CC) $(CFLAGS) torus.o $(ES1_LIBS) -o $@


two_win: two_win.o $(ES1_LIB_DEPS)
	$(CC) $(CFLAGS) two_win.o $(ES1_LIBS) -o $@


tri: tri.o $(ES1_LIB_DEPS)
	$(CC) $(CFLAGS) tri.o $(ES1_LIBS) -o $@


clean:
	rm -f *.o *~
	rm -f $(PROGRAMS)