1 ## Makefile.am fragment sourced by src/Makefile.am.
3 #
4 # Miscellaneous unsystematized and temporary helper utilities
5 #
6 # libspchelp - canvas utilities, specific canvas items
7 #
9 helper/all: helper/libspchelp.a
11 helper/clean:
12 rm -f helper/libspchelp.a $(helper_libspchelp_a_OBJECTS)
14 helper/unit-menu.$(OBJEXT): helper/sp-marshal.h
16 helper_libspchelp_a_SOURCES = \
17 helper/action.cpp \
18 helper/action.h \
19 helper/geom.cpp \
20 helper/geom.h \
21 helper/geom-curves.h \
22 helper/geom-nodetype.cpp \
23 helper/geom-nodetype.h \
24 helper/gnome-utils.cpp \
25 helper/gnome-utils.h \
26 helper/helper-forward.h \
27 helper/png-write.cpp \
28 helper/png-write.h \
29 helper/sp-marshal.cpp \
30 helper/sp-marshal.h \
31 helper/stlport.h \
32 helper/unit-menu.cpp \
33 helper/unit-menu.h \
34 helper/unit-tracker.cpp \
35 helper/unit-tracker.h \
36 helper/units.cpp \
37 helper/units.h \
38 helper/window.cpp \
39 helper/window.h \
40 helper/stock-items.cpp \
41 helper/stock-items.h
43 # cmp exits with status 0 when there are no differences. "if" executes the commands
44 # after "then" when the exit status of the if command is 0 (this is crazy).
45 helper/sp-marshal.h: helper/sp-marshal.list
46 glib-genmarshal --prefix=sp_marshal --header $(srcdir)/helper/sp-marshal.list > helper/tmp.sp-marshal.h
47 if cmp -s helper/sp-marshal.h helper/tmp.sp-marshal.h; \
48 then rm helper/tmp.sp-marshal.h; \
49 else mv helper/tmp.sp-marshal.h helper/sp-marshal.h; fi
51 helper/sp-marshal.cpp: helper/sp-marshal.list helper/sp-marshal.h
52 ( echo '#include "helper/sp-marshal.h"' && \
53 glib-genmarshal --prefix=sp_marshal --body $(srcdir)/helper/sp-marshal.list ) \
54 > helper/tmp.sp-marshal.cpp; \
55 if cmp -s helper/sp-marshal.cpp helper/tmp.sp-marshal.cpp; \
56 then rm helper/tmp.sp-marshal.cpp; \
57 else mv helper/tmp.sp-marshal.cpp helper/sp-marshal.cpp; fi
59 helper/sp-marshal.cpp helper/sp-marshal.h: helper/sp-marshal.list
61 # ######################
62 # ### CxxTest stuff ####
63 # ######################
64 helper_testsuites = \
65 $(srcdir)/helper/units-test.h
67 helper_test_helper_SOURCES = \
68 helper/test-helper.cpp \
69 $(helper_testsuites)
71 helper_test_helper_LDADD = \
72 helper/libspchelp.a \
73 -lglib-2.0
75 helper/test-helper.cpp: $(helper_testsuites) helper/Makefile_insert $(CXXTEST_TEMPLATE)
76 $(CXXTESTGEN) -o xml/test-xml.cpp $(helper_testsuites)