summaryrefslogtreecommitdiffstats
path: root/progs/openvg/demos/Makefile
blob: 7ecb987f9d146dba3b2102623ad8610f7cd44638 (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
# progs/vg/Makefile

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

VG_LIBS=-lm -pthread -lEGL -lOpenVG
INCLUDE_DIRS = -I$(TOP)/include

PROGRAMS = \
	gears \
        lion

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



default: $(PROGRAMS)


gears: gears.o
	$(CC) $(CFLAGS) gears.o -L$(TOP)/$(LIB_DIR) $(VG_LIBS)  -o $@

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


lion: lion.o lion-render.o
	$(CC) $(CFLAGS) lion.o lion-render.o -L$(TOP)/$(LIB_DIR) $(VG_LIBS) -o $@

lion.o: lion.c lion-render.h $(HEADERS)
	$(CC) -c $(CFLAGS) -I$(TOP)/include lion.c
lion-render.o: lion-render.c lion-render.h $(HEADERS)
	$(CC) -c $(CFLAGS) -I$(TOP)/include lion-render.c


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