4 # This file is part of chiark backup, a system for backing up GNU/Linux and
5 # other UN*X-compatible machines, as used on chiark.greenend.org.uk.
8 # Copyright (C) 1997-1998,2000-2001 Ian Jackson <ian@chiark.greenend.org.uk>
9 # Copyright (C) 1999 Peter Maydell <pmaydell@chiark.greenend.org.uk>
11 # This is free software; you can redistribute it and/or modify it under the
12 # terms of the GNU General Public License as published by the Free Software
13 # Foundation; either version 3, or (at your option) any later version.
15 # This is distributed in the hope that it will be useful, but WITHOUT ANY
16 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
20 # You should have received a copy of the GNU General Public License along
21 # with this program; if not, consult the Free Software Foundation's
22 # website at www.fsf.org, or the GNU Project website at www.gnu.org.
26 include ../settings.make
30 PROGRAMS= readbuffer writebuffer with-lock-ex xbatmon-simple \
31 summer watershed rcopy-repeatedly xduplic-copier \
33 SUIDSBINPROGRAMS= really
35 MAN1PAGES= readbuffer.1 writebuffer.1 with-lock-ex.1 \
37 MAN8PAGES= trivsoundd.8 really.8 acctdump.8
38 BUILTTXTDOCS= watershed.txt
39 TXTDOCS= $(BUILTTXTDOCS)
41 TARGETS= $(PROGRAMS) $(SUIDSBINPROGRAMS) $(DAEMONS) $(BUILTTXTDOCS)
45 readbuffer: readbuffer.o rwbuffer.o
46 writebuffer: writebuffer.o wrbufcore.o rwbuffer.o
47 trivsoundd: trivsoundd.o wrbufcore.o rwbuffer.o
48 really: really.o myopt.o
49 acctdump: acctdump.o myopt.o
51 acctdump.o really.o myopt.o rcopy-repeatedly.o: myopt.h
52 readbuffer.o writebuffer.o rwbuffer.o wrbufcore.o trivsoundd.o: rwbuffer.h
54 xbatmon-simple: LDLIBS += -lX11 -lm
56 xduplic-copier: LDLIBS += -lXmu -lSM -lICE -lXt -lXext
57 xduplic-copier: LDLIBS += -lX11 -lxcb -lXau -lXdmcp
60 summer: LDLIBS += -lnettle -lgmp
62 rcopy-repeatedly: rcopy-repeatedly.o myopt.o
63 rcopy-repeatedly: LDLIBS += -lm -lrt
65 watershed: watershed.o
66 watershed: LDLIBS += -lnettle -lgmp
68 watershed.txt: watershed.c
69 sed '/^$$/,$$d' <$^ >$@.new && mv -f $@.new $@
72 $(INSTALL_DIRECTORY) $(bindir) $(sbindir)
73 $(INSTALL_PROGRAM) $(PROGRAMS) $(bindir)
74 $(INSTALL_PROGRAM) $(DAEMONS) $(sbindir)
75 $(INSTALL) -m 4774 -o root -g $(SYSTEM_GROUP) \
76 $(SUIDSBINPROGRAMS) $(sbindir)
78 install-docs: watershed.txt
79 $(INSTALL_DIRECTORY) $(man1dir) $(man8dir) $(txtdocdir)
80 $(INSTALL) -m 644 $(MAN1PAGES) ${man1dir}/.
81 $(INSTALL) -m 644 $(MAN8PAGES) ${man8dir}/.
82 $(INSTALL) -m 644 $(TXTDOCS) ${txtdocdir}/.
87 rm -f *~ ./#*# *.o $(PROGRAMS)
89 distclean realclean: clean