68eb30bd589c60471ebf44b682266bcd056b1c32
[fwknop.git] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2
3 if WANT_CLIENT
4   CLIENT_DIR = client
5 endif
6
7 if WANT_SERVER
8   SERVER_DIR = server
9 endif
10
11 SUBDIRS = \
12     lib \
13     common \
14     $(CLIENT_DIR) \
15     $(SERVER_DIR) \
16     doc 
17
18 EXTRA_DIST = \
19     android/COPYING \
20     android/Application.mk \
21     android/README \
22     android/project/src/com/max2idea/android/fwknop/R.java \
23     android/project/src/com/max2idea/android/fwknop/Fwknop.java \
24     android/project/build.xml \
25     android/project/default.properties \
26     android/project/res/values/strings.xml \
27     android/project/res/drawable-hdpi/icon.png \
28     android/project/res/drawable-mdpi/icon.png \
29     android/project/res/drawable-ldpi/icon.png \
30     android/project/res/drawable/lock_64x64.png \
31     android/project/res/drawable/lock_32x32.png \
32     android/project/res/drawable/lock_128x128.png \
33     android/project/res/layout/main.xml \
34     android/project/nbproject/project.properties \
35     android/project/nbproject/project.xml \
36     android/project/nbproject/build-impl.xml \
37     android/project/nbproject/private/private.properties \
38     android/project/nbproject/private/private.xml \
39     android/project/nbproject/private/config.properties \
40     android/project/nbproject/genfiles.properties \
41     android/project/build.properties \
42     android/project/AndroidManifest.xml \
43     android/project/jni/fwknop/fwknop_client.c \
44     android/project/jni/fwknop/fwknop_client.h \
45     android/project/jni/fwknop/send_spa_packet.c \
46     android/project/jni/config.h \
47     android/project/jni/libfwknop/README \
48     android/project/jni/libfwknop/get_libfko_files.sh \
49     android/project/jni/logutils.h \
50     android/project/jni/Android.mk \
51     ChangeLog* \
52     CREDITS \
53     todo.org \
54     extras/fwknop.init.debian \
55     extras/fwknop.init.openwrt \
56     extras/fwknop.init.redhat \
57     extras/openwrt/README.openwrt \
58     extras/openwrt/package/fwknop/Makefile \
59     extras/openwrt/package/fwknop/files/fwknopd.init \
60     extras/openwrt/package/gpgme/Makefile \
61     extras/fwknop-launcher/fwknop-launcher-lsof.pl \
62     extras/fwknop-launcher/fwknop-launcher.conf \
63     fwknop.spec \
64     iphone/main.m \
65     iphone/Fwknop.xcodeproj \
66     iphone/Fwknop.xcodeproj/project.pbxproj \
67     iphone/Fwknop.xcodeproj/dev.pbxuser \
68     iphone/Fwknop.xcodeproj/dev.mode1v3 \
69     iphone/lock_57x57.png \
70     iphone/Fwknop.pch \
71     iphone/README \
72     iphone/Info.plist \
73     iphone/COPYING \
74     iphone/Classes \
75     iphone/Classes/MyAppDelegate.h \
76     iphone/Classes/fwknop \
77     iphone/Classes/fwknop/send_spa_packet.c \
78     iphone/Classes/fwknop/fwknop_client.c \
79     iphone/Classes/fwknop/fwknop_client.h \
80     iphone/Classes/FwknopController.m \
81     iphone/Classes/config.h \
82     iphone/Classes/FwknopController.h \
83     iphone/Classes/bridge_fwknop.h \
84     iphone/Classes/MyAppDelegate.m \
85     iphone/Classes/libfwknop \
86     iphone/Classes/libfwknop/README \
87     iphone/Classes/libfwknop/config.h \
88     iphone/Classes/libfwknop/fko_common.b \
89     iphone/Classes/libfwknop/get_libfko_files.sh \
90     iphone/Classes/bridge_fwknop.c \
91     iphone/Classes/logutils.h \
92     perl/FKO/README \
93     perl/FKO/inc/Devel/CheckLib.pm \
94     perl/FKO/MANIFEST \
95     perl/FKO/ppport.h \
96     perl/FKO/FKO.xs \
97     perl/FKO/t/03_errors.t \
98     perl/FKO/t/02_functions.t \
99     perl/FKO/t/01_constants.t \
100     perl/FKO/t/00_init.t \
101     perl/FKO/Makefile.PL \
102     perl/FKO/typemap \
103     perl/FKO/lib/FKO.pm \
104     perl/FKO/lib/FKO_Constants.pl \
105     perl/FKO/Changes \
106     python/README \
107     python/setup.py \
108     python/fkomodule.c \
109     python/fko.py \
110     test/conf/client-gpg/pubring.gpg \
111     test/conf/client-gpg/secring.gpg \
112     test/conf/client-gpg/trustdb.gpg \
113     test/conf/client-gpg-no-pw/pubring.gpg \
114     test/conf/client-gpg-no-pw/secring.gpg \
115     test/conf/client-gpg-no-pw/trustdb.gpg \
116     test/conf/server-gpg/pubring.gpg \
117     test/conf/server-gpg/secring.gpg \
118     test/conf/server-gpg/trustdb.gpg \
119     test/conf/server-gpg-no-pw/pubring.gpg \
120     test/conf/server-gpg-no-pw/secring.gpg \
121     test/conf/server-gpg-no-pw/trustdb.gpg \
122     test/conf/default_access.conf \
123     test/conf/default_fwknopd.conf \
124     test/conf/dual_key_usage_access.conf \
125     test/conf/expired_epoch_stanza_access.conf \
126     test/conf/expired_stanza_access.conf \
127     test/conf/force_nat_access.conf \
128     test/conf/future_expired_stanza_access.conf \
129     test/conf/gpg_access.conf \
130     test/conf/gpg_no_pw_access.conf \
131     test/conf/invalid_expire_access.conf \
132     test/conf/ip_source_match_access.conf \
133     test/conf/mismatch_open_ports_access.conf \
134     test/conf/mismatch_user_access.conf \
135     test/conf/multi_gpg_access.conf \
136     test/conf/multi_source_match_access.conf \
137     test/conf/multi_stanzas_access.conf \
138     test/conf/multi_stanzas_with_broken_keys.conf \
139     test/conf/nat_fwknopd.conf \
140     test/conf/no_multi_source_match_access.conf \
141     test/conf/no_source_match_access.conf \
142     test/conf/no_subnet_source_match_access.conf \
143     test/conf/open_ports_access.conf \
144     test/conf/override_fwknopd.conf \
145     test/conf/require_src_access.conf \
146     test/conf/require_user_access.conf \
147     test/conf/subnet_source_match_access.conf \
148     test/conf/local_nat_fwknopd.conf \
149     test/hardening-check \
150     test/local_spa.key \
151     test/test-fwknop.pl \
152     VERSION \
153     win32/config.h \
154     win32/fwknop-client.vcproj \
155     win32/getopt.c \
156     win32/getopt1.c \
157     win32/getopt.h \
158     win32/getlogin.c \
159     win32/getlogin.h \
160     win32/libfko.sln \
161     win32/libfko.vcproj
162
163 # Make dist makes the man pages to put them in the distribution.  We
164 # do not want that. They will be remade after configure and make is
165 # later.  This is bit of a kludge, but seems to work (until I find a
166 # better way).   --DSS
167 #
168 dist-hook:
169         rm -f $(distdir)/client/fwknop.8
170         rm -f $(distdir)/server/fwknopd.8
171
172 install-exec-hook:
173         chmod 500 $(sysconfdir)/fwknop
174         chmod 700 $(sysconfdir)/fwknop/*