|
|
1.1 root 1: #
2: # SENDMAIL Makefile.
3: #
4: # Version:
5: # @(#)Makefile.m4 4.1 7/25/83
6: #
7:
8: LIBS= ../lib/libsys.a -ldbm
9: DESTDIR=
10:
11: OBJS1= conf.o main.o collect.o parseaddr.o alias.o deliver.o \
12: savemail.o err.o readcf.o stab.o headers.o recipient.o \
13: stats.o daemon.o usersmtp.o srvrsmtp.o queue.o \
14: macro.o util.o clock.o trace.o envelope.o
15: OBJS2= sysexits.o bmove.o arpadate.o convtime.o
16: OBJS= $(OBJS1) $(OBJS2)
17: SRCS1= conf.h sendmail.h \
18: conf.c deliver.c main.c parseaddr.c err.c alias.c savemail.c \
19: sysexits.c util.c bmove.c arpadate.c version.c collect.c \
20: macro.c headers.c readcf.c stab.c recipient.c stats.c daemon.c \
21: usersmtp.c srvrsmtp.c queue.c clock.c trace.c envelope.c
22: SRCS2= TODO convtime.c
23: SRCS= Version.c $(SRCS1) $(SRCS2)
24: ALL= sendmail
25:
26: CHOWN= -echo chown
27: CHMOD= chmod
28: O= -O
29: COPTS=
30: CCONFIG=-I../include -DVMUNIX
31: CFLAGS= $O $(COPTS) $(CCONFIG)
32: ASMSED= ../include/asm.sed
33: AR= -ar
34: ARFLAGS=rvu
35: LINT= lint
36: XREF= ctags -x
37: CP= cp
38: MV= mv
39: INSTALL=install -c -s
40: M4= m4
41: TOUCH= touch
42: ABORT= false
43:
44: GET= sccs get
45: DELTA= sccs delta
46: WHAT= sccs what
47: PRT= sccs prt
48: REL=
49:
50: ROOT= root
51: OBJMODE=755
52:
53: .c.o:
54: cc -S ${CFLAGS} $*.c
55: sed -f $(ASMSED) $*.s | as -o $*.o
56: rm -f $*.s
57:
58: sendmail: $(OBJS1) $(OBJS2) Version.o
59: $(CC) $(COPTS) -o sendmail Version.o $(OBJS1) $(OBJS2) $(LIBS)
60: $(CHMOD) $(OBJMODE) sendmail
61: size sendmail; ls -l sendmail; $(WHAT) < Version.o
62:
63: install: all
64: $(INSTALL) sendmail $(DESTDIR)/usr/lib
65:
66: version: newversion $(OBJS) Version.c
67:
68: newversion:
69: @rm -f SCCS/p.version.c version.c
70: @$(GET) $(REL) -e SCCS/s.version.c
71: @$(DELTA) -s SCCS/s.version.c
72: @$(GET) -t -s SCCS/s.version.c
73:
74: fullversion: $(OBJS) dumpVersion Version.o
75:
76: dumpVersion:
77: rm -f Version.c
78:
79: Version.c: version.c
80: @echo generating Version.c from version.c
81: @cp version.c Version.c
82: @chmod 644 Version.c
83: @echo "" >> Version.c
84: @echo "# ifdef COMMENT" >> Version.c
85: @$(PRT) SCCS/s.version.c >> Version.c
86: @echo "" >> Version.c
87: @echo "code versions:" >> Version.c
88: @echo "" >> Version.c
89: @$(WHAT) $(OBJS) >> Version.c
90: @echo "" >> Version.c
91: @echo "# endif COMMENT" >> Version.c
92:
93: $(OBJS1): sendmail.h
94: $(OBJS): conf.h
95:
96: sendmail.h util.o: ../include/useful.h
97:
98: all: $(ALL)
99:
100: #
101: # Auxiliary support entries
102: #
103:
104: clean:
105: rm -f core sendmail rmail usersmtp uucp a.out XREF sendmail.cf
106: rm -f *.o
107:
108: sources: $(SRCS)
109:
110: $(SRCS1) $(SRCS2):
111: $(GET) $(REL) SCCS/s.$@
112:
113: print: $(SRCS)
114: @ls -l | pr -h "sendmail directory"
115: @$(XREF) *.c | pr -h "cross reference listing"
116: @size *.o | pr -h "object code sizes"
117: @pr Makefile *.m4 *.h *.[cs]
118:
119: lint:
120: $(LINT) $(CCONFIG) $(SRCS1)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.