aboutsummaryrefslogtreecommitdiffstats
path: root/progs/egl/opengles1/screen/Makefile
blob: 5b2a59c71cac35daeb9f9ac95b86117dc41c48ab (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
# progs/egl/opengles1/screen/Makefile

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

ES1_CFLAGS = -I$(TOP)/include
ES1_LIBS = -L$(TOP)/$(LIB_DIR) -lEGL -lGLESv1_CM

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

WINSYS_OBJS = winsys.o

PROGRAMS = \
	gears \
	tri

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

default: $(PROGRAMS)

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

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

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