Code

moving trunk for module inkscape
[inkscape.git] / src / dom / Makefile.static
1 ###########################################################################
2 #
3 # Makefile for testing DOM code
4 #
5 ###########################################################################
8 CC = gcc
9 CXX = g++
11 INC = -I.
12 CFLAGS = -g -Wall
13 LIBS =
15 OBJ = \
16 charclass.o      \
17 cssparser.o      \
18 domimpl.o        \
19 domstream.o      \
20 domstring.o      \
21 lsimpl.o         \
22 smilimpl.o       \
23 stringstream.o   \
24 svgimpl.o        \
25 svglsimpl.o      \
26 svgparser.o      \
27 uri.o            \
28 uristream.o      \
29 xmlreader.o      \
30 xpathimpl.o      \
31 xpathparser.o
33 all: testsvg uritest xpathtest
35 testdom: libdom.a testdom.o
36         $(CXX) -o testdom testdom.o libdom.a $(LIBS)
38 testsvg: libdom.a testsvg.o
39         $(CXX) -o testsvg testsvg.o libdom.a $(LIBS)
41 uritest: libdom.a uritest.o
42         $(CXX) -o uritest uritest.o libdom.a $(LIBS)
44 xpathtest: libdom.a xpathtest.o
45         $(CXX) -o xpathtest xpathtest.o libdom.a $(LIBS)
47 libdom.a: $(OBJ)
48         ar crv libdom.a $(OBJ)
50 .cpp.o:
51         $(CXX) $(CFLAGS) $(INC) -c -o $@ $<
53 clean:
54         -$(RM) *.o
55         -$(RM) *.a
56         -$(RM) *.gch
57         -$(RM) *.class
58         -$(RM) testdom
59         -$(RM) testdom.exe
60         -$(RM) testsvg
61         -$(RM) testsvg.exe
62         -$(RM) uritest
63         -$(RM) uritest.exe
64         -$(RM) xpathtest
65         -$(RM) xpathtest.exe
66         -$(RM) core.*
68 ###########################################################################
69 # E N D    O F    F I L E
70 ###########################################################################