bcos2.mk 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. #############################################################################
  2. #
  3. # SciTech Multi-platform Graphics Library
  4. #
  5. # ========================================================================
  6. #
  7. # The contents of this file are subject to the SciTech MGL Public
  8. # License Version 1.0 (the "License"); you may not use this file
  9. # except in compliance with the License. You may obtain a copy of
  10. # the License at http://www.scitechsoft.com/mgl-license.txt
  11. #
  12. # Software distributed under the License is distributed on an
  13. # "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  14. # implied. See the License for the specific language governing
  15. # rights and limitations under the License.
  16. #
  17. # The Original Code is Copyright (C) 1991-1998 SciTech Software, Inc.
  18. #
  19. # The Initial Developer of the Original Code is SciTech Software, Inc.
  20. # All Rights Reserved.
  21. #
  22. # ========================================================================
  23. #
  24. # Descripton: Generic DMAKE startup makefile definitions file. Assumes
  25. # that the SCITECH environment variable has been set to point
  26. # to where all our stuff is installed. You should not need
  27. # to change anything in this file.
  28. #
  29. # Borland C++ 2.0 32-bit OS/2 version.
  30. #
  31. #############################################################################
  32. # Include standard startup script definitions
  33. .IMPORT: SCITECH
  34. .INCLUDE: "$(SCITECH)\makedefs\startup.mk"
  35. # Import enivornment variables that we use
  36. .IMPORT .IGNORE : USE_OS2GUI BC_LIBBASE
  37. # We are compiling for a 32 bit envionment
  38. _32BIT_ := 1
  39. # Default commands for compiling, assembling linking and archiving
  40. CC := bcc
  41. CFLAGS := -w- -4 -H=bcc32.sym -i60 -d
  42. .IF $(USE_NASM)
  43. AS := nasm
  44. ASFLAGS := -t -f obj -d__FLAT__ -iINCLUDE -i$(SCITECH)\INCLUDE
  45. .ELSE
  46. AS := tasm
  47. ASFLAGS := /t /mx /m /D__FLAT__ /D__OS2__ /iINCLUDE /i$(SCITECH)\INCLUDE
  48. .ENDIF
  49. LD := bclink tlink.exe
  50. LDFLAGS := -c
  51. RC := brcc
  52. RCFLAGS :=
  53. LIB := tlib
  54. LIBFLAGS := /C /P32
  55. ILIB := implib
  56. ILIBFLAGS := -c
  57. .IF $(USE_OS2GUI)
  58. CFLAGS += -D__OS2_PM__
  59. .ENDIF
  60. # Optionally turn on debugging information
  61. .IF $(DBG)
  62. CFLAGS += -v
  63. LDFLAGS += -v
  64. LIBFLAGS += /P128
  65. .IF $(USE_NASM)
  66. ASFLAGS += -F borland
  67. .ELSE
  68. ASFLAGS += /zi
  69. .ENDIF
  70. .ELSE
  71. LDFLAGS += -x
  72. .IF $(USE_NASM)
  73. ASFLAGS += -F null
  74. .ELSE
  75. ASFLAGS += /q
  76. .ENDIF
  77. .END
  78. # Optionally turn on optimisations
  79. .IF $(OPT)
  80. CFLAGS += -5 -O2 -k-
  81. .ELIF $(OPT_SIZE)
  82. CFLAGS += -5 -O1 -k-
  83. .END
  84. # Optionally turn on direct i387 FPU instructions
  85. .IF $(FPU)
  86. CFLAGS += -DFPU387
  87. ASFLAGS += -dFPU387
  88. .END
  89. # Optionally compile a beta release version of a product
  90. .IF $(BETA)
  91. CFLAGS += -DBETA
  92. ASFLAGS += -dBETA
  93. .END
  94. # Optionally use Phar Lap's TNT DOS Extender, otherwise use the DOS Power Pack
  95. .IF $(BUILD_DLL)
  96. CFLAGS += -sd -sm -DBUILD_DLL
  97. ASFLAGS += -dBUILD_DLL
  98. .ELSE
  99. CFLAGS += -sm
  100. .ENDIF
  101. DEF_LIBS := os2.lib c2mt.lib
  102. DX_ASFLAGS += -d__OS2__
  103. LIB_OS = os232
  104. # Define the base directory for library files
  105. .IF $(CHECKED)
  106. LIB_BASE_DIR := $(SCITECH_LIB)\lib\debug
  107. CFLAGS += -DCHECKED=1
  108. .ELSE
  109. LIB_BASE_DIR := $(SCITECH_LIB)\lib\release
  110. .ENDIF
  111. # Define where to install library files
  112. LIB_BASE := $(LIB_BASE_DIR)\$(LIB_OS)\$(BC_LIBBASE)
  113. LIB_DEST := $(LIB_BASE)
  114. # Place to look for PMODE library files
  115. .IF $(USE_OS2GUI)
  116. DEF_LIBS += pm_pm.lib
  117. .ELSE
  118. DEF_LIBS += pm.lib
  119. .ENDIF
  120. # Define which file contains our rules
  121. RULES_MAK := bcos2.mk