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
b5c0162ccf69 Coordination tranforming
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
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
565b55508c8d More dox
Thinker K.F. Li <thinker@branda.to>
parents: 78
diff changeset
10 BINS = libmbfly.a X_main
565b55508c8d More dox
Thinker K.F. Li <thinker@branda.to>
parents: 78
diff changeset
11 PREFIX?=/usr/local/
565b55508c8d More dox
Thinker K.F. Li <thinker@branda.to>
parents: 78
diff changeset
12 HEADERS= X_supp.h animate.h mb.h mb_timer.h mb_types.h \
565b55508c8d More dox
Thinker K.F. Li <thinker@branda.to>
parents: 78
diff changeset
13 observer.h paint.h redraw_man.h shapes.h tools.h
565b55508c8d More dox
Thinker K.F. Li <thinker@branda.to>
parents: 78
diff changeset
14 MKDIR?= mkdir -p
1
b5c0162ccf69 Coordination tranforming
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
15
2
31402929c587 Transform position
Thinker K.F. Li <thinker@branda.to>
parents: 1
diff changeset
16 all: $(BINS)
1
b5c0162ccf69 Coordination tranforming
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
17
108
565b55508c8d More dox
Thinker K.F. Li <thinker@branda.to>
parents: 78
diff changeset
18 install: $(BINS)
565b55508c8d More dox
Thinker K.F. Li <thinker@branda.to>
parents: 78
diff changeset
19 $(INSTALL) -d ${PREFIX}include/mb
565b55508c8d More dox
Thinker K.F. Li <thinker@branda.to>
parents: 78
diff changeset
20 .for i in $(HEADERS)
565b55508c8d More dox
Thinker K.F. Li <thinker@branda.to>
parents: 78
diff changeset
21 $(INSTALL) -o root -m 0644 ${i} ${PREFIX}include/mb/
565b55508c8d More dox
Thinker K.F. Li <thinker@branda.to>
parents: 78
diff changeset
22 .endfor
565b55508c8d More dox
Thinker K.F. Li <thinker@branda.to>
parents: 78
diff changeset
23 $(INSTALL) -o root libmbfly.a ${PREFIX}lib/
565b55508c8d More dox
Thinker K.F. Li <thinker@branda.to>
parents: 78
diff changeset
24
565b55508c8d More dox
Thinker K.F. Li <thinker@branda.to>
parents: 78
diff changeset
25 uninstall:
565b55508c8d More dox
Thinker K.F. Li <thinker@branda.to>
parents: 78
diff changeset
26 .for i in $(HEADERS)
565b55508c8d More dox
Thinker K.F. Li <thinker@branda.to>
parents: 78
diff changeset
27 rm -f ${PREFIX}include/mb/${i}
565b55508c8d More dox
Thinker K.F. Li <thinker@branda.to>
parents: 78
diff changeset
28 .endfor
565b55508c8d More dox
Thinker K.F. Li <thinker@branda.to>
parents: 78
diff changeset
29 rm -f ${PREFIX}lib/libmbfly.a
565b55508c8d More dox
Thinker K.F. Li <thinker@branda.to>
parents: 78
diff changeset
30 rmdir ${PREFIX}include/mb/
565b55508c8d More dox
Thinker K.F. Li <thinker@branda.to>
parents: 78
diff changeset
31
1
b5c0162ccf69 Coordination tranforming
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
32 testcase: testcase.o $(TESTCASE_OBJS)
b5c0162ccf69 Coordination tranforming
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
33 $(CC) $(LDFLAGS) -o $@ $(.ALLSRC) -L/usr/local/lib -lcunit
b5c0162ccf69 Coordination tranforming
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
34
78
3645e29e4986 Add runtime for Xlib.
Thinker K.F. Li <thinker@branda.to>
parents: 77
diff changeset
35 libmbfly.a: $(OBJS)
3645e29e4986 Add runtime for Xlib.
Thinker K.F. Li <thinker@branda.to>
parents: 77
diff changeset
36 $(AR) -cr $@ $(.ALLSRC)
3645e29e4986 Add runtime for Xlib.
Thinker K.F. Li <thinker@branda.to>
parents: 77
diff changeset
37
3645e29e4986 Add runtime for Xlib.
Thinker K.F. Li <thinker@branda.to>
parents: 77
diff changeset
38
1
b5c0162ccf69 Coordination tranforming
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
39 .for i in $(TESTCASE_OBJS)
b5c0162ccf69 Coordination tranforming
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
40 ${i}: ${i:C/testcase-(.*).o/\1.c/}
b5c0162ccf69 Coordination tranforming
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
41 $(CC) $(CFLAGS) -DUNITTEST -g -c -o $@ $(.ALLSRC)
b5c0162ccf69 Coordination tranforming
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
42 .endfor
b5c0162ccf69 Coordination tranforming
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
43
b5c0162ccf69 Coordination tranforming
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
44 testcase.o: testcase.c
b5c0162ccf69 Coordination tranforming
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
45 $(CC) $(CFLAGS) -c $(.ALLSRC)
b5c0162ccf69 Coordination tranforming
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
46
78
3645e29e4986 Add runtime for Xlib.
Thinker K.F. Li <thinker@branda.to>
parents: 77
diff changeset
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
b5c0162ccf69 Coordination tranforming
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
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
b5c0162ccf69 Coordination tranforming
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
55 echo "delete $$i"; \
b5c0162ccf69 Coordination tranforming
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
56 rm -f $$i; \
b5c0162ccf69 Coordination tranforming
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
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)