home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c083 / 21.ddi / BCEXAMS.PAK / OWLMAKE.GEN < prev   
Encoding:
Text File  |  1993-12-02  |  2.1 KB  |  89 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. SYSLIBS = 1   # force defined, actually set after include of makefile.gen
  14. !include $(BCEXAMPLEDIR)\makefile.gen
  15.  
  16. !ifdef USEDLL
  17. CFLAGS = $(CFLAGS) -D_OWLDLL -D_BIDSDLL
  18. !endif
  19.  
  20. #----------------------------------------------------------------------------
  21. # dir & search paths
  22. #----------------------------------------------------------------------------
  23.  
  24. !ifndef OWLLIBDIR
  25. OWLLIBDIR = $(BCLIBDIR)
  26. !endif
  27.  
  28. !if !$d(OWLINCDIR)
  29. OWLINCDIR = $(BCINCDIR)
  30. !elif "$(OWLINCDIR)" != "$(BCINCDIR)"
  31. INCLUDEPATH = $(OWLINCDIR);$(BCINCDIR)
  32. !endif
  33.  
  34. #----------------------------------------------------------------------------
  35. # additional libraries for OWL and BIDS
  36. #----------------------------------------------------------------------------
  37.  
  38. # determine library name suffix based upon model
  39. #
  40. !if $(_32BIT_)
  41. ! if $d(USEDLL)
  42. _SFX_ = fi
  43. ! else
  44. _SFX_ = f
  45. ! endif
  46. !else #WIN16
  47. ! if $d(USEDLL)
  48. _SFX_ = i
  49. ! else
  50. _SFX_ = $(MODEL)
  51. ! endif
  52. !endif
  53.  
  54. !if $(_32BIT_)
  55. _OWLCODE_ = w
  56. !else
  57. _OWLCODE_ = $(_SYSCODE_)
  58. !endif
  59.  
  60. #
  61. # select suffix for alternate library if diagnostics enabled
  62. #
  63. !if $(DIAGS)
  64. OWLSFX = d$(_OWLCODE_)$(_SFX_)
  65. ! if $d(USEDLL) || $(_32BIT_)
  66. BIDSSFX = d$(_SFX_)
  67. ! else # 16-bit static
  68. BIDSSFX = db$(_SFX_)  #use 'db' for 16 bit static for compatibility
  69. ! endif
  70. !else # no diags
  71. OWLSFX = $(_OWLCODE_)$(_SFX_)
  72. BIDSSFX = $(_SFX_)
  73. !endif
  74.  
  75. #
  76. # add OWL and BIDS libraries before user and runtime libraries
  77. #
  78. SYSLIBS = $(OWLLIBDIR)\owl$(OWLSFX) $(BCLIBDIR)\bids$(BIDSSFX)
  79.  
  80.  
  81. #
  82. # build the cpp command line option for precompiled headers if requested
  83. #
  84. !if !$d(NOOWLPCH)
  85. CPCH = -H=$(OWLLIBDIR)\owl$(OWLSFX).csm -H"owl\owlpch.h" -D_OWLPCH
  86. !endif
  87.  
  88. $(MAKEFILE) :: $(OWLLIBDIR)\owl$(OWLSFX).lib $(BCLIBDIR)\bids$(BIDSSFX).lib
  89.