summaryrefslogtreecommitdiffstats
path: root/progs/egl/openvg/trivial/Makefile
blob: 8f6d7abe89ad86491dcd2a84dec42faa34c932bf (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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# progs/egl/openvg/trivial/Makefile
# These programs aren't intended to be included with the normal distro.
# They're not too interesting but they're good for testing.

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

INCLUDES = -I. -I$(TOP)/include
LIBS=-L$(TOP)/$(LIB_DIR) -lm -lX11 -lEGL -lOpenVG -lpthread
CFLAGS += $(INCLUDES)

HEADERS=eglcommon.h

PROGRAMS = \
        arc \
        cap \
        clear \
        coord \
        dash \
        ellipse \
        filter \
        gradorigin \
        lineto \
        lingrad \
        lookup \
        mask4 \
        mask \
        path3 \
        radialgrad \
        readpixels \
        roundedrect \
        star-nonzero \
        star-oddeven \
        stroke2 \
        stroke \
        vguarc


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



default: $(PROGRAMS)


arc: arc.c eglcommon.o
	$(CC) $(CFLAGS) $^ $(LIBS)  $(APP_LIB_DEPS) -o $@

cap: cap.c eglcommon.o
	$(CC) $(CFLAGS) $^ $(LIBS)  $(APP_LIB_DEPS) -o $@

clear: clear.c eglcommon.o
	$(CC) $(CFLAGS) $^ $(LIBS)  $(APP_LIB_DEPS) -o $@

coord: coord.c eglcommon.o
	$(CC) $(CFLAGS) $^ $(LIBS)  $(APP_LIB_DEPS) -o $@

dash: dash.c eglcommon.o
	$(CC) $(CFLAGS) $^ $(LIBS)  $(APP_LIB_DEPS) -o $@

ellipse: ellipse.c eglcommon.o
	$(CC) $(CFLAGS) $^ $(LIBS)  $(APP_LIB_DEPS) -o $@

filter: filter.c eglcommon.o
	$(CC) $(CFLAGS) $^ $(LIBS)  $(APP_LIB_DEPS) -o $@

gradorigin: gradorigin.c eglcommon.o
	$(CC) $(CFLAGS) $^ $(LIBS)  $(APP_LIB_DEPS) -o $@

image: image.c eglcommon.o
	$(CC) $(CFLAGS) $^ $(LIBS)  $(APP_LIB_DEPS) -o $@

lineto: lineto.c eglcommon.o
	$(CC) $(CFLAGS) $^ $(LIBS)  $(APP_LIB_DEPS) -o $@

lingrad: lingrad.c eglcommon.o
	$(CC) $(CFLAGS) $^ $(LIBS)  $(APP_LIB_DEPS) -o $@

lookup: lookup.c eglcommon.o
	$(CC) $(CFLAGS) $^ $(LIBS)  $(APP_LIB_DEPS) -o $@

mask: mask.c eglcommon.o
	$(CC) $(CFLAGS) $^ $(LIBS)  $(APP_LIB_DEPS) -o $@

mask4: mask4.c eglcommon.o
	$(CC) $(CFLAGS) $^ $(LIBS)  $(APP_LIB_DEPS) -o $@

path3: path3.c eglcommon.o
	$(CC) $(CFLAGS) $^ $(LIBS)  $(APP_LIB_DEPS) -o $@

pattern: pattern.c eglcommon.o
	$(CC) $(CFLAGS) $^ $(LIBS)  $(APP_LIB_DEPS) -o $@

radialgrad: radialgrad.c eglcommon.o
	$(CC) $(CFLAGS) $^ $(LIBS)  $(APP_LIB_DEPS) -o $@

readpixels: readpixels.c eglcommon.o
	$(CC) $(CFLAGS) $^ $(LIBS)  $(APP_LIB_DEPS) -o $@

roundedrect: roundedrect.c eglcommon.o
	$(CC) $(CFLAGS) $^ $(LIBS)  $(APP_LIB_DEPS) -o $@

star-nonzero: star-nonzero.c eglcommon.o
	$(CC) $(CFLAGS) $^ $(LIBS)  $(APP_LIB_DEPS) -o $@

star-oddeven: star-oddeven.c eglcommon.o
	$(CC) $(CFLAGS) $^ $(LIBS)  $(APP_LIB_DEPS) -o $@

stroke: stroke.c eglcommon.o
	$(CC) $(CFLAGS) $^ $(LIBS)  $(APP_LIB_DEPS) -o $@

stroke2: stroke2.c eglcommon.o
	$(CC) $(CFLAGS) $^ $(LIBS)  $(APP_LIB_DEPS) -o $@

vguarc: vguarc.c eglcommon.o
	$(CC) $(CFLAGS) $^ $(LIBS)  $(APP_LIB_DEPS) -o $@



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


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