home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1937 / makefile.msc < prev    next >
Encoding:
Makefile  |  1990-12-28  |  3.4 KB  |  130 lines

  1. # Makefile for RCS
  2. # $Id: makefile.msc,v 5.5 90/07/16 22:41:45 lfk Exp $
  3. #
  4. # $Log:    makefile.msc,v $
  5. # Revision 5.5  90/07/16  22:41:45  lfk
  6. # a number of small changes for MODEL compilation of rlog.exe
  7. #
  8. # Revision 5.4  90/07/16  21:38:10  lfk
  9. # checkin for release compilation
  10. #
  11. # Revision 5.3  90/07/15  22:54:12  lfk
  12. # Almost the end of major revison for MS-DOS version of RCS
  13. #
  14. # Revision 5.2  90/07/15  11:31:47  ROOT_DOS
  15. # DOS version of RCS 4.0 checked in for MODS
  16. # by lfk@athena.mit.edu
  17. # Also update to MSC 6.0
  18. #
  19. # Revision 1.2  90/02/07  04:17:09  koya
  20. # Added "SETARGV" macro and delete from "install"
  21. # all.
  22. #
  23.  
  24. .SUFFIXES .c .o .exe
  25.  
  26. MODEL =     #default model = small, rlog needs compact
  27. LOCKING = 1
  28. CC = cl
  29. LD = link
  30.  
  31. # $Author: lfk $ $Date: 90/07/16 22:41:45 $
  32. # rlog.exe needs to be compiled with the compact memory model
  33. # -AC while all the rest is small model (default with MSC).
  34. # see MODEL =
  35. CFLAGS = $(MODEL) -Ox -DMKS -DUSG -DSTRICT_LOCKING=$(LOCKING)
  36. # CFLAGS = -Od -Zi -DMKS -DUSG -DSTRICT_LOCKING=$(LOCKING)
  37. LDFLAGS = /noi /noe /exe /packc /batch
  38. # LDFLAGS = /co /li /map
  39. RCSDIR = /usr/bin
  40. DEFS = -DCO=\"co.exe\" -DDIFF=\"diff.exe\"
  41. SETARGV =
  42.  
  43. .c.o :
  44.     $(CC) $(DEFS) $(CFLAGS) -Fo$*.o -c $*.c
  45.  
  46. all: ci.exe co.exe rlog.exe rcs.exe rcsdiff.exe ident.exe rcsmerge.exe
  47.  
  48. CIFILES = ci.o rcslex.o rcssyn.o rcsgen.o rcsedit.o \
  49.       rcskeys.o rcsrev.o rcsutil.o rcsfnms.o partime.o \
  50.       maketime.o rcskeep.o rcsfcmp.o
  51.  
  52. ci.exe:   $(CIFILES)
  53.     $(LD) $(CIFILES) $(SETARGV), ci, ci, $(LDFLAGS);
  54.  
  55. COFILES = co.o rcslex.o rcssyn.o rcsgen.o rcsedit.o rcskeys.o \
  56.       rcsrev.o rcsutil.o rcsfnms.o partime.o maketime.o
  57.  
  58. co.exe:   $(COFILES)
  59.     $(LD) $(COFILES) $(SETARGV), co, co, $(LDFLAGS);
  60.  
  61. RLOG = rlog.o rcslex.o rcssyn.o rcsrev.o rcsutil.o partime.o \
  62.     maketime.o rcsfnms.o
  63.  
  64. rlog.o : rlog.c
  65.     $(CC)  $(CFLAGS) -DCO=\"co.exe\" -DMERGE=\"$(RCSDIR)/merge.ksh\" -Forlog.o -c rlog.c
  66.  
  67. rlog.exe: $(RLOG)
  68.     $(LD) $(RLOG) $(SETARGV), rlog, rlog, $(LDFLAGS);
  69.  
  70. RCS = rcs.o rcslex.o rcssyn.o rcsrev.o rcsutil.o \
  71.     rcsgen.o rcsedit.o rcskeys.o rcsfnms.o
  72.  
  73. rcs.exe:    $(RCS)
  74.     $(LD) $(RCS) $(SETARGV), rcs, rcs, $(LDFLAGS);
  75.  
  76. RCSDIFF = rcsdiff.o rcsutil.o rcsfnms.o rcsrev.o rcssyn.o rcslex.o
  77.  
  78. rcsdiff.exe: $(RCSDIFF)
  79.     $(LD) $(RCSDIFF) $(SETARGV), rcsdiff, rcsdiff, $(LDFLAGS);
  80.  
  81. IDENTFILES = ident.o rcskeys.o
  82.  
  83. ident.exe: $(IDENTFILES)
  84.     $(LD) $(IDENTFILES) $(SETARGV), ident, ident, $(LDFLAGS);
  85.  
  86. RCSMERGEFILE = rcsmerge.o rcsutil.o rcsfnms.o rcsrev.o rcssyn.o rcslex.o
  87.  
  88. merge.exe: $(RCSMERGEFILE)
  89.     $(LD) $(RCSMERGEFILE) $(SETARGV), rcsmerge, rcsmerge, $(LDFLAGS);
  90.  
  91. snoop.exe: snoop.o
  92.     $(LD) snoop.o $(SETARGV), snoop, snoop, $(LDFLAGS);
  93.  
  94. RCSCLEANFILE = rcsclean.o rcsfnms.o
  95.  
  96. rcsclean.exe: $(RCSCLEANFILE)
  97.     $(LD) $(RCSCLEANFILE) $(SETARGV), rcsclean, rcsclean, $(LDFLAGS);
  98.  
  99.  
  100. RCSMERGE = rcsmerge.o rcsutil.o rcsfnms.o rcsrev.o rcssyn.o rcslex.o
  101.  
  102. rcsmerge.o : rcsmerge.c
  103.     $(CC) $(CFLAGS) -DCO=\"$(RCSDIR)/co.exe\" -DMERGE=\"$(RCSDIR)/merge.ksh\" -Forcsmerge.o -c rcsmerge.c
  104.  
  105. rcsmerge.exe:    $(RCSMERGE)
  106.     $(LD) $(SETARGV) $(RCSMERGE), rcsmerge, rcsmerge, $(LDFLAGS) ;
  107.  
  108. INSTALL = copy
  109.  
  110. install:
  111.     $(INSTALL) ci.exe $(RCSDIR)
  112.     $(INSTALL) co.exe $(RCSDIR)
  113.     $(INSTALL) rcs.exe $(RCSDIR)
  114.     $(INSTALL) rlog.exe $(RCSDIR)
  115.     $(INSTALL) rcsdiff.exe $(RCSDIR)
  116.     $(INSTALL) ident.exe $(RCSDIR)
  117.  
  118. RM = rm
  119. TAR = LHarc a
  120. TARFILE = RCSWORK.LZH
  121.  
  122. clean: tar
  123.     $(RM) *.o *.exe *.map
  124.  
  125. tar:
  126.     $(TAR) $(TARFILE) *.c *.h *.o *.exe makefile copying
  127.  
  128. lint:
  129.     cc -Zs -W4 $(DEFS) $(CFLAGS) *.c
  130.