Debian Codegraph @

Makefile

raw ◀ ▶
Source reconstructed at patch state 5 of 7 — not the installed (fully patched) source.
7 Debian patches touch this file
1 #/* Copyright 1988,1990,1993,1994 by Paul Vixie
2 # * All rights reserved
3 # *
4 # * Distribute freely, except: don't remove my name from the source or
5 # * documentation (don't take credit for my work), mark your changes (don't
6 # * get me blamed for your possible bugs), don't alter or remove this
7 # * notice. May be sold if buildable source is provided to buyer. No
8 # * warrantee of any kind, express or implied, is included with this
9 # * software; use at your own risk, responsibility for damages (if any) to
10 # * anyone resulting from the use of this software rests entirely with the
11 # * user.
12 # *
13 # * Send bug reports, bug fixes, enhancements, requests, flames, etc., and
14 # * I'll try to keep a version up to date. I can be reached as follows:
15 # * Paul Vixie <[email protected]> uunet!decwrl!vixie!paul
16 # */
17
18 # Makefile for vixie's cron
19 #
20 # $Id: Makefile,v 2.9 1994/01/15 20:43:43 vixie Exp $
21 #
22 # vix 03mar88 [moved to RCS, rest of log is in there]
23 # vix 30mar87 [goodbye, time.c; hello, getopt]
24 # vix 12feb87 [cleanup for distribution]
25 # vix 30dec86 [written]
26
27 # NOTES:
28 # 'make' can be done by anyone
29 # 'make install' must be done by root
30 #
31 # this package needs getopt(3), bitstring(3), and BSD install(8).
32 #
33 # the configurable stuff in this makefile consists of compilation
34 # options (use -O, cron runs forever) and destination directories.
35 # SHELL is for the 'augumented make' systems where 'make' imports
36 # SHELL from the environment and then uses it to run its commands.
37 # if your environment SHELL variable is /bin/csh, make goes real
38 # slow and sometimes does the wrong thing.
39 #
40 # this package needs the 'bitstring macros' library, which is
41 # available from me or from the comp.sources.unix archive. if you
42 # put 'bitstring.h' in a non-standard place (i.e., not intuited by
43 # cc(1)), you will have to define INCLUDE to set the include
44 # directory for cc. INCLUDE should be `-Isomethingorother'.
45 #
46 # there's more configuration info in config.h; edit that first!
47
48 #################################### begin configurable stuff
49 #<<DESTROOT is assumed to have ./etc, ./bin, and ./man subdirectories>>
50 DESTROOT = $(DESTDIR)/usr
51 DESTSBIN = $(DESTROOT)/sbin
52 DESTBIN = $(DESTROOT)/bin
53 DESTMAN = $(DESTROOT)/share/man
54 #<<need bitstring.h>>
55 INCLUDE = -I.
56 #INCLUDE =
57 #<<need getopt()>>
58 LIBS = $(PAM_LIBS) $(SELINUX_LIBS)
59 #<<optimize or debug?>>
60 #OPTIM = -O
61 OPTIM = -g
62 #<<ATT or BSD or POSIX?>>
63 # (ATT untested)
64 #COMPAT = -DATT
65 #(BSD is only needed if <sys/params.h> does not define it, as on ULTRIX)
66 #COMPAT = -DBSD
67 # (POSIX)
68 COMPAT = -DPOSIX
69 #<<lint flags of choice?>>
70 LINTFLAGS = -hbxa $(INCLUDE) $(COMPAT) $(DEBUGGING)
71 #<<want to use a nonstandard CC?>>
72 #CC = vcc
73 #<<manifest defines>>
74 # Allow override from command line
75 DEBUG_DEFS ?= -DDEBUGGING=0
76 DEFS = $(DEBUG_DEFS) $(PAM_DEFS) $(SELINUX_DEFS)
77 #(SGI IRIX systems need this)
78 #DEFS = -D_BSD_SIGNALS -Dconst=
79 #<<the name of the BSD-like install program>>
80 #INSTALL = installbsd
81 INSTALL = install
82 #<<any special load flags>>
83 #LDFLAGS =
84 #################################### end configurable stuff
85
86 SHELL = /bin/sh
87 CFLAGS += $(INCLUDE) $(COMPAT) $(DEFS)
88
89 INFOS = README CHANGES FEATURES INSTALL CONVERSION THANKS MAIL
90 MANPAGES = bitstring.3 crontab.5 crontab.1 cron.8 putman.sh
91 HEADERS = bitstring.h cron.h config.h pathnames.h \
92 externs.h compat.h
93 SOURCES = cron.c crontab.c database.c do_command.c entry.c \
94 env.c job.c user.c popen.c misc.c compat.c
95 SHAR_SOURCE = $(INFOS) $(MANPAGES) Makefile $(HEADERS) $(SOURCES)
96 LINT_CRON = cron.c database.c user.c entry.c compat.c \
97 misc.c job.c do_command.c env.c popen.c
98 LINT_CRONTAB = crontab.c misc.c entry.c env.c compat.c
99 CRON_OBJ = cron.o database.o user.o entry.o job.o do_command.o \
100 misc.o env.o popen.o compat.o
101 CRONTAB_OBJ = crontab.o misc.o entry.o env.o compat.o
102
103 all : cron crontab
104
105 lint :
106 lint $(LINTFLAGS) $(LINT_CRON) $(LIBS) \
107 |grep -v "constant argument to NOT" 2>&1
108 lint $(LINTFLAGS) $(LINT_CRONTAB) $(LIBS) \
109 |grep -v "constant argument to NOT" 2>&1
110
111 cron : $(CRON_OBJ)
112 $(CC) $(LDFLAGS) -o cron $(CRON_OBJ) $(LIBS)
113
114 crontab : $(CRONTAB_OBJ)
115 $(CC) $(LDFLAGS) -o crontab $(CRONTAB_OBJ) $(LIBS)
116
117 install : all
118 $(INSTALL) -c -m 755 -o root cron $(DESTSBIN)/
119 $(INSTALL) -c -m 4755 -o root crontab $(DESTBIN)/
120 sh putman.sh crontab.1 $(DESTMAN)
121 sh putman.sh cron.8 $(DESTMAN)
122 sh putman.sh crontab.5 $(DESTMAN)
123
124 clean :
125 rm -f *.o cron crontab a.out core tags *~ #*
126
127 kit : $(SHAR_SOURCE)
128 makekit -m -s99k $(SHAR_SOURCE)
129
130 $(CRON_OBJ) : cron.h compat.h config.h externs.h pathnames.h Makefile
131 $(CRONTAB_OBJ) : cron.h compat.h config.h externs.h pathnames.h Makefile