summaryrefslogtreecommitdiff
path: root/progs/egl/Makefile
blob: 25de6e1f70387504f6c89fe4a3a74dc4029121a8 (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
# progs/egl/Makefile

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


INCLUDE_DIRS = -I$(TOP)/include

HEADERS = $(TOP)/include/GLES/egl.h
LIB_DEP = $(TOP)/$(LIB_DIR)/libEGL.so

LIBS = -L$(TOP)/$(LIB_DIR) -lEGL -lGL

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


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



default: $(PROGRAMS)

demo1: demo1.o $(HEADERS) $(LIB_DEP)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(LIBDRM_LIB)

demo2: demo2.o $(HEADERS) $(LIB_DEP)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(LIBDRM_LIB)

demo3: demo3.o $(HEADERS) $(LIB_DEP)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(LIBDRM_LIB)

egltri: egltri.o $(HEADERS) $(LIB_DEP)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(LIBDRM_LIB)

eglinfo: eglinfo.o $(HEADERS) $(LIB_DEP)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS)

eglgears: eglgears.o $(HEADERS) $(LIB_DEP)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(LIBDRM_LIB) -lm

eglscreen: eglscreen.o $(HEADERS) $(LIB_DEP)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(LIBDRM_LIB)

peglgears: peglgears.o $(HEADERS) $(LIB_DEP)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(LIBDRM_LIB) -lm

xeglgears: xeglgears.o $(HEADERS) $(LIB_DEP)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) -lm -L$(libdir) -lX11

xeglthreads: xeglthreads.o $(HEADERS) $(LIB_DEP)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) -lm -L$(libdir) -lX11

xegl_tri: xegl_tri.o $(HEADERS) $(LIB_DEP)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) -lm -L$(libdir) -lX11

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