Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/cron/doc/Makefile.vixie
#/* Copyright 1988,1990,1993,1994 by Paul Vixie | #/* Copyright 1988,1990,1993,1994 by Paul Vixie | ||||
# * All rights reserved | # * All rights reserved | ||||
# * | |||||
# * Distribute freely, except: don't remove my name from the source or | |||||
# * documentation (don't take credit for my work), mark your changes (don't | |||||
# * get me blamed for your possible bugs), don't alter or remove this | |||||
# * notice. May be sold if buildable source is provided to buyer. No | |||||
# * warrantee of any kind, express or implied, is included with this | |||||
# * software; use at your own risk, responsibility for damages (if any) to | |||||
# * anyone resulting from the use of this software rests entirely with the | |||||
# * user. | |||||
# * | |||||
# * Send bug reports, bug fixes, enhancements, requests, flames, etc., and | |||||
# * I'll try to keep a version up to date. I can be reached as follows: | |||||
# * Paul Vixie <paul@vix.com> uunet!decwrl!vixie!paul | |||||
# */ | # */ | ||||
## Copyright (c) 1997 by Internet Software Consortium. | |||||
## | |||||
## Permission to use, copy, modify, and distribute this software for any | |||||
## purpose with or without fee is hereby granted, provided that the above | |||||
## copyright notice and this permission notice appear in all copies. | |||||
## | |||||
## THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS | |||||
## ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES | |||||
## OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE | |||||
## CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL | |||||
## DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR | |||||
## PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS | |||||
## ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | |||||
## SOFTWARE. | |||||
# Makefile for vixie's cron | # Makefile for vixie's cron | ||||
# | # | ||||
# $FreeBSD$ | # $Id: Makefile,v 1.2 1998/08/14 00:32:35 vixie Exp $ | ||||
# | # | ||||
# vix 03mar88 [moved to RCS, rest of log is in there] | # vix 03mar88 [moved to RCS, rest of log is in there] | ||||
# vix 30mar87 [goodbye, time.c; hello, getopt] | # vix 30mar87 [goodbye, time.c; hello, getopt] | ||||
# vix 12feb87 [cleanup for distribution] | # vix 12feb87 [cleanup for distribution] | ||||
# vix 30dec86 [written] | # vix 30dec86 [written] | ||||
# NOTES: | # NOTES: | ||||
# 'make' can be done by anyone | # 'make' can be done by anyone | ||||
# 'make install' must be done by root | # 'make install' must be done by root | ||||
# | # | ||||
# this package needs getopt(3), bitstring(3), and BSD install(8). | # this package needs getopt(3), bitstring(3), and BSD install(8). | ||||
# | # | ||||
# the configurable stuff in this makefile consists of compilation | # the configurable stuff in this makefile consists of compilation | ||||
# options (use -O, cron runs forever) and destination directories. | # options (use -O, cron runs forever) and destination directories. | ||||
# SHELL is for the 'augumented make' systems where 'make' imports | # SHELL is for the 'augumented make' systems where 'make' imports | ||||
# SHELL from the environment and then uses it to run its commands. | # SHELL from the environment and then uses it to run its commands. | ||||
# if your environment SHELL variable is /bin/csh, make goes real | # if your environment SHELL variable is /bin/csh, make goes real | ||||
# slow and sometimes does the wrong thing. | # slow and sometimes does the wrong thing. | ||||
# | # | ||||
# this package needs the 'bitstring macros' library, which is | # this package needs the 'bitstring macros' library, which is | ||||
# available from me or from the comp.sources.unix archive. if you | # available from me or from the comp.sources.unix archive. if you | ||||
# put 'bitstring.h' in a non-standard place (i.e., not intuited by | # put 'bitstring.h' in a non-standard place (i.e., not intuited by | ||||
# cc(1)), you will have to define INCLUDE to set the include | # cc(1)), you will have to define INCLUDE to set the include | ||||
# directory for cc. INCLUDE should be `-Isomethingorother'. | # directory for cc. INCLUDE should be `-Isomethingorother'. | ||||
# | # | ||||
# there's more configuration info in config.h; edit that first! | # there's more configuration info in config.h; edit that first! | ||||
#################################### begin configurable stuff | #################################### begin configurable stuff | ||||
#<<DESTROOT is assumed to have ./etc, ./bin, and ./man subdirectories>> | #<<DESTROOT is assumed to have ./etc, ./bin, and ./man subdirectories>> | ||||
DESTROOT = $(DESTDIR)/usr | DESTROOT = $(DESTDIR)/usr | ||||
DESTSBIN = $(DESTROOT)/sbin | DESTSBIN = $(DESTROOT)/sbin | ||||
DESTBIN = $(DESTROOT)/bin | DESTBIN = $(DESTROOT)/bin | ||||
DESTMAN = $(DESTROOT)/share/man | DESTMAN = $(DESTROOT)/share/man | ||||
#<<need bitstring.h>> | #<<need bitstring.h>> | ||||
INCLUDE = -I. | INCLUDE = -I. | ||||
#INCLUDE = | #INCLUDE = | ||||
#<<need getopt()>> | #<<need getopt()>> | ||||
LIBS = | LIBS = | ||||
#<<optimize or debug?>> | #<<optimize or debug?>> | ||||
#OPTIM = -O | #CDEBUG = -O | ||||
OPTIM = -g | CDEBUG = -g | ||||
#<<ATT or BSD or POSIX?>> | |||||
# (ATT untested) | |||||
#COMPAT = -DATT | |||||
#(BSD is only needed if <sys/params.h> does not define it, as on ULTRIX) | |||||
#COMPAT = -DBSD | |||||
# (POSIX) | |||||
#COMPAT = -DPOSIX | |||||
#<<lint flags of choice?>> | #<<lint flags of choice?>> | ||||
LINTFLAGS = -hbxa $(INCLUDE) $(COMPAT) $(DEBUGGING) | LINTFLAGS = -hbxa $(INCLUDE) $(DEBUGGING) | ||||
#<<want to use a nonstandard CC?>> | #<<want to use a nonstandard CC?>> | ||||
#CC = vcc | CC = gcc -Wall -Wno-unused -Wno-comment | ||||
#<<manifest defines>> | #<<manifest defines>> | ||||
DEFS = | DEFS = | ||||
#(SGI IRIX systems need this) | #(SGI IRIX systems need this) | ||||
#DEFS = -D_BSD_SIGNALS -Dconst= | #DEFS = -D_BSD_SIGNALS -Dconst= | ||||
#<<the name of the BSD-like install program>> | #<<the name of the BSD-like install program>> | ||||
#INSTALL = installbsd | #INSTALL = installbsd | ||||
INSTALL = install | INSTALL = install | ||||
#<<any special load flags>> | #<<any special load flags>> | ||||
LDFLAGS = | LDFLAGS = | ||||
#################################### end configurable stuff | #################################### end configurable stuff | ||||
SHELL = /bin/sh | SHELL = /bin/sh | ||||
CFLAGS = $(OPTIM) $(INCLUDE) $(COMPAT) $(DEFS) | CFLAGS = $(CDEBUG) $(INCLUDE) $(DEFS) | ||||
INFOS = README CHANGES FEATURES INSTALL CONVERSION THANKS MAIL | INFOS = README CHANGES FEATURES INSTALL CONVERSION THANKS MAIL | ||||
MANPAGES = bitstring.3 crontab.5 crontab.1 cron.8 putman.sh | MANPAGES = bitstring.3 crontab.5 crontab.1 cron.8 putman.sh | ||||
HEADERS = bitstring.h cron.h config.h pathnames.h \ | HEADERS = bitstring.h cron.h config.h pathnames.h externs.h | ||||
externs.h compat.h | |||||
SOURCES = cron.c crontab.c database.c do_command.c entry.c \ | SOURCES = cron.c crontab.c database.c do_command.c entry.c \ | ||||
env.c job.c user.c popen.c misc.c compat.c | env.c job.c user.c popen.c misc.c | ||||
SHAR_SOURCE = $(INFOS) $(MANPAGES) Makefile $(HEADERS) $(SOURCES) | SHAR_SOURCE = $(INFOS) $(MANPAGES) Makefile $(HEADERS) $(SOURCES) | ||||
LINT_CRON = cron.c database.c user.c entry.c compat.c \ | LINT_CRON = cron.c database.c user.c entry.c \ | ||||
misc.c job.c do_command.c env.c popen.c | misc.c job.c do_command.c env.c popen.c | ||||
LINT_CRONTAB = crontab.c misc.c entry.c env.c compat.c | LINT_CRONTAB = crontab.c misc.c entry.c env.c | ||||
CRON_OBJ = cron.o database.o user.o entry.o job.o do_command.o \ | CRON_OBJ = cron.o database.o user.o entry.o job.o do_command.o \ | ||||
misc.o env.o popen.o compat.o | misc.o env.o popen.o | ||||
CRONTAB_OBJ = crontab.o misc.o entry.o env.o compat.o | CRONTAB_OBJ = crontab.o misc.o entry.o env.o | ||||
all : cron crontab | all : cron crontab | ||||
lint : | lint : | ||||
lint $(LINTFLAGS) $(LINT_CRON) $(LIBS) \ | lint $(LINTFLAGS) $(LINT_CRON) $(LIBS) \ | ||||
|grep -v "constant argument to NOT" 2>&1 | |grep -v "constant argument to NOT" 2>&1 | ||||
lint $(LINTFLAGS) $(LINT_CRONTAB) $(LIBS) \ | lint $(LINTFLAGS) $(LINT_CRONTAB) $(LIBS) \ | ||||
|grep -v "constant argument to NOT" 2>&1 | |grep -v "constant argument to NOT" 2>&1 | ||||
cron : $(CRON_OBJ) | cron : $(CRON_OBJ) | ||||
$(CC) $(LDFLAGS) -o cron $(CRON_OBJ) $(LIBS) | $(CC) $(LDFLAGS) -o cron $(CRON_OBJ) $(LIBS) | ||||
crontab : $(CRONTAB_OBJ) | crontab : $(CRONTAB_OBJ) | ||||
$(CC) $(LDFLAGS) -o crontab $(CRONTAB_OBJ) $(LIBS) | $(CC) $(LDFLAGS) -o crontab $(CRONTAB_OBJ) $(LIBS) | ||||
install : all | install : all | ||||
$(INSTALL) -c -m 111 -o root -s cron $(DESTSBIN)/ | $(INSTALL) -c -m 111 -o root -s cron $(DESTSBIN)/ | ||||
$(INSTALL) -c -m 4111 -o root -s crontab $(DESTBIN)/ | $(INSTALL) -c -m 4111 -o root -s crontab $(DESTBIN)/ | ||||
sh putman.sh crontab.1 $(DESTMAN) | sh putman.sh crontab.1 $(DESTMAN) | ||||
sh putman.sh cron.8 $(DESTMAN) | sh putman.sh cron.8 $(DESTMAN) | ||||
sh putman.sh crontab.5 $(DESTMAN) | sh putman.sh crontab.5 $(DESTMAN) | ||||
clean :; rm -f *.o cron crontab a.out core tags *~ #* | clean :; rm -f *.o cron crontab a.out core tags *~ #* | ||||
tags :; ctags ${SOURCES} | |||||
kit : $(SHAR_SOURCE) | kit : $(SHAR_SOURCE) | ||||
makekit -m -s99k $(SHAR_SOURCE) | makekit -m -s99k $(SHAR_SOURCE) | ||||
$(CRON_OBJ) : cron.h compat.h config.h externs.h pathnames.h Makefile | $(CRON_OBJ) : cron.h config.h externs.h pathnames.h Makefile | ||||
$(CRONTAB_OBJ) : cron.h compat.h config.h externs.h pathnames.h Makefile | $(CRONTAB_OBJ) : cron.h config.h externs.h pathnames.h Makefile |