watclib.mak 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. # Copyright (C) 1991, 1995, 1996, 1997, 1998, 1999, 2000 Aladdin Enterprises. All rights reserved.
  2. #
  3. # This software is provided AS-IS with no warranty, either express or
  4. # implied.
  5. #
  6. # This software is distributed under license and may not be copied,
  7. # modified or distributed except as expressly authorized under the terms
  8. # of the license contained in the file LICENSE in this distribution.
  9. #
  10. # For more information about licensing, please refer to
  11. # http://www.ghostscript.com/licensing/. For information on
  12. # commercial licensing, go to http://www.artifex.com/licensing/ or
  13. # contact Artifex Software, Inc., 101 Lucas Valley Road #110,
  14. # San Rafael, CA 94903, U.S.A., +1(415)492-9861.
  15. # $Id: watclib.mak,v 1.24 2004/12/10 23:48:48 giles Exp $
  16. # makefile for MS-DOS / Watcom C/C++ library testing.
  17. libdefault: $(GLOBJ)gslib.exe
  18. $(NO_OP)
  19. AROOTDIR=c:/gs
  20. GSROOTDIR=$(AROOTDIR)/gs$(GS_DOT_VERSION)
  21. GS_DOCDIR=$(GSROOTDIR)/doc
  22. GS_LIB_DEFAULT=$(GSROOTDIR)/lib\;$(GSROOTDIR)/resource\;$(AROOTDIR)/fonts
  23. SEARCH_HERE_FIRST=1
  24. GS_INIT=gs_init.ps
  25. !ifndef DEBUG
  26. DEBUG=1
  27. !endif
  28. !ifndef TDEBUG
  29. TDEBUG=1
  30. !endif
  31. !ifndef NOPRIVATE
  32. NOPRIVATE=1
  33. !endif
  34. GS=gslib
  35. !ifndef BINDIR
  36. BINDIR=.\debugobj
  37. !endif
  38. !ifndef GLSRCDIR
  39. GLSRCDIR=.\src
  40. !endif
  41. !ifndef GLGENDIR
  42. GLGENDIR=.\debugobj
  43. !endif
  44. !ifndef GLOBJDIR
  45. GLOBJDIR=.\debugobj
  46. !endif
  47. # Do not edit the next group of lines.
  48. NUL=
  49. DD=$(GLGENDIR)\$(NUL)
  50. GLD=$(GLGENDIR)\$(NUL)
  51. !ifndef JSRCDIR
  52. JSRCDIR=jpeg
  53. !endif
  54. !ifndef JVERSION
  55. JVERSION=6
  56. !endif
  57. !ifndef PSRCDIR
  58. PSRCDIR=libpng
  59. !endif
  60. !ifndef PVERSION
  61. PVERSION=10208
  62. !endif
  63. !ifndef ZSRCDIR
  64. ZSRCDIR=zlib
  65. !endif
  66. # Define the jbig2dec library source location.
  67. # See jbig2.mak for more information.
  68. !ifndef JBIG2SRCDIR
  69. JBIG2SRCDIR=jbig2dec
  70. !endif
  71. # Define the directory where the icclib source are stored.
  72. # See icclib.mak for more information
  73. !ifndef ICCSRCDIR
  74. ICCSRCDIR=icclib
  75. !endif
  76. # Define the directory where the ijs source is stored,
  77. # and the process forking method to use for the server.
  78. # See ijs.mak for more information.
  79. !ifndef IJSSRCDIR
  80. IJSSRCDIR=ijs
  81. IJSEXECTYPE=win
  82. !endif
  83. CFLAGS=
  84. !ifndef WCVERSION
  85. WCVERSION=10.0
  86. !endif
  87. LIBPATHS=LIBPATH $(%WATCOM)\lib386 LIBPATH $(%WATCOM)\lib386\dos
  88. STUB=$(%WATCOM)\binb\wstub.exe
  89. !ifndef CPU_TYPE
  90. CPU_TYPE=386
  91. !endif
  92. !ifndef FPU_TYPE
  93. FPU_TYPE=0
  94. !endif
  95. !ifndef SYNC
  96. SYNC=winsync
  97. !endif
  98. PLATFORM=watclib_
  99. MAKEFILE=$(GLSRCDIR)\watclib.mak
  100. TOP_MAKEFILES=$(MAKEFILE) $(GLSRCDIR)\wccommon.mak
  101. PLATOPT=
  102. !include $(GLSRCDIR)\wccommon.mak
  103. !ifndef FEATURE_DEVS
  104. FEATURE_DEVS=$(GLD)patlib.dev $(GLD)path1lib.dev
  105. !endif
  106. !ifndef DEVICE_DEVS
  107. DEVICE_DEVS=$(DD)vga.dev
  108. !endif
  109. !ifndef COMPILE_INITS
  110. COMPILE_INITS=0
  111. !endif
  112. !ifndef BAND_LIST_STORAGE
  113. BAND_LIST_STORAGE=file
  114. !endif
  115. !ifndef BAND_LIST_COMPRESSOR
  116. BAND_LIST_COMPRESSOR=zlib
  117. !endif
  118. !ifndef FILE_IMPLEMENTATION
  119. FILE_IMPLEMENTATION=stdio
  120. !endif
  121. !ifndef STDIO_IMPLEMENTATION
  122. STDIO_IMPLEMENTATION=
  123. !endif
  124. !include $(GLSRCDIR)\wctail.mak
  125. !include $(GLSRCDIR)\devs.mak
  126. !include $(GLSRCDIR)\contrib.mak
  127. GLCCWIN=$(GLCC)
  128. !include $(GLSRCDIR)\winplat.mak
  129. watclib_1=$(GLOBJ)gp_getnv.$(OBJ) $(GLOBJ)gp_iwatc.$(OBJ)
  130. !ifeq WAT32 0
  131. watclib_2=$(GLOBJ)gp_dosfs.$(OBJ) $(GLOBJ)gp_dosfe.$(OBJ) $(GLOBJ)gp_msdos.$(OBJ)
  132. watclib_inc=
  133. !else
  134. watclib_2=
  135. watclib_inc=$(GLD)winplat.dev
  136. !endif
  137. watclib__=$(watclib_1) $(watclib_2)
  138. $(GLGEN)watclib_.dev: $(watclib__) $(GLGEN)nosync.dev $(watclib_inc)
  139. $(SETMOD) $(GLGEN)watclib_ $(watclib_1)
  140. $(ADDMOD) $(GLGEN)watclib_ -obj $(watclib_2)
  141. $(ADDMOD) $(GLGEN)watclib_ -include $(GLGEN)nosync $(watclib_inc)
  142. $(GLOBJ)gp_iwatc.$(OBJ): $(GLSRC)gp_iwatc.c $(stat__h) $(string__h)\
  143. $(gx_h) $(gp_h) $(gpmisc_h)
  144. $(GLCC) $(GLO_)gp_iwatc.$(OBJ) $(C_) $(GLSRC)gp_iwatc.c
  145. BEGINFILES=*.err
  146. LIB_ONLY=$(GLOBJ)gslib.obj $(GLOBJ)gsnogc.obj $(GLOBJ)gconfig.obj $(GLOBJ)gscdefs.obj
  147. ll_tr=ll.tr
  148. $(ll_tr): $(TOP_MAKEFILES)
  149. echo OPTION STACK=64k >$(ll_tr)
  150. !ifeq WAT32 0
  151. echo SYSTEM DOS4G >>$(ll_tr)
  152. echo OPTION STUB=$(STUB) >>$(ll_tr)
  153. !endif
  154. echo FILE $(GLOBJ)gsnogc.obj >>$(ll_tr)
  155. echo FILE $(GLOBJ)gconfig.obj >>$(ll_tr)
  156. echo FILE $(GLOBJ)gscdefs.obj >>$(ll_tr)
  157. $(GLOBJ)gslib.exe: $(LIB_ALL) $(LIB_ONLY) $(ld_tr) $(ll_tr)
  158. $(LINK) $(LCT) NAME gslib OPTION MAP=gslib FILE $(GLOBJ)gslib @$(ld_tr) @$(ll_tr)