home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 3 / goldfish_volume_3.bin / files / dev / misc / hwgrcs / src / rcs.rcsfiles / makefile,v < prev    next >
Encoding:
Text File  |  1995-06-25  |  10.4 KB  |  411 lines

  1. head    5.16;
  2. branch    5.16.1;
  3. access;
  4. symbols
  5.     HWGRCSP12F:5.16.1.2
  6.     HWGRCSP11F:5.16.1.2
  7.     HWGRCSP10F:5.16.1.2
  8.     HWGRCSP9:5.16.1.2
  9.     HWGRCSP8F:5.16.1.2
  10.     HWGRCSP7F:5.16.1.2
  11.     HWGRCSP6F:5.16.1.2
  12.     HWGRCSP5F:5.16.1.1
  13.     HWGRCSp4:5.16.1.1
  14.     HWGRCSp3:5.16.1
  15.     HWGRCS_Fish:5.16.1
  16.     HWGRCS:5.16.1;
  17. locks; strict;
  18. comment    @# @;
  19.  
  20.  
  21. 5.16
  22. date    91.10.07.17.32.46;    author eggert;    state Exp;
  23. branches
  24.     5.16.1.1;
  25. next    ;
  26.  
  27. 5.16.1.1
  28. date    93.01.18.14.39.49;    author heinz;    state Exp;
  29. branches;
  30. next    5.16.1.2;
  31.  
  32. 5.16.1.2
  33. date    93.12.18.16.48.40;    author heinz;    state Exp;
  34. branches;
  35. next    ;
  36.  
  37.  
  38. desc
  39. @Checked in with -k 16.jan.93 HWG
  40. @
  41.  
  42.  
  43. 5.16
  44. log
  45. @checked in with -k by heinz at 1993/01/17 01:55:49
  46. @
  47. text
  48. @# $Id: Makefile,v 5.16 1991/10/07 17:32:46 eggert Exp $
  49. # Copyright (C) 1982, 1988, 1989 Walter Tichy
  50. # Copyright 1990, 1991 by Paul Eggert
  51. #   Distributed under license by the Free Software Foundation, Inc.
  52. #
  53. # This file is part of RCS.
  54. #
  55. # RCS is free software; you can redistribute it and/or modify
  56. # it under the terms of the GNU General Public License as published by
  57. # the Free Software Foundation; either version 2, or (at your option)
  58. # any later version.
  59. #
  60. # RCS is distributed in the hope that it will be useful,
  61. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  62. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  63. # GNU General Public License for more details.
  64. #
  65. # You should have received a copy of the GNU General Public License
  66. # along with RCS; see the file COPYING.  If not, write to
  67. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  68. #
  69. # Report problems and direct all questions to:
  70. #
  71. #    rcs-bugs@@cs.purdue.edu
  72. #
  73.  
  74. # default target
  75. default :: all
  76.  
  77. # See README for more information on the configuration section.
  78. # ----- start of configuration section -----
  79.  
  80. #(Unix
  81.  
  82.  CC = cc
  83. #CC = bsdcc -qlanglvl=ansi# AIX
  84. #CC = cc -g# debug
  85. #CC = gcc -g# GCC
  86.  
  87.  CC_D =
  88.  
  89.  CC_O = -O
  90. #CC_O =# debug
  91. #CC_O = -O -R# BSD compilers that do not support `const'
  92. #CC_O = -O -fdelayed-branch -finline-functions -fomit-frame-pointer -fstrength-reduce# GCC options for brave souls
  93.  
  94.  CC_W =
  95. #CC_W = -Wall -Wcast-qual -Wpointer-arith -Wshadow -Wwrite-strings# GCC
  96.  
  97.  CFLAGS = $(CC_D) $(CC_O) $(CC_W)
  98.  
  99.  COMPAT2 = 0
  100. #COMPAT2 = 1
  101.  
  102.  DIFF = $(DIFFPREFIX)diff
  103. #DIFF = $(DIFFPREFIX)rdiff# short for ``RCS diff'' on some hosts
  104.  
  105.  DIFFPREFIX = /usr/local/gnu/# GNU diff -- must be version 1.15 or later
  106. #DIFFPREFIX = /bin/# traditional diff
  107. #DIFFPREFIX = /usr/bin/# traditional diff (alternate name)
  108.  
  109.  DIFF_FLAGS = -an# GNU diff
  110. #DIFF_FLAGS = -n# traditional diff
  111.  
  112.  DIFF_L = 1# GNU diff
  113. #DIFF_L = 0# traditional diff
  114.  
  115.  DIFF_SUCCESS = 0
  116. #DIFF_SUCCESS = EXIT_SUCCESS
  117.  DIFF_FAILURE = 1
  118. #DIFF_FAILURE = EXIT_FAILURE
  119.  DIFF_TROUBLE = 2
  120. #DIFF_TROUBLE = (EXIT_FAILURE*2)
  121.  
  122.  DIFF3 = $(DIFF)3# GNU diff3
  123. #DIFF3 = /usr/lib/diff3# traditional diff3
  124. #DIFF3 = /usr/5lib/diff3prog# other aliases for traditional diff3
  125. #DIFF3 = /usr/lib/diff3prog
  126. #DIFF3 = /usr/lib/rdiff3
  127.  
  128.  DIFF3_BIN = 1# GNU diff
  129. #DIFF3_BIN = 0# traditional diff
  130.  
  131.  ED = /bin/ed
  132.  
  133.  EXECUTABLE_GROUP = staff# BSD unix installation
  134.  EXECUTABLE_PERMISSIONS = -g $(EXECUTABLE_GROUP) -m 775# BSD unix installation
  135.  INSTALL = install -c $(EXECUTABLE_PERMISSIONS)# BSD unix installation
  136. #INSTALL = cp# traditional Unix installation
  137.  
  138.  LDFLAGS =
  139.  
  140.  LDLIBS =
  141.  
  142.  LINK = $(CC) $(LDFLAGS)
  143.  
  144.  LINT = lint -abchx# traditional and BSD lint
  145. #LINT = lint# System V lint
  146.  
  147.  MAKE = make
  148.  
  149.  OTHER_OBJECT =
  150.  
  151.  RCSDIR = /usr/local/bin
  152. #RCSDIR = /bin
  153. #RCSDIR = /usr/bin
  154.  
  155.  RCSPREFIX = $(RCSDIR)/
  156. #RCSPREFIX =
  157.  
  158.  REMOVE = rm -f
  159.  
  160.  SENDMAIL = "/bin/mail"
  161. #SENDMAIL = "/etc/delivermail", "-w"
  162. #SENDMAIL = "/usr/bin/mail"
  163. #SENDMAIL = "/usr/lib/sendmail"
  164. #SENDMAIL = "mail"
  165. #SENDMAIL =# for impoverished hosts that lack electronic mail
  166.  
  167.  TESTPREFIX =
  168.  
  169.  o = .o
  170. #o = .s# Minix/PC with ACK cc
  171.  
  172.  x =
  173.  
  174. #)
  175. # On non-Unix hosts you must manually create and edit conf.h from conf.heg.
  176.  
  177. # ----- end of configuration section -----
  178. # You shouldn't have to change anything past this point.
  179.  
  180.  
  181. # Avoid brain damage in some versions of 'make'.
  182. SHELL = /bin/sh
  183.  
  184. # all commands
  185. RCSCOMMANDS = ci$x co$x ident$x merge$x rcs$x rcsdiff$x rcsmerge$x rlog$x
  186.  
  187. all :: $(RCSCOMMANDS)
  188.  
  189. install :: all
  190.     $(INSTALL) ci$x $(DESTDIR)$(RCSDIR)
  191.     $(INSTALL) co$x $(DESTDIR)$(RCSDIR)
  192.     $(INSTALL) ident$x $(DESTDIR)$(RCSDIR)
  193.     $(INSTALL) merge$x $(DESTDIR)$(RCSDIR)
  194.     $(INSTALL) rcs$x $(DESTDIR)$(RCSDIR)
  195.     $(INSTALL) rcsdiff$x $(DESTDIR)$(RCSDIR)
  196.     $(INSTALL) rcsmerge$x $(DESTDIR)$(RCSDIR)
  197.     $(INSTALL) rlog$x $(DESTDIR)$(RCSDIR)
  198.  
  199. # Install RCS and (if applicable) GNU diff before running these tests.
  200. # To test RCS before installing it, see README.
  201. RCSTEST = PATH=$(RCSDIR):$(DIFFPREFIX).:$$PATH sh $(TESTPREFIX)rcstest
  202. installtest ::
  203.     $(RCSTEST)
  204. installdebug ::
  205.     $(RCSTEST) -v
  206.  
  207. clean ::
  208.     $(REMOVE) a.* *$o conf.h conf.error $(RCSCOMMANDS) rcsclean$x
  209.  
  210. #(Unix
  211. conf.h : conf.sh Makefile
  212.     $(REMOVE) a.*
  213.     CC='$(CC)' CFLAGS='$(CFLAGS)' \
  214.     COMPAT2='$(COMPAT2)' \
  215.     DIFF3='$(DIFF3)' DIFF3_BIN='$(DIFF3_BIN)' \
  216.     DIFF='$(DIFF)' DIFF_FLAGS='$(DIFF_FLAGS)' DIFF_L='$(DIFF_L)' \
  217.     DIFF_SUCCESS='$(DIFF_SUCCESS)' DIFF_FAILURE='$(DIFF_FAILURE)' DIFF_TROUBLE='$(DIFF_TROUBLE)' \
  218.     ED='$(ED)' \
  219.     LDFLAGS='$(LDFLAGS)' LDLIBS='$(LDLIBS)' \
  220.     RCSPREFIX='$(RCSPREFIX)' \
  221.     SENDMAIL='$(SENDMAIL)' \
  222.     sh -x conf.sh >a.h 2>conf.error
  223.     mv a.h $@@
  224.     $(REMOVE) a.*
  225. #)
  226.  
  227. ci = ci$o rcslex$o rcssyn$o rcsgen$o rcsedit$o rcskeys$o rcsmap$o \
  228.     rcsrev$o rcsutil$o rcsfnms$o partime$o maketime$o rcskeep$o \
  229.     rcsfcmp$o $(OTHER_OBJECT)
  230. ci$x : $(ci)
  231.     $(LINK) $(ci) $(LDLIBS) -o $@@
  232.  
  233. co = co$o rcslex$o rcssyn$o rcsgen$o rcsedit$o rcskeys$o rcsmap$o \
  234.     rcsrev$o rcsutil$o rcsfnms$o partime$o maketime$o rcskeep$o $(OTHER_OBJECT)
  235. co$x : $(co)
  236.     $(LINK) $(co) $(LDLIBS) -o $@@
  237.  
  238. ident = ident$o rcsmap$o $(OTHER_OBJECT)
  239. ident$x : $(ident)
  240.     $(LINK) $(ident) $(LDLIBS) -o $@@
  241.  
  242. merge = merge$o merger$o rcsfnms$o rcslex$o \
  243.     rcsmap$o rcsrev$o rcssyn$o rcsutil$o \
  244.     rcskeep$o rcskeys$o $(OTHER_OBJECT)
  245. merge$x : $(merge)
  246.     $(LINK) $(merge) $(LDLIBS) -o $@@
  247.  
  248. rlog = rlog$o rcslex$o rcsmap$o rcssyn$o rcsrev$o rcsutil$o partime$o \
  249.     maketime$o rcsfnms$o rcskeep$o rcskeys$o $(OTHER_OBJECT)
  250. rlog$x : $(rlog)
  251.     $(LINK) $(rlog) $(LDLIBS) -o $@@
  252.  
  253. rcs = rcs$o rcslex$o rcssyn$o rcsrev$o rcsutil$o rcsgen$o rcsedit$o rcskeys$o \
  254.     rcsmap$o rcsfnms$o rcskeep$o $(OTHER_OBJECT)
  255. rcs$x : $(rcs)
  256.     $(LINK) $(rcs) $(LDLIBS) -o $@@
  257.  
  258. rcsclean = rcsclean$o rcsedit$o rcsfcmp$o rcsfnms$o rcsgen$o rcskeys$o \
  259.     rcslex$o rcsmap$o rcsrev$o rcssyn$o rcsutil$o rcskeep$o $(OTHER_OBJECT)
  260. rcsclean$x : $(rcsclean)
  261.     $(LINK) $(rcsclean) $(LDLIBS) -o $@@
  262.  
  263. rcsdiff = rcsdiff$o rcsutil$o rcsfnms$o rcsmap$o rcsrev$o rcssyn$o rcslex$o \
  264.     maketime$o partime$o rcskeep$o rcskeys$o $(OTHER_OBJECT)
  265. rcsdiff$x : $(rcsdiff)
  266.     $(LINK) $(rcsdiff) $(LDLIBS) -o $@@
  267.  
  268. rcsmerge = rcsmerge$o merger$o rcsutil$o rcsfnms$o rcsmap$o rcsrev$o rcssyn$o \
  269.     rcslex$o rcskeep$o rcskeys$o $(OTHER_OBJECT)
  270. rcsmerge$x : $(rcsmerge)
  271.     $(LINK) $(rcsmerge) $(LDLIBS) -o $@@
  272.  
  273. SOURCE=    ci.c co.c ident.c maketime.c merge.c merger.c partime.c rcs.c \
  274.     rcsclean.c rcsdiff.c rcsedit.c rcsfcmp.c rcsfnms.c rcsgen.c \
  275.     rcskeep.c rcskeys.c rcslex.c rcsmap.c rcsmerge.c rcsrev.c rcssyn.c \
  276.     rcsutil.c rlog.c
  277. OBJECT=    ci$o co$o ident$o maketime$o merge$o merger$o partime$o rcs$o \
  278.     rcsclean$o rcsdiff$o rcsedit$o rcsfcmp$o rcsfnms$o rcsgen$o \
  279.     rcskeep$o rcskeys$o rcslex$o rcsmap$o rcsmerge$o rcsrev$o rcssyn$o \
  280.     rcsutil$o rlog$o
  281.  
  282. lint :: conf.h
  283.     $(LINT) $(CC_D) -Dlint=1 $(SOURCE)
  284.  
  285. conf_h = conf.h
  286. $(OBJECT) : $(conf_h) rcsbase.h
  287. @
  288.  
  289.  
  290. 5.16.1.1
  291. log
  292. @Start of the AMIGA port of RCS 5.6. I call it HWGRCS now ;^)
  293. @
  294. text
  295. @@
  296.  
  297.  
  298. 5.16.1.2
  299. log
  300. @Now like the RCS 5.6.0.1 Makefile.
  301. @
  302. text
  303. @d1 1
  304. a1 1
  305. # $Id: makefile,v 5.16.1.1 1993/01/18 14:39:49 heinz Exp heinz $
  306. a80 3
  307.  DIFF3_A = 1# GNU diff 2.1 or later
  308. #DIFF3_A = 0# all other diffs
  309.  
  310. d143 8
  311. a150 8
  312.         $(INSTALL) ci$x $(DESTDIR)$(RCSDIR)
  313.         $(INSTALL) co$x $(DESTDIR)$(RCSDIR)
  314.         $(INSTALL) ident$x $(DESTDIR)$(RCSDIR)
  315.         $(INSTALL) merge$x $(DESTDIR)$(RCSDIR)
  316.         $(INSTALL) rcs$x $(DESTDIR)$(RCSDIR)
  317.         $(INSTALL) rcsdiff$x $(DESTDIR)$(RCSDIR)
  318.         $(INSTALL) rcsmerge$x $(DESTDIR)$(RCSDIR)
  319.         $(INSTALL) rlog$x $(DESTDIR)$(RCSDIR)
  320. d156 1
  321. a156 1
  322.         $(RCSTEST)
  323. d158 1
  324. a158 1
  325.         $(RCSTEST) -v
  326. d161 1
  327. a161 1
  328.         $(REMOVE) a.* *$o conf.h conf.error $(RCSCOMMANDS) rcsclean$x
  329. d165 13
  330. a177 13
  331.         $(REMOVE) a.*
  332.         CC='$(CC)' CFLAGS='$(CFLAGS)' \
  333.         COMPAT2='$(COMPAT2)' \
  334.         DIFF3='$(DIFF3)' DIFF3_A='$(DIFF3_A)' DIFF3_BIN='$(DIFF3_BIN)' \
  335.         DIFF='$(DIFF)' DIFF_FLAGS='$(DIFF_FLAGS)' DIFF_L='$(DIFF_L)' \
  336.         DIFF_SUCCESS='$(DIFF_SUCCESS)' DIFF_FAILURE='$(DIFF_FAILURE)' DIFF_TROUBLE='$(DIFF_TROUBLE)' \
  337.         ED='$(ED)' \
  338.         LDFLAGS='$(LDFLAGS)' LDLIBS='$(LDLIBS)' \
  339.         RCSPREFIX='$(RCSPREFIX)' \
  340.         SENDMAIL='$(SENDMAIL)' \
  341.         sh -x conf.sh >a.h 2>conf.error
  342.         mv a.h $@@
  343.         $(REMOVE) a.*
  344. d181 2
  345. a182 2
  346.         rcsrev$o rcsutil$o rcsfnms$o partime$o maketime$o rcskeep$o \
  347.         rcsfcmp$o $(OTHER_OBJECT)
  348. d184 1
  349. a184 1
  350.         $(LINK) $(ci) $(LDLIBS) -o $@@
  351. d187 1
  352. a187 1
  353.         rcsrev$o rcsutil$o rcsfnms$o partime$o maketime$o rcskeep$o $(OTHER_OBJECT)
  354. d189 1
  355. a189 1
  356.         $(LINK) $(co) $(LDLIBS) -o $@@
  357. d193 1
  358. a193 1
  359.         $(LINK) $(ident) $(LDLIBS) -o $@@
  360. d196 2
  361. a197 2
  362.         rcsmap$o rcsrev$o rcssyn$o rcsutil$o \
  363.         rcskeep$o rcskeys$o $(OTHER_OBJECT)
  364. d199 1
  365. a199 1
  366.         $(LINK) $(merge) $(LDLIBS) -o $@@
  367. d202 1
  368. a202 1
  369.         maketime$o rcsfnms$o rcskeep$o rcskeys$o $(OTHER_OBJECT)
  370. d204 1
  371. a204 1
  372.         $(LINK) $(rlog) $(LDLIBS) -o $@@
  373. d207 1
  374. a207 1
  375.         rcsmap$o rcsfnms$o rcskeep$o $(OTHER_OBJECT)
  376. d209 1
  377. a209 1
  378.         $(LINK) $(rcs) $(LDLIBS) -o $@@
  379. d212 1
  380. a212 1
  381.         rcslex$o rcsmap$o rcsrev$o rcssyn$o rcsutil$o rcskeep$o $(OTHER_OBJECT)
  382. d214 1
  383. a214 1
  384.         $(LINK) $(rcsclean) $(LDLIBS) -o $@@
  385. d217 1
  386. a217 1
  387.         maketime$o partime$o rcskeep$o rcskeys$o $(OTHER_OBJECT)
  388. d219 1
  389. a219 1
  390.         $(LINK) $(rcsdiff) $(LDLIBS) -o $@@
  391. d222 1
  392. a222 1
  393.         rcslex$o rcskeep$o rcskeys$o $(OTHER_OBJECT)
  394. d224 1
  395. a224 1
  396.         $(LINK) $(rcsmerge) $(LDLIBS) -o $@@
  397. d226 8
  398. a233 8
  399. SOURCE= ci.c co.c ident.c maketime.c merge.c merger.c partime.c rcs.c \
  400.         rcsclean.c rcsdiff.c rcsedit.c rcsfcmp.c rcsfnms.c rcsgen.c \
  401.         rcskeep.c rcskeys.c rcslex.c rcsmap.c rcsmerge.c rcsrev.c rcssyn.c \
  402.         rcsutil.c rlog.c
  403. OBJECT= ci$o co$o ident$o maketime$o merge$o merger$o partime$o rcs$o \
  404.         rcsclean$o rcsdiff$o rcsedit$o rcsfcmp$o rcsfnms$o rcsgen$o \
  405.         rcskeep$o rcskeys$o rcslex$o rcsmap$o rcsmerge$o rcsrev$o rcssyn$o \
  406.         rcsutil$o rlog$o
  407. d236 1
  408. a236 1
  409.         $(LINT) $(CC_D) -Dlint=1 $(SOURCE)
  410. @
  411.