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

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