plan9-aux.mak 4.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. # Copyright (C) 1999-2004 artofcode LLC. 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: unix-aux.mak,v 1.12 2004/01/22 09:16:30 giles Exp $
  16. # Partial makefile common to all Unix configurations.
  17. # This makefile contains the build rules for the auxiliary programs such as
  18. # echogs, and the 'platform' modules.
  19. # Define the name of this makefile.
  20. UNIX_AUX_MAK=$(GLSRC)unix-aux.mak
  21. # -------------------------------- Library -------------------------------- #
  22. ## The Unix platforms
  23. # We have to include a test for the existence of sys/time.h,
  24. # because some System V platforms don't have it.
  25. # Unix platforms other than System V, and also System V Release 4
  26. # (SVR4) platforms.
  27. unix__=$(GLOBJ)gp_getnv.$(OBJ) $(GLOBJ)gp_unix.$(OBJ) $(GLOBJ)gp_unifs.$(OBJ) $(GLOBJ)gp_unifn.$(OBJ) $(GLOBJ)gp_stdia.$(OBJ) $(GLOBJ)gp_unix_cache.$(OBJ)
  28. $(GLGEN)unix_.dev: $(unix__) $(GLD)nosync.dev
  29. $(SETMOD) $(GLGEN)unix_ $(unix__) -include $(GLD)nosync
  30. $(GLOBJ)gp_unix.$(OBJ): $(GLSRC)gp_unix.c $(AK)\
  31. $(pipe__h) $(string__h) $(time__h)\
  32. $(gx_h) $(gsexit_h) $(gp_h)
  33. $(GLCC) $(GLO_)gp_unix.$(OBJ) $(C_) $(GLSRC)gp_unix.c
  34. $(GLOBJ)gp_unix_cache.$(OBJ): $(GLSRC)gp_unix_cache.c $(AK)\
  35. $(stdio__h) $(string__h) $(time__h) $(gconfigd_h) $(gp_h) $(md5_h)
  36. $(GLCC) $(GLO_)gp_unix_cache.$(OBJ) $(C_) $(GLSRC)gp_unix_cache.c
  37. # assume all Unix platforms support unbuffered read
  38. $(GLOBJ)gp_stdia.$(OBJ): $(GLSRC)gp_stdia.c $(AK)\
  39. $(stdio__h) $(time__h) $(unistd__h) $(gx_h) $(gp_h)
  40. $(GLCC) $(GLO_)gp_stdia.$(OBJ) $(C_) $(GLSRC)gp_stdia.c
  41. # System V platforms other than SVR4, which lack some system calls,
  42. # but have pipes.
  43. sysv__=$(GLOBJ)gp_getnv.$(OBJ) $(GLOBJ)gp_unix.$(OBJ) $(GLOBJ)gp_unifs.$(OBJ) $(GLOBJ)gp_unifn.$(OBJ) $(GLOBJ)gp_sysv.$(OBJ)
  44. $(GLGEN)sysv_.dev: $(sysv__) $(GLD)nosync.dev
  45. $(SETMOD) $(GLGEN)sysv_ $(sysv__) -include $(GLD)nosync
  46. $(GLOBJ)gp_sysv.$(OBJ): $(GLSRC)gp_sysv.c $(stdio__h) $(time__h) $(AK)
  47. $(GLCC) $(GLO_)gp_sysv.$(OBJ) $(C_) $(GLSRC)gp_sysv.c
  48. # -------------------------- Auxiliary programs --------------------------- #
  49. $(ECHOGS_XE): $(GLSRC)echogs.c $(AK) $(stdpre_h)
  50. $(CCAUX) $(I_)$(GLSRCDIR)$(_I) $(O_)$(ECHOGS_XE) $(GLSRC)echogs.c
  51. # On the RS/6000 (at least), compiling genarch.c with gcc with -O
  52. # produces a buggy executable.
  53. $(GENARCH_XE): $(GLSRC)genarch.c $(AK) $(GENARCH_DEPS)
  54. $(CCAUX) $(I_)$(GLSRCDIR)$(_I) $(O_)$(GENARCH_XE) $(GLSRC)genarch.c
  55. $(GENCONF_XE): $(GLSRC)genconf.c $(AK) $(GENCONF_DEPS)
  56. $(CCAUX) $(I_)$(GLSRCDIR)$(_I) $(O_)$(GENCONF_XE) $(GLSRC)genconf.c
  57. $(GENDEV_XE): $(GLSRC)gendev.c $(AK) $(GENDEV_DEPS)
  58. $(CCAUX) $(I_)$(GLSRCDIR)$(_I) $(O_)$(GENDEV_XE) $(GLSRC)gendev.c
  59. $(GENHT_XE): $(GLSRC)genht.c $(AK) $(GENHT_DEPS)
  60. $(CCAUX) $(GENHT_CFLAGS) $(O_)$(GENHT_XE) $(GLSRC)genht.c
  61. $(GENINIT_XE): $(GLSRC)geninit.c $(AK) $(GENINIT_DEPS)
  62. $(CCAUX) $(I_)$(GLSRCDIR)$(_I) $(O_)$(GENINIT_XE) $(GLSRC)geninit.c
  63. # Query the environment to construct gconfig_.h.
  64. # The "else true;" is required because Ultrix's implementation of sh -e
  65. # terminates execution of a command if any error occurs, even if the command
  66. # traps the error with ||.
  67. INCLUDE=/sys/include/ape
  68. $(gconfig__h): $(UNIX_AUX_MAK) $(ECHOGS_XE)
  69. $(ECHOGS_XE) -w $(gconfig__h) -x 2f2a -s This file was generated automatically by unix-aux.mak. -s -x 2a2f
  70. if ( test -f $(INCLUDE)/dirent.h ); then $(ECHOGS_XE) -a $(gconfig__h) -x 23 define HAVE_DIRENT_H; else true; fi
  71. if ( test -f $(INCLUDE)/ndir.h ); then $(ECHOGS_XE) -a $(gconfig__h) -x 23 define HAVE_NDIR_H; else true; fi
  72. if ( test -f $(INCLUDE)/sys/dir.h ); then $(ECHOGS_XE) -a $(gconfig__h) -x 23 define HAVE_SYS_DIR_H; else true; fi
  73. if ( test -f $(INCLUDE)/sys/ndir.h ); then $(ECHOGS_XE) -a $(gconfig__h) -x 23 define HAVE_SYS_NDIR_H; else true; fi
  74. if ( test -f $(INCLUDE)/sys/time.h ); then $(ECHOGS_XE) -a $(gconfig__h) -x 23 define HAVE_SYS_TIME_H; else true; fi
  75. if ( test -f $(INCLUDE)/sys/times.h ); then $(ECHOGS_XE) -a $(gconfig__h) -x 23 define HAVE_SYS_TIMES_H; else true; fi
  76. if ( test -f $(JSRCDIR)/jmemsys.h); then true; else $(ECHOGS_XE) -a $(gconfig__h) -x 23 define DONT_HAVE_JMEMSYS_H; fi