# makefile is generated from makefile.1.mak.
# 2.07.2017
#
# This is the makefile
#
# Copyright (C) 2016 - 2017 Balthasar Szczepański
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see .
###CC;
###CF;
###PL;
###CP;
###MV;
###RM;
###CM;
###OD;
###LD;
###WD;
all: moveout copyoutwww moveoutlib remove config.txt
moveout: reset.pl viewer viewer.pl frame frame.pl 2words 2words.pl chat chat.pl ong.pl updlist.pl oldlogs.pl attach attach.pl info info.pl goto goto.pl bbcode bbcode.pl setuid exec
$(MV) reset.pl viewer viewer.pl frame frame.pl 2words 2words.pl chat chat.pl ong.pl updlist.pl oldlogs.pl attach attach.pl info info.pl goto goto.pl bbcode bbcode.pl $(OD)
copyout: setuid exec
# $(CP) access.pl $(OD)
copyoutwww: timer.js bsta.css setuid exec
$(CP) timer.js bsta.css $(WD)
moveoutlib: bsta_lib.pm setuid exec
$(MV) bsta_lib.pm $(LD)
setuid: viewer frame 2words attach chat info goto bbcode
$(CM) u+s viewer frame 2words attach chat info goto bbcode
exec: reset.pl viewer.pl frame.pl 2words.pl ong.pl updlist.pl oldlogs.pl attach.pl chat.pl info.pl goto.pl bbcode.pl
$(CM) +x reset.pl viewer.pl frame.pl 2words.pl ong.pl updlist.pl oldlogs.pl attach.pl chat.pl info.pl goto.pl bbcode.pl
remove: viewer.c frame.c 2words.c chat.c attach.c info.c goto.c bbcode.c copyout moveout setuid exec
$(RM) viewer.c frame.c 2words.c chat.c attach.c info.c goto.c bbcode.c
bsta_lib.pm: bsta_lib.1.pm configure.pl settings
$(PL) configure.pl settings bsta_lib.pm
viewer: viewer.c
$(CC) $(CF) -o viewer viewer.c
viewer.c: viewer.1.c configure.pl settings
$(PL) configure.pl settings viewer.c
viewer.pl: viewer.1.pl configure.pl settings
$(PL) configure.pl settings viewer.pl
frame: frame.c
$(CC) $(CF) -o frame frame.c
frame.c: frame.1.c configure.pl settings
$(PL) configure.pl settings frame.c
frame.pl: frame.1.pl configure.pl settings
$(PL) configure.pl settings frame.pl
2words: 2words.c
$(CC) $(CF) -o 2words 2words.c
2words.c: 2words.1.c configure.pl settings
$(PL) configure.pl settings <2words.1.c >2words.c
2words.pl: 2words.1.pl configure.pl settings
$(PL) configure.pl settings <2words.1.pl >2words.pl
attach: attach.c
$(CC) $(CF) -o attach attach.c
attach.c: attach.1.c configure.pl settings
$(PL) configure.pl settings attach.c
attach.pl: attach.1.pl configure.pl settings
$(PL) configure.pl settings attach.pl
chat: chat.c
$(CC) $(CF) -o chat chat.c
chat.c: chat.1.c configure.pl settings
$(PL) configure.pl settings chat.c
chat.pl: chat.1.pl configure.pl settings
$(PL) configure.pl settings chat.pl
info: info.c
$(CC) $(CF) -o info info.c
info.c: info.1.c configure.pl settings
$(PL) configure.pl settings info.c
info.pl: info.1.pl configure.pl settings
$(PL) configure.pl settings info.pl
goto: goto.c
$(CC) $(CF) -o goto goto.c
goto.c: goto.1.c configure.pl settings
$(PL) configure.pl settings goto.c
goto.pl: goto.1.pl configure.pl settings
$(PL) configure.pl settings goto.pl
bbcode: bbcode.c
$(CC) $(CF) -o bbcode bbcode.c
bbcode.c: bbcode.1.c configure.pl settings
$(PL) configure.pl settings bbcode.c
bbcode.pl: bbcode.1.pl configure.pl settings
$(PL) configure.pl settings bbcode.pl
ong.pl: ong.1.pl configure.pl settings
$(PL) configure.pl settings ong.pl
updlist.pl: updlist.1.pl configure.pl settings
$(PL) configure.pl settings updlist.pl
oldlogs.pl: oldlogs.1.pl configure.pl settings
$(PL) configure.pl settings oldlogs.pl
reset.pl: reset.1.pl configure.pl settings
$(PL) configure.pl settings reset.pl
config.txt: config.1.txt configure.pl settings
$(PL) configure.pl settings config.txt