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

  1. #----------------------------------------------------------------------------
  2. # ObjectWindows - (C) Copyright 1993 by Borland International
  3. #     Extension to makefile.gen, adding OWL definitions and libraries
  4. #----------------------------------------------------------------------------
  5.  
  6. !ifndef MODELS
  7. MODELS = smldf
  8. !endif
  9. !ifndef SYSTEMS
  10. SYSTEMS = WIN16 WIN32
  11. !endif
  12.  
  13. #----------------------------------------------------------------------------
  14. # dir & search paths
  15. #----------------------------------------------------------------------------
  16.  
  17. !ifndef OWLLIBDIR
  18. OWLLIBDIR = $(BCLIBDIR)
  19. !endif
  20. !ifndef BIDSLIBDIR
  21. BIDSLIBDIR = $(BCLIBDIR)
  22. !endif
  23.  
  24. !ifndef OWLINCDIR
  25. OWLINCDIR = $(BCINCDIR)
  26. !endif
  27. !ifndef BIDSINCDIR
  28. BIDSINCDIR = $(BCINCDIR)
  29. !endif
  30.  
  31. !if "$(OWLINCDIR)" != "$(BCINCDIR)"
  32. ! if "$(BIDSINCDIR)" != "$(OWLINCDIR)" && "$(BIDSINCDIR)" != "$(BCINCDIR)"
  33. SYSINCPATH = $(OWLINCDIR);$(BIDSINCDIR)
  34. ! else 
  35. SYSINCPATH = $(OWLINCDIR)
  36. ! endif
  37. !elif "$(BIDSINCDIR)" != "$(BCINCDIR)"
  38. SYSINCPATH = $(BIDSINCDIR)
  39. !endif
  40.  
  41. SYSLIBS = 1   # force defined, actually set after include of makefile.gen
  42. SYSLIBSD = 1  # force defined, actually set after include of makefile.gen
  43. !include $(BCEXAMPLEDIR)\makefile.gen
  44.  
  45. !ifdef USEDLL
  46. CFLAGS = $(CFLAGS) -D_OWLDLL -D_BIDSDLL
  47. CFLAGSD = $(CFLAGSD) -D_OWLDLL -D_BIDSDLL
  48. !endif
  49.  
  50. #----------------------------------------------------------------------------
  51. # additional libraries for OWL and BIDS
  52. #----------------------------------------------------------------------------
  53.  
  54. # determine library name suffix based upon model
  55. #
  56. !if $(_32BIT_)
  57. ! if $d(USEDLL)
  58. _SFX_ = fi
  59. ! else
  60. _SFX_ = f
  61. ! endif
  62. !else #WIN16
  63. ! if $d(USEDLL)
  64. _SFX_ = i
  65. ! else
  66. _SFX_ = $(MODEL)
  67. ! endif
  68. !endif
  69.  
  70. !if $(_32BIT_)
  71. _OWLCODE_ = w
  72. !else
  73. _OWLCODE_ = $(_SYSCODE_)
  74. !endif
  75.  
  76. #
  77. # select suffix for alternate library if diagnostics enabled
  78. #
  79. !if $(DIAGS)
  80. OWLSFX = d$(_OWLCODE_)$(_SFX_)
  81. ! if $d(USEDLL) || $(_32BIT_)
  82. BIDSSFX = d$(_SFX_)
  83. ! else # 16-bit static
  84. BIDSSFX = db$(_SFX_)  #use 'db' for 16 bit static for compatibility
  85. ! endif
  86. !else # no diags
  87. OWLSFX = $(_OWLCODE_)$(_SFX_)
  88. BIDSSFX = $(_SFX_)
  89. !endif
  90.  
  91. #
  92. # add OWL and BIDS libraries before user and runtime libraries
  93. #
  94. SYSLIBS = $(OWLLIBDIR)\owl$(OWLSFX) $(BIDSLIBDIR)\bids$(BIDSSFX)
  95. !if $(_32BIT_)
  96. SYSLIBSD = $(OWLLIBDIR)\owl$(OWLSFX) $(BIDSLIBDIR)\bids$(BIDSSFX)
  97. !else
  98. SYSLIBSD = $(OWLLIBDIR)\owl$(OWLSFX)u $(BIDSLIBDIR)\bids$(BIDSSFX)
  99. !endif
  100.  
  101. #
  102. # build the cpp command line option for precompiled headers if requested
  103. #
  104. !if !$d(NOOWLPCH)
  105. CPCH = -H=$(OWLLIBDIR)\owl$(OWLSFX).csm -H"owl\owlpch.h" -D_OWLPCH
  106. !if $(_32BIT_)
  107. CPCHD = -H=$(OWLLIBDIR)\owl$(OWLSFX).csm -H"owl\owlpch.h" -D_OWLPCH
  108. !else
  109. CPCHD = -H=$(OWLLIBDIR)\owl$(OWLSFX)u.csm -H"owl\owlpch.h" -D_OWLPCH
  110. !endif
  111. !endif
  112.  
  113. $(MAKEFILE) :: $(OWLLIBDIR)\owl$(OWLSFX).lib $(BIDSLIBDIR)\bids$(BIDSSFX).lib
  114.