Mercurial > MadButterfly
annotate src/Makefile.pmake @ 519:7a1b17ebb3b4 Android_Skia
Change documentation for zeroing
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Thu, 17 Dec 2009 16:09:46 +0800 |
parents | 50d253d0fcba |
children | 586e50f82c1f |
rev | line source |
---|---|
33
d82749f77108
Fix bug of demo and remove *_fill() and *_stroke().
Thinker K.F. Li <thinker@branda.to>
parents:
30
diff
changeset
|
1 SRCS = coord.c geo.c shape_path.c shape_text.c shape_rect.c \ |
257
50d253d0fcba
Simple image loader and image shape.
Thinker K.F. Li <thinker@branda.to>
parents:
235
diff
changeset
|
2 shape_image.c \ |
73
9ab15ebc9061
Observer for mouse events
Thinker K.F. Li <thinker@branda.to>
parents:
41
diff
changeset
|
3 redraw_man.c timer.c animate.c paint.c event.c observer.c \ |
116
1d74eb3861b7
move animation actions from animate.c to files.
Thinker K.F. Li <thinker@branda.to>
parents:
108
diff
changeset
|
4 X_supp.c timertool.c tools.c shift.c chgcolor.c \ |
257
50d253d0fcba
Simple image loader and image shape.
Thinker K.F. Li <thinker@branda.to>
parents:
235
diff
changeset
|
5 visibility.c rotate.c prop.c mouse.c img_ldr.c |
5
9c331ec9e210
SVG path is partially supported
Thinker K.F. Li <thinker@branda.to>
parents:
4
diff
changeset
|
6 OBJS = ${SRCS:C/(.*)\.c/\1.o/g} |
235 | 7 TESTCASE_SRCS = ${SRCS:C/X_supp\.c//} |
8 TESTCASE_OBJS = ${TESTCASE_SRCS:C/(.*)\.c/testcase-\1.o/g} | |
224
29e1b2bffe4c
X backend only sent EVT_MOUSE_MOVE_RAW to MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
171
diff
changeset
|
9 CFLAGS+= -Wall -I../include -I/usr/local/include \ |
29e1b2bffe4c
X backend only sent EVT_MOUSE_MOVE_RAW to MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
171
diff
changeset
|
10 `pkg-config --cflags cairo` |
5
9c331ec9e210
SVG path is partially supported
Thinker K.F. Li <thinker@branda.to>
parents:
4
diff
changeset
|
11 LDFLAGS = `pkg-config --libs cairo` |
108 | 12 BINS = libmbfly.a X_main |
13 PREFIX?=/usr/local/ | |
14 HEADERS= X_supp.h animate.h mb.h mb_timer.h mb_types.h \ | |
15 observer.h paint.h redraw_man.h shapes.h tools.h | |
16 MKDIR?= mkdir -p | |
1 | 17 |
2 | 18 all: $(BINS) |
1 | 19 |
108 | 20 install: $(BINS) |
21 $(INSTALL) -d ${PREFIX}include/mb | |
22 .for i in $(HEADERS) | |
23 $(INSTALL) -o root -m 0644 ${i} ${PREFIX}include/mb/ | |
24 .endfor | |
25 $(INSTALL) -o root libmbfly.a ${PREFIX}lib/ | |
26 | |
27 uninstall: | |
28 .for i in $(HEADERS) | |
29 rm -f ${PREFIX}include/mb/${i} | |
30 .endfor | |
31 rm -f ${PREFIX}lib/libmbfly.a | |
32 rmdir ${PREFIX}include/mb/ | |
33 | |
1 | 34 testcase: testcase.o $(TESTCASE_OBJS) |
35 $(CC) $(LDFLAGS) -o $@ $(.ALLSRC) -L/usr/local/lib -lcunit | |
36 | |
78 | 37 libmbfly.a: $(OBJS) |
38 $(AR) -cr $@ $(.ALLSRC) | |
39 | |
40 | |
1 | 41 .for i in $(TESTCASE_OBJS) |
42 ${i}: ${i:C/testcase-(.*).o/\1.c/} | |
43 $(CC) $(CFLAGS) -DUNITTEST -g -c -o $@ $(.ALLSRC) | |
44 .endfor | |
45 | |
46 testcase.o: testcase.c | |
47 $(CC) $(CFLAGS) -c $(.ALLSRC) | |
48 | |
78 | 49 X_main: X_main.o libmbfly.a |
4
399517bf65dc
Add rules for X_main to Makefile
Thinker K.F. Li <thinker@branda.to>
parents:
2
diff
changeset
|
50 $(CC) $(CFALGS) `pkg-config --libs cairo` -o $@ $(.ALLSRC) |
399517bf65dc
Add rules for X_main to Makefile
Thinker K.F. Li <thinker@branda.to>
parents:
2
diff
changeset
|
51 |
399517bf65dc
Add rules for X_main to Makefile
Thinker K.F. Li <thinker@branda.to>
parents:
2
diff
changeset
|
52 X_main.o: X_main.c |
399517bf65dc
Add rules for X_main to Makefile
Thinker K.F. Li <thinker@branda.to>
parents:
2
diff
changeset
|
53 $(CC) $(CFLAGS) `pkg-config --cflags cairo` -c $(.ALLSRC) |
399517bf65dc
Add rules for X_main to Makefile
Thinker K.F. Li <thinker@branda.to>
parents:
2
diff
changeset
|
54 |
1 | 55 clean: |
123
9e2316dc6ecb
Program completion events
Thinker K.F. Li <thinker@branda.to>
parents:
117
diff
changeset
|
56 for i in *.o *~ *.core $(SHAPE_OBJS) $(BINS) testcase; do \ |
1 | 57 echo "delete $$i"; \ |
58 rm -f $$i; \ | |
59 done | |
18
0f3baa488a62
Support solid color paint for fill.
Thinker K.F. Li <thinker@branda.to>
parents:
15
diff
changeset
|
60 |
0f3baa488a62
Support solid color paint for fill.
Thinker K.F. Li <thinker@branda.to>
parents:
15
diff
changeset
|
61 depend: |
0f3baa488a62
Support solid color paint for fill.
Thinker K.F. Li <thinker@branda.to>
parents:
15
diff
changeset
|
62 mkdep $(CFLAGS) $(SRCS) |