home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 May / Pcwk5b98.iso / Borland / Cplus45 / BC45 / BCEXAMS.PAK / BIDSMAKE.GEN next >
Text File  |  1995-08-29  |  2KB  |  86 lines

  1. #----------------------------------------------------------------------------
  2. # (C) Copyright 1993 by Borland International
  3. #   examples\bidsmake.gen
  4. #----------------------------------------------------------------------------
  5.  
  6. !ifndef SYSTEMS
  7. SYSTEMS = WIN16 DOS16 CON32
  8. !endif
  9.  
  10. #
  11. # 32 bit bids examples are CON32 by default
  12. # This may be overridden in the local makefile
  13. #
  14. !ifndef SYSTEM
  15. ! if $d(CON32) || "$(MODEL)"=="f"
  16. SYSTEM  = CON32
  17. ! endif
  18. !endif
  19.  
  20. #
  21. # If no model has been specified, use large so we don't default to DLL
  22. # which doesn't work with easywin apps
  23. #
  24. !if !$d(MODEL)
  25. MODEL=l
  26. !endif
  27.  
  28. #----------------------------------------------------------------------------
  29. # dir & search paths
  30. #----------------------------------------------------------------------------
  31.  
  32. !ifndef BIDSLIBDIR
  33. BIDSLIBDIR = $(BCLIBDIR)
  34. !endif
  35.  
  36. !ifndef BIDSINCDIR
  37. BIDSINCDIR = $(BCINCDIR)
  38. !elif "$(BIDSINCDIR)" != "$(BCINCDIR)"
  39. SYSINCPATH = $(BIDSINCDIR)
  40. !endif
  41.  
  42. SYSLIBS = 1   # force defined, will be reset after include of makefile.gen
  43. !include $(BCEXAMPLEDIR)\makefile.gen
  44.  
  45. #----------------------------------------------------------------------------
  46. # additional libraries for BIDS
  47. #----------------------------------------------------------------------------
  48.  
  49. !ifdef USEDLL
  50. CFLAGS = $(CFLAGS) -D_BIDSDLL
  51. !endif
  52.  
  53. # determine library name suffix based upon model
  54. #
  55. !if $(_32BIT_)
  56. ! ifdef USEDLL
  57. _SFX_ = fi
  58. ! else
  59. _SFX_ = f
  60. ! endif
  61. !else #WIN16 or DOS16
  62. ! ifdef USEDLL
  63. _SFX_ = i
  64. ! else
  65. _SFX_ = $(MODEL)
  66. ! endif
  67. !endif
  68. #
  69. # select suffix for alternate library if diagnostics enabled
  70. #
  71. !if $(DIAGS)
  72. ! if $d(USEDLL) || $(_32BIT_)
  73. BIDSSFX = d$(_SFX_)
  74. ! else # 16-bit static
  75. BIDSSFX = db$(_SFX_)  #use 'db' for 16 bit static for compatibility
  76. ! endif
  77. !else # no diags
  78. BIDSSFX = $(_SFX_)
  79. !endif
  80. #
  81. # add BIDS library before other libraries
  82. #
  83. SYSLIBS = $(BIDSLIBDIR)\bids$(BIDSSFX)
  84.  
  85. $(MAKEFILE) :: $(BIDSLIBDIR)\bids$(BIDSSFX).lib
  86.