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 >
Makefile  |  1988-11-15  |  5KB  |  148 lines

  1. # Makefile for vixie's cron
  2. #
  3. # $Header: Makefile,v 1.5 87/05/06 10:15:05 paul Exp $
  4. # $Source: /usr/src/local/vix/cron/Makefile,v $
  5. # $Revision: 1.5 $
  6. # $Log:    Makefile,v $
  7. # Revision 1.2  87/04/02  17:08:06  paul
  8. # ATT/BSD compat stuff -- this is not complete
  9. # Revision 1.1  87/03/31  12:05:46  paul
  10. # Initial revision
  11. #
  12. # vix 30mar87 [goodbye, time.c; hello, getopt]
  13. # vix 12feb87 [cleanup for distribution]
  14. # vix 30dec86 [written]
  15.  
  16. #############################################################################
  17. # Copyright 1987 by Vixie Enterprises
  18. # All rights reserved
  19. # Distribute freely, except: don't sell it, don't remove my name from the
  20. # source or documentation (don't take credit for my work), mark your changes
  21. # (don't get me blamed for your possible bugs), don't alter or remove this
  22. # notice.  Commercial redistribution is negotiable; contact me for details.
  23. # Send bug reports, bug fixes, enhancements, requests, flames, etc., and
  24. # I'll try to keep a version up to date.  I can be reached as follows:
  25. # Paul Vixie, Vixie Enterprises, 329 Noe Street, San Francisco, CA, 94114,
  26. # (415) 864-7013, {ucbvax!dual,ames,ucsfmis,lll-crg,sun}!ptsfa!vixie!paul.
  27. #############################################################################
  28.  
  29. # NOTES:
  30. #    'make' can be done by anyone
  31. #    'make install' must be done by root
  32. #
  33. #    why keep the cron daemon in /etc?  sendmail is in /usr/lib, why
  34. #    not the cron daemon?  i can't see a big use for cron while running
  35. #    single user... besides, the crontabs have always been in /usr/lib...
  36. #
  37. #    the configurable stuff in this makefile consists of compilation
  38. #    options (use -O, cron runs forever) and destination directories.
  39. #    SHELL is for the 'augumented make' systems where 'make' imports
  40. #    SHELL from the environment and then uses it to run its commands.
  41. #    if your environment SHELL variable is /bin/csh, make goes real
  42. #    slow and sometimes does wrong things.  BINDIR is where the
  43. #    'crontab' command goes, and should be a common place like /usr/bin.
  44. #    LIBDIR is where the cron daemon lives; /usr/lib seems very logical
  45. #    (see note above).  the cron daemon's name is 'crond', so if you
  46. #    decide to call the spool or library directory /usr/lib/cron, the
  47. #    name will be available.
  48. #
  49. #    this package needs the 'bitstring macros' library, which is
  50. #    available from me or from the mod.sources archive.  if you
  51. #    put 'bitstring.h' in a non-standard place (i.e., not intuited by
  52. #    cc(1)), you will have to define INCLUDE to set the include
  53. #    directory for cc.  INCLUDE should be `-Isomethingorother'.
  54. #
  55. #    there's more configuration info in cron.h; edit that first!
  56.  
  57. #################################### begin configurable stuff
  58. # SHELL        =    /bin/sh
  59. # BINDIR        =    /usr/bin
  60. # LIBDIR        =    /usr/lib
  61. #<<need bitstring.h>>
  62. #INCLUDE    =    -I/usr/local/include
  63. # INCLUDE        =
  64. #<<need getopt()>>
  65. # libs        =    /usr/local/lib/libvix.a
  66. #<<>>
  67. #COMPAT        =    -DATT
  68. # COMPAT        =    -DBSD
  69. # CFLAGS        =    -O $(INCLUDE) $(COMPAT)
  70. #################################### end configurable stuff
  71. # .SUFFIXES    :    .c,v .h,v
  72. # .c,v.o        :;    co -q $*.c ; $(CC) -c $(CFLAGS) $*.c
  73. #             @rm -f $*.c
  74. # .c,v.c        :;    co -q $*.c
  75. # .h,v.h        :;    co -q $*.h
  76. # INFOS        =    README INFO.features INFO.install INFO.conversion
  77. # MANPAGES    =    crontab.man5 crontab.man1 crond.man8
  78. # HEADERS        =    cron.h
  79. # SOURCES        =    crond.c crontab.c database.c do_command.c \
  80. #             entry.c env.c misc.c user.c
  81. # SHAR_SOURCE    =    $(INFOS) $(MANPAGES) Makefile $(HEADERS) $(SOURCES)
  82. # cron_obj    =    crond.o database.o user.o entry.o \
  83. #             misc.o do_command.o env.o
  84. # crontab_obj    =    crontab.o misc.o entry.o env.o
  85. # all        :    crond crontab
  86. # crond        :    $(cron_obj)
  87. #             cc -o crond $(cron_obj) $(libs)
  88. # crontab        :    $(crontab_obj)
  89. #             cc -o crontab $(crontab_obj) $(libs)
  90. # install        :    all
  91. #             install -c -m 4100 -o root -s crond $(LIBDIR)
  92. #             install -c -m 4111 -o root -s crontab $(BINDIR)
  93. #             @echo " "
  94. #             @echo "Install the man pages according to local"
  95. #             @echo "convention.  The man page files are:"
  96. #             @echo $(MANPAGES)
  97. # clean        :;    rm -f *.o crond crontab a.out core
  98. # shar        :    $(SHAR_SOURCE)
  99. #             makekit -m -s50k $(SHAR_SOURCE)
  100. # there are better ways to do lint, like linting the sources that will be
  101. # loaded together, specifying more options, etc; however, the s/375 version
  102. # of lint just doesn't make all that stuff worthwhile.
  103. # lint        :
  104. #             lint $(SOURCES)
  105. # $(cron_obj)    :    cron.h
  106. # $(crontab_obj)    :    cron.h
  107. #
  108. # Have to disable all, cause OS9 has a little bit other make-file-format
  109. ODIR=    /h0/CMDS
  110. RDIR=
  111. CC=    cc
  112. CFLAGS=    -ixt=/dd -q
  113. LFLAGS=    -ixq -bg -G
  114. LIBS=    -l=/h0/lib/os9lib.l
  115.  
  116. VCRON=    vcron.r database.r user.r entry.r \
  117.     misc.r do_command.r env.r
  118.  
  119. CRONTAB    =    crontab.r misc.r entry.r env.r
  120.  
  121. all:    vcron crontab
  122.     @echo ok
  123.  
  124. vcron:  $(VCRON)
  125.     $(CC) $(LFLAGS) -m=0 $(VCRON) -f=$(ODIR)/vcron $(LIBS)
  126.  
  127. crontab:    $(CRONTAB)
  128.     $(CC) $(LFLAGS) -m=0 $(CRONTAB) -f=$(ODIR)/crontab $(LIBS)
  129.  
  130. .c.r: cron.h bitstring.h
  131.