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

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

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

PROGRAMS = \
        lion \
        sp

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



default: $(PROGRAMS)

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


sp: sp.c eglcommon.o
	$(CC) $(INCLUDE_DIRS) $(CFLAGS) $^  -L$(TOP)/$(LIB_DIR) $(LIBS) $(VG_LIBS)  $(APP_LIB_DEPS) -o $@

eglcommon.o: eglcommon.c $(HEADERS)
	$(CC) -c $(INCLUDE_DIRS) $(CFLAGS) eglcommon.c


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