home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
TOP
/
USR
/
SRC
/
vcron.t.Z
/
vcron.t
/
VCRON
/
makefile.unix
< prev
next >
Wrap
Makefile
|
1988-11-15
|
5KB
|
148 lines
# Makefile for vixie's cron
#
# $Header: Makefile,v 1.5 87/05/06 10:15:05 paul Exp $
# $Source: /usr/src/local/vix/cron/Makefile,v $
# $Revision: 1.5 $
# $Log: Makefile,v $
# Revision 1.2 87/04/02 17:08:06 paul
# ATT/BSD compat stuff -- this is not complete
#
# Revision 1.1 87/03/31 12:05:46 paul
# Initial revision
#
# vix 30mar87 [goodbye, time.c; hello, getopt]
# vix 12feb87 [cleanup for distribution]
# vix 30dec86 [written]
#############################################################################
# Copyright 1987 by Vixie Enterprises
# All rights reserved
#
# Distribute freely, except: don't sell it, 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. Commercial redistribution is negotiable; contact me for details.
#
# 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, Vixie Enterprises, 329 Noe Street, San Francisco, CA, 94114,
# (415) 864-7013, {ucbvax!dual,ames,ucsfmis,lll-crg,sun}!ptsfa!vixie!paul.
#############################################################################
# NOTES:
# 'make' can be done by anyone
# 'make install' must be done by root
#
# why keep the cron daemon in /etc? sendmail is in /usr/lib, why
# not the cron daemon? i can't see a big use for cron while running
# single user... besides, the crontabs have always been in /usr/lib...
#
# the configurable stuff in this makefile consists of compilation
# options (use -O, cron runs forever) and destination directories.
# SHELL is for the 'augumented make' systems where 'make' imports
# SHELL from the environment and then uses it to run its commands.
# if your environment SHELL variable is /bin/csh, make goes real
# slow and sometimes does wrong things. BINDIR is where the
# 'crontab' command goes, and should be a common place like /usr/bin.
# LIBDIR is where the cron daemon lives; /usr/lib seems very logical
# (see note above). the cron daemon's name is 'crond', so if you
# decide to call the spool or library directory /usr/lib/cron, the
# name will be available.
#
# this package needs the 'bitstring macros' library, which is
# available from me or from the mod.sources archive. if you
# 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
# directory for cc. INCLUDE should be `-Isomethingorother'.
#
# there's more configuration info in cron.h; edit that first!
#################################### begin configurable stuff
# SHELL = /bin/sh
# BINDIR = /usr/bin
# LIBDIR = /usr/lib
#<<need bitstring.h>>
#INCLUDE = -I/usr/local/include
# INCLUDE =
#<<need getopt()>>
# libs = /usr/local/lib/libvix.a
#<<>>
#COMPAT = -DATT
# COMPAT = -DBSD
# CFLAGS = -O $(INCLUDE) $(COMPAT)
#################################### end configurable stuff
#
# .SUFFIXES : .c,v .h,v
#
# .c,v.o :; co -q $*.c ; $(CC) -c $(CFLAGS) $*.c
# @rm -f $*.c
#
# .c,v.c :; co -q $*.c
#
# .h,v.h :; co -q $*.h
#
# INFOS = README INFO.features INFO.install INFO.conversion
# MANPAGES = crontab.man5 crontab.man1 crond.man8
# HEADERS = cron.h
# SOURCES = crond.c crontab.c database.c do_command.c \
# entry.c env.c misc.c user.c
# SHAR_SOURCE = $(INFOS) $(MANPAGES) Makefile $(HEADERS) $(SOURCES)
#
# cron_obj = crond.o database.o user.o entry.o \
# misc.o do_command.o env.o
# crontab_obj = crontab.o misc.o entry.o env.o
#
# all : crond crontab
#
# crond : $(cron_obj)
# cc -o crond $(cron_obj) $(libs)
#
# crontab : $(crontab_obj)
# cc -o crontab $(crontab_obj) $(libs)
#
# install : all
# install -c -m 4100 -o root -s crond $(LIBDIR)
# install -c -m 4111 -o root -s crontab $(BINDIR)
# @echo " "
# @echo "Install the man pages according to local"
# @echo "convention. The man page files are:"
# @echo $(MANPAGES)
#
# clean :; rm -f *.o crond crontab a.out core
#
# shar : $(SHAR_SOURCE)
# makekit -m -s50k $(SHAR_SOURCE)
#
# there are better ways to do lint, like linting the sources that will be
# loaded together, specifying more options, etc; however, the s/375 version
# of lint just doesn't make all that stuff worthwhile.
# lint :
# lint $(SOURCES)
#
# $(cron_obj) : cron.h
# $(crontab_obj) : cron.h
#
# Have to disable all, cause OS9 has a little bit other make-file-format
ODIR= /h0/CMDS
RDIR=
CC= cc
CFLAGS= -ixt=/dd -q
LFLAGS= -ixq -bg -G
LIBS= -l=/h0/lib/os9lib.l
VCRON= vcron.r database.r user.r entry.r \
misc.r do_command.r env.r
CRONTAB = crontab.r misc.r entry.r env.r
all: vcron crontab
@echo ok
vcron: $(VCRON)
$(CC) $(LFLAGS) -m=0 $(VCRON) -f=$(ODIR)/vcron $(LIBS)
crontab: $(CRONTAB)
$(CC) $(LFLAGS) -m=0 $(CRONTAB) -f=$(ODIR)/crontab $(LIBS)
.c.r: cron.h bitstring.h