summaryrefslogtreecommitdiff
path: root/progs/egl/Makefile
blob: fd72f540cae3eba4a709523a5ecdd97a01acfbc1 (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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# progs/egl/Makefile

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


INCLUDE_DIRS = -I$(TOP)/include

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

PROGRAMS = \
	demo1 \
	demo2 \
	demo3 \
	egltri \
	eglinfo \
	eglgears \
	eglscreen \
	peglgears \
	xeglbindtex \
	xeglgears \
	xeglthreads \
	xegl_tri


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



default: $(PROGRAMS)


demo1: demo1.o $(TOP)/$(LIB_DIR)/libEGL.so
	$(CC) $(CFLAGS) $(LDFLAGS) demo1.o -L$(TOP)/$(LIB_DIR) -lEGL $(LIBDRM_LIB) -o $@

demo1.o: demo1.c $(HEADERS)
	$(CC) -c $(CFLAGS) -I$(TOP)/include demo1.c


demo2: demo2.o $(TOP)/$(LIB_DIR)/libEGL.so
	$(CC) $(CFLAGS) $(LDFLAGS) demo2.o -L$(TOP)/$(LIB_DIR) -lEGL -lGL $(LIBDRM_LIB) $(APP_LIB_DEPS) -o $@

demo2.o: demo2.c $(HEADERS)
	$(CC) -c $(CFLAGS) -I$(TOP)/include demo2.c


demo3: demo3.o $(TOP)/$(LIB_DIR)/libEGL.so
	$(CC) $(CFLAGS) $(LDFLAGS) demo3.o -L$(TOP)/$(LIB_DIR) -lEGL -lGL $(LIBDRM_LIB) $(APP_LIB_DEPS) -o $@

demo3.o: demo3.c $(HEADERS)
	$(CC) -c $(CFLAGS) -I$(TOP)/include demo3.c


egltri: egltri.o $(TOP)/$(LIB_DIR)/libEGL.so
	$(CC) $(CFLAGS) egltri.o -L$(TOP)/$(LIB_DIR) -lEGL -lGL $(LIBDRM_LIB) -o $@

egltri.o: egltri.c $(HEADERS)
	$(CC) -c $(CFLAGS) -I$(TOP)/include egltri.c


eglinfo: eglinfo.o $(TOP)/$(LIB_DIR)/libEGL.so
	$(CC) $(CFLAGS) $(LDFLAGS) eglinfo.o -L$(TOP)/$(LIB_DIR) -lEGL -lGL $(LIBDRM_LIB) -o $@

eglinfo.o: eglinfo.c $(HEADERS)
	$(CC) -c $(CFLAGS) -I$(TOP)/include eglinfo.c


eglgears: eglgears.o $(TOP)/$(LIB_DIR)/libEGL.so
	$(CC) $(CFLAGS) $(LDFLAGS) eglgears.o -L$(TOP)/$(LIB_DIR) -lEGL -lGL $(LIBDRM_LIB) $(APP_LIB_DEPS) -o $@

eglgears.o: eglgears.c $(HEADERS)
	$(CC) -c $(CFLAGS) -I$(TOP)/include eglgears.c

eglscreen: eglscreen.o $(TOP)/$(LIB_DIR)/libEGL.so
	$(CC) $(CFLAGS) $(LDFLAGS) eglscreen.o -L$(TOP)/$(LIB_DIR) -lEGL -lGL $(LIBDRM_LIB) $(APP_LIB_DEPS) -o $@

eglscreen.o: eglscreen.c $(HEADERS)
	$(CC) -c $(CFLAGS) -I$(TOP)/include eglscreen.c

peglgears: peglgears.o $(TOP)/$(LIB_DIR)/libEGL.so
	$(CC) $(CFLAGS) peglgears.o -L$(TOP)/$(LIB_DIR) -lEGL -lGL $(LIBDRM_LIB) $(APP_LIB_DEPS) -o $@

peglgears.o: peglgears.c $(HEADERS)
	$(CC) -c $(CFLAGS) -I$(TOP)/include peglgears.c


xeglbindtex: xeglbindtex.o $(TOP)/$(LIB_DIR)/libEGL.so
	$(CC) $(CFLAGS) xeglbindtex.o -L$(TOP)/$(LIB_DIR) -lEGL -lGL $(LIBDRM_LIB) $(APP_LIB_DEPS) -o $@

xeglbindtex.o: xeglbindtex.c $(HEADERS)
	$(CC) -c $(CFLAGS) -I$(TOP)/include xeglbindtex.c

xeglgears: xeglgears.o $(TOP)/$(LIB_DIR)/libEGL.so
	$(CC) $(CFLAGS) xeglgears.o -L$(TOP)/$(LIB_DIR) -lEGL -lGL $(LIBDRM_LIB) $(APP_LIB_DEPS) -o $@

xeglgears.o: xeglgears.c $(HEADERS)
	$(CC) -c $(CFLAGS) -I$(TOP)/include xeglgears.c


xeglthreads: xeglthreads.o $(TOP)/$(LIB_DIR)/libEGL.so
	$(CC) $(CFLAGS) xeglthreads.o -L$(TOP)/$(LIB_DIR) -lEGL -lGL $(LIBDRM_LIB) $(APP_LIB_DEPS) -o $@

xeglthreads.o: xeglthreads.c $(HEADERS)
	$(CC) -c $(CFLAGS) -I$(TOP)/include xeglthreads.c


xegl_tri: xegl_tri.o $(TOP)/$(LIB_DIR)/libEGL.so
	$(CC) $(CFLAGS) xegl_tri.o -L$(TOP)/$(LIB_DIR) -lEGL -lGL $(LIBDRM_LIB) $(APP_LIB_DEPS) -o $@

xegl_tri.o: xegl_tri.c $(HEADERS)
	$(CC) -c $(CFLAGS) -I$(TOP)/include xegl_tri.c


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