|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: M T
Length: 7079 (0x1ba7) Types: TextFile Names: »Makefile«
└─⟦9ae75bfbd⟧ Bits:30007242 EUUGD3: Starter Kit └─⟦bfebc70e2⟧ »EurOpenD3/mail/sendmail-5.65b+IDA-1.4.3.tar.Z« └─⟦f9e35cd84⟧ └─⟦this⟧ »sendmail/src/Makefile«
# # Copyright (c) 1988 Regents of the University of California. # All rights reserved. # # Redistribution and use in source and binary forms are permitted # provided that the above copyright notice and this paragraph are # duplicated in all such forms and that any documentation, # advertising materials, and other materials related to such # distribution and use acknowledge that the software was developed # by the University of California, Berkeley. The name of the # University may not be used to endorse or promote products derived # from this software without specific prior written permission. # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. # # @(#)Makefile 5.11 (Berkeley) 1/3/89 # HDRS= conf.h mailstats.h sendmail.h useful.h SRCS= alias.c arpadate.c clock.c collect.c conf.c convtime.c daemon.c \ deliver.c domain.c envelope.c err.c getloadavg.c headers.c \ macro.c main.c parseaddr.c queue.c readcf.c recipient.c \ savemail.c srvrsmtp.c stab.c stats.c sysexits.c trace.c \ usersmtp.c util.c version.c OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ deliver.o domain.o envelope.o err.o getloadavg.o headers.o \ macro.o main.o parseaddr.o queue.o readcf.o recipient.o \ savemail.o srvrsmtp.o stab.o stats.o sysexits.o trace.o \ usersmtp.o util.o version.o MAN= sendmail.0 newaliases.0 aliases.0 SHELL= /bin/sh CC= cc #CC= gcc -ansi -Dvax -fpcc-struct-return -fstrength-reduce # # Look for any missing routines in ../support and add them as needed to the # SRCS/OBJS after copying them over to . Also be sure that the pathnames # in conf.h reflect reality for your system. getenv.c/setenv.c usually come # as a pair. # # HP-UX systems will need flock.{c,h}, getenv.c, setenv.c, and sysexits.h from # ../support, sendmail.fc does not work with V3.1. Add -lBSD to the final # link step. # HP Apollos running >= 10.1 will complain a lot about wrong const char # usage since their ANSI include files are wrong. Don't use -A nansi # as getloadavg() will seg-fault. The file /usr/include/apollo/time.h is # missing the #ifdef _PROTOTYPE defines (see base.h in the same directory). # HP and Apollo are made for each other - neither company really understands # software. The sendmail.fc file doesn't work. See the top-level install # file for comments about /bin/mail as well. Then trade-in your Apollo. # Encore MultiMax will need -DUMAX added to DEFS to pick up the right # getloadavg() routine. A more recent version of the Bind software will # need to be installed first as the vendor libresolv.a file is missing # the res_search() call. # Mips running RISC should add -systype bsd43 to CFLAGS, and -lmld to the # final link step. If #define VSPRINTF is set in conf.h, add -ltermcap as # well to pick up vsprintf(). # IRIX systems will need -Dvfork=fork added to DEFS, getenv.c & setenv.c # from ../support, and -mld to the final link step. Add -lsun as well if # YP is #define'd in conf.h . # Next systems will need getenv.c & setenv.c from ../support, and will need # to install a more recent version of the Bind software for both the #include # files and -lresolv. No sendmail.fc support will be configured. # Convexen will need to #define SHARE in conf.h and add -lshare to the final # link step if the share scheduler is used. -pcc is no longer required. # /usr/include/arpa/nameser.h should have the bit field type changed from # u_char to u_int and "|| defined(__convex__)" added to the #if clause for # BIT_ZERO_ON_LEFT (BIG_ENDIAN). # AIX systems will need support/{setenv,getenv}.c, add -D_IBMESA -D_BSD # -Dedata=_edata to DEFS, -qlanglvl=ansi to CFLAGS, and -lbsd added to the # final link step. Operation with sendmail.fc still causes core dumps. # AIX should really be junked, but that's another story. # SUN systems will need support/{setenv,getenv}.c. # SUNs with shared libraries need to be linked with -Bstatic for reliable # operation. If when sendmail.fc is used and the executable either complains # when re-building the alias database or spawns runaway child processes, then # you have the localtime() bug introduced in SUNOS 4.1 (it stomps on byte 9 # of an 8 byte malloc). Get the fix from SUN or use ../uiuc/malloc.c # # If you need to make dsendmail, you may also need the new includes. # Try it w.o. the big -I first and see if any undefined structures turn up, # or if it bombs horribly when delivering messages. DEFS= #CFLAGS= -O -I. -I../../../services/bind/include ${DEFS} # Otherwise life is simple if libc.a or libresolv.a has the res_search() call. CFLAGS= -O -I. ${DEFS} GET= sccs get DELTA= sccs delta WHAT= what PRT= sccs prt # One of sendmail or dsendmail to set your local default make target all: sendmail # The date sendmail was compiled is written to the freeze file, # to avoid reading in a .fc file created by a different version. sendmail: ${OBJS} echo 'char datecompiled[] = "' `date` '";' >datecompiled.c ${CC} ${CFLAGS} -o $@ datecompiled.c ${OBJS} -ldbm size sendmail; ls -l sendmail; ${WHAT} < version.o dsendmail: ${OBJS} echo 'char datecompiled[] = "' `date` '";' >datecompiled.c ${CC} ${CFLAGS} -o sendmail datecompiled.c ${OBJS} -ldbm -lresolv size sendmail; ls -l sendmail; ${WHAT} < version.o install: ${MAN} # install -c -s -o root -m 4511 sendmail ${DESTDIR}/usr/lib install -c -s -o root -m 4511 sendmail ${DESTDIR}/usr/sbin -mkdir ${DESTDIR}/usr/local/lib/mail # install -c -o bin -g bin -m 644 /dev/null ${DESTDIR}/etc/sendmail.fc install -c -o bin -g bin -m 666 /dev/null ${DESTDIR}/usr/local/lib/mail/sendmail.st install -c -o bin -g bin -m 444 sendmail.hf ${DESTDIR}/usr/local/lib/mail/sendmail.hf install -c -o bin -g bin -m 444 sendmail.0 ${DESTDIR}/usr/man/cat8 install -c -o bin -g bin -m 444 aliases.0 ${DESTDIR}/usr/man/cat5 install -c -o bin -g bin -m 444 newaliases.0 ${DESTDIR}/usr/man/cat1 -mkdir ${DESTDIR}/usr/spool/mqueue chown root.wheel ${DESTDIR}/usr/spool/mqueue chmod 755 ${DESTDIR}/usr/spool/mqueue rm -f ${DESTDIR}/usr/ucb/newaliases # ln -s ${DESTDIR}/usr/lib/sendmail ${DESTDIR}/usr/ucb/newaliases cd ${DESTDIR}/usr/sbin; rm -f newaliases mailq; ln sendmail mailq; ln sendmail newaliases rm -f ${DESTDIR}/usr/ucb/mailq ln -s ${DESTDIR}/usr/lib/sendmail ${DESTDIR}/usr/ucb/mailq newaliases.0: newaliases.1 nroff -man newaliases.1 > newaliases.0 aliases.0: aliases.5 nroff -man aliases.5 > aliases.0 sendmail.0: sendmail.8 nroff -man sendmail.8 > sendmail.0 clean: ${SRCS} rm -f ${OBJS} core sendmail a.out Version.o datecompiled.* cleandir: clean rm -f ${MAN} tags .depend depend: ${SRCS} ${HDRS} mkdep ${CFLAGS} ${SRCS} prt: @(pr -f READ_ME NOTES Makefile; pr -f -b *.h ${SRCS}) | \ out -dest 3800 -bin 38 -pagedef L66 -font gt12 tags: ${SRCS} ctags ${SRCS} lint: ${SRCS} lint -chpb -I. ${DEFS} ${SRCS} # DO NOT DELETE THIS LINE -- mkdep uses it. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.