unix-end.mak 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999 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: unix-end.mak,v 1.6 2003/12/11 02:22:11 giles Exp $
  16. # Partial makefile common to all Unix and Desqview/X configurations.
  17. # This is the next-to-last part of the makefile for these configurations.
  18. # Define the rule for building standard configurations.
  19. STDDIRS:
  20. @if test ! -d $(BINDIR); then mkdir $(BINDIR); fi
  21. @if test ! -d $(GLGENDIR); then mkdir $(GLGENDIR); fi
  22. @if test ! -d $(GLOBJDIR); then mkdir $(GLOBJDIR); fi
  23. @if test ! -d $(PSGENDIR); then mkdir $(PSGENDIR); fi
  24. @if test ! -d $(PSOBJDIR); then mkdir $(PSOBJDIR); fi
  25. # Define a rule for building profiling configurations.
  26. PGDIRS: STDDIRS
  27. @if test ! -d $(BINDIR)/$(PGRELDIR); then mkdir $(BINDIR)/$(PGRELDIR); fi
  28. @if test ! -d $(GLGENDIR)/$(PGRELDIR); then mkdir $(GLGENDIR)/$(PGRELDIR); fi
  29. @if test ! -d $(GLOBJDIR)/$(PGRELDIR); then mkdir $(GLOBJDIR)/$(PGRELDIR); fi
  30. @if test ! -d $(PSGENDIR)/$(PGRELDIR); then mkdir $(PSGENDIR)/$(PGRELDIR); fi
  31. @if test ! -d $(PSOBJDIR)/$(PGRELDIR); then mkdir $(PSOBJDIR)/$(PGRELDIR); fi
  32. PGDEFS=GENOPT='-DPROFILE' CFLAGS='$(CFLAGS_PROFILE) $(GCFLAGS) $(XCFLAGS)'\
  33. LDFLAGS='$(XLDFLAGS) -pg' XLIBS='Xt SM ICE Xext X11'\
  34. BINDIR=$(BINDIR)/$(PGRELDIR)\
  35. GLGENDIR=$(GLGENDIR)/$(PGRELDIR) GLOBJDIR=$(GLOBJDIR)/$(PGRELDIR)\
  36. PSGENDIR=$(PSGENDIR)/$(PGRELDIR) PSOBJDIR=$(PSOBJDIR)/$(PGRELDIR)
  37. pg: PGDIRS
  38. $(MAKE) $(PGDEFS) default
  39. pgclean: PGDIRS
  40. $(MAKE) $(PGDEFS) clean
  41. # Define a rule for building debugging configurations.
  42. DEBUGDIRS: STDDIRS
  43. @if test ! -d $(BINDIR)/$(DEBUGRELDIR); then mkdir $(BINDIR)/$(DEBUGRELDIR); fi
  44. @if test ! -d $(GLGENDIR)/$(DEBUGRELDIR); then mkdir $(GLGENDIR)/$(DEBUGRELDIR); fi
  45. @if test ! -d $(GLOBJDIR)/$(DEBUGRELDIR); then mkdir $(GLOBJDIR)/$(DEBUGRELDIR); fi
  46. @if test ! -d $(PSGENDIR)/$(DEBUGRELDIR); then mkdir $(PSGENDIR)/$(DEBUGRELDIR); fi
  47. @if test ! -d $(PSOBJDIR)/$(DEBUGRELDIR); then mkdir $(PSOBJDIR)/$(DEBUGRELDIR); fi
  48. DEBUGDEFS=GENOPT='-DDEBUG' CFLAGS='$(CFLAGS_DEBUG) $(GCFLAGS) $(XCFLAGS)'\
  49. BINDIR=$(BINDIR)/$(DEBUGRELDIR)\
  50. GLGENDIR=$(GLGENDIR)/$(DEBUGRELDIR) GLOBJDIR=$(GLOBJDIR)/$(DEBUGRELDIR)\
  51. PSGENDIR=$(PSGENDIR)/$(DEBUGRELDIR) PSOBJDIR=$(PSOBJDIR)/$(DEBUGRELDIR)
  52. debug: DEBUGDIRS
  53. $(MAKE) $(DEBUGDEFS) default
  54. debugclean: DEBUGDIRS
  55. $(MAKE) $(DEBUGDEFS) clean
  56. # The rule for gconfigv.h is here because it is shared between Unix and
  57. # DV/X environments.
  58. $(gconfigv_h): $(GLSRC)unix-end.mak $(TOP_MAKEFILES) $(ECHOGS_XE)
  59. $(ECHOGS_XE) -w $(gconfigv_h) -x 23 define USE_ASM -x 2028 -q $(USE_ASM)-0 -x 29
  60. $(ECHOGS_XE) -a $(gconfigv_h) -x 23 define USE_FPU -x 2028 -q $(FPU_TYPE)-0 -x 29
  61. $(ECHOGS_XE) -a $(gconfigv_h) -x 23 define EXTEND_NAMES 0$(EXTEND_NAMES)
  62. $(ECHOGS_XE) -a $(gconfigv_h) -x 23 define SYSTEM_CONSTANTS_ARE_WRITABLE 0$(SYSTEM_CONSTANTS_ARE_WRITABLE)
  63. # Emacs tags maintenance.
  64. TAGS:
  65. etags -t $(GLSRC)*.[ch] $(PSSRC)*.[ch]