summaryrefslogtreecommitdiffstats
path: root/progs/es2/xegl/Makefile
blob: 88bb0127f837c334ea90a2933d5ebf1e09796e77 (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
# progs/es2/xegl/Makefile

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


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

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) -lX11

PROGRAMS = \
	es2_info \
	tri


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



default: $(PROGRAMS)



es2_info.c:
	cp ../../es1/xegl/es1_info.c es2_info.c

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 $@



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