Makefile.shipped 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. # %% (c) Copyright 1993, 1994 Hewlett-Packard Company
  2. # %% (c) Copyright 1993, 1994 International Business Machines Corp.
  3. # %% (c) Copyright 1993, 1994 Sun Microsystems, Inc.
  4. # %% (c) Copyright 1993, 1994 Novell, Inc.
  5. # %% $XConsortium: Makefile.shipped /main/3 1995/10/23 09:44:25 rswiston $
  6. # Makefile generated by imake - do not edit!
  7. # $XConsortium: Makefile.shipped /main/3 1995/10/23 09:44:25 rswiston $
  8. #
  9. # The cpp used on this machine replaces all newlines and multiple tabs and
  10. # spaces in a macro expansion with a single space. Imake tries to compensate
  11. # for this, but is not always successful.
  12. #
  13. ARCH = $(TARGET_ARCH:-%=%)
  14. OS_VERSION:sh = uname -r | sed 's/\..*//'
  15. OS5x_5 = OS5x
  16. OS5x = $(OS5x_$(OS_VERSION))
  17. OBJ_FORMAT_4 = sun
  18. OBJ_FORMAT_5 = elf
  19. OBJ_FORMAT = $(OBJ_FORMAT_$(OS_VERSION))
  20. PICCOMPILE.cc = $(CCC) $(CCFLAGS) -pic $(CPPFLAGS) $($(OS5x)TARGET_ARCH) -c
  21. LINKSO_5 = ld -G -z text -h $(LD_LIB_NAME) $(LDFLAGS)
  22. LINKSO_4 = ld -assert pure-text $(LDFLAGS)
  23. LINKSO = $(LINKSO_$(OS_VERSION))
  24. RANLIB_5 = true
  25. RANLIB_4 = ranlib
  26. RANLIB = $(RANLIB_$(OS_VERSION))
  27. INDENT = indent -st -bap
  28. CCC += $(CCC_OPTIONS)
  29. SABER_CPPFLAGS = -I/usr/dist/local/sun4/lang/SC1.0/include/CC
  30. CoEd_SOURCES.cc = \
  31. CoEd.cc \
  32. CoEdFile.cc \
  33. CoEdSiteID.cc \
  34. CoEdTextChange.cc \
  35. CoEdTextVersion.cc \
  36. CoEdChangeHistory.cc \
  37. CoEdChangeQueue.cc \
  38. SiteChange.cc
  39. CoEd_HEADERS = \
  40. CoEd.h \
  41. CoEdChangeHistory.h \
  42. CoEdChangeQueue.h \
  43. CoEdFile.h \
  44. CoEdGlobals.h \
  45. CoEdSiteID.h \
  46. CoEdTextChange.h \
  47. CoEdTextVersion.h \
  48. SiteChange.h
  49. CoEd_CPPFLAGS = -I$(OPENWINHOME)/include
  50. CoEd_MAJOR_VERSION = 1
  51. CoEd_MINOR_VERSION = 1
  52. CoEdX_5 = .$(CoEd_MAJOR_VERSION)
  53. CoEdX_4 = .$(CoEd_MAJOR_VERSION).$(CoEd_MINOR_VERSION)
  54. CoEdX = $(CoEdX_$(OS_VERSION))
  55. debug:: g.so
  56. optimized:: O
  57. CoEd_SOURCES.cc~ = $(CoEd_SOURCES.cc:%.cc=%.cc~)
  58. CoEd_HEADERS~ = $(CoEd_HEADERS:%.h=%.h~)
  59. CoEd_c_SOURCES.cc = $(CoEd_SOURCES.cc:%.cc=c/%.c)
  60. CoEd_i_SOURCES.cc = $(CoEd_SOURCES.cc:%.cc=i/%.cc)
  61. CoEd_OBJECTS_O = $(CoEd_SOURCES.cc:%.cc=$(OBJ_FORMAT)_O/%.o)
  62. CoEd_OBJECTS_g = $(CoEd_SOURCES.cc:%.cc=$(OBJ_FORMAT)_g/%.o)
  63. CoEd_PIC_OBJECTS_O = \
  64. $(CoEd_SOURCES.cc:%.cc=$(OBJ_FORMAT)_pic_O/%.o)
  65. CoEd_PIC_OBJECTS_g = \
  66. $(CoEd_SOURCES.cc:%.cc=$(OBJ_FORMAT)_pic_g/%.o)
  67. CoEd_i_PIC_OBJECTS_g = \
  68. $(CoEd_SOURCES.cc:%.cc=i_$(OBJ_FORMAT)_pic_g/%.o)
  69. CoEd_SOURCES.i = $(CoEd_SOURCES.cc:%.cc=%.i) \
  70. $(CoEd_i_SOURCES.cc)
  71. $(CoEd_OBJECTS_O) $(CoEd_OBJECTS_g) \
  72. $(CoEd_PIC_OBJECTS_O) $(CoEd_PIC_OBJECTS_g) \
  73. $(CoEd_i_PIC_OBJECTS_g) \
  74. $(CoEd_SOURCES.cc:%.cc=%.i) $(CoEd_SOURCES.cc:%.cc=%.c) \
  75. $(CoEd_SOURCES.cc:%.cc=%.s) $(CoEd_SOURCES.cc:%.cc=%.files) \
  76. $(CoEd_c_SOURCES.cc) libCoEd_saber++ \
  77. libCoEd_i_saber++ $(CoEd_SOURCES.cc:%.cc=%.saber++) \
  78. := CPPFLAGS += $(CoEd_CPPFLAGS)
  79. $(CoEd_SOURCES.cc:%.cc=%.saber++) \
  80. := CPPFLAGS += $(SABER_CPPFLAGS)
  81. $(CoEd_OBJECTS_O) $(CoEd_PIC_OBJECTS_O) := CCFLAGS += -O
  82. $(CoEd_OBJECTS_g) $(CoEd_PIC_OBJECTS_g) \
  83. $(CoEd_i_PIC_OBJECTS_g) \
  84. := CCFLAGS += -g
  85. $(OBJ_FORMAT)_pic_O/libCoEd.so$(CoEdX) \
  86. $(OBJ_FORMAT)_pic_g/libCoEd.so$(CoEdX) \
  87. i_$(OBJ_FORMAT)_pic_g/libCoEd.so$(CoEdX) := \
  88. LD_LIB_NAME = libCoEd.so$(CoEdX)
  89. $(OBJ_FORMAT)_pic_O/libCoEd.so$(CoEdX): \
  90. $(CoEd_PIC_OBJECTS_O)
  91. $(LINKSO) -o $@ $(CoEd_PIC_OBJECTS_O)
  92. $(OBJ_FORMAT)_pic_g/libCoEd.so$(CoEdX): \
  93. $(CoEd_PIC_OBJECTS_g)
  94. $(LINKSO) -o $@ $(CoEd_PIC_OBJECTS_g)
  95. i_$(OBJ_FORMAT)_pic_g/libCoEd.so$(CoEdX): \
  96. $(CoEd_i_PIC_OBJECTS_g)
  97. $(LINKSO) -o $@ $(CoEd_i_PIC_OBJECTS_g)
  98. $(OBJ_FORMAT)_O/libCoEd.a: $(CoEd_OBJECTS_O)
  99. $(RM) $@; $(AR) $(ARFLAGS) $@ $(CoEd_OBJECTS_O); \
  100. $(RANLIB) $@
  101. $(OBJ_FORMAT)_g/libCoEd.a: $(CoEd_OBJECTS_g)
  102. $(RM) $@; $(AR) $(ARFLAGS) $@ $(CoEd_OBJECTS_g); \
  103. $(RANLIB) $@
  104. libCoEd.tar: Makefile $(CoEd_SOURCES.cc) $(CoEd_HEADERS)
  105. tar cf $@ Makefile $(CoEd_SOURCES.cc) $(CoEd_HEADERS)
  106. libCoEd_saber++: $(CoEd_SOURCES.cc)
  107. #load $(SABER_CPPFLAGS) $(CPPFLAGS) $(CoEd_SOURCES.cc)
  108. libCoEd_i_saber++: $(CoEd_i_SOURCES.cc)
  109. #load $(SABER_CPPFLAGS) $(CPPFLAGS) $(CoEd_i_SOURCES.cc)
  110. libCoEd_saber: $(CoEd_c_SOURCES.cc)
  111. #load $(CPPFLAGS) $(CoEd_c_SOURCES.cc)
  112. all:: $(OBJ_FORMAT)_pic_O/libCoEd.so$(CoEdX) \
  113. $(OBJ_FORMAT)_pic_g/libCoEd.so$(CoEdX) \
  114. $(OBJ_FORMAT)_O/libCoEd.a \
  115. $(OBJ_FORMAT)_g/libCoEd.a
  116. All:: i_$(OBJ_FORMAT)_pic_g/libCoEd.so$(CoEdX)
  117. g.so:: $(OBJ_FORMAT)_pic_g/libCoEd.so$(CoEdX)
  118. O.a:: $(OBJ_FORMAT)_O/libCoEd.a
  119. g.a:: $(OBJ_FORMAT)_g/libCoEd.a
  120. ig:: i_$(OBJ_FORMAT)_pic_g/libCoEd.so$(CoEdX)
  121. O:: $(OBJ_FORMAT)_pic_O/libCoEd.so$(CoEdX)
  122. clean~::
  123. $(RM) $(CoEd_SOURCES.cc~) $(CoEd_HEADERS~)
  124. clean::
  125. $(RM) $(OBJ_FORMAT)_pic_O/libCoEd.so$(CoEdX) \
  126. $(OBJ_FORMAT)_pic_g/libCoEd.so$(CoEdX) \
  127. $(OBJ_FORMAT)_O/libCoEd.a \
  128. $(OBJ_FORMAT)_g/libCoEd.a \
  129. i_$(OBJ_FORMAT)_pic_g/libCoEd.so$(CoEdX) \
  130. libCoEd.tar
  131. clean.o.O::
  132. $(RM) $(CoEd_OBJECTS_O) $(CoEd_PIC_OBJECTS_O)
  133. clean.o.g::
  134. $(RM) $(CoEd_OBJECTS_g) $(CoEd_PIC_OBJECTS_g)
  135. clean.o.pic::
  136. $(RM) $(CoEd_PIC_OBJECTS_O) $(CoEd_PIC_OBJECTS_g)
  137. clean.o.a::
  138. $(RM) $(CoEd_OBJECTS_O) $(CoEd_OBJECTS_g)
  139. clean.i::
  140. $(RM) $(CoEd_SOURCES.i) \
  141. $(CoEd_SOURCES.cc:%.cc=%.c) \
  142. $(CoEd_SOURCES.cc:%.cc=%.c++) \
  143. $(CoEd_SOURCES.cc:%.cc=%.s) \
  144. $(CoEd_SOURCES.cc:%.cc=%.s++) \
  145. $(CoEd_SOURCES.cc:%.cc=%.files)
  146. clean.i.o::
  147. $(RM) $(CoEd_i_PIC_OBJECTS_g)
  148. clean.c::
  149. $(RM) $(CoEd_c_SOURCES.cc)
  150. $(OBJ_FORMAT)_O/.dir \
  151. $(OBJ_FORMAT)_g/.dir \
  152. $(OBJ_FORMAT)_pic_O/.dir \
  153. $(OBJ_FORMAT)_pic_g/.dir \
  154. i_$(OBJ_FORMAT)_g/.dir \
  155. i_$(OBJ_FORMAT)_pic_g/.dir \
  156. m_$(OBJ_FORMAT)_O/.dir \
  157. m_$(OBJ_FORMAT)_g/.dir \
  158. c/.dir \
  159. c_$(OBJ_FORMAT)_O/.dir \
  160. c_$(OBJ_FORMAT)_pic_O/.dir:
  161. if [ ! -d $@ ]; then mkdir -p $@; fi
  162. $(OBJ_FORMAT)_O/%.o: %.cc $(OBJ_FORMAT)_O/.dir
  163. $(COMPILE.cc) $(OUTPUT_OPTION) $< -o $@
  164. $(OBJ_FORMAT)_g/%.o: %.cc $(OBJ_FORMAT)_g/.dir
  165. $(COMPILE.cc) $(OUTPUT_OPTION) $< -o $@
  166. $(OBJ_FORMAT)_pic_O/%.o: %.cc $(OBJ_FORMAT)_pic_O/.dir
  167. $(PICCOMPILE.cc) $(OUTPUT_OPTION) $< -o $@
  168. $(OBJ_FORMAT)_pic_g/%.o: %.cc $(OBJ_FORMAT)_pic_g/.dir
  169. $(PICCOMPILE.cc) $(OUTPUT_OPTION) $< -o $@
  170. m_$(OBJ_FORMAT)_O/%.o: %.cc m_$(OBJ_FORMAT)_O/.dir
  171. $(COMPILE.cc) $(OUTPUT_OPTION) $< -o $@
  172. m_$(OBJ_FORMAT)_g/%.o: %.cc m_$(OBJ_FORMAT)_g/.dir
  173. $(COMPILE.cc) $(OUTPUT_OPTION) $< -o $@
  174. i/%.cc: i %.cc
  175. $(CCC) -E -Qoption acpp -P $(CPPFLAGS) $*.cc | \
  176. sed -e '/^[ ]*\/\//D' | \
  177. $(INDENT) | sed -e 's/: :/::/' -e '/^#/d' > $@
  178. i_$(OBJ_FORMAT)_g/%.o: i/%.cc i_$(OBJ_FORMAT)_g
  179. $(COMPILE.cc) $(OUTPUT_OPTION) $< -o $@
  180. i_$(OBJ_FORMAT)_pic_g/%.o: i/%.cc i_$(OBJ_FORMAT)_pic_g
  181. $(PICCOMPILE.cc) $(OUTPUT_OPTION) $< -o $@
  182. c/%.c: c %.cc
  183. $(CCC) -F $(CPPFLAGS) $*.cc | $(INDENT) | sed '/^#/d' > $@
  184. .SUFFIXES:
  185. .SUFFIXES: .files .c++ .c .i .s++ .s .saber++ $(SUFFIXES)
  186. .cc.files:
  187. $(CCC) -E -H $(CPPFLAGS) $< 1> /dev/null 2> $*.files
  188. .cc.i:
  189. $(CCC) -E $(CPPFLAGS) $< > $*.i
  190. .cc.c:
  191. $(CCC) -F $(CPPFLAGS) $< | \
  192. sed -e '/^#/d' -e '/^\/\* the end \*\/$$/d' | \
  193. $(INDENT) > $*.c
  194. .c.c++:
  195. c++filt < $*.c > $*.c++
  196. .cc.s:
  197. $(CCC) $(CFLAGS) $(CPPFLAGS) -Qproduce .s $(OUTPUT_OPTION) $<
  198. .s.s++:
  199. c++filt < $< > $*.s++
  200. .cc.saber++:
  201. #load $(CPPFLAGS) $<
  202. All:: all
  203. g:: g.so g.a
  204. clean.o:: clean.o.O clean.o.g clean.o.pic clean.o.a clean.i.o clean_m.o
  205. if test -d $(OBJ_FORMAT)_O; then $(RM) -rf $(OBJ_FORMAT)_O; fi
  206. if test -d $(OBJ_FORMAT)_g; then $(RM) -rf $(OBJ_FORMAT)_g; fi
  207. if test -d $(OBJ_FORMAT)_pic_O; then $(RM) -rf $(OBJ_FORMAT)_pic_O; fi
  208. if test -d $(OBJ_FORMAT)_pic_g; then $(RM) -rf $(OBJ_FORMAT)_pic_g; fi
  209. clean.i.o::
  210. if test -d i_$(OBJ_FORMAT)_g; then $(RM) -rf i_$(OBJ_FORMAT)_g; fi
  211. if test -d i_$(OBJ_FORMAT)_pic_g; then $(RM) -rf i_$(OBJ_FORMAT)_pic_g; fi
  212. clean.i:: clean.i.o
  213. if test -d i; then $(RM) -rf i; fi
  214. clean_m:: clean_m.o
  215. $(RM) mallomar.out
  216. clean_m.o::
  217. if test -d m_$(OBJ_FORMAT)_O; then $(RM) -rf m_$(OBJ_FORMAT)_O; fi
  218. if test -d m_$(OBJ_FORMAT)_g; then $(RM) -rf m_$(OBJ_FORMAT)_g; fi
  219. clean:: clean.o clean.i clean_m