blob: 2e3142d4279018254086c385e83023c36d0dccb0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# SPDX-License-Identifier: GPL-2.0-or-later
##############################################
#
# Test makefile for InkscapeStreams
#
##############################################
CC = gcc
CXX = g++
INC = -I. -I..
XSLT_CFLAGS = `pkg-config --cflags libxslt`
XSLT_LIBS = `pkg-config --libs libxslt`
GLIBMM_CFLAGS = `pkg-config --cflags glibmm-2.4`
GLIBMM_LIBS = `pkg-config --libs glibmm-2.4`
CFLAGS = -g $(GLIBMM_CFLAGS) $(XSLT_CFLAGS)
LIBS = $(GLIBMM_LIBS) $(XSLT_LIBS) ../uri.o -lz
OBJ = \
inkscapestream.o \
base64stream.o \
gzipstream.o \
stringstream.o \
uristream.o \
xsltstream.o \
ftos.o
all: streamtest
streamtest: inkscapestream.h libstream.a streamtest.o
$(CXX) -o streamtest streamtest.o libstream.a $(LIBS)
libstream.a: $(OBJ)
ar crv libstream.a $(OBJ)
.cpp.o:
$(CXX) $(CFLAGS) $(INC) -c -o $@ $<
clean:
-$(RM) *.o *.a
-$(RM) streamtest
|