home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / g / gs252src.zip / GS252 / TCCOMMON.MAK < prev    next >
Text File  |  1992-09-07  |  3KB  |  126 lines

  1. #    Copyright (C) 1991, 1992 Aladdin Enterprises.  All rights reserved.
  2. #    Distributed by Free Software Foundation, Inc.
  3. #
  4. # This file is part of Ghostscript.
  5. #
  6. # Ghostscript is distributed in the hope that it will be useful, but
  7. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  8. # to anyone for the consequences of using it or for whether it serves any
  9. # particular purpose or works at all, unless he says so in writing.  Refer
  10. # to the Ghostscript General Public License for full details.
  11. #
  12. # Everyone is granted permission to copy, modify and redistribute
  13. # Ghostscript, but only under the conditions described in the Ghostscript
  14. # General Public License.  A copy of this license is supposed to have been
  15. # given to you along with Ghostscript so you can know your rights and
  16. # responsibilities.  It should be in a file named COPYING.  Among other
  17. # things, the copyright notice and this notice must be preserved on all
  18. # copies.
  19.  
  20. # tccommon.mak
  21. # Section of MS-DOS makefile for Ghostscript common to
  22. # Turbo C and Turbo/Borland C++, MS-DOS and MS Windows.
  23.  
  24. # This file is used by turboc.mak, tbcplus.mak, and bcwin.mak.
  25. # Those files supply the following parameters:
  26. #   Configuration, public:
  27. #    GS_LIB_DEFAULT, GS_INIT, FEATURE_DEVS, DEVICE_DEVS*
  28. #   Configuration, internal, generic:
  29. #    PLATFORM, MAKEFILE, AK, CC*, DEBUG, NOPRIVATE
  30. #   Configuration, internal, specific to DOS/Windows:
  31. #    TDEBUG, USE_ASM, ASM,
  32. #    COMPDIR, (BGIDIR), INCDIR, LIBDIR,
  33. #    CPU_TYPE, FPU_TYPE,
  34. #    F286, GENOPT
  35.  
  36. # Make sure we get the right default target for make.
  37.  
  38. dosdefault: default
  39.  
  40. # Define the extensions for the object and executable files.
  41.  
  42. OBJ=obj
  43. XE=.exe
  44.  
  45. # Define the need for uniq.
  46.  
  47. UNIQ=uniq$(XE)
  48.  
  49. # Define the current directory prefix, shell quote string, and shell name.
  50.  
  51. EXP=
  52. QQ="
  53. SH=
  54. SHP=
  55.  
  56. # Define the memory model for Turbo C.  Don't change it!
  57.  
  58. MM=l
  59.  
  60. # Define the generic compilation flags.
  61.  
  62. !if $(CPU_TYPE) >= 486
  63. ASMFLAGS=/DFOR80386 /DFOR80486
  64. PLATOPT=$(F286) -DFOR80386 -DFOR80486
  65. !elif $(CPU_TYPE) >= 386
  66. ASMFLAGS=/DFOR80386
  67. PLATOPT=$(F286) -DFOR80386
  68. !elif $(CPU_TYPE) >= 286
  69. ASMFLAGS=
  70. PLATOPT=$(F286)
  71. !elif $(CPU_TYPE) >= 186
  72. ASMFLAGS=
  73. PLATOPT=-1
  74. !else
  75. ASMFLAGS=
  76. PLATOPT=
  77. !endif
  78.  
  79. !if $(CPU_TYPE) == 486 || $(FPU_TYPE) >= 287
  80. FPFLAGS=-f287
  81. FPLIB=fp87
  82. !elif $(FPU_TYPE) != 0
  83. FPFLAGS=-f87
  84. FPLIB=fp87
  85. !else
  86. FPFLAGS=
  87. FPLIB=emu
  88. !endif
  89.  
  90. !if $(USE_ASM)
  91. INTASM=iutilasm.$(OBJ)
  92. PCFBASM=gdevegaa.$(OBJ)
  93. !else
  94. INTASM=
  95. PCFBASM=
  96. !endif
  97.  
  98. # Define the generic compilation rules.
  99.  
  100. .asm.obj:
  101.     $(ASM) $(ASMFLAGS) $<;
  102.  
  103. # -------------------------- Auxiliary programs --------------------------- #
  104.  
  105. CCAUX=$(COMPDIR)\$(COMP) -m$(MM) -I$(INCDIR) -L$(LIBDIR) -O
  106.  
  107. echogs$(XE): echogs.c
  108.     $(CCAUX) echogs.c
  109.  
  110. genarch$(XE): genarch.c
  111.     $(CCAUX) genarch.c
  112.  
  113. # We need a substitute for the Unix uniq utility.
  114. # It only has to handle stdin and stdout, no options.
  115. uniq$(XE): uniq.c
  116.     $(CCAUX) uniq.c
  117.  
  118. # ---------------------- MS-DOS I/O debugging option ---------------------- #
  119.  
  120. dosio_=zdosio.$(OBJ)
  121. dosio.dev: $(dosio_)
  122.     $(SHP)gssetmod dosio $(dosio_)
  123.     $(SHP)gsaddmod dosio -oper zdosio
  124.  
  125. zdosio.$(OBJ): zdosio.c $(OP) $(store_h)
  126.