1 ##############################################
2 #
3 # Test makefile for InkscapeStreams
4 #
5 ##############################################
8 CC = gcc
9 CXX = g++
12 INC = -I. -I..
14 XSLT_CFLAGS = `pkg-config --cflags libxslt`
15 XSLT_LIBS = `pkg-config --libs libxslt`
17 GLIBMM_CFLAGS = `pkg-config --cflags glibmm-2.4`
18 GLIBMM_LIBS = `pkg-config --libs glibmm-2.4`
20 CFLAGS = -g $(GLIBMM_CFLAGS) $(XSLT_CFLAGS)
21 LIBS = $(GLIBMM_LIBS) $(XSLT_LIBS) ../uri.o -lz
23 OBJ = \
24 inkscapestream.o \
25 base64stream.o \
26 gzipstream.o \
27 stringstream.o \
28 uristream.o \
29 xsltstream.o \
30 ftos.o
32 all: streamtest
34 streamtest: inkscapestream.h libstream.a streamtest.o
35 $(CXX) -o streamtest streamtest.o libstream.a $(LIBS)
37 libstream.a: $(OBJ)
38 ar crv libstream.a $(OBJ)
41 .cpp.o:
42 $(CXX) $(CFLAGS) $(INC) -c -o $@ $<
44 clean:
45 -$(RM) *.o *.a
46 -$(RM) streamtest