]> git.ipfire.org Git - thirdparty/openvpn.git/blob - Makefile.am
Make use of automake CLEANFILES variable instead of clean-local rule
[thirdparty/openvpn.git] / Makefile.am
1 #
2 # OpenVPN -- An application to securely tunnel IP networks
3 # over a single UDP port, with support for SSL/TLS-based
4 # session authentication and key exchange,
5 # packet encryption, packet authentication, and
6 # packet compression.
7 #
8 # Copyright (C) 2002-2010 OpenVPN Technologies, Inc. <sales@openvpn.net>
9 # Copyright (C) 2010 David Sommerseth <dazo@users.sourceforge.net>
10 #
11 # This program is free software; you can redistribute it and/or modify
12 # it under the terms of the GNU General Public License version 2
13 # as published by the Free Software Foundation.
14 #
15 # This program is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU General Public License for more details.
19 #
20 # You should have received a copy of the GNU General Public License
21 # along with this program (see the file COPYING included with this
22 # distribution); if not, write to the Free Software Foundation, Inc.,
23 # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 #
25
26 LDADD = @LIBOBJS@
27 .PHONY: plugin
28
29 # This option prevents autoreconf from overriding our COPYING and
30 # INSTALL targets:
31 AUTOMAKE_OPTIONS = foreign
32
33 MAINTAINERCLEANFILES = \
34 config.log config.status \
35 $(srcdir)/Makefile.in \
36 $(srcdir)/config.h.in $(srcdir)/config.h.in~ $(srcdir)/configure \
37 $(srcdir)/install-sh $(srcdir)/ltmain.sh $(srcdir)/missing \
38 $(srcdir)/depcomp $(srcdir)/aclocal.m4 \
39 $(srcdir)/config.guess $(srcdir)/config.sub \
40 $(srcdir)/openvpn.spec
41 CLEANFILES = openvpn.8.html configure.h
42
43 EXTRA_DIST = \
44 easy-rsa \
45 sample-config-files \
46 sample-keys \
47 sample-scripts \
48 suse \
49 tap-win32 \
50 contrib \
51 debug \
52 plugin \
53 win
54
55 SUBDIRS = \
56 images \
57 service-win32 \
58 install-win32
59
60 TESTS = t_client.sh t_lpback.sh t_cltsrv.sh
61 sbin_PROGRAMS = openvpn
62
63 dist_noinst_HEADERS =
64
65 dist_noinst_SCRIPTS = \
66 $(TESTS) \
67 doclean \
68 domake-win \
69 t_cltsrv-down.sh \
70 configure_h.awk configure_log.awk
71
72 dist_noinst_DATA = \
73 openvpn.spec \
74 COPYRIGHT.GPL \
75 PORTS \
76 INSTALL-win32.txt
77
78 openvpn_SOURCES = \
79 base64.c base64.h \
80 basic.h \
81 buffer.c buffer.h \
82 circ_list.h \
83 common.h \
84 crypto.c crypto.h \
85 dhcp.c dhcp.h \
86 errlevel.h \
87 error.c error.h \
88 event.c event.h \
89 fdmisc.c fdmisc.h \
90 forward.c forward.h forward-inline.h \
91 fragment.c fragment.h \
92 gremlin.c gremlin.h \
93 helper.c helper.h \
94 httpdigest.c httpdigest.h \
95 lladdr.c lladdr.h \
96 init.c init.h \
97 integer.h \
98 interval.c interval.h \
99 list.c list.h \
100 lzo.c lzo.h \
101 manage.c manage.h \
102 mbuf.c mbuf.h \
103 memdbg.h \
104 misc.c misc.h \
105 mroute.c mroute.h \
106 mss.c mss.h \
107 mtcp.c mtcp.h \
108 mtu.c mtu.h \
109 mudp.c mudp.h \
110 multi.c multi.h \
111 ntlm.c ntlm.h \
112 occ.c occ.h occ-inline.h \
113 pkcs11.c pkcs11.h \
114 openvpn.c openvpn.h \
115 openvpn-plugin.h \
116 options.c options.h \
117 otime.c otime.h \
118 packet_id.c packet_id.h \
119 perf.c perf.h \
120 pf.c pf.h pf-inline.h \
121 ping.c ping.h ping-inline.h \
122 plugin.c plugin.h \
123 pool.c pool.h \
124 proto.c proto.h \
125 proxy.c proxy.h \
126 ieproxy.h ieproxy.c \
127 ps.c ps.h \
128 push.c push.h \
129 pushlist.h \
130 reliable.c reliable.h \
131 route.c route.h \
132 schedule.c schedule.h \
133 session_id.c session_id.h \
134 shaper.c shaper.h \
135 sig.c sig.h \
136 socket.c socket.h \
137 socks.c socks.h \
138 ssl.c ssl.h \
139 status.c status.h \
140 syshead.h \
141 thread.c thread.h \
142 tun.c tun.h \
143 win32.h win32.c \
144 cryptoapi.h cryptoapi.c
145
146 nodist_openvpn_SOURCES = configure.h
147 options.$(OBJEXT): configure.h
148
149 configure.h: Makefile
150 awk -f $(srcdir)/configure_h.awk config.h > $@
151 awk -f $(srcdir)/configure_log.awk config.log >> $@
152
153 dist-hook:
154 cd $(distdir) && for i in $(EXTRA_DIST) $(SUBDIRS) ; do find $$i -name .svn -type d -prune -exec rm -rf '{}' ';' ; rm -f `find $$i -type f | grep -E '(^|\/)\.?\#|\~$$|\.s?o$$'` ; done
155
156 if WIN32
157 dist_noinst_DATA += openvpn.8
158 nodist_html_DATA = openvpn.8.html
159 openvpn.8.html: $(srcdir)/openvpn.8
160 $(MAN2HTML) < $(srcdir)/openvpn.8 > openvpn.8.html
161 else
162 dist_man_MANS = openvpn.8
163 endif