Debian Codegraph @

Makefile

raw ◀ ▶
Source reconstructed at patch state 1 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
1 all: axmail
2
3 MAN_DIR = /usr/local/share/man
4 CC = gcc
5 LD = gcc
6 # CFLAGS = -O2 -Wstrict-prototypes -g -I../lib
7 LIBS = -lcrypt
8 MODULES = utils.o config.o adduser.o command.o mailcmd.o mbox.o head.o lock.o axmail.o quit.o
9
10 .c.o:
11 $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -c $<
12
13 upgrade: installbin installhelp installman
14
15 install: installbin installconf installhelp installman
16
17 installbin: all
18 install -m 0755 -s -o root -g root axmail /usr/local/sbin
19
20 installconf:
21 install -m 755 -o root -g root -d /usr/local/etc/ax25
22 install -b -m 644 -o root -g root etc/axmail.conf /usr/local/etc/ax25
23 install -m 644 -o root -g root etc/welcome.txt /usr/local/etc/ax25
24
25 installhelp:
26 install -m 755 -o root -g root -d /usr/local/var/lib/ax25/axmail/help
27 install -m 644 -o root -g root etc/help/*.hlp /usr/local/var/lib/ax25/axmail/help
28
29 installman:
30 install -m 644 -p man/axmail.8 $(MAN_DIR)/man8
31 install -m 644 -p man/axmail.conf.5 $(MAN_DIR)/man5
32 back:
33 rm -f ../mail.tar.gz
34 tar cvf ../mail.tar *
35 gzip ../mail.tar
36
37 clean:
38 rm -f axmail *.o *~ *.bak core etc/*~ etc/help/*~
39
40 distclean: clean
41 rm -f axmail
42
43 axmail: $(MODULES)
44 $(LD) -o axmail $(MODULES) $(LIBS) $(LDFLAGS)
45
46 utils.o: utils.h utils.c mbox.h
47 config.o: config.h config.c defines.h axmail.h utils.h
48 adduser.o: adduser.h adduser.c utils.h config.h defines.h
49 command.o: command.h command.c config.h mailcmd.h mbox.h utils.h quit.h
50 mailcmd.o: mailcmd.h mailcmd.c defines.h utils.h mbox.h config.h
51 mbox.o: mbox.h mbox.c utils.h defines.h config.h head.h
52 head.o: head.h head.c defines.h
53 utils.o: utils.h utils.c
54 lock.o: lock.h lock.c utils.h
55 quit.o: quit.h quit.c config.h lock.h
56 axmail.o: axmail.h axmail.c config.h adduser.h utils.h quit.h mbox.h