1 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
6 lib_LTLIBRARIES = libmoonshot/libmoonshot.la
8 bin_PROGRAMS = src/moonshot
16 -DLOCALEDIR=\""$(localedir)"\" \
17 -I$(top_srcdir)/libmoonshot
24 libmoonshot_libmoonshot_la_CPPFLAGS = \
25 $(libmoonshot_CFLAGS) \
28 libmoonshot_libmoonshot_la_SOURCES = libmoonshot/libmoonshot-common.c
30 libmoonshot_libmoonshot_la_LIBADD = $(libmoonshot_LIBS)
32 include_HEADERS = libmoonshot/libmoonshot.h
33 noinst_HEADERS = libmoonshot/libmoonshot-common.h
35 src_moonshot_SOURCES = \
36 src/moonshot-id.vala \
37 src/moonshot-add-dialog.vala \
38 src/moonshot-idcard-widget.vala \
39 src/moonshot-custom-vbox.vala \
40 src/moonshot-identities-manager.vala \
41 src/moonshot-identity-request.vala \
42 src/moonshot-server.vala \
43 src/moonshot-window.vala \
44 src/moonshot-password-dialog.vala \
45 src/moonshot-utils.vala
47 src_moonshot_LDADD = \
50 src_moonshot_CPPFLAGS = \
56 libmoonshot_libmoonshot_la_LDFLAGS = -no-undefined
58 src_moonshot_CFLAGS = -mwindows
60 AM_CPPFLAGS += -DOS_WIN32
61 AM_VALAFLAGS += --define=OS_WIN32
74 BUILT_SOURCES = libmoonshot/moonshot-msrpc.h \
75 libmoonshot/moonshot-msrpc_s.c \
76 libmoonshot/moonshot-msrpc_c.c
78 DISTCLEANFILES = ${BUILT_SOURCES}
80 libmoonshot/moonshot-msrpc.h: libmoonshot/moonshot-msrpc.idl libmoonshot/moonshot-msrpc.acf
81 ${AM_V_GEN} ${MIDL_WRAPPER} -o libmoonshot -m "${MIDL}" $^
83 libmoonshot/moonshot-msrpc_s.c: libmoonshot/moonshot-msrpc.h
84 libmoonshot/moonshot-msrpc_c.c: libmoonshot/moonshot-msrpc.h
86 libmoonshot_libmoonshot_la_SOURCES += \
87 libmoonshot/libmoonshot-msrpc.c
89 src_moonshot_SOURCES += \
90 src/moonshot-msrpc.vapi
92 nodist_src_moonshot_SOURCES = \
93 libmoonshot/moonshot-msrpc_s.c
95 nodist_libmoonshot_libmoonshot_la_SOURCES = \
96 libmoonshot/moonshot-msrpc_c.c
103 dbusservicedir = $(datadir)/dbus-1/services
104 dbusservice_in_files = org.janet.Moonshot.service.in
105 dbusservice_DATA = $(dbusservice_in_files:.service.in=.service)
107 # Rule to make the service file with bindir expanded
108 $(dbusservice_DATA): $(dbusservice_in_files) Makefile
109 @sed -e "s|\@bindir\@|$(bindir)|" $< > $@
115 libmoonshot_libmoonshot_la_SOURCES += libmoonshot/libmoonshot-dbus.c
117 CLEANFILES = $(dbusservice_DATA)
118 EXTRA_DIST = $(dbusservice_in_files)
123 bin_PROGRAMS += src/moonshot-webp
125 src_moonshot_webp_SOURCES = src/moonshot-webp-parser.vala src/moonshot-id.vala
126 src_moonshot_webp_CPPFLAGS = $(moonshot_CFLAGS) $(AM_CPPFLAGS)
127 src_moonshot_webp_LDADD = $(moonshot_LIBS)
130 moonshot_webp_CFLAGS = -mwindows
138 examples_client_SOURCES = examples/client.c
139 examples_client_CPPFLAGS = $(libmoonshot_CFLAGS) $(AM_CPPFLAGS)
140 examples_client_LDADD = ${top_builddir}/libmoonshot/libmoonshot.la
142 tests_basic_SOURCES = tests/basic.c
143 tests_basic_CPPFLAGS = $(libmoonshot_CFLAGS) $(AM_CPPFLAGS)
144 tests_basic_LDADD = ${top_builddir}/libmoonshot/libmoonshot.la $(moonshot_LIBS)
149 ## A couple of Windows-specific targets:
151 ## 1. Icons. You must have gnome-icon-theme and gnome-icon-theme-symbolic installed
152 ## in c:/build prefix; and ImageMagick installed in c:/tools/ImageMagick. This
153 ## pulls in the icons required by moonshot and converts svg's to png's (we have
154 ## no svg support built in to Windows Gtk+ right now).
158 cp c:/build/share/icons/gnome/48x48/status/avatar-default.png share/icons
159 "${IMAGEMAGICK_CONVERT}" -background none c:/build/share/icons/gnome/scalable/actions/edit-clear-symbolic.svg -size 13x13 share/icons/edit-clear-symbolic.png
160 "${IMAGEMAGICK_CONVERT}" -background none c:/build/share/icons/gnome/scalable/actions/edit-find-symbolic.svg -size 13x13 share/icons/edit-find-symbolic.png
163 ## 2. Installer. You must have the Windows Installer XML toolkit version 3.5
164 ## installed in its default path. Note that this requires at least .NET
165 ## runtime with service packs 1 and 2. The installer picks up files from
166 ## the build prefix and mingw dir; you must change these if you have them
167 ## in different locations I'm afraid.
169 installer: moonshot.msi
171 moonshot.msi: windows/app.wxs
173 "${WIX_LIGHT}" -b c:/build -b c:/tools/mingw -o moonshot.msi app.wixobj