home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / server / ddx / ibm / Imakefile next >
Encoding:
Makefile  |  1991-07-16  |  2.4 KB  |  113 lines

  1. XCOMM $XConsortium: Imakefile,v 1.3 91/07/16 22:51:13 gildea Exp $
  2. #include <Server.tmpl>
  3.  
  4. /* "@(#)Imakefile    3.1 88/09/22 09:29:19" */
  5. #define IHaveSubdirs
  6. #undef PassCDebugFlags
  7. #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)' 'CC=$(CC)' 'HCVERSION=$(HCVERSION)'
  8.  
  9. #define    ListCreate(name)\
  10. SUBDIRS0= name @@\
  11. SUBOBJS0= name/name.o @@\
  12. DSUBOBJS0= name/name/**/_d.o @@\
  13. PSUBOBJS0= name/name/**/_p.o
  14. #define    ListCreateEmpty()\
  15. SUBDIRS0=  @@\
  16. SUBOBJS0=  @@\
  17. DSUBOBJS0=  @@\
  18. PSUBOBJS0= 
  19. #define    ListAdd(last,new,name)\
  20. SUBDIRS/**/new= $(SUBDIRS/**/last) name @@\
  21. SUBOBJS/**/new= $(SUBOBJS/**/last) name/name.o @@\
  22. DSUBOBJS/**/new= $(DSUBOBJS/**/last) name/name/**/_d.o @@\
  23. PSUBOBJS/**/new= $(PSUBOBJS/**/last) name/name/**/_p.o
  24. #define    ListAddEmpty(last,new)\
  25. SUBDIRS/**/new= $(SUBDIRS/**/last) @@\
  26. SUBOBJS/**/new= $(SUBOBJS/**/last) @@\
  27. DSUBOBJS/**/new= $(DSUBOBJS/**/last) @@\
  28. PSUBOBJS/**/new= $(PSUBOBJS/**/last)
  29.  
  30. #if ibmInclude8514
  31. ListCreate(ibm8514)
  32. #else
  33. ListCreateEmpty()
  34. #endif
  35. #if ibmIncludeADAM
  36. ListCreate(adam)
  37. #else
  38. ListCreateEmpty()
  39. #endif
  40. #if ibmIncludeSKYWAY
  41. ListAdd(0,1,skyway)
  42. #else
  43. ListAddEmpty(0,1)
  44. #endif
  45. #if ibmIncludeCFBLANNO
  46. ListAdd(1,2,cfblanno)
  47. #else
  48. ListAddEmpty(1,2)
  49. #endif
  50. #if ibmIncludeMFBLANNO
  51. ListAdd(2,3,mfblanno)
  52. #else
  53. ListAddEmpty(2,3)
  54. #endif
  55. #if ibmIncludeGAI
  56. ListAdd(3,4,GAI)
  57. #else
  58. ListAddEmpty(3,4)
  59. #endif
  60. #if ibmIncludePED
  61. ListAdd(4,5,ped)
  62. #else
  63. ListAddEmpty(4,5)
  64. #endif
  65. #if ibmIncludeVGA
  66. ListAdd(5,6,vga)
  67. #else
  68. ListAddEmpty(5,6)
  69. #endif
  70.  
  71. SUBDIRS= $(SUBDIRS6) common OPERATING_SYSTEM pgc /* ppc */
  72. /* common/ibmcomm.o is the seed for the link -- Don't put it below */
  73. SUBOBJS= $(SUBOBJS6) OPERATING_SYSTEM/OPERATING_SYSTEM.o pgc/pgc.o /*ppc/ppc.o*/
  74. DSUBOBJS= $(DSUBOBJS6) OPERATING_SYSTEM/OPERATING_SYSTEM/**/_d.o
  75. PSUBOBJS= $(PSUBOBJS6) OPERATING_SYSTEM/OPERATING_SYSTEM/**/_p.o
  76.  
  77. all::    subdirs
  78.  
  79. libibm.a: $(ICONFIGFILES)
  80.  
  81. NormalLibraryTarget(ibm,$(SUBOBJS))
  82. #if ProfileServer
  83. NormalLibraryTarget(ibm_p,$(PSUBOBJS))
  84. #endif
  85. #if DebugServer
  86. NormalLibraryTarget(ibm_d,$(DSUBOBJS))
  87. #endif
  88.     
  89. NamedMakeSubdirs(subdirs,$(SUBDIRS))
  90.     
  91. #
  92. # before doing the depend, be sure that makedepend exists.
  93. #
  94. depend:: $(DEPEND)
  95.  
  96. DependSubdirs($(SUBDIRS))
  97.  
  98. #
  99. # we should be always using ANY tool available ( even lint ) !
  100. #
  101. MakeLintLibSubdirs($(SUBDIRS))
  102. LintSubdirs($(SUBDIRS))
  103.  
  104. #
  105. # before making the makefiles, be sure that imake exists.
  106. #
  107. Makefiles:: $(IMAKE)
  108.  
  109. $(IMAKE):
  110.     @echo "making $(IMAKESRC)"; \
  111.     cd $(IMAKESRC); $(MAKE)
  112.  
  113.