home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / extensions / lib / PEXlib / Imakefile next >
Encoding:
Makefile  |  1993-07-21  |  2.6 KB  |  116 lines

  1. XCOMM $XConsortium: Imakefile,v 1.8.1.2 92/11/23 18:21:13 gildea Exp $
  2. XCOMM
  3. XCOMM Copyright 1992 by the Massachusetts Institute of Technology
  4. XCOMM 
  5. XCOMM Permission to use, copy, modify, distribute, and sell this software and
  6. XCOMM its documentation for any purpose is hereby granted without fee, provided
  7. XCOMM that the above copyright notice appear in all copies and that both that
  8. XCOMM copyright notice and this permission notice appear in supporting
  9. XCOMM documentation, and that the name of M.I.T. not be used in advertising or
  10. XCOMM publicity pertaining to distribution of the software without specific,
  11. XCOMM written prior permission.  M.I.T. makes no representations about the
  12. XCOMM suitability of this software for any purpose.  It is provided "as is"
  13. XCOMM without express or implied warranty.
  14. XCOMM
  15.  
  16. #define DoNormalLib NormalLibPex
  17. #define DoSharedLib SharedLibPex
  18. #define DoDebugLib DebugLibPex
  19. #define DoProfileLib ProfileLibPex
  20. #include <Library.tmpl>
  21.  
  22. #ifdef RsArchitecture
  23. REQUIREDLIBS = $(XLIBSRC)/libX11.a
  24. #endif
  25.  
  26. #ifdef PexNativeFPFormat
  27. NATIVE_FP_FORMAT = PexNativeFPFormat
  28. FP_DEFINES = -DNATIVE_FP_FORMAT=$(NATIVE_FP_FORMAT)
  29. #endif
  30.  
  31. #if Malloc0ReturnsNull
  32. ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
  33. #endif
  34.  
  35. DEFINES = $(FP_DEFINES) $(ALLOC_DEFINES)
  36.  
  37. HEADERS = PEXlib.h \
  38.       PEXlibint.h \
  39.       PEX.h \
  40.       PEXproto.h \
  41.       PEXprotost.h
  42.  
  43. SRCS =  pl_escape.c \
  44.     pl_font.c \
  45.     pl_free.c\
  46.     pl_lut.c \
  47.     pl_nameset.c \
  48.         pl_oc_attr.c \
  49.     pl_oc_dec.c \
  50.     pl_oc_enc.c \
  51.     pl_oc_prim.c \
  52.     pl_oc_struct.c \
  53.     pl_oc_util.c \
  54.     pl_pc.c\
  55.     pl_pick.c \
  56.         pl_rdr.c \
  57.     pl_sc.c \
  58.     pl_startup.c \
  59.     pl_struct.c \
  60.     pl_util.c \
  61.     pl_wks.c
  62.     
  63. OBJS =  pl_escape.o \
  64.     pl_font.o \
  65.     pl_free.o\
  66.     pl_lut.o \
  67.     pl_nameset.o \
  68.         pl_oc_attr.o \
  69.     pl_oc_dec.o \
  70.     pl_oc_enc.o \
  71.     pl_oc_prim.o \
  72.     pl_oc_struct.o \
  73.     pl_oc_util.o \
  74.     pl_pc.o\
  75.     pl_pick.o \
  76.         pl_rdr.o \
  77.     pl_sc.o \
  78.     pl_startup.o \
  79.     pl_struct.o \
  80.     pl_util.o \
  81.     pl_wks.o
  82.     
  83.  
  84. LibraryObjectRule()
  85.  
  86. #if DoSharedLib
  87. #if DoNormalLib
  88. SharedLibraryTarget(PEX5,$(SOPEXREV),$(OBJS),shared,..)
  89. #else
  90. SharedLibraryTarget(PEX5,$(SOPEXREV),$(OBJS),.,.)
  91. #endif
  92. InstallSharedLibrary(PEX5,$(SOPEXREV),$(USRLIBDIR))
  93. #endif
  94. #if DoNormalLib
  95. NormalLibraryTarget(PEX5,$(OBJS))
  96. InstallLibrary(PEX5,$(USRLIBDIR))
  97. #endif
  98. #if DoProfileLib
  99. ProfiledLibraryTarget(PEX5,$(OBJS))
  100. InstallLibrary(PEX5_p,$(USRLIBDIR))
  101. #endif
  102. #if DoDebugLib
  103. DebuggedLibraryTarget(PEX5,$(OBJS))
  104. InstallLibrary(PEX5_d,$(USRLIBDIR))
  105. #endif
  106.  
  107. LintLibraryTarget(PEX5,$(SRCS))
  108. InstallLintLibrary(PEX5,$(LINTLIBDIR))
  109.  
  110. BuildIncludes($(HEADERS),PEX5,..)
  111. InstallMultiple($(HEADERS),$(INCDIR)/PEX5)
  112.  
  113. DependTarget()
  114.  
  115. NormalLintTarget($(SRCS))
  116.