home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / prgramer / rcs / sources / bor.mk < prev    next >
Makefile  |  1992-03-06  |  6KB  |  214 lines

  1. # $Id: Makefile,v 5.19 1992/01/24 18:44:19 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. # Borland makefile definitions
  34.  
  35. #    $Id: bor.mkh,v 1.6 1992/03/01 23:26:10 eggert Exp $
  36.  
  37. #CC_286 = -1
  38. CC_286 =
  39.  
  40. CC_D = -Dbad_creat0=1 -Dbad_chmod_close=1 -Ddeclare_fdopen=1 -Ims\$(s)
  41.  
  42. CC_MODEL = s
  43.  
  44. !if $(DEBUG)
  45. CC_O = -v -N
  46. !else
  47. CC_O =
  48. !endif
  49.  
  50. CFLAGS = -m$(CC_MODEL) -A -G -O -Z -d -w-par -w-pia $(CC_286) $(CC_D) $(CC_O)
  51.  
  52. INSTALL = -copy
  53.  
  54. !if $(DEBUG)
  55. LD_V = /v
  56. !else
  57. LD_V =
  58. !endif
  59.  
  60. LDFLAGS = $(LD_V)/c/n/x
  61.  
  62. !if !$(BCC)
  63. LIB = \turboc\lib\$(s)
  64. !else
  65. LIB = \borlandc\lib\$(s)
  66. !endif
  67.  
  68. LOGIN_FLAGS = -A-
  69.  
  70. OS = dos
  71.  
  72. RCSDIR = ..\bin
  73.  
  74. REMOVE = -del
  75.  
  76. !if $(BCC) < 3
  77. UTIME = utime.obj
  78. !else
  79. UTIME =
  80. !endif
  81.  
  82.  
  83. LDLIBS = $(LIB)c$(CC_MODEL)
  84.  
  85. OTHER_OBJECT = login$(OS).obj spawnvpq.obj $(UTIME)
  86.  
  87.  
  88. LINK = tlink $(LIB)c0$(CC_MODEL)$(LD_V) $(LIB)wildargs $(OTHER_OBJECT)
  89.  
  90. # makefile definitions for MS-DOS and OS/2
  91.  
  92. #    $Id: ms.mkh,v 1.6 1992/03/01 23:26:13 eggert Exp $
  93.  
  94. # empty string to avoid makefile misparsing of \ at line end with buggy makes
  95. s =
  96.  
  97. TESTPREFIX = ms\$(s)
  98.  
  99. o = .obj
  100. x = .exe
  101.  
  102. conf.h : ms\conf.h
  103.     copy ms\conf.h .
  104.     echo /* */ >> $@
  105.  
  106. login$(OS)$(o) : ms\login$(OS).c
  107.     $(CC) $(CFLAGS) $(LOGIN_FLAGS) -c ms\login$(OS).c
  108.  
  109. dirent$(o) : ms\dirent.c
  110.     $(CC) $(CFLAGS) -c ms\dirent.c
  111.  
  112. spawnvpq$(o) : ms\spawnvpq.c
  113.     $(CC) $(CFLAGS) -c ms\spawnvpq.c
  114.  
  115. utime$(o) : ms\utime.c
  116.     $(CC) $(CFLAGS) $(LOGIN_FLAGS) -c ms\utime.c
  117.  
  118. # On non-Unix hosts you must manually create and edit conf.h from conf.heg.
  119.  
  120. # ----- end of configuration section -----
  121. # You shouldn't have to change anything past this point.
  122.  
  123.  
  124. # Avoid brain damage in some versions of 'make'.
  125. SHELL = /bin/sh
  126.  
  127. # all commands
  128. RCSCOMMANDS = ci$(x) co$(x) ident$(x) merge$(x) rcs$(x) rcsdiff$(x) rcsmerge$(x) rlog$(x)
  129.  
  130. all : $(RCSCOMMANDS)
  131.  
  132. install : all
  133.     $(INSTALL) ci$(x) $(DESTRCSDIR)
  134.     $(INSTALL) co$(x) $(DESTRCSDIR)
  135.     $(INSTALL) ident$(x) $(DESTRCSDIR)
  136.     $(INSTALL) merge$(x) $(DESTRCSDIR)
  137.     $(INSTALL) rcs$(x) $(DESTRCSDIR)
  138.     $(INSTALL) rcsdiff$(x) $(DESTRCSDIR)
  139.     $(INSTALL) rcsmerge$(x) $(DESTRCSDIR)
  140.     $(INSTALL) rlog$(x) $(DESTRCSDIR)
  141.  
  142. # Install RCS and (if applicable) GNU diff before running these tests.
  143. # To test RCS before installing it, see README.
  144. RCSTEST = PATH=$(RCSDIR):$(DIFFPREFIX).:$$PATH sh $(TESTPREFIX)rcstest
  145. installtest :
  146.     $(RCSTEST)
  147. installdebug :
  148.     $(RCSTEST) -v
  149.  
  150. clean :
  151.     $(REMOVE) a.* *$(o) conf.h conf.error $(RCSCOMMANDS) rcsclean$(x)
  152.  
  153.  
  154. ci = ci$(o) rcslex$(o) rcssyn$(o) rcsgen$(o) rcsedit$(o) rcskeys$(o) rcsmap$(o) \
  155.     rcsrev$(o) rcsutil$(o) rcsfnms$(o) partime$(o) maketime$(o) rcskeep$(o) \
  156.     rcsfcmp$(o) $(OTHER_OBJECT)
  157. ci$(x) : $(ci)
  158.     $(LINK) @ms\$*.rsp,$*,nul,$(LDLIBS)
  159.  
  160. co = co$(o) rcslex$(o) rcssyn$(o) rcsgen$(o) rcsedit$(o) rcskeys$(o) rcsmap$(o) \
  161.     rcsrev$(o) rcsutil$(o) rcsfnms$(o) partime$(o) maketime$(o) rcskeep$(o) $(OTHER_OBJECT)
  162. co$(x) : $(co)
  163.     $(LINK) @ms\$*.rsp,$*,nul,$(LDLIBS)
  164.  
  165. ident = ident$(o) rcsmap$(o) $(OTHER_OBJECT)
  166. ident$(x) : $(ident)
  167.     $(LINK) @ms\$*.rsp,$*,nul,$(LDLIBS)
  168.  
  169. merge = merge$(o) merger$(o) rcsfnms$(o) rcslex$(o) \
  170.     rcsmap$(o) rcsrev$(o) rcssyn$(o) rcsutil$(o) \
  171.     rcskeep$(o) rcskeys$(o) $(OTHER_OBJECT)
  172. merge$(x) : $(merge)
  173.     $(LINK) @ms\$*.rsp,$*,nul,$(LDLIBS)
  174.  
  175. rlog = rlog$(o) rcslex$(o) rcsmap$(o) rcssyn$(o) rcsrev$(o) rcsutil$(o) partime$(o) \
  176.     maketime$(o) rcsfnms$(o) rcskeep$(o) rcskeys$(o) $(OTHER_OBJECT)
  177. rlog$(x) : $(rlog)
  178.     $(LINK) @ms\$*.rsp,$*,nul,$(LDLIBS)
  179.  
  180. rcs = rcs$(o) rcslex$(o) rcssyn$(o) rcsrev$(o) rcsutil$(o) rcsgen$(o) rcsedit$(o) rcskeys$(o) \
  181.     rcsmap$(o) rcsfnms$(o) rcskeep$(o) $(OTHER_OBJECT)
  182. rcs$(x) : $(rcs)
  183.     $(LINK) @ms\$*.rsp,$*,nul,$(LDLIBS)
  184.  
  185. rcsclean = rcsclean$(o) rcsedit$(o) rcsfcmp$(o) rcsfnms$(o) rcsgen$(o) rcskeys$(o) dirent$(o) \
  186.     rcslex$(o) rcsmap$(o) rcsrev$(o) rcssyn$(o) rcsutil$(o) rcskeep$(o) $(OTHER_OBJECT)
  187. rcsclean$(x) : $(rcsclean)
  188.     $(LINK) @ms\$*.rsp,$*,nul,$(LDLIBS)
  189.  
  190. rcsdiff = rcsdiff$(o) rcsutil$(o) rcsfnms$(o) rcsmap$(o) rcsrev$(o) rcssyn$(o) rcslex$(o) \
  191.     maketime$(o) partime$(o) rcskeep$(o) rcskeys$(o) $(OTHER_OBJECT)
  192. rcsdiff$(x) : $(rcsdiff)
  193.     $(LINK) @ms\$*.rsp,$*,nul,$(LDLIBS)
  194.  
  195. rcsmerge = rcsmerge$(o) merger$(o) rcsutil$(o) rcsfnms$(o) rcsmap$(o) rcsrev$(o) rcssyn$(o) \
  196.     rcslex$(o) rcskeep$(o) rcskeys$(o) $(OTHER_OBJECT)
  197. rcsmerge$(x) : $(rcsmerge)
  198.     $(LINK) @ms\$*.rsp,$*,nul,$(LDLIBS)
  199.  
  200. SOURCE=    ci.c co.c ident.c maketime.c merge.c merger.c partime.c rcs.c \
  201.     rcsclean.c rcsdiff.c rcsedit.c rcsfcmp.c rcsfnms.c rcsgen.c \
  202.     rcskeep.c rcskeys.c rcslex.c rcsmap.c rcsmerge.c rcsrev.c rcssyn.c \
  203.     rcsutil.c rlog.c
  204. OBJECT=    ci$(o) co$(o) ident$(o) maketime$(o) merge$(o) merger$(o) partime$(o) rcs$(o) \
  205.     rcsclean$(o) rcsdiff$(o) rcsedit$(o) rcsfcmp$(o) rcsfnms$(o) rcsgen$(o) \
  206.     rcskeep$(o) rcskeys$(o) rcslex$(o) rcsmap$(o) rcsmerge$(o) rcsrev$(o) rcssyn$(o) \
  207.     rcsutil$(o) rlog$(o)
  208.  
  209. lint : conf.h
  210.     $(LINT) $(CC_D) -DRCS_lint=1 $(SOURCE)
  211.  
  212. conf_h = conf.h
  213. $(OBJECT) : $(conf_h) rcsbase.h
  214.