Makefile.BC5 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # Makefile.BC5
  2. #
  3. # Midnight Commander for Win32 makefile
  4. # for Borland C++ 5.01
  5. #
  6. # Hacked by Dan Nicolaescu from Visual IDE mak
  7. # Hacked by Pavel Roskin to make it work with cmd.exe from Windows NT4
  8. # 980206 hacked by Pavel Roskin to make it work with GNU make
  9. # 980316 hacked by Pavel Roskin to make it work with Borland C++
  10. # --------------------------------------------------------------------------
  11. MC_LIBS=
  12. # ---- Path (case-sensitive!) is searched for executables
  13. # If the command line contains quotes, it is passed to shell
  14. # Errors are ignored in this case!
  15. Path=c:/bc5/bin
  16. CC=bcc32.exe
  17. # Just comment RSC out if you have problems with resources
  18. # RSC=rc.exe
  19. LINK=bcc32.exe
  20. OBJ_SUFFIX=obj
  21. OBJ_PLACE=-o
  22. RES_PLACE=-fo
  23. EXE_PLACE=-e
  24. # ---- Compiler-specific optional stuff
  25. MC_MISC_CFLAGS=
  26. ifndef RELEASE
  27. # ---- Debug build
  28. OBJS_DIR=debug
  29. EXTRA_MC_SRCS=util.debug.c
  30. SPECIFIC_DEFINES=-DHAVE_TRACE
  31. SPECIFIC_MC_CFLAGS=-v -y $(MC_MISC_CFLAGS)
  32. SPECIFIC_MC_LFLAGS_EXTRA=-lv
  33. SPECIFIC_SLANG_CFLAGS=$(SPECIFIC_MC_CFLAGS)
  34. SPECIFIC_MCEDIT_CFLAGS=$(SPECIFIC_MC_CFLAGS) -I../edit -I../src
  35. RC_DEFINES=-D_DEBUG
  36. else
  37. # ---- Release build
  38. OBJS_DIR=release
  39. EXTRA_MC_SRCS=
  40. SPECIFIC_DEFINES=
  41. SPECIFIC_MC_CFLAGS=$(MC_MISC_CFLAGS)
  42. SPECIFIC_MC_LFLAGS_EXTRA=
  43. SPECIFIC_SLANG_CFLAGS=$(SPECIFIC_MC_CFLAGS)
  44. SPECIFIC_MCEDIT_CFLAGS=$(SPECIFIC_MC_CFLAGS) -I../edit -I../src
  45. RC_DEFINES=-DRELEASE=$(RELEASE)
  46. endif
  47. MC_EXE=$(OBJS_DIR)/mc.exe
  48. # ---- Compiler independent defines
  49. include Makefile.NT
  50. # ---- Linkers are usualy compiler-specific
  51. SPECIFIC_MC_LFLAGS= \
  52. $(SPECIFIC_MC_LFLAGS_EXTRA)
  53. $(MC_EXE): $(MC_RES) $(OBJS) $(MCEDIT_OBJS) $(SLANG_OBJS)
  54. $(LINK) $(EXE_PLACE)$(MC_EXE) $(SPECIFIC_MC_LFLAGS) $+ $(MC_LIBS)