blob: 1801d0ea1a2025365e4bcfa55db957400e4b199d (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
## Makefile.am fragment sourced by src/Makefile.am.
#
# Miscellaneous unsystematized and temporary helper utilities
#
# libspchelp - canvas utilities, specific canvas items
#
helper/all: helper/libspchelp.a
helper/clean:
rm -f helper/libspchelp.a $(helper_libspchelp_a_OBJECTS)
helper/unit-menu.$(OBJEXT): helper/sp-marshal.h
helper_libspchelp_a_SOURCES = \
helper/action.cpp \
helper/action.h \
helper/geom.cpp \
helper/geom.h \
helper/geom-curves.h \
helper/geom-nodetype.cpp \
helper/geom-nodetype.h \
helper/gnome-utils.cpp \
helper/gnome-utils.h \
helper/helper-forward.h \
helper/png-write.cpp \
helper/png-write.h \
helper/recthull.h \
helper/sp-marshal.cpp \
helper/sp-marshal.h \
helper/stlport.h \
helper/unit-menu.cpp \
helper/unit-menu.h \
helper/unit-tracker.cpp \
helper/unit-tracker.h \
helper/units.cpp \
helper/units.h \
helper/window.cpp \
helper/window.h \
helper/stock-items.cpp \
helper/stock-items.h
# cmp exits with status 0 when there are no differences. "if" executes the commands
# after "then" when the exit status of the if command is 0 (this is crazy).
helper/sp-marshal.h: helper/sp-marshal.list
glib-genmarshal --prefix=sp_marshal --header $(srcdir)/helper/sp-marshal.list > helper/tmp.sp-marshal.h
if cmp -s helper/sp-marshal.h helper/tmp.sp-marshal.h; \
then rm helper/tmp.sp-marshal.h; \
else mv helper/tmp.sp-marshal.h helper/sp-marshal.h; fi
helper/sp-marshal.cpp: helper/sp-marshal.list helper/sp-marshal.h
( echo '#include "helper/sp-marshal.h"' && \
glib-genmarshal --prefix=sp_marshal --body $(srcdir)/helper/sp-marshal.list ) \
> helper/tmp.sp-marshal.cpp; \
if cmp -s helper/sp-marshal.cpp helper/tmp.sp-marshal.cpp; \
then rm helper/tmp.sp-marshal.cpp; \
else mv helper/tmp.sp-marshal.cpp helper/sp-marshal.cpp; fi
helper/sp-marshal.cpp helper/sp-marshal.h: helper/sp-marshal.list
# ######################
# ### CxxTest stuff ####
# ######################
helper_testsuites = \
$(srcdir)/helper/units-test.h
helper_test_helper_SOURCES = \
helper/test-helper.cpp \
$(helper_testsuites)
helper_test_helper_LDADD = \
helper/libspchelp.a \
-lglib-2.0
helper/test-helper.cpp: $(helper_testsuites) helper/Makefile_insert $(CXXTEST_TEMPLATE)
$(CXXTESTGEN) -o xml/test-xml.cpp $(helper_testsuites)
|