home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1737 < prev    next >
Internet Message Format  |  1990-12-28  |  3KB

  1. From: mat@emcard.UUCP (W Mat Waites)
  2. Newsgroups: alt.sources
  3. Subject: Makefile for elvis under Turbo-C
  4. Message-ID: <8161@emcard.UUCP>
  5. Date: 28 Aug 90 16:56:50 GMT
  6.  
  7.  
  8. Here is the makefile I whipped to make elvis under Turbo-C.
  9. Warning: I'm not using the make that came with turbo, so you may
  10. have to tweak it a little if you are.
  11.  
  12. I'm using a make that was posted a while back to some group.
  13. (there's some helpful info!!)
  14.  
  15. I posted a message earlier today about -DMSDOS and I was not remembering
  16. correctly. config.h sets MSDOS, so you should have no "-D" defines in
  17. the makefile.
  18.  
  19. The only really tricky part was turning on case sensitivity on the linker.
  20. Several function names are the same except for capitalized letters.
  21.  
  22. Have fun,
  23.  
  24. Mat
  25.  
  26.  
  27. ---- Cut Here and unpack ----
  28. #!/bin/sh
  29. # shar:    Shell Archiver  (v1.22)
  30. #    Packed Tue Aug 28 12:51:00 EDT 1990 by mat
  31. #    from directory /usr/mat
  32. #
  33. #    Run the following text with /bin/sh to create:
  34. #      makefile.trc
  35. #      elvis.cmd
  36. #
  37. echo "x - extracting makefile.trc (Text)"
  38. sed 's/^X//' << 'SHAR_EOF' > makefile.trc &&
  39. X# Turbo-C Makefile for ELVIS - a clone of `vi`
  40. X#
  41. X# Use `make` to compile all programs
  42. X# Use `make install` to copy the programs to the BIN directory
  43. X# Use `make clean` to remove all object files
  44. X# Use `make clobber` to remove everything except source & documentation
  45. X# Use `make tags` to build new "tags" and "refs" files
  46. X# Use `make sh` to produce shar archives of the source
  47. X
  48. XPROGS=    elvis.exe ctags.exe ref.exe virec.exe wildcard.exe
  49. XBIN=\bin
  50. XLIB=\tc\lib
  51. XOBJS=    blk.obj cmd1.obj cmd2.obj curses.obj cut.obj ex.obj input.obj main.obj misc.obj\
  52. X    modify.obj move1.obj move2.obj move3.obj move4.obj move5.obj opts.obj recycle.obj\
  53. X    redraw.obj regexp.obj regsub.obj tio.obj tmp.obj vars.obj vcmd.obj vi.obj\
  54. X    pc.obj sysdos.obj tinytcap.obj
  55. XCFLAGS=    
  56. XMODEL=l
  57. X
  58. Xall: $(PROGS)
  59. X
  60. Xelvis.exe: $(OBJS)
  61. X    tlink /c $(LIB)\C0$(MODEL) @elvis.cmd,elvis.exe,, $(LIB)\C$(MODEL)
  62. X
  63. X# This just says that a change to nomagic.c is effectively a change to regexp.c
  64. Xregexp.obj: nomagic.c
  65. X
  66. X##############################################################################
  67. Xinstall: $(PROGS)
  68. X    cp $(PROGS) $(BIN)
  69. X
  70. Xclean:
  71. X    rm -f *.obj
  72. X
  73. Xclobber: clean
  74. X    rm -f tags refs $(PROGS)
  75. X
  76. Xwhich:
  77. X    @echo 'Turbo-C'
  78. X
  79. Xtags refs: ctags.exe
  80. X    ./ctags -r *.c *.h
  81. X
  82. SHAR_EOF
  83. chmod 0664 makefile.trc || echo "restore of makefile.trc fails"
  84. echo "x - extracting elvis.cmd (Text)"
  85. sed 's/^X//' << 'SHAR_EOF' > elvis.cmd &&
  86. Xblk.obj+
  87. Xcmd1.obj+
  88. Xcmd2.obj+
  89. Xcurses.obj+
  90. Xcut.obj+
  91. Xex.obj+
  92. Xinput.obj+
  93. Xmain.obj+
  94. Xmisc.obj+
  95. Xmodify.obj+
  96. Xmove1.obj+
  97. Xmove2.obj+
  98. Xmove3.obj+
  99. Xmove4.obj+
  100. Xmove5.obj+
  101. Xopts.obj+
  102. Xrecycle.obj+
  103. Xredraw.obj+
  104. Xregexp.obj+
  105. Xregsub.obj+
  106. Xsystem.obj+
  107. Xtio.obj+
  108. Xtmp.obj+
  109. Xvars.obj+
  110. Xvcmd.obj+
  111. Xpc.obj+
  112. Xsysdos.obj+
  113. Xtinytcap.obj+
  114. Xvi.obj
  115. SHAR_EOF
  116. chmod 0664 elvis.cmd || echo "restore of elvis.cmd fails"
  117. exit 0
  118. -- 
  119. W Mat Waites              |  Unlike most of you, I am not a nut.
  120. {gatech,emory}!emcard!mat |             -H. Simpson
  121.