summaryrefslogtreecommitdiffstats
path: root/progs/egl/opengles2/Makefile
blob: 89feb34acc1d90796c909710a1dff7cd7dbcb7b4 (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
# progs/egl/opengles2/Makefile

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


INCLUDE_DIRS = \
	-I$(TOP)/include \
	-I$(TOP)/progs/egl/eglut \
	$(X11_CFLAGS) \


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


ES2_LIB_DEPS = \
	$(TOP)/$(LIB_DIR)/libEGL.so \
	$(TOP)/$(LIB_DIR)/libGLESv2.so


ES2_LIBS = \
	-L$(TOP)/$(LIB_DIR) -lEGL \
	-L$(TOP)/$(LIB_DIR) -lGLESv2 $(LIBDRM_LIB) $(X11_LIBS) \

PROGRAMS = \
	es2_info \
	tri \
	es2gears


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



default: $(PROGRAMS)



es2_info.c: ../opengles1/es1_info.c
	cp -f $^ $@

es2_info: es2_info.o $(ES2_LIB_DEPS)
	$(CC) $(CFLAGS) es2_info.o $(ES2_LIBS) -o $@

tri: tri.o $(ES2_LIB_DEPS)
	$(CC) $(CFLAGS) tri.o $(ES2_LIBS) -o $@

es2gears: es2gears.o $(ES2_LIB_DEPS)
	$(CC) $(CFLAGS) es2gears.o ../eglut/libeglut-x11.a $(ES2_LIBS) -lm -o $@

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