bc3.mk 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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++ 3.1 version. Supports 16 bit DOS development.
  30. #
  31. #############################################################################
  32. # Include standard startup script definitions
  33. .IMPORT: SCITECH
  34. .INCLUDE: "$(SCITECH)\makedefs\startup.mk"
  35. # Default commands for compiling, assembling linking and archiving
  36. CC := bcc
  37. CFLAGS := -ml -H=bcc.sym -i60 -d
  38. .IF $(USE_TASM32)
  39. AS := tasm32
  40. .ELIF $(USE_TASMX)
  41. AS := tasmx
  42. .ELSE
  43. AS := tasm
  44. .ENDIF
  45. ASFLAGS := /t /mx /m /iINCLUDE /i$(SCITECH)\INCLUDE
  46. LD := bclink tlink.exe
  47. LDFLAGS := -c
  48. LIB := tlib
  49. LIBFLAGS := /C
  50. # Optionally turn on debugging information
  51. .IF $(DBG)
  52. CFLAGS += -v
  53. LDFLAGS += -v
  54. ASFLAGS += /zi
  55. LIBFLAGS += /P128
  56. .ELSE
  57. LDFLAGS += -x
  58. ASFLAGS += /q
  59. .END
  60. # Optionally turn on optimisations
  61. .IF $(OPT)
  62. CFLAGS += -3 -O2
  63. .ELIF $(OPT_SIZE)
  64. CFLAGS += -3 -O1
  65. .END
  66. # Optionally turn on direct i387 FPU instructions
  67. .IF $(FPU)
  68. CFLAGS += -f287 -DFPU387
  69. ASFLAGS += -DFPU387
  70. .END
  71. # Optionally compile a beta release version of a product
  72. .IF $(BETA)
  73. CFLAGS += -DBETA
  74. ASFLAGS += -DBETA
  75. .END
  76. USE_REALDOS := 1
  77. # Define the default libraries to link with
  78. DEF_LIBS := mathl.lib cl.lib
  79. # Define the base directory for library files
  80. .IF $(CHECKED)
  81. LIB_BASE_DIR := $(SCITECH_LIB)\lib\debug
  82. CFLAGS += -DCHECKED=1
  83. .ELSE
  84. LIB_BASE_DIR := $(SCITECH_LIB)\lib\release
  85. .ENDIF
  86. # Define where to install library files
  87. LIB_DEST := $(LIB_BASE_DIR)\dos16\bc3
  88. # Define which file contains our rules
  89. RULES_MAK := bc3.mk