home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / me34src.zip / me3 / Makefile.bc < prev    next >
Makefile  |  1995-01-14  |  2KB  |  94 lines

  1. # Borland C++ 2.0 Makefile for all of ME on MS-DOS
  2. # Invokes make in each of the sub-directories to make everything.
  3. #
  4. # To build ME: "make -fmakefile.bc"
  5. # To clean up the .obj files (leaving libraries): "make -fmakefile.bc clean"
  6. # To remove everything but the source:          "make -fmakefile.bc realclean"
  7. #
  8. # To install:
  9. #   Check the "Installation" section (below) then:
  10. #        "make -fmakefile.bc install"
  11. #
  12. # Before invoking make you must configure the following:
  13. #    ./Makefile.bc (this file!)
  14. #
  15. ##########################################################################
  16. ##             start of user configuration            ##
  17. ##########################################################################
  18.  
  19. # Installation directories:
  20. #  BIN is where to put the binaries (me3 and mc2)
  21. #  MUTTLIB is where to put the ME3 extension libraries.
  22. #    Make sure this directory matches what you have in me/config.h
  23. #  DOC is where to put the documation files.  Normally the same as MUTTLIB
  24. #    because that makes it easy for ME to look for the doc files.
  25. # Normal MS-DOS case:
  26. #   BIN = C:/bin or whatever you have for a bin directory
  27. #   MUTTLIB = C:/me3
  28. #   DOC = $(MUTTLIB)
  29. BIN = C:\bin
  30. MUTTLIB = C:\me3
  31. DOC = $(MUTTLIB)
  32.  
  33. ##########################################################################
  34. ##            End of User Configuration            ##
  35. ##########################################################################
  36.  
  37. MAKEFILE = makefile.bc
  38. MAKE  = make -f$(MAKEFILE)
  39. MAKED = make -f$(MAKEFILE) -DMAKEFILE=$(MAKEFILE)
  40.  
  41. all: announce subdirs
  42.  
  43. announce:
  44.     @echo *************** Building the Mutt Editor *******************
  45.  
  46. subdirs:
  47.     @cd ed
  48.     @$(MAKE)
  49.     @cd ..\util
  50.     @$(MAKE)
  51.     @cd ..\mc
  52.     @$(MAKE)
  53.     @cd ..\mutt
  54.     @$(MAKED)
  55.     @cd ..\me
  56.     @$(MAKE)
  57.     @cd ..
  58.  
  59. # clean just cleans up objects
  60. clean:
  61.     @cd ed
  62.     @$(MAKE) clean
  63.     @cd ..\util
  64.     @$(MAKE) clean
  65.     @cd ..\mc
  66.     @$(MAKE) clean
  67.     @cd ..\mutt
  68.     @$(MAKED) clean
  69.     @cd ..\me
  70.     @$(MAKE) clean
  71.     @cd ..
  72.  
  73. # realclean cleanup objects, libraries, executables and .mco's
  74. realclean:
  75.     @cd ed
  76.     @$(MAKE) realclean
  77.     @cd ..\util
  78.     @$(MAKE) realclean
  79.     @cd ..\mc
  80.     @$(MAKE) realclean
  81.     @cd ..\mutt
  82.     @$(MAKED) realclean
  83.     @cd ..\me
  84.     @$(MAKE) realclean
  85.     @cd ..
  86.  
  87. install:
  88.     copy me\me3.exe $(BIN)
  89.     copy mc\mc2.exe $(BIN)
  90.     mkdir $(MUTTLIB)
  91.     copy mutt\package\*.mco $(MUTTLIB)
  92.     copy doc\*.doc $(DOC)
  93.     copy doc\*.idx $(DOC)
  94.