home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / rcs-5.6.0.1.tar.gz / rcs-5.6.0.1.tar / rcs5.6.0.1 / src / Makefile < prev    next >
Makefile  |  1993-03-24  |  7KB  |  243 lines

  1. # $Id: Makefile,v 5.16.0.1 1993/03/25 04:36:22 eggert Exp $
  2. # Copyright (C) 1982, 1988, 1989 Walter Tichy
  3. # Copyright 1990, 1991 by Paul Eggert
  4. #   Distributed under license by the Free Software Foundation, Inc.
  5. #
  6. # This file is part of RCS.
  7. #
  8. # RCS is free software; you can redistribute it and/or modify
  9. # it under the terms of the GNU General Public License as published by
  10. # the Free Software Foundation; either version 2, or (at your option)
  11. # any later version.
  12. #
  13. # RCS is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. # GNU General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU General Public License
  19. # along with RCS; see the file COPYING.  If not, write to
  20. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  21. #
  22. # Report problems and direct all questions to:
  23. #
  24. #    rcs-bugs@cs.purdue.edu
  25. #
  26.  
  27. # default target
  28. default :: all
  29.  
  30. # See README for more information on the configuration section.
  31. # ----- start of configuration section -----
  32.  
  33. #(Unix
  34.  
  35.  CC = cc
  36. #CC = bsdcc -qlanglvl=ansi# AIX
  37. #CC = cc -g# debug
  38. #CC = gcc -g# GCC
  39.  
  40.  CC_D =
  41.  
  42.  CC_O = -O
  43. #CC_O =# debug
  44. #CC_O = -O -R# BSD compilers that do not support `const'
  45. #CC_O = -O -fdelayed-branch -finline-functions -fomit-frame-pointer -fstrength-reduce# GCC options for brave souls
  46.  
  47.  CC_W =
  48. #CC_W = -Wall -Wcast-qual -Wpointer-arith -Wshadow -Wwrite-strings# GCC
  49.  
  50.  CFLAGS = $(CC_D) $(CC_O) $(CC_W)
  51.  
  52.  COMPAT2 = 0
  53. #COMPAT2 = 1
  54.  
  55.  DIFF = $(DIFFPREFIX)diff
  56. #DIFF = $(DIFFPREFIX)rdiff# short for ``RCS diff'' on some hosts
  57.  
  58.  DIFFPREFIX = /usr/local/gnu/# GNU diff -- must be version 1.15 or later
  59. #DIFFPREFIX = /bin/# traditional diff
  60. #DIFFPREFIX = /usr/bin/# traditional diff (alternate name)
  61.  
  62.  DIFF_FLAGS = -an# GNU diff
  63. #DIFF_FLAGS = -n# traditional diff
  64.  
  65.  DIFF_L = 1# GNU diff
  66. #DIFF_L = 0# traditional diff
  67.  
  68.  DIFF_SUCCESS = 0
  69. #DIFF_SUCCESS = EXIT_SUCCESS
  70.  DIFF_FAILURE = 1
  71. #DIFF_FAILURE = EXIT_FAILURE
  72.  DIFF_TROUBLE = 2
  73. #DIFF_TROUBLE = (EXIT_FAILURE*2)
  74.  
  75.  DIFF3 = $(DIFF)3# GNU diff3
  76. #DIFF3 = /usr/lib/diff3# traditional diff3
  77. #DIFF3 = /usr/5lib/diff3prog# other aliases for traditional diff3
  78. #DIFF3 = /usr/lib/diff3prog
  79. #DIFF3 = /usr/lib/rdiff3
  80.  
  81.  DIFF3_A = 1# GNU diff 2.1 or later
  82. #DIFF3_A = 0# all other diffs
  83.  
  84.  DIFF3_BIN = 1# GNU diff
  85. #DIFF3_BIN = 0# traditional diff
  86.  
  87.  ED = /bin/ed
  88.  
  89.  EXECUTABLE_GROUP = staff# BSD unix installation
  90.  EXECUTABLE_PERMISSIONS = -g $(EXECUTABLE_GROUP) -m 775# BSD unix installation
  91.  INSTALL = install -c $(EXECUTABLE_PERMISSIONS)# BSD unix installation
  92. #INSTALL = cp# traditional Unix installation
  93.  
  94.  LDFLAGS =
  95.  
  96.  LDLIBS =
  97.  
  98.  LINK = $(CC) $(LDFLAGS)
  99.  
  100.  LINT = lint -abchx# traditional and BSD lint
  101. #LINT = lint# System V lint
  102.  
  103.  MAKE = make
  104.  
  105.  OTHER_OBJECT =
  106.  
  107.  RCSDIR = /usr/local/bin
  108. #RCSDIR = /bin
  109. #RCSDIR = /usr/bin
  110.  
  111.  RCSPREFIX = $(RCSDIR)/
  112. #RCSPREFIX =
  113.  
  114.  REMOVE = rm -f
  115.  
  116.  SENDMAIL = "/bin/mail"
  117. #SENDMAIL = "/etc/delivermail", "-w"
  118. #SENDMAIL = "/usr/bin/mail"
  119. #SENDMAIL = "/usr/lib/sendmail"
  120. #SENDMAIL = "mail"
  121. #SENDMAIL =# for impoverished hosts that lack electronic mail
  122.  
  123.  TESTPREFIX =
  124.  
  125.  o = .o
  126. #o = .s# Minix/PC with ACK cc
  127.  
  128.  x =
  129.  
  130. #)
  131. # On non-Unix hosts you must manually create and edit conf.h from conf.heg.
  132.  
  133. # ----- end of configuration section -----
  134. # You shouldn't have to change anything past this point.
  135.  
  136.  
  137. # Avoid brain damage in some versions of 'make'.
  138. SHELL = /bin/sh
  139.  
  140. # all commands
  141. RCSCOMMANDS = ci$x co$x ident$x merge$x rcs$x rcsdiff$x rcsmerge$x rlog$x
  142.  
  143. all :: $(RCSCOMMANDS)
  144.  
  145. install :: all
  146.     $(INSTALL) ci$x $(DESTDIR)$(RCSDIR)
  147.     $(INSTALL) co$x $(DESTDIR)$(RCSDIR)
  148.     $(INSTALL) ident$x $(DESTDIR)$(RCSDIR)
  149.     $(INSTALL) merge$x $(DESTDIR)$(RCSDIR)
  150.     $(INSTALL) rcs$x $(DESTDIR)$(RCSDIR)
  151.     $(INSTALL) rcsdiff$x $(DESTDIR)$(RCSDIR)
  152.     $(INSTALL) rcsmerge$x $(DESTDIR)$(RCSDIR)
  153.     $(INSTALL) rlog$x $(DESTDIR)$(RCSDIR)
  154.  
  155. # Install RCS and (if applicable) GNU diff before running these tests.
  156. # To test RCS before installing it, see README.
  157. RCSTEST = PATH=$(RCSDIR):$(DIFFPREFIX).:$$PATH sh $(TESTPREFIX)rcstest
  158. installtest ::
  159.     $(RCSTEST)
  160. installdebug ::
  161.     $(RCSTEST) -v
  162.  
  163. clean ::
  164.     $(REMOVE) a.* *$o conf.h conf.error $(RCSCOMMANDS) rcsclean$x
  165.  
  166. #(Unix
  167. conf.h : conf.sh Makefile
  168.     $(REMOVE) a.*
  169.     CC='$(CC)' CFLAGS='$(CFLAGS)' \
  170.     COMPAT2='$(COMPAT2)' \
  171.     DIFF3='$(DIFF3)' DIFF3_A='$(DIFF3_A)' DIFF3_BIN='$(DIFF3_BIN)' \
  172.     DIFF='$(DIFF)' DIFF_FLAGS='$(DIFF_FLAGS)' DIFF_L='$(DIFF_L)' \
  173.     DIFF_SUCCESS='$(DIFF_SUCCESS)' DIFF_FAILURE='$(DIFF_FAILURE)' DIFF_TROUBLE='$(DIFF_TROUBLE)' \
  174.     ED='$(ED)' \
  175.     LDFLAGS='$(LDFLAGS)' LDLIBS='$(LDLIBS)' \
  176.     RCSPREFIX='$(RCSPREFIX)' \
  177.     SENDMAIL='$(SENDMAIL)' \
  178.     sh -x conf.sh >a.h 2>conf.error
  179.     mv a.h $@
  180.     $(REMOVE) a.*
  181. #)
  182.  
  183. ci = ci$o rcslex$o rcssyn$o rcsgen$o rcsedit$o rcskeys$o rcsmap$o \
  184.     rcsrev$o rcsutil$o rcsfnms$o partime$o maketime$o rcskeep$o \
  185.     rcsfcmp$o $(OTHER_OBJECT)
  186. ci$x : $(ci)
  187.     $(LINK) $(ci) $(LDLIBS) -o $@
  188.  
  189. co = co$o rcslex$o rcssyn$o rcsgen$o rcsedit$o rcskeys$o rcsmap$o \
  190.     rcsrev$o rcsutil$o rcsfnms$o partime$o maketime$o rcskeep$o $(OTHER_OBJECT)
  191. co$x : $(co)
  192.     $(LINK) $(co) $(LDLIBS) -o $@
  193.  
  194. ident = ident$o rcsmap$o $(OTHER_OBJECT)
  195. ident$x : $(ident)
  196.     $(LINK) $(ident) $(LDLIBS) -o $@
  197.  
  198. merge = merge$o merger$o rcsfnms$o rcslex$o \
  199.     rcsmap$o rcsrev$o rcssyn$o rcsutil$o \
  200.     rcskeep$o rcskeys$o $(OTHER_OBJECT)
  201. merge$x : $(merge)
  202.     $(LINK) $(merge) $(LDLIBS) -o $@
  203.  
  204. rlog = rlog$o rcslex$o rcsmap$o rcssyn$o rcsrev$o rcsutil$o partime$o \
  205.     maketime$o rcsfnms$o rcskeep$o rcskeys$o $(OTHER_OBJECT)
  206. rlog$x : $(rlog)
  207.     $(LINK) $(rlog) $(LDLIBS) -o $@
  208.  
  209. rcs = rcs$o rcslex$o rcssyn$o rcsrev$o rcsutil$o rcsgen$o rcsedit$o rcskeys$o \
  210.     rcsmap$o rcsfnms$o rcskeep$o $(OTHER_OBJECT)
  211. rcs$x : $(rcs)
  212.     $(LINK) $(rcs) $(LDLIBS) -o $@
  213.  
  214. rcsclean = rcsclean$o rcsedit$o rcsfcmp$o rcsfnms$o rcsgen$o rcskeys$o \
  215.     rcslex$o rcsmap$o rcsrev$o rcssyn$o rcsutil$o rcskeep$o $(OTHER_OBJECT)
  216. rcsclean$x : $(rcsclean)
  217.     $(LINK) $(rcsclean) $(LDLIBS) -o $@
  218.  
  219. rcsdiff = rcsdiff$o rcsutil$o rcsfnms$o rcsmap$o rcsrev$o rcssyn$o rcslex$o \
  220.     maketime$o partime$o rcskeep$o rcskeys$o $(OTHER_OBJECT)
  221. rcsdiff$x : $(rcsdiff)
  222.     $(LINK) $(rcsdiff) $(LDLIBS) -o $@
  223.  
  224. rcsmerge = rcsmerge$o merger$o rcsutil$o rcsfnms$o rcsmap$o rcsrev$o rcssyn$o \
  225.     rcslex$o rcskeep$o rcskeys$o $(OTHER_OBJECT)
  226. rcsmerge$x : $(rcsmerge)
  227.     $(LINK) $(rcsmerge) $(LDLIBS) -o $@
  228.  
  229. SOURCE=    ci.c co.c ident.c maketime.c merge.c merger.c partime.c rcs.c \
  230.     rcsclean.c rcsdiff.c rcsedit.c rcsfcmp.c rcsfnms.c rcsgen.c \
  231.     rcskeep.c rcskeys.c rcslex.c rcsmap.c rcsmerge.c rcsrev.c rcssyn.c \
  232.     rcsutil.c rlog.c
  233. OBJECT=    ci$o co$o ident$o maketime$o merge$o merger$o partime$o rcs$o \
  234.     rcsclean$o rcsdiff$o rcsedit$o rcsfcmp$o rcsfnms$o rcsgen$o \
  235.     rcskeep$o rcskeys$o rcslex$o rcsmap$o rcsmerge$o rcsrev$o rcssyn$o \
  236.     rcsutil$o rlog$o
  237.  
  238. lint :: conf.h
  239.     $(LINT) $(CC_D) -Dlint=1 $(SOURCE)
  240.  
  241. conf_h = conf.h
  242. $(OBJECT) : $(conf_h) rcsbase.h
  243.