home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / extensions / lib / PEX / Imakefile next >
Encoding:
Makefile  |  1991-07-22  |  3.1 KB  |  107 lines

  1. XCOMM
  2. XCOMM $XConsortium: Imakefile,v 5.21 91/07/22 22:59:34 rws Exp $
  3. XCOMM
  4. XCOMM 
  5. XCOMM Copyright 1989, 1990, 1991 by Sun Microsystems, Inc. and the X Consortium
  6. XCOMM 
  7. XCOMM             All Rights Reserved
  8. XCOMM 
  9. XCOMM Permission to use, copy, modify, and distribute this software and its 
  10. XCOMM documentation for any purpose and without fee is hereby granted, 
  11. XCOMM provided that the above copyright notice appear in all copies and that
  12. XCOMM both that copyright notice and this permission notice appear in 
  13. XCOMM supporting documentation, and that the names of Sun Microsystems,
  14. XCOMM the X Consortium, and MIT not be used in advertising or publicity 
  15. XCOMM pertaining to distribution of the software without specific, written 
  16. XCOMM prior permission.  
  17. XCOMM 
  18. XCOMM SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 
  19. XCOMM INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  20. XCOMM EVENT SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  21. XCOMM CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  22. XCOMM USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  23. XCOMM OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  24. XCOMM PERFORMANCE OF THIS SOFTWARE.
  25.  
  26. #include <Library.tmpl>
  27.  
  28. #define IHaveSubdirs
  29. #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'
  30.  
  31. #ifndef PexPhigsCDebugFlags
  32. #define PexPhigsCDebugFlags LibraryCDebugFlags
  33. #endif
  34.  
  35.   CCOPTIONS = PexCCOptions
  36. CDEBUGFLAGS = PexPhigsCDebugFlags
  37.     DEFINES = PexPhigsDefines
  38.  
  39. .SUFFIXES: .o
  40.  
  41. #if HasLargeTmp | SystemV4
  42.      ARADD = ar ru
  43.      AREXT = ar x
  44. #else
  45.      ARADD = ar rul
  46.      AREXT = ar xl
  47. #endif
  48.      LIBDIRS = archive c_binding css cp error input pex util ws ws_type
  49.      SUBDIRS = include $(LIBDIRS) lib
  50.  
  51.      ALL_OBJ = archive/ar*.o c_binding/cb*.o \
  52.         cp/cp*.o cp/psl.o css/css*.o \
  53.         error/er*.o input/sin*.o pex/pex*.o  util/ut*.o \
  54.         ws/ws*.o ws_type/wstx*.o
  55.      ALL_DONE = archive/DONE c_binding/DONE cp/DONE css/DONE \
  56.         error/DONE input/DONE pex/DONE util/DONE \
  57.         ws/DONE ws_type/DONE
  58.  
  59.    PEXAPIINC = include
  60.   PEXINCLUDE = ../../include/PEX
  61.     XINCLUDE = $(SERVERSRC)/include
  62.     INCLUDES = -I. -I$(PEXAPIINC) -I$(PEXINCLUDE) -I$(XINCLUDE) \
  63.         -I$(INCLUDESRC)
  64.  
  65.     SWAPDIR = ../../server/PEX/dipex/swap
  66.     SWAPLIB  = $(SWAPDIR)/libdiswapex.a
  67.    SWAPOBJS  = OCTables.o Convert.o floatconv.o OCattr.o OCcolour.o   \
  68.         cOCprim.o uOCprim.o
  69.  
  70.     LINTLIBS =
  71.  
  72. all:: include libphigs.a lib
  73.  
  74. libphigs.a: $(LIBDIRS) $(ALL_DONE) $(SWAPDIR) $(SWAPLIB)
  75.     $(RM) $@
  76.     $(AREXT) $(SWAPLIB) $(SWAPOBJS)
  77.     $(AR) $@ $(SWAPOBJS)
  78.     $(RM) $(SWAPOBJS)
  79.     $(ARADD) $@ $(ALL_OBJ)
  80.     RanLibrary($@)
  81.  
  82. MakeLintLibSubdirs(c_binding)
  83. MakeLintSubdirs(c_binding,install.ln,install.ln)
  84.  
  85. lintlibs:
  86.     -for i in ${SUBDIRS}; do \
  87.         (     echo in $$i; cd $$i; \
  88.         $(MAKE) $(MFLAGS) lintlib  \
  89.         ); done
  90.  
  91. lint lint-x: lintlibs
  92.     -for i in ${SUBDIRS}; do \
  93.         (     echo in $$i; cd $$i; \
  94.         $(MAKE) $(MFLAGS) $@  \
  95.         ); done
  96.  
  97. ForceSubdirs($(SUBDIRS) $(SWAPDIR))
  98.  
  99. InstallLibrary(phigs,$(USRLIBDIR))
  100.  
  101. #ifdef HPArchitecture
  102. NormalLibraryObjectRule()
  103. SpecialObjectRule(hppex.o, $(IRULESRC)/$(MACROFILE), $(EXT_DEFINES))
  104. #endif
  105.  
  106. DependSubdirs($(SUBDIRS))
  107.