1 # makefile is generated from makefile.1.mak.
6 # Copyright (C) 2015-2016 Balthasar SzczepaĆski
8 # This program is free software: you can redistribute it and/or modify
9 # it under the terms of the GNU Affero General Public License as
10 # published by the Free Software Foundation, either version 3 of the
11 # License, or (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU Affero General Public License for more details.
18 # You should have received a copy of the GNU Affero General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
31 all: moveout copyout moveoutlib remove config.txt
34 moveout: proxy proxy.pl cleararch oldlogs rewrite access access.pl setuid exec
35 $(MV) proxy proxy.pl cleararch oldlogs access access.pl rewrite $(OD)
38 # $(CP) access.pl $(OD)
40 moveoutlib: proxy_lib.pm setuid exec
41 $(MV) proxy_lib.pm $(LD)
44 $(CM) u+s proxy access
46 exec: cleararch oldlogs rewrite access.pl proxy.pl
47 $(CM) +x cleararch oldlogs rewrite access.pl proxy.pl
49 remove: proxy proxy.c access access.c copyout moveout setuid exec
50 $(RM) proxy.c access.c
54 proxy.pl: proxy.1.pl configure.pl settings
55 $(PL) configure.pl settings <proxy.1.pl >proxy.pl
57 proxy_lib.pm: proxy_lib.1.pm configure.pl settings
58 $(PL) configure.pl settings <proxy_lib.1.pm >proxy_lib.pm
60 proxy.c: proxy.1.c configure.pl settings
61 $(PL) configure.pl settings <proxy.1.c >proxy.c
64 $(CC) $(CF) -o proxy proxy.c
66 rewrite: rewrite.1.pl configure.pl settings
67 $(PL) configure.pl settings <rewrite.1.pl >rewrite
69 access.pl: access.1.pl configure.pl settings
70 $(PL) configure.pl settings <access.1.pl >access.pl
72 access.c: access.1.c configure.pl settings
73 $(PL) configure.pl settings <access.1.c >access.c
76 $(CC) $(CF) -o access access.c
78 cleararch: cleararch.1.pl configure.pl settings
79 $(PL) configure.pl settings <cleararch.1.pl >cleararch
81 oldlogs: oldlogs.1.pl configure.pl settings
82 $(PL) configure.pl settings <oldlogs.1.pl >oldlogs
84 config.txt: config.1.txt configure.pl settings
85 $(PL) configure.pl settings <config.1.txt >config.txt