# # VAX Version # # @(#)makefile 1.10 10/28/80 # # Compilation Flags (in CFLAGS): # -DDEBUG -- compile in debug stuff. This is not enabled # unless the debug flag is given, so the only # advantage in not including this is that the # binaries will be smaller. # -DLOG -- include log information. This is probably # only useful on systems that include the logger. # -DVFORK -- use 'vfork' instead of 'fork'. # -DDBM -- use the dbm package instead of scanning the # ALIASFILE sequentially. LIBS must include # -ldbm for this to work. # LIBS= -ldbm TARG= $(DESTDIR)/etc OBJS1= conf.o main.o maketemp.o parse.o alias.o deliver.o \ savemail.o addr.o err.o OBJS2= matchhdr.o sysexits.o util.o bmove.o SRCS= useful.h dlvrmail.h \ conf.c deliver.c main.c parse.c err.c alias.c savemail.c addr.c \ matchhdr.c sysexits.c util.c bmove.c bmove.11.s bmove.vax.s \ arpa.c arpadate.c version.c maketemp.c \ newaliases.c ALL= delivermail newaliases CHOWN= -echo chown CHMOD= chmod CFLAGS= -O -DDBM -DVFORK -DDEBUG LDFLAGS= AR= -ar ARFLAGS=rvu LINT= lint LINTFLAGS=-bxa XREF= csh /usr/bin/xref CP= cp GET= sccs get DELTA= sccs delta REL= ROOT= root OBJMODE=755 all: $(ALL) delivermail: $(OBJS1) $(OBJS2) version.o $(CC) $(LDFLAGS) -o delivermail version.o $(OBJS1) $(OBJS2) $(LIBS) $(CHMOD) $(OBJMODE) delivermail size delivermail; ls -l delivermail install: $(OBJS1) $(OBJS2) all $(CP) delivermail $(TARG)/delivermail install -s newaliases $(DESTDIR)/usr/ucb $(OBJS1): dlvrmail.h dlvrmail.h util.o: useful.h # # Auxiliary stuff # clean: rm -f core delivermail arpa uucp a.out xref newaliases rm -f *.o archive: ${AR} ${ARFLAGS} delivermail.a READ_ME TO_BE_DONE makefile makefl.* *.h *.c *.s makeversion *.[123456789u] print: xref @ls -l | pr -h "delivermail directory" @pr -h "cross reference listing" xref @size *.o | pr -h "object code sizes" @pr *.h *.[cs] lint: $(LINT) $(LINTFLAGS) $(SRCS) xref: *.c ${XREF} *.c > xref # # Data base maintenance routines # AOBJS= newaliases.o parse.o conf.o util.o newaliases: $(AOBJS) $(CC) $(LDFLAGS) $(AOBJS) -o newaliases $(LIBS) praliases: praliases.c $(CC) $(CFLAGS) praliases.c -o praliases $(LIBS) $(AOBJS): dlvrmail.h # # Auxiliary mailers # arpa: arpa.o matchhdr.o arpadate.o $(CC) $(LDFLAGS) -o arpa arpa.o matchhdr.o arpadate.o $(LIBS) ${CHMOD} ${OBJMODE} arpa size arpa; ls -l arpa uucp: uucp.o ${CC} ${LDFLAGS} -o uucp uucp.o ${LIBS} ${CHMOD} ${OBJMODE} uucp size uucp; ls -l uucp mail: mail.o getname.o $(CC) $(LDFLAGS) -o mail mail.o getname.o size mail; ls -l mail