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 / UNIXTAIL.MAK < prev    next >
Text File  |  1992-09-17  |  5KB  |  156 lines

  1. #    Copyright (C) 1990, 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. # Partial makefile for Ghostscript, common to all Unix configurations.
  21.  
  22. # This is the last part of the makefile for Unix configurations.
  23. # Since Unix make doesn't have an 'include' facility, we concatenate
  24. # the various parts of the makefile together by brute force (in tar_cat).
  25.  
  26. # The following prevents GNU make from constructing argument lists that
  27. # include all environment variables, which can easily be longer than
  28. # brain-damaged system V allows.
  29.  
  30. .NOEXPORT:
  31.  
  32. # -------------------------------- Library -------------------------------- #
  33.  
  34. ## The Unix platforms
  35.  
  36. # We have to include a test for the existence of sys/time.h,
  37. # because some System V platforms don't have it.
  38.  
  39. # All reasonable Unix platforms.
  40. unix__=gp_unix.$(OBJ)
  41. unix_.dev: $(unix__)
  42.     $(SHP)gssetmod unix_ $(unix__)
  43.  
  44. gp_unix.$(OBJ): gp_unix.c $(AK) $(memory__h) $(string__h) $(gx_h) $(gp_h) \
  45.  $(stat__h) $(time__h)
  46.     if ( test -f /usr/include/sys/time.h ) then $(CCC) gp_unix.c;\
  47.     else $(CCC) -DNOSYSTIME gp_unix.c; fi
  48.  
  49. # Brain-damaged System V platforms.
  50. sysv__=gp_unix.$(OBJ) gp_sysv.$(OBJ)
  51. sysv_.dev: $(sysv__)
  52.     $(SHP)gssetmod sysv_ $(sysv__)
  53.  
  54. gp_sysv.$(OBJ): gp_sysv.c $(time__h) $(AK)
  55.     if ( test -f /usr/include/sys/time.h ) then $(CCC) gp_sysv.c;\
  56.     else $(CCC) -DNOSYSTIME gp_sysv.c; fi
  57.  
  58. # -------------------------- Auxiliary programs --------------------------- #
  59.  
  60. ansi2knr$(XE): ansi2knr.c $(stdio__h) $(string__h) $(malloc__h)
  61.     $(CC) -o ansi2knr$(XE) $(CFLAGS) ansi2knr.c
  62.  
  63. echogs$(XE): echogs.c
  64.     $(CC) -o echogs$(XE) $(CFLAGS) echogs.c
  65.  
  66. # On the RS/6000 (at least), compiling genarch.c with gcc with -O
  67. # produces a buggy executable.
  68. genarch$(XE): genarch.c
  69.     $(CC) -o genarch$(XE) genarch.c
  70.  
  71. # ----------------------------- Main program ------------------------------ #
  72.  
  73. BEGINFILES=
  74. CCBEGIN=$(CCC) *.c
  75.  
  76. # Main program
  77.  
  78. ALLUNIX=gsmain.$(OBJ) $(LIB)
  79.  
  80. # Interpreter main program
  81.  
  82. GSUNIX=gs.$(OBJ) $(INT) $(ALLUNIX)
  83.  
  84. # The second call on echogs writes a \.  This is the only
  85. # way to do it that works with all flavors of shell!
  86. gs: $(GSUNIX) obj.tr lib.tr echogs
  87.     ./echogs -n - $(CC) $(LDFLAGS) $(XLIBDIRS) -o gs $(GSUNIX) >_temp_
  88.     ./echogs -x 205c >>_temp_
  89.     cat obj.tr >>_temp_
  90.     cat lib.tr >>_temp_
  91.     echo $(EXTRALIBS) -lm >>_temp_
  92.     $(SH) <_temp_
  93.  
  94. # Installation
  95.  
  96. TAGS:
  97.     etags -t *.c *.h
  98.  
  99. docdir=$(gsdatadir)/doc
  100. exdir=$(gsdatadir)/examples
  101. sysdir=$(gsdatadir)/system
  102.  
  103. install: gs
  104.     -mkdir $(bindir)
  105.     $(INSTALL_PROGRAM) gs $(bindir)
  106.     $(INSTALL_PROGRAM) gsbj $(bindir)
  107.     $(INSTALL_PROGRAM) gsdj $(bindir)
  108.     $(INSTALL_PROGRAM) gslj $(bindir)
  109.     $(INSTALL_PROGRAM) gslp $(bindir)
  110.     $(INSTALL_PROGRAM) gsnd $(bindir)
  111.     $(INSTALL_PROGRAM) bdftops $(bindir)
  112.     $(INSTALL_PROGRAM) font2c $(bindir)
  113.     -mkdir $(gsdatadir)
  114.     $(INSTALL_DATA) README $(gsdatadir)
  115.     $(INSTALL_DATA) gslp.ps $(gsdatadir)
  116.     $(INSTALL_DATA) gs_init.ps $(gsdatadir)
  117.     $(INSTALL_DATA) gs_2asc.ps $(gsdatadir)
  118.     $(INSTALL_DATA) gs_dps1.ps $(gsdatadir)
  119.     $(INSTALL_DATA) gs_fonts.ps $(gsdatadir)
  120.     $(INSTALL_DATA) gs_lev2.ps $(gsdatadir)
  121.     $(INSTALL_DATA) gs_statd.ps $(gsdatadir)
  122.     $(INSTALL_DATA) sym__enc.ps $(gsdatadir)
  123.     $(INSTALL_DATA) quit.ps $(gsdatadir)
  124.     $(INSTALL_DATA) Fontmap $(gsdatadir)
  125.     $(INSTALL_DATA) uglyr.gsf $(gsdatadir)
  126.     $(INSTALL_DATA) bdftops.ps $(gsdatadir)
  127.     $(INSTALL_DATA) decrypt.ps $(gsdatadir)
  128.     $(INSTALL_DATA) font2c.ps $(gsdatadir)
  129.     $(INSTALL_DATA) impath.ps $(gsdatadir)
  130.     $(INSTALL_DATA) landscap.ps $(gsdatadir)
  131.     $(INSTALL_DATA) prfont.ps $(gsdatadir)
  132.     $(INSTALL_DATA) pstoppm.ps $(gsdatadir)
  133.     $(INSTALL_DATA) type1ops.ps $(gsdatadir)
  134.     $(INSTALL_DATA) wrfont.ps $(gsdatadir)
  135.     -mkdir $(docdir)
  136.     $(INSTALL_DATA) NEWS $(docdir)
  137.     $(INSTALL_DATA) history.doc $(docdir)
  138.     $(INSTALL_DATA) drivers.doc $(docdir)
  139.     $(INSTALL_DATA) fonts.doc $(docdir)
  140.     $(INSTALL_DATA) hershey.doc $(docdir)
  141.     $(INSTALL_DATA) humor.doc $(docdir)
  142.     $(INSTALL_DATA) language.doc $(docdir)
  143.     $(INSTALL_DATA) lib.doc $(docdir)
  144.     $(INSTALL_DATA) make.doc $(docdir)
  145.     $(INSTALL_DATA) psfiles.doc $(docdir)
  146.     $(INSTALL_DATA) readme.doc $(docdir)
  147.     $(INSTALL_DATA) use.doc $(docdir)
  148.     -mkdir $(exdir)
  149.     $(INSTALL_DATA) chess.ps $(exdir)
  150.     $(INSTALL_DATA) cheq.ps $(exdir)
  151.     $(INSTALL_DATA) colorcir.ps $(exdir)
  152.     $(INSTALL_DATA) golfer.ps $(exdir)
  153.     $(INSTALL_DATA) escher.ps $(exdir)
  154.     $(INSTALL_DATA) snowflak.ps $(exdir)
  155.     $(INSTALL_DATA) tiger.ps $(exdir)
  156.