1AUTOMAKE_OPTIONS = foreign
2
3encryptdir = $(libdir)/pidgin
4
5encrypt_la_LDFLAGS = -module -avoid-version
6
7encrypt_la_LIBADD = $(NSS_LIBS)
8
9encrypt_LTLIBRARIES = encrypt.la
10noinst_LIBRARIES =
11
12
13EXTRA_DIST	= \
14	Makefile.mingw \
15	po/Makefile.mingw \
16	po/mkinstalldirs \
17	pixmaps/mkinstalldirs \
18	m4           \
19	COPYING      \
20	CHANGELOG    \
21	INSTALL      \
22	NOTES        \
23	README       \
24	VERSION      \
25	WISHLIST     \
26	pidgin-encryption-installer.nsi \
27	nsis/header.bmp  \
28	nsis/install.ico \
29	$(wildcard nsis/translations/*.nsh)
30
31
32encrypt_la_SOURCES = \
33	nls.h                    \
34	pe_blist.c               \
35	pe_blist.h               \
36	config_ui.c              \
37	config_ui.h              \
38	cryptproto.c             \
39	cryptproto.h             \
40	cryptutil.c              \
41	cryptutil.h              \
42	encrypt.c                \
43	encrypt.h                \
44	gpg.c                    \
45	gpg.h                    \
46	icon_capable.xpm         \
47	icon_in_lock.xpm         \
48	icon_in_unlock.xpm       \
49	icon_lock.xpm            \
50	icon_out_capable.xpm     \
51	icon_out_lock.xpm        \
52	icon_out_unlock.xpm      \
53	icon_unlock.xpm          \
54	internal.h               \
55	keys.c                   \
56	keys.h                   \
57	keys_ui.c                \
58	keys_ui.h                \
59	nonce.c                  \
60	nonce.h                  \
61	nss_mgf1.c               \
62	nss_mgf1.h               \
63	nss_oaep.c               \
64	nss_oaep.h               \
65	nss_pss.c                \
66	nss_pss.h                \
67	prefs.c                  \
68	prefs.h                  \
69	rsa_nss.c                \
70	rsa_nss.h                \
71	state.c                  \
72	state.h                  \
73	state_ui.c               \
74   state_ui.h               \
75   pe_ui.c                  \
76   pe_ui.h
77
78AM_CFLAGS = \
79	-Wall -fno-strict-aliasing
80
81AM_CPPFLAGS = \
82	-DLOCALEDIR=\"$(datadir)/locale\"  \
83	-DLIBDIR=\"$(libdir)/pidgin/\"     \
84	-DDATADIR=\"$(datadir)\"           \
85	$(GLIB_CFLAGS)                     \
86	$(PIDGIN_CFLAGS)                   \
87	$(PURPLE_CFLAGS)                   \
88	$(NSS_CFLAGS)
89
90
91BUILT_SOURCES = pidgin-encryption-config.h
92
93$(OBJECTS): $(BUILT_SOURCES)
94
95pidgin-encryption-config.h: pre-config.h
96	sed 's/#define PACKAGE/#define PE_PACKAGE/g' pre-config.h > $@
97
98testprog: $(encrypt_la_SOURCES) testmain.c
99	$(CC) -g -Wall -lgdk -lgtk $(AM_CPPFLAGS) $(CPPFLAGS) $(NSS_INCLUDES) $(NSS_CFLAGS) -o testprog testmain.c  $(NSS_LIBS)
100
101SUBDIRS = pixmaps po intl
102
103ACLOCAL_AMFLAGS = -I m4
104