1 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
6 lib_LTLIBRARIES = libmoonshot/libmoonshot.la
16 -DLOCALEDIR=\""$(localedir)"\" \
17 -I$(top_srcdir)/libmoonshot \
18 -I$(top_builddir)/libmoonshot
25 libmoonshot_libmoonshot_la_CPPFLAGS = \
26 $(libmoonshot_CFLAGS) \
29 libmoonshot_libmoonshot_la_SOURCES = libmoonshot/libmoonshot-common.c
31 libmoonshot_libmoonshot_la_LIBADD = $(libmoonshot_LIBS)
33 include_HEADERS = libmoonshot/libmoonshot.h
34 noinst_HEADERS = libmoonshot/libmoonshot-common.h
36 src_moonshot_SOURCES = \
37 src/moonshot-identity-manager-app.vala \
38 src/moonshot-identity-management-view.vala \
39 src/moonshot-local-flat-file-store.vala \
40 src/moonshot-idcard-store.vala \
41 src/moonshot-id.vala \
42 src/moonshot-add-dialog.vala \
43 src/moonshot-idcard-widget.vala \
44 src/moonshot-custom-vbox.vala \
45 src/moonshot-identities-manager.vala \
46 src/moonshot-identity-request.vala \
47 src/moonshot-server.vala \
48 src/moonshot-password-dialog.vala \
49 src/moonshot-utils.vala
51 src_moonshot_webp_SOURCES = \
52 src/moonshot-webp-parser.vala \
55 src_moonshot_VALAFLAGS = --pkg gdk-2.0 --pkg gtk+-2.0 --pkg gee-1.0 $(AM_VALAFLAGS)
56 src_moonshot_CPPFLAGS = $(moonshot_CFLAGS) $(AM_CPPFLAGS)
57 src_moonshot_LDADD = $(moonshot_LIBS)
59 src_moonshot_webp_VALAFLAGS = --vapidir=$(top_srcdir)/libmoonshot --pkg gdk-2.0 --pkg libmoonshot $(AM_VALAFLAGS)
60 src_moonshot_webp_CPPFLAGS = $(moonshot_CFLAGS) $(AM_CPPFLAGS)
61 src_moonshot_webp_LDADD = $(moonshot_LIBS) ${top_builddir}/libmoonshot/libmoonshot.la
65 libmoonshot_libmoonshot_la_LDFLAGS = -no-undefined
67 src_moonshot_CFLAGS = -mwindows
68 src_moonshot_webp_CFLAGS = -mwindows
70 AM_CPPFLAGS += -DOS_WIN32
71 AM_VALAFLAGS += --define=OS_WIN32
73 noinst_DATA = libmoonshot/libmoonshot.lib
75 # Build the MSVC lib. The sed hack fixes execution in the case that
76 # the MSVC toolchain isn't in the PATH.
77 libmoonshot/libmoonshot.lib: libmoonshot/libmoonshot.def
78 PATH="$(shell echo "${MSVC_LIB}" | sed -e s,/VC/bin/lib,/Common7/IDE,)":$$PATH "${MSVC_LIB}" -def:$< -out:$@ -machine:x86
84 AM_CPPFLAGS += -DOS_MACOS
85 AM_VALAFLAGS += --define=OS_MACOS
91 ## Installing mime type data
92 mimedir = $(datadir)/mime/packages
93 mime_DATA = webprovisioning/moonshot.xml
96 dotdesktopdir = $(datadir)/applications
97 dotdesktop_DATA = moonshot.desktop moonshot-webp.desktop
109 BUILT_SOURCES = libmoonshot/moonshot-msrpc.h \
110 libmoonshot/moonshot-msrpc_s.c \
111 libmoonshot/moonshot-msrpc_c.c
113 DISTCLEANFILES = ${BUILT_SOURCES}
115 libmoonshot/moonshot-msrpc.h: libmoonshot/moonshot-msrpc.idl libmoonshot/moonshot-msrpc.acf
116 ${AM_V_GEN} ${MIDL_WRAPPER} -o libmoonshot -m "${MIDL}" $^
118 libmoonshot/moonshot-msrpc_s.c: libmoonshot/moonshot-msrpc.h
119 libmoonshot/moonshot-msrpc_c.c: libmoonshot/moonshot-msrpc.h
121 libmoonshot_libmoonshot_la_SOURCES += \
122 libmoonshot/libmoonshot-msrpc.c
124 src_moonshot_SOURCES += \
125 src/moonshot-msrpc.vapi
127 nodist_src_moonshot_SOURCES = \
128 libmoonshot/moonshot-msrpc_s.c
130 nodist_libmoonshot_libmoonshot_la_SOURCES = \
131 libmoonshot/moonshot-msrpc_c.c
138 dbusservicedir = $(datadir)/dbus-1/services
139 dbusservice_in_files = org.janet.Moonshot.service.in
140 dbusservice_DATA = $(dbusservice_in_files:.service.in=.service)
142 # Rule to make the service file with bindir expanded
143 $(dbusservice_DATA): $(dbusservice_in_files) Makefile
144 @sed -e "s|\@bindir\@|$(bindir)|" $< > $@
146 libmoonshot_libmoonshot_la_SOURCES += libmoonshot/libmoonshot-dbus.c
148 CLEANFILES = $(dbusservice_DATA)
153 --define=IPC_DBUS_GLIB \
163 EXTRA_DIST = webprovisioning/moonshot.xml $(dbusservice_in_files) \
168 examples/service-selection \
171 examples_service_selection_SOURCES = examples/service-selection.c
172 examples_service_selection_CPPFLAGS = $(moonshot_CFLAGS) $(AM_CPPFLAGS)
173 examples_service_selection_LDADD = ${top_builddir}/libmoonshot/libmoonshot.la $(moonshot_LIBS)
175 examples_client_SOURCES = examples/client.c
176 examples_client_CPPFLAGS = $(libmoonshot_CFLAGS) $(AM_CPPFLAGS)
177 examples_client_LDADD = ${top_builddir}/libmoonshot/libmoonshot.la
179 tests_basic_SOURCES = tests/basic.c
180 tests_basic_CPPFLAGS = $(moonshot_CFLAGS) $(AM_CPPFLAGS)
181 tests_basic_LDADD = ${top_builddir}/libmoonshot/libmoonshot.la $(moonshot_LIBS)
185 ## "${UPDATE_MIME_DATABASE}" $(datadir)/mime
186 ## "${UPDATE_DESKTOP_DATABASE}" $(datadir)/applications
188 ## "${UPDATE_MIME_DATABASE}" $(datadir)/mime
189 ## "${UPDATE_DESKTOP_DATABASE}" $(datadir)/applications
194 ## A couple of Windows-specific targets:
196 ## 1. Icons. You must have gnome-icon-theme and gnome-icon-theme-symbolic installed
197 ## in the install prefix; and ImageMagick installed in c:/tools/ImageMagick. This
198 ## pulls in the icons required by moonshot and converts svg's to png's (we have
199 ## no svg support built in to Windows Gtk+ right now).
203 cp ${prefix}/share/icons/gnome/48x48/status/avatar-default.png share/icons
204 "${IMAGEMAGICK_CONVERT}" -background none ${prefix}/share/icons/gnome/scalable/actions/edit-clear-symbolic.svg -size 13x13 share/icons/edit-clear-symbolic.png
205 "${IMAGEMAGICK_CONVERT}" -background none ${prefix}/share/icons/gnome/scalable/actions/edit-find-symbolic.svg -size 13x13 share/icons/edit-find-symbolic.png
208 ## 2. Installer. You must have the Windows Installer XML toolkit version 3.5
209 ## installed in its default path. Note that this requires at least .NET
210 ## runtime with service packs 1 and 2. The installer picks up files from
211 ## the build prefix and mingw dir; you must change these if you have them
212 ## in different locations I'm afraid.
214 installer: moonshot.msi
216 moonshot.msi: windows/app.wxs windows/config.wxi $(bin_PROGRAMS)
218 "${WIX_LIGHT}" -b ${prefix} -b ${prefix}/mingw -o moonshot.msi app.wixobj
223 ## Mac-specific targets
229 cp src/mac/icons/process-stop.png share/icons
230 cp src/mac/icons/edit-find.png share/icons
231 cp src/mac/icons/avatar-default.png share/icons