BSD 4_3_Net_1 release
[unix-history] / sendmail / src / Makefile
CommitLineData
4b4b84bc
KB
1#
2# Copyright (c) 1988 Regents of the University of California.
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms are permitted
dc45ba8c
KB
6# provided that the above copyright notice and this paragraph are
7# duplicated in all such forms and that any documentation,
8# advertising materials, and other materials related to such
9# distribution and use acknowledge that the software was developed
10# by the University of California, Berkeley. The name of the
11# University may not be used to endorse or promote products derived
12# from this software without specific prior written permission.
13# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
4b4b84bc 16#
e3419641 17# @(#)Makefile 5.11 (Berkeley) 1/3/89
4b4b84bc
KB
18#
19SRCS= alias.c arpadate.c clock.c collect.c conf.c convtime.c daemon.c \
20 deliver.c domain.c envelope.c err.c headers.c macro.c main.c \
21 parseaddr.c queue.c readcf.c recipient.c savemail.c srvrsmtp.c \
22 stab.c stats.c sysexits.c trace.c usersmtp.c util.c Version.c
23OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
24 deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
25 parseaddr.o queue.o readcf.o recipient.o savemail.o srvrsmtp.o \
26 stab.o stats.o sysexits.o trace.o usersmtp.o util.o
e23029c3 27MAN= sendmail.0 newaliases.0 aliases.0
4b4b84bc 28
c2774394 29CFLAGS= -O -I. -I../include -DVMUNIX
4b4b84bc
KB
30
31GET= sccs get
32DELTA= sccs delta
33WHAT= what
34PRT= sccs prt
35
4b4b84bc
KB
36sendmail: ${OBJS} Version.o
37 ${CC} ${COPTS} -o $@ Version.o ${OBJS} -ldbm
38 size sendmail; ls -l sendmail; ${WHAT} < Version.o
39
40dsendmail: ${OBJS} Version.o
41 ${CC} ${COPTS} -o sendmail Version.o ${OBJS} -ldbm -lresolv
42 size sendmail; ls -l sendmail; ${WHAT} < Version.o
43
17806de3 44install: ${MAN}
4b4b84bc
KB
45 install -c -s -o root -g kmem -m 6755 sendmail ${DESTDIR}/usr/lib
46 install -c -o bin -g bin -m 644 /dev/null ${DESTDIR}/usr/lib/sendmail.fc
47 install -c -o bin -g bin -m 666 /dev/null ${DESTDIR}/usr/lib/sendmail.st
e3419641
C
48 install -c -o bin -g bin -m 666 /dev/null ${DESTDIR}/usr/lib/sendmail.st
49 install -c -o bin -g bin -m 444 sendmail.hf /usr/lib/sendmail.hf
17806de3 50 install -c -o bin -g bin -m 444 sendmail.0 ${DESTDIR}/usr/man/cat8
5ea84f5e 51 install -c -o bin -g bin -m 444 aliases.0 ${DESTDIR}/usr/man/cat5
e23029c3 52 install -c -o bin -g bin -m 444 newaliases.0 ${DESTDIR}/usr/man/cat1
e3419641
C
53 -mkdir ${DESTDIR}/usr/spool/mqueue
54 chown root.wheel ${DESTDIR}/usr/spool/mqueue
55 chmod 775 ${DESTDIR}/usr/spool/mqueue
4b4b84bc
KB
56 rm -f ${DESTDIR}/usr/ucb/newaliases
57 ln -s ${DESTDIR}/usr/lib/sendmail ${DESTDIR}/usr/ucb/newaliases
58 rm -f ${DESTDIR}/usr/ucb/mailq
59 ln -s ${DESTDIR}/usr/lib/sendmail ${DESTDIR}/usr/ucb/mailq
60
61version: newversion ${OBJS} Version.c
62
63newversion:
64 @rm -f SCCS/p.version.c version.c
65 @${GET} -e SCCS/s.version.c
66 @${DELTA} -s SCCS/s.version.c
67 @${GET} -t -s SCCS/s.version.c
68
69Version.c: version.c
70 @echo generating Version.c from version.c
71 @cp version.c Version.c
72 @chmod 644 Version.c
73 @echo "" >> Version.c
74 @echo "# ifdef COMMENT" >> Version.c
75 @${PRT} SCCS/s.version.c >> Version.c
76 @echo "" >> Version.c
77 @echo "code versions:" >> Version.c
78 @echo "" >> Version.c
79 @${WHAT} ${OBJS} >> Version.c
80 @echo "" >> Version.c
81 @echo "# endif COMMENT" >> Version.c
82
17806de3 83clean: ${SRCS}
1dce57fa 84 rm -f ${OBJS} core sendmail a.out Version.o
4b4b84bc 85
17806de3
KB
86cleandir: clean
87 rm -f ${MAN} tags .depend
88
89depend: ${SRCS}
4b4b84bc
KB
90 mkdep ${CFLAGS} ${SRCS}
91
17806de3 92tags: ${SRCS}
e305be88
KB
93 ctags ${SRCS}
94
17806de3 95lint: ${SRCS}
4b4b84bc 96 lint -chapbx ${CCONFIG} ${SRCS}