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 / TURBOC.MAK < prev    next >
Text File  |  1992-09-15  |  6KB  |  213 lines

  1. #    Copyright (C) 1989, 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. # makefile for Ghostscript, MS-DOS/Turbo C platform.
  21.  
  22. # ------------------------------- Options ------------------------------- #
  23.  
  24. ###### This section is the only part of the file you should need to edit.
  25.  
  26. # ------ Generic options ------ #
  27.  
  28. # Define the default directory/ies for the runtime
  29. # initialization and font files.  Separate multiple directories with \;.
  30. # Use \\ or / to indicate directories, not a single \.
  31.  
  32. GS_LIB_DEFAULT=c:/gs\;c:/gs/fonts
  33.  
  34. # Define the name of the Ghostscript initialization file.
  35. # (There is no reason to change this.)
  36.  
  37. GS_INIT=gs_init.ps
  38.  
  39. # Choose generic configuration options.
  40.  
  41. # Setting DEBUG=1 includes debugging features (-Z switch) in the code.
  42. # Code runs substantially slower even if no debugging switches are set,
  43. # and also takes about another 25K of memory.
  44.  
  45. DEBUG=0
  46.  
  47. # Setting NOPRIVATE=1 makes private (static) procedures and variables public,
  48. # so they are visible to the debugger and profiler.
  49. # No execution time or space penalty, just larger .OBJ and .EXE files.
  50.  
  51. NOPRIVATE=0
  52.  
  53. # ------ Platform-specific options ------ #
  54.  
  55. # If you don't have an assembler, set USE_ASM=0.  Otherwise, set USE_ASM=1,
  56. # and set ASM to the name of the assembler you are using.  This can be
  57. # a full path name if you want.  Normally it will be masm or tasm.
  58.  
  59. USE_ASM=1
  60. ASM=masm
  61.  
  62. # Define the drive and directory for the Turbo C files.
  63. # COMP is the compiler name (always tcc).
  64. # COMPDIR contains the compiler and linker (normally \tc).
  65. # BGIDIR contains the BGI files (normally /tc).
  66. # INCDIR contains the include files (normally \tc\include).
  67. # LIBDIR contains the library files (normally \tc\lib).
  68. # Note that these prefixes are always followed by a \,
  69. #   so if you want to use the current directory, use an explicit '.'.
  70.  
  71. COMP=tcc
  72. COMPDIR=c:\tc
  73. # For BGIDIR, use / to indicate directories, not \.
  74. BGIDIR=c:/tc
  75. INCDIR=c:\tc\include
  76. LIBDIR=c:\tc\lib
  77.  
  78. # Choose platform-specific options.
  79.  
  80. # Define the processor (CPU) type.  Options are 86, 186, 286, 386, or 486.
  81. # (The 8086 and 8088 both correspond to processor type 86.)
  82. # 286 and up do not use protected mode.  Higher numbers produce
  83. # code that may be significantly smaller and faster, but the executable
  84. # will bail out with an error message on lower-numbered processor types.
  85.  
  86. CPU_TYPE=86
  87.  
  88. # Define the math coprocessor (FPU) type.  Options are 0, 87, 287, or 387.
  89. # If the CPU type is 486, the FPU type is irrelevant, since the 80486
  90. # CPU includes the equivalent of an 80387 on-chip.
  91. # A non-zero option means that the executable will only run if a FPU
  92. # of that type (or higher) is available: this is NOT currently checked
  93. # at runtime.
  94. #   Code is significantly faster.
  95.  
  96. FPU_TYPE=0
  97.  
  98. # ---------------------------- End of options ---------------------------- #
  99.  
  100. # Define the platform name.
  101.  
  102. PLATFORM=tbc_
  103.  
  104. # Define the name of the makefile -- used in dependencies.
  105.  
  106. MAKEFILE=turboc.mak
  107.  
  108. # Define the ANSI-to-K&R dependency.  (Turbo C accepts ANSI syntax.)
  109.  
  110. AK=
  111.  
  112. # Define the compilation flags for an 80286.
  113.  
  114. F286=-1
  115.  
  116. !include "tccommon.mak"
  117.  
  118. # Define the compilation flags.
  119.  
  120. !if $(NOPRIVATE)
  121. CP=-DNOPRIVATE
  122. !else
  123. CP=
  124. !endif
  125.  
  126. !if $(DEBUG) | $(TDEBUG)
  127. CS=-N
  128. !else
  129. CS=
  130. !endif
  131.  
  132. !if $(DEBUG)
  133. CD=-DDEBUG
  134. !else
  135. CD=
  136. !endif
  137.  
  138. GENOPT=$(CP) $(CS) $(CD)
  139.  
  140. CCFLAGS0=$(GENOPT) $(PLATOPT) $(FPFLAGS)
  141. CCFLAGS=$(CCFLAGS0) -m$(MM)
  142. CC=$(COMPDIR)\$(COMP) -d -r -y -G -I$(INCDIR)
  143. CCC=$(CC) -a $(CCFLAGS) -O -c
  144. CCD=$(CCC)
  145. CCCF=$(CC) -a $(CCFLAGS0) -mh -O -c
  146. CC0=$(COMPDIR)\$(COMP) -m$(MM) -I$(INCDIR) -c
  147. CCINT=$(CC) -a $(CCFLAGS) -c
  148.  
  149. .c.obj:
  150.     $(CCC) $<
  151.  
  152. .c.i:
  153.     $(COMPDIR)\cpp -I$(INCDIR) -a $(CCFLAGS) -P- $<
  154.  
  155. # ------ Devices and features ------ #
  156.  
  157. # Choose the language feature(s) to include.  See gs.mak for details.
  158. # Note that because Turbo C doesn't use overlays,
  159. # we don't include any optional features.
  160.  
  161. FEATURE_DEVS=
  162.  
  163. # Choose the device(s) to include.  See devs.mak for details.
  164. # Note that because Turbo C doesn't use overlays,
  165. # we only include a limited set of device drivers.
  166.  
  167. DEVICE_DEVS=vga.dev ega.dev epson.dev eps9high.dev bj10e.dev
  168. !include "gs.mak"
  169. !include "devs.mak"
  170.  
  171. # -------------------------------- Library -------------------------------- #
  172.  
  173. # The Turbo/Borland C(++) platform
  174.  
  175. tbc__=gp_itbc.$(OBJ) gp_dosfb.$(OBJ) gp_msdos.$(OBJ)
  176. tbc_.dev: $(tbc__)
  177.     $(SHP)gssetmod tbc_ $(tbc__)
  178.  
  179. # We have to compile gp_itbc without -1, because it includes a run-time
  180. # check to make sure we are running on the right kind of processor.
  181. gp_itbc.$(OBJ): gp_itbc.c $(string__h) $(gx_h) $(gp_h) $(MAKEFILE) makefile
  182.     $(CC) -a -m$(MM) $(GENOPT) -DCPU_TYPE=$(CPU_TYPE) -c gp_itbc.c
  183.  
  184. gp_dosfb.$(OBJ): gp_dosfb.c $(memory__h) $(gx_h) $(gp_h) $(gserrors_h) $(gxdevice_h)
  185.  
  186. gp_msdos.$(OBJ): gp_msdos.c $(dos__h) $(string__h) $(gx_h) $(gp_h)
  187.  
  188. # ----------------------------- Main program ------------------------------ #
  189.  
  190. BEGINFILES=
  191. CCBEGIN=$(CCC) *.c
  192.  
  193. iutilasm.$(OBJ): iutilasm.asm
  194.  
  195. # Get around the fact that the DOS shell has a rather small limit on
  196. # the length of a command line.  (sigh)
  197.  
  198. LIBCTR=libc$(MM).tr
  199.  
  200. $(LIBCTR): $(MAKEFILE) makefile echogs.exe
  201.     echogs -w $(LIBCTR) $(LIBDIR)\$(FPLIB)+
  202.     echogs -a $(LIBCTR) $(LIBDIR)\math$(MM) $(LIBDIR)\c$(MM)
  203.  
  204. LIBDOS=$(LIB) obj.tr
  205.  
  206. # Interpreter main program
  207.  
  208. GS_ALL=gs.$(OBJ) $(INT) $(INTASM) gsmain.$(OBJ)\
  209.   $(LIBDOS) $(LIBCTR) obj.tr lib.tr
  210.  
  211. gs.exe: $(GS_ALL)
  212.     tlink /m /l $(LIBDIR)\c0$(MM) @obj.tr $(INTASM) @gs.tr ,gs,gs,@lib.tr @$(LIBCTR)
  213.