Annotation of 43BSD/usr.lib/sendmail/src/Makefile.m4, revision 1.1.1.1

1.1       root        1: #
                      2: #  Sendmail
                      3: #  Copyright (c) 1983  Eric P. Allman
                      4: #  Berkeley, California
                      5: #
                      6: #  Copyright (c) 1983 Regents of the University of California.
                      7: #  All rights reserved.  The Berkeley software License Agreement
                      8: #  specifies the terms and conditions for redistribution.
                      9: #
                     10: #      @(#)Makefile.m4 5.10 (Berkeley) 5/2/86
                     11: #
                     12: #
                     13: #  SENDMAIL Makefile.
                     14: #
                     15: #
                     16: include(../md/config.m4)dnl
                     17: 
                     18: LIBS=  m4LIBS
                     19: DESTDIR=
                     20: 
                     21: OBJS1= conf.o main.o collect.o parseaddr.o alias.o deliver.o \
                     22:        savemail.o err.o readcf.o stab.o headers.o recipient.o \
                     23:        stats.o daemon.o usersmtp.o srvrsmtp.o queue.o \
                     24:        macro.o util.o clock.o trace.o envelope.o
                     25: OBJS2= sysexits.o arpadate.o convtime.o
                     26: OBJS=  $(OBJS1) $(OBJS2)
                     27: SRCS1= conf.h sendmail.h \
                     28:        conf.c deliver.c main.c parseaddr.c err.c alias.c savemail.c \
                     29:        sysexits.c util.c arpadate.c version.c collect.c \
                     30:        macro.c headers.c readcf.c stab.c recipient.c stats.c daemon.c \
                     31:        usersmtp.c srvrsmtp.c queue.c clock.c trace.c envelope.c
                     32: SRCS2= TODO convtime.c
                     33: SRCS=  Version.c $(SRCS1) $(SRCS2)
                     34: ALL=   sendmail
                     35: 
                     36: CHOWN= -echo chown
                     37: CHMOD= chmod
                     38: O=     -O
                     39: COPTS=
                     40: CCONFIG=-I../`include' m4CONFIG
                     41: CFLAGS=        $O $(COPTS) $(CCONFIG)
                     42: ASMSED=        ../`include'/asm.sed
                     43: AR=    -ar
                     44: ARFLAGS=rvu
                     45: LINT=  lint
                     46: XREF=  ctags -x
                     47: CP=    cp
                     48: MV=    mv
                     49: INSTALL=install -c -s -o root
                     50: M4=    m4
                     51: TOUCH= touch
                     52: ABORT= false
                     53: 
                     54: GET=   sccs get
                     55: DELTA= sccs delta
                     56: WHAT=  what
                     57: PRT=   sccs prt
                     58: REL=
                     59: 
                     60: ROOT=  root
                     61: OBJMODE=755
                     62: 
                     63: .c.o:
                     64:        cc -S ${CFLAGS} $*.c
                     65:        sed -f $(ASMSED) $*.s | as -o $*.o
                     66:        rm -f $*.s
                     67: 
                     68: sendmail: $(OBJS1) $(OBJS2) Version.o
                     69:        $(CC) $(COPTS) -o sendmail Version.o $(OBJS1) $(OBJS2) $(LIBS)
                     70:        $(CHMOD) $(OBJMODE) sendmail
                     71:        size sendmail; ls -l sendmail; ifdef(`m4SCCS', `$(WHAT) < Version.o')
                     72: 
                     73: install: all
                     74:        $(INSTALL) -m 4755 sendmail $(DESTDIR)/usr/lib
                     75:        chgrp kmem $(DESTDIR)/usr/lib/sendmail
                     76:        $(CP) /dev/null $(DESTDIR)/usr/lib/sendmail.fc
                     77: 
                     78: version: newversion $(OBJS) Version.c
                     79: 
                     80: newversion:
                     81:        @rm -f SCCS/p.version.c version.c
                     82:        @$(GET) $(REL) -e SCCS/s.version.c
                     83:        @$(DELTA) -s SCCS/s.version.c
                     84:        @$(GET) -t -s SCCS/s.version.c
                     85: 
                     86: fullversion: $(OBJS) dumpVersion Version.o
                     87: 
                     88: dumpVersion:
                     89:        rm -f Version.c
                     90: 
                     91: ifdef(`m4SCCS',
                     92: Version.c: version.c
                     93:        @echo generating Version.c from version.c
                     94:        @cp version.c Version.c
                     95:        @chmod 644 Version.c
                     96:        @echo "" >> Version.c
                     97:        @echo "`# ifdef' COMMENT" >> Version.c
                     98:        @$(PRT) SCCS/s.version.c >> Version.c
                     99:        @echo "" >> Version.c
                    100:        @echo "code versions:" >> Version.c
                    101:        @echo "" >> Version.c
                    102:        @$(WHAT) $(OBJS) >> Version.c
                    103:        @echo "" >> Version.c
                    104:        @echo "`#' endif COMMENT" >> Version.c
                    105: )dnl
                    106: 
                    107: $(OBJS1): sendmail.h
                    108: $(OBJS): conf.h
                    109: stats.o: mailstats.h
                    110: 
                    111: sendmail.h util.o: ../`include'/useful.h
                    112: 
                    113: all: $(ALL)
                    114: 
                    115: #
                    116: #  Auxiliary support entries
                    117: #
                    118: 
                    119: clean:
                    120:        rm -f core sendmail rmail usersmtp uucp a.out XREF sendmail.cf
                    121:        rm -f *.o
                    122: 
                    123: sources: $(SRCS)
                    124: 
                    125: ifdef(`m4SCCS',
                    126: `$(SRCS1) $(SRCS2):
                    127:        if test -d SCCS; then $(GET) $(REL) SCCS/s.$@; else $(TOUCH) $@; fi'
                    128: )dnl
                    129: 
                    130: print: $(SRCS)
                    131:        @ls -l | pr -h "sendmail directory"
                    132:        @$(XREF) *.c | pr -h "cross reference listing"
                    133:        @size *.o | pr -h "object code sizes"
                    134:        @pr Makefile *.m4 *.h *.[cs]
                    135: 
                    136: lint:
                    137:        $(LINT) $(CCONFIG) $(SRCS1)

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.