Mercurial > MadButterfly
annotate src/Makefile.pmake @ 234:889cdc5f23c5
When a scene is selected to0 edit, we copy all of its elements out of the scene so that inkscape can edit it directly. All elements add or delete by the inkspcae will be put back when we switch the scene. The svg2code.py must recognize this structure.
author | wycc |
---|---|
date | Wed, 24 Dec 2008 23:43:39 +0800 |
parents | 29e1b2bffe4c |
children | 65cabbdd5284 |
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 \ |
73
9ab15ebc9061
Observer for mouse events
Thinker K.F. Li <thinker@branda.to>
parents:
41
diff
changeset
|
2 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
|
3 X_supp.c timertool.c tools.c shift.c chgcolor.c \ |
224
29e1b2bffe4c
X backend only sent EVT_MOUSE_MOVE_RAW to MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
171
diff
changeset
|
4 visibility.c rotate.c prop.c |
5
9c331ec9e210
SVG path is partially supported
Thinker K.F. Li <thinker@branda.to>
parents:
4
diff
changeset
|
5 OBJS = ${SRCS:C/(.*)\.c/\1.o/g} |
1 | 6 TESTCASE_OBJS = ${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
|
7 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
|
8 `pkg-config --cflags cairo` |
5
9c331ec9e210
SVG path is partially supported
Thinker K.F. Li <thinker@branda.to>
parents:
4
diff
changeset
|
9 LDFLAGS = `pkg-config --libs cairo` |
108 | 10 BINS = libmbfly.a X_main |
11 PREFIX?=/usr/local/ | |
12 HEADERS= X_supp.h animate.h mb.h mb_timer.h mb_types.h \ | |
13 observer.h paint.h redraw_man.h shapes.h tools.h | |
14 MKDIR?= mkdir -p | |
1 | 15 |
2 | 16 all: $(BINS) |
1 | 17 |
108 | 18 install: $(BINS) |
19 $(INSTALL) -d ${PREFIX}include/mb | |
20 .for i in $(HEADERS) | |
21 $(INSTALL) -o root -m 0644 ${i} ${PREFIX}include/mb/ | |
22 .endfor | |
23 $(INSTALL) -o root libmbfly.a ${PREFIX}lib/ | |
24 | |
25 uninstall: | |
26 .for i in $(HEADERS) | |
27 rm -f ${PREFIX}include/mb/${i} | |
28 .endfor | |
29 rm -f ${PREFIX}lib/libmbfly.a | |
30 rmdir ${PREFIX}include/mb/ | |
31 | |
1 | 32 testcase: testcase.o $(TESTCASE_OBJS) |
33 $(CC) $(LDFLAGS) -o $@ $(.ALLSRC) -L/usr/local/lib -lcunit | |
34 | |
78 | 35 libmbfly.a: $(OBJS) |
36 $(AR) -cr $@ $(.ALLSRC) | |
37 | |
38 | |
1 | 39 .for i in $(TESTCASE_OBJS) |
40 ${i}: ${i:C/testcase-(.*).o/\1.c/} | |
41 $(CC) $(CFLAGS) -DUNITTEST -g -c -o $@ $(.ALLSRC) | |
42 .endfor | |
43 | |
44 testcase.o: testcase.c | |
45 $(CC) $(CFLAGS) -c $(.ALLSRC) | |
46 | |
78 | 47 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
|
48 $(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
|
49 |
399517bf65dc
Add rules for X_main to Makefile
Thinker K.F. Li <thinker@branda.to>
parents:
2
diff
changeset
|
50 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
|
51 $(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
|
52 |
1 | 53 clean: |
123
9e2316dc6ecb
Program completion events
Thinker K.F. Li <thinker@branda.to>
parents:
117
diff
changeset
|
54 for i in *.o *~ *.core $(SHAPE_OBJS) $(BINS) testcase; do \ |
1 | 55 echo "delete $$i"; \ |
56 rm -f $$i; \ | |
57 done | |
18
0f3baa488a62
Support solid color paint for fill.
Thinker K.F. Li <thinker@branda.to>
parents:
15
diff
changeset
|
58 |
0f3baa488a62
Support solid color paint for fill.
Thinker K.F. Li <thinker@branda.to>
parents:
15
diff
changeset
|
59 depend: |
0f3baa488a62
Support solid color paint for fill.
Thinker K.F. Li <thinker@branda.to>
parents:
15
diff
changeset
|
60 mkdep $(CFLAGS) $(SRCS) |