xref: /dflybsd-src/usr.sbin/cron/doc/Makefile.vixie (revision 86d7f5d305c6adaa56ff4582ece9859d73106103)
186d7f5d3SJohn Marino#/* Copyright 1988,1990,1993,1994 by Paul Vixie
286d7f5d3SJohn Marino# * All rights reserved
386d7f5d3SJohn Marino# *
486d7f5d3SJohn Marino# * Distribute freely, except: don't remove my name from the source or
586d7f5d3SJohn Marino# * documentation (don't take credit for my work), mark your changes (don't
686d7f5d3SJohn Marino# * get me blamed for your possible bugs), don't alter or remove this
786d7f5d3SJohn Marino# * notice.  May be sold if buildable source is provided to buyer.  No
886d7f5d3SJohn Marino# * warrantee of any kind, express or implied, is included with this
986d7f5d3SJohn Marino# * software; use at your own risk, responsibility for damages (if any) to
1086d7f5d3SJohn Marino# * anyone resulting from the use of this software rests entirely with the
1186d7f5d3SJohn Marino# * user.
1286d7f5d3SJohn Marino# *
1386d7f5d3SJohn Marino# * Send bug reports, bug fixes, enhancements, requests, flames, etc., and
1486d7f5d3SJohn Marino# * I'll try to keep a version up to date.  I can be reached as follows:
1586d7f5d3SJohn Marino# * Paul Vixie          <paul@vix.com>          uunet!decwrl!vixie!paul
1686d7f5d3SJohn Marino# */
1786d7f5d3SJohn Marino
1886d7f5d3SJohn Marino# Makefile for vixie's cron
1986d7f5d3SJohn Marino#
2086d7f5d3SJohn Marino# $FreeBSD: src/usr.sbin/cron/doc/Makefile.vixie,v 1.5 1999/08/28 01:15:53 peter Exp $
2186d7f5d3SJohn Marino# $DragonFly: src/usr.sbin/cron/doc/Makefile.vixie,v 1.2 2003/06/17 04:29:53 dillon Exp $
2286d7f5d3SJohn Marino#
2386d7f5d3SJohn Marino# vix 03mar88 [moved to RCS, rest of log is in there]
2486d7f5d3SJohn Marino# vix 30mar87 [goodbye, time.c; hello, getopt]
2586d7f5d3SJohn Marino# vix 12feb87 [cleanup for distribution]
2686d7f5d3SJohn Marino# vix 30dec86 [written]
2786d7f5d3SJohn Marino
2886d7f5d3SJohn Marino# NOTES:
2986d7f5d3SJohn Marino#	'make' can be done by anyone
3086d7f5d3SJohn Marino#	'make install' must be done by root
3186d7f5d3SJohn Marino#
3286d7f5d3SJohn Marino#	this package needs getopt(3), bitstring(3), and BSD install(8).
3386d7f5d3SJohn Marino#
3486d7f5d3SJohn Marino#	the configurable stuff in this makefile consists of compilation
3586d7f5d3SJohn Marino#	options (use -O, cron runs forever) and destination directories.
3686d7f5d3SJohn Marino#	SHELL is for the 'augumented make' systems where 'make' imports
3786d7f5d3SJohn Marino#	SHELL from the environment and then uses it to run its commands.
3886d7f5d3SJohn Marino#	if your environment SHELL variable is /bin/csh, make goes real
3986d7f5d3SJohn Marino#	slow and sometimes does the wrong thing.
4086d7f5d3SJohn Marino#
4186d7f5d3SJohn Marino#	this package needs the 'bitstring macros' library, which is
4286d7f5d3SJohn Marino#	available from me or from the comp.sources.unix archive.  if you
4386d7f5d3SJohn Marino#	put 'bitstring.h' in a non-standard place (i.e., not intuited by
4486d7f5d3SJohn Marino#	cc(1)), you will have to define INCLUDE to set the include
4586d7f5d3SJohn Marino#	directory for cc.  INCLUDE should be `-Isomethingorother'.
4686d7f5d3SJohn Marino#
4786d7f5d3SJohn Marino#	there's more configuration info in config.h; edit that first!
4886d7f5d3SJohn Marino
4986d7f5d3SJohn Marino#################################### begin configurable stuff
5086d7f5d3SJohn Marino#<<DESTROOT is assumed to have ./etc, ./bin, and ./man subdirectories>>
5186d7f5d3SJohn MarinoDESTROOT	=	$(DESTDIR)/usr
5286d7f5d3SJohn MarinoDESTSBIN	=	$(DESTROOT)/sbin
5386d7f5d3SJohn MarinoDESTBIN		=	$(DESTROOT)/bin
5486d7f5d3SJohn MarinoDESTMAN		=	$(DESTROOT)/share/man
5586d7f5d3SJohn Marino#<<need bitstring.h>>
5686d7f5d3SJohn MarinoINCLUDE		=	-I.
5786d7f5d3SJohn Marino#INCLUDE	=
5886d7f5d3SJohn Marino#<<need getopt()>>
5986d7f5d3SJohn MarinoLIBS		=
6086d7f5d3SJohn Marino#<<optimize or debug?>>
6186d7f5d3SJohn Marino#OPTIM		=	-O
6286d7f5d3SJohn MarinoOPTIM		=	-g
6386d7f5d3SJohn Marino#<<ATT or BSD or POSIX?>>
6486d7f5d3SJohn Marino# (ATT untested)
6586d7f5d3SJohn Marino#COMPAT		=	-DATT
6686d7f5d3SJohn Marino#(BSD is only needed if <sys/params.h> does not define it, as on ULTRIX)
6786d7f5d3SJohn Marino#COMPAT		=	-DBSD
6886d7f5d3SJohn Marino# (POSIX)
6986d7f5d3SJohn Marino#COMPAT		=	-DPOSIX
7086d7f5d3SJohn Marino#<<lint flags of choice?>>
7186d7f5d3SJohn MarinoLINTFLAGS	=	-hbxa $(INCLUDE) $(COMPAT) $(DEBUGGING)
7286d7f5d3SJohn Marino#<<want to use a nonstandard CC?>>
7386d7f5d3SJohn Marino#CC		=	vcc
7486d7f5d3SJohn Marino#<<manifest defines>>
7586d7f5d3SJohn MarinoDEFS		=
7686d7f5d3SJohn Marino#(SGI IRIX systems need this)
7786d7f5d3SJohn Marino#DEFS		=	-D_BSD_SIGNALS -Dconst=
7886d7f5d3SJohn Marino#<<the name of the BSD-like install program>>
7986d7f5d3SJohn Marino#INSTALL = installbsd
8086d7f5d3SJohn MarinoINSTALL = install
8186d7f5d3SJohn Marino#<<any special load flags>>
8286d7f5d3SJohn MarinoLDFLAGS		=
8386d7f5d3SJohn Marino#################################### end configurable stuff
8486d7f5d3SJohn Marino
8586d7f5d3SJohn MarinoSHELL		=	/bin/sh
8686d7f5d3SJohn MarinoCFLAGS		=	$(OPTIM) $(INCLUDE) $(COMPAT) $(DEFS)
8786d7f5d3SJohn Marino
8886d7f5d3SJohn MarinoINFOS		=	README CHANGES FEATURES INSTALL CONVERSION THANKS MAIL
8986d7f5d3SJohn MarinoMANPAGES	=	bitstring.3 crontab.5 crontab.1 cron.8 putman.sh
9086d7f5d3SJohn MarinoHEADERS		=	bitstring.h cron.h config.h pathnames.h \
9186d7f5d3SJohn Marino			externs.h compat.h
9286d7f5d3SJohn MarinoSOURCES		=	cron.c crontab.c database.c do_command.c entry.c \
9386d7f5d3SJohn Marino			env.c job.c user.c popen.c misc.c compat.c
9486d7f5d3SJohn MarinoSHAR_SOURCE	=	$(INFOS) $(MANPAGES) Makefile $(HEADERS) $(SOURCES)
9586d7f5d3SJohn MarinoLINT_CRON	=	cron.c database.c user.c entry.c compat.c \
9686d7f5d3SJohn Marino			misc.c job.c do_command.c env.c popen.c
9786d7f5d3SJohn MarinoLINT_CRONTAB	=	crontab.c misc.c entry.c env.c compat.c
9886d7f5d3SJohn MarinoCRON_OBJ	=	cron.o database.o user.o entry.o job.o do_command.o \
9986d7f5d3SJohn Marino			misc.o env.o popen.o compat.o
10086d7f5d3SJohn MarinoCRONTAB_OBJ	=	crontab.o misc.o entry.o env.o compat.o
10186d7f5d3SJohn Marino
10286d7f5d3SJohn Marinoall		:	cron crontab
10386d7f5d3SJohn Marino
10486d7f5d3SJohn Marinolint		:
10586d7f5d3SJohn Marino			lint $(LINTFLAGS) $(LINT_CRON) $(LIBS) \
10686d7f5d3SJohn Marino			|grep -v "constant argument to NOT" 2>&1
10786d7f5d3SJohn Marino			lint $(LINTFLAGS) $(LINT_CRONTAB) $(LIBS) \
10886d7f5d3SJohn Marino			|grep -v "constant argument to NOT" 2>&1
10986d7f5d3SJohn Marino
11086d7f5d3SJohn Marinocron		:	$(CRON_OBJ)
11186d7f5d3SJohn Marino			$(CC) $(LDFLAGS) -o cron $(CRON_OBJ) $(LIBS)
11286d7f5d3SJohn Marino
11386d7f5d3SJohn Marinocrontab		:	$(CRONTAB_OBJ)
11486d7f5d3SJohn Marino			$(CC) $(LDFLAGS) -o crontab $(CRONTAB_OBJ) $(LIBS)
11586d7f5d3SJohn Marino
11686d7f5d3SJohn Marinoinstall		:	all
11786d7f5d3SJohn Marino			$(INSTALL) -c -m  111 -o root -s cron    $(DESTSBIN)/
11886d7f5d3SJohn Marino			$(INSTALL) -c -m 4111 -o root -s crontab $(DESTBIN)/
11986d7f5d3SJohn Marino			sh putman.sh crontab.1 $(DESTMAN)
12086d7f5d3SJohn Marino			sh putman.sh cron.8    $(DESTMAN)
12186d7f5d3SJohn Marino			sh putman.sh crontab.5 $(DESTMAN)
12286d7f5d3SJohn Marino
12386d7f5d3SJohn Marinoclean		:;	rm -f *.o cron crontab a.out core tags *~ #*
12486d7f5d3SJohn Marino
12586d7f5d3SJohn Marinokit		:	$(SHAR_SOURCE)
12686d7f5d3SJohn Marino			makekit -m -s99k $(SHAR_SOURCE)
12786d7f5d3SJohn Marino
12886d7f5d3SJohn Marino$(CRON_OBJ)	:	cron.h compat.h config.h externs.h pathnames.h Makefile
12986d7f5d3SJohn Marino$(CRONTAB_OBJ)	:	cron.h compat.h config.h externs.h pathnames.h Makefile
130