Makefile.am 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. ## Makefile.am for plotutils/libplot.
  2. lib_LTLIBRARIES = libplot.la
  3. EXTRA_DIST = DEDICATION HUMOR README-cgm README-gif README-hpgl README-tek VERSION
  4. libplot_la_LDFLAGS = -version-info 4:4:2
  5. INCLUDES = $(X_CFLAGS) -I$(srcdir)/../include -DLIBPLOT
  6. MISRC = mi_alloc.c mi_api.c mi_arc.c mi_canvas.c mi_fllarc.c mi_fllrct.c \
  7. mi_fplycon.c mi_gc.c mi_ply.c mi_plycon.c mi_plygen.c mi_plypnt.c \
  8. mi_plyutil.c mi_spans.c mi_widelin.c mi_zerarc.c mi_zerolin.c mi_version.c
  9. GSRC = g_affine.c g_alabel.c g_alab_her.c g_arc.c g_attrib.c g_bez.c \
  10. g_box.c g_circ.c g_clipper.c g_closepl.c g_colors.c g_cntrlify.c g_dash.c \
  11. g_dash2.c g_defplot.c g_defstate.c g_ellipse.c g_endpath.c g_error.c \
  12. g_erase.c g_flushpl.c g_font.c g_fontdb.c g_fontd2.c g_havecap.c \
  13. g_her_glyph.c g_integer.c g_line.c g_linewidth.c g_mark.c g_matrix.c \
  14. g_miscmi.c g_move.c g_openpl.c g_outbuf.c g_outfile.c g_pagetype.c \
  15. g_param.c g_param2.c g_path.c g_pentype.c g_point.c g_relative.c g_range.c \
  16. g_retrieve.c g_savestate.c g_space.c g_subpaths.c g_vector.c g_version.c \
  17. g_write.c g_xmalloc.c g_xstring.c
  18. MSRC = m_attribs.c m_closepl.c m_defplot.c m_emit.c m_erase.c m_mark.c \
  19. m_openpl.c m_path.c m_point.c m_text.c
  20. BSRC = b_closepl.c b_defplot.c b_erase.c b_openpl.c b_path.c b_point.c
  21. RSRC = r_attribs.c r_closepl.c r_color.c r_defplot.c r_erase.c r_openpl.c \
  22. r_path.c r_point.c
  23. TSRC = t_attribs.c t_closepl.c t_color.c t_color2.c t_defplot.c t_erase.c \
  24. t_openpl.c t_path.c t_point.c t_tek_md.c t_tek_mv.c t_tek_vec.c
  25. HSRC = h_attribs.c h_closepl.c h_color.c h_defplot.c h_erase.c h_font.c \
  26. h_openpl.c h_path.c h_point.c h_text.c
  27. FSRC = f_closepl.c f_color.c f_color2.c f_defplot.c f_erase.c f_openpl.c \
  28. f_path.c f_point.c f_retrieve.c f_text.c
  29. CSRC = c_attribs.c c_closepl.c c_color.c c_defplot.c c_emit.c c_erase.c \
  30. c_mark.c c_openpl.c c_path.c c_point.c c_text.c
  31. PSRC = p_closepl.c p_color.c p_color2.c p_defplot.c p_erase.c p_openpl.c \
  32. p_path.c p_point.c p_text.c
  33. ASRC = a_attribs.c a_color.c a_closepl.c a_defplot.c a_erase.c a_openpl.c \
  34. a_path.c a_point.c a_text.c
  35. SSRC = s_closepl.c s_color.c s_defplot.c s_erase.c s_openpl.c s_path.c \
  36. s_point.c s_text.c
  37. ISRC = i_closepl.c i_color.c i_defplot.c i_erase.c i_openpl.c i_path.c \
  38. i_point.c i_rle.c
  39. NSRC = n_defplot.c n_write.c
  40. ZSRC = z_defplot.c z_write.c
  41. XSRC = x_afftext.c x_attribs.c x_closepl.c x_color.c x_defplot.c x_erase.c x_flushpl.c \
  42. x_openpl.c x_path.c x_point.c x_retrieve.c x_savestate.c x_text.c
  43. YSRC = y_closepl.c y_defplot.c y_erase.c y_openpl.c
  44. if NO_PNG
  45. if NO_X
  46. ALLSRC = $(MISRC) $(GSRC) $(BSRC) $(MSRC) $(TSRC) $(RSRC) $(HSRC) $(FSRC) $(CSRC) $(PSRC) \
  47. $(ASRC) $(SSRC) $(ISRC) $(NSRC)
  48. else
  49. ALLSRC = $(MISRC) $(GSRC) $(BSRC) $(MSRC) $(TSRC) $(RSRC) $(HSRC) $(FSRC) $(CSRC) $(PSRC) \
  50. $(ASRC) $(SSRC) $(ISRC) $(NSRC) $(XSRC) $(YSRC)
  51. endif
  52. else
  53. if NO_X
  54. ALLSRC = $(MISRC) $(GSRC) $(BSRC) $(MSRC) $(TSRC) $(RSRC) $(HSRC) $(FSRC) $(CSRC) $(PSRC) \
  55. $(ASRC) $(SSRC) $(ISRC) $(NSRC) $(ZSRC)
  56. else
  57. ALLSRC = $(MISRC) $(GSRC) $(BSRC) $(MSRC) $(TSRC) $(RSRC) $(HSRC) $(FSRC) $(CSRC) $(PSRC) \
  58. $(ASRC) $(SSRC) $(ISRC) $(NSRC) $(ZSRC) $(XSRC) $(YSRC)
  59. endif
  60. endif
  61. EXTRA_libplot_la_SOURCES = x_afftext.c x_attribs.c x_closepl.c x_color.c x_defplot.c \
  62. x_erase.c x_flushpl.c x_openpl.c x_path.c x_point.c x_retrieve.c \
  63. x_savestate.c x_text.c y_closepl.c y_defplot.c y_erase.c y_openpl.c
  64. libplot_la_SOURCES = apinewc.c apioldc.c apioldcc.c $(ALLSRC)
  65. MIHEADERS = xmi.h mi_api.h mi_arc.h mi_fllarc.h mi_fply.h mi_gc.h mi_line.h \
  66. mi_ply.h mi_scanfill.h mi_spans.h mi_widelin.h mi_zerarc.h
  67. noinst_HEADERS = extern.h g_arc.h g_colorname.h g_control.h g_cntrlify.h \
  68. g_her_metr.h g_jis.h g_pagetype.h h_roman8.h i_rle.h p_header.h x_afftext.h \
  69. $(MIHEADERS)
  70. CLEANFILES = $(MISRC) $(MIHEADERS)
  71. if NO_PNG
  72. if NO_X
  73. libplot_la_LIBADD =
  74. else
  75. libplot_la_LIBADD = $(X_LIBS) $(X_TOOLKIT_LIBS) $(X_PRE_LIBS) $(X_BASIC_LIBS) $(X_EXTRA_LIBS)
  76. endif
  77. else
  78. if NO_X
  79. libplot_la_LIBADD = -lpng -lz
  80. else
  81. libplot_la_LIBADD = $(X_LIBS) $(X_TOOLKIT_LIBS) $(X_PRE_LIBS) $(X_BASIC_LIBS) $(X_EXTRA_LIBS) -lpng -lz
  82. endif
  83. endif
  84. ## execute the following command in ../libxmi to produce the commands
  85. ## that follow
  86. ##(for i in mi_*.c; do echo "$i": "\$(top_srcdir)/libxmi/$i"; echo " rm -f $i"" ; if \$(LN_S) \$(top_srcdir)/libxmi/$i $i"" ; then true ; else cp -p \$(top_srcdir)/libxmi/$i $i"" ; fi"; echo; done)
  87. mi_alloc.c: $(top_srcdir)/libxmi/mi_alloc.c $(MIHEADERS)
  88. @rm -f mi_alloc.c ; if $(LN_S) $(top_srcdir)/libxmi/mi_alloc.c mi_alloc.c ; then true ; else cp -p $(top_srcdir)/libxmi/mi_alloc.c mi_alloc.c ; fi
  89. mi_api.c: $(top_srcdir)/libxmi/mi_api.c $(MIHEADERS)
  90. @rm -f mi_api.c ; if $(LN_S) $(top_srcdir)/libxmi/mi_api.c mi_api.c ; then true ; else cp -p $(top_srcdir)/libxmi/mi_api.c mi_api.c ; fi
  91. mi_arc.c: $(top_srcdir)/libxmi/mi_arc.c $(MIHEADERS)
  92. @rm -f mi_arc.c ; if $(LN_S) $(top_srcdir)/libxmi/mi_arc.c mi_arc.c ; then true ; else cp -p $(top_srcdir)/libxmi/mi_arc.c mi_arc.c ; fi
  93. mi_canvas.c: $(top_srcdir)/libxmi/mi_canvas.c $(MIHEADERS)
  94. @rm -f mi_canvas.c ; if $(LN_S) $(top_srcdir)/libxmi/mi_canvas.c mi_canvas.c ; then true ; else cp -p $(top_srcdir)/libxmi/mi_canvas.c mi_canvas.c ; fi
  95. mi_fllarc.c: $(top_srcdir)/libxmi/mi_fllarc.c $(MIHEADERS)
  96. @rm -f mi_fllarc.c ; if $(LN_S) $(top_srcdir)/libxmi/mi_fllarc.c mi_fllarc.c ; then true ; else cp -p $(top_srcdir)/libxmi/mi_fllarc.c mi_fllarc.c ; fi
  97. mi_fllrct.c: $(top_srcdir)/libxmi/mi_fllrct.c $(MIHEADERS)
  98. @rm -f mi_fllrct.c ; if $(LN_S) $(top_srcdir)/libxmi/mi_fllrct.c mi_fllrct.c ; then true ; else cp -p $(top_srcdir)/libxmi/mi_fllrct.c mi_fllrct.c ; fi
  99. mi_fplycon.c: $(top_srcdir)/libxmi/mi_fplycon.c $(MIHEADERS)
  100. @rm -f mi_fplycon.c ; if $(LN_S) $(top_srcdir)/libxmi/mi_fplycon.c mi_fplycon.c ; then true ; else cp -p $(top_srcdir)/libxmi/mi_fplycon.c mi_fplycon.c ; fi
  101. mi_gc.c: $(top_srcdir)/libxmi/mi_gc.c $(MIHEADERS)
  102. @rm -f mi_gc.c ; if $(LN_S) $(top_srcdir)/libxmi/mi_gc.c mi_gc.c ; then true ; else cp -p $(top_srcdir)/libxmi/mi_gc.c mi_gc.c ; fi
  103. mi_ply.c: $(top_srcdir)/libxmi/mi_ply.c $(MIHEADERS)
  104. @rm -f mi_ply.c ; if $(LN_S) $(top_srcdir)/libxmi/mi_ply.c mi_ply.c ; then true ; else cp -p $(top_srcdir)/libxmi/mi_ply.c mi_ply.c ; fi
  105. mi_plycon.c: $(top_srcdir)/libxmi/mi_plycon.c $(MIHEADERS)
  106. @rm -f mi_plycon.c ; if $(LN_S) $(top_srcdir)/libxmi/mi_plycon.c mi_plycon.c ; then true ; else cp -p $(top_srcdir)/libxmi/mi_plycon.c mi_plycon.c ; fi
  107. mi_plygen.c: $(top_srcdir)/libxmi/mi_plygen.c $(MIHEADERS)
  108. @rm -f mi_plygen.c ; if $(LN_S) $(top_srcdir)/libxmi/mi_plygen.c mi_plygen.c ; then true ; else cp -p $(top_srcdir)/libxmi/mi_plygen.c mi_plygen.c ; fi
  109. mi_plypnt.c: $(top_srcdir)/libxmi/mi_plypnt.c $(MIHEADERS)
  110. @rm -f mi_plypnt.c ; if $(LN_S) $(top_srcdir)/libxmi/mi_plypnt.c mi_plypnt.c ; then true ; else cp -p $(top_srcdir)/libxmi/mi_plypnt.c mi_plypnt.c ; fi
  111. mi_plyutil.c: $(top_srcdir)/libxmi/mi_plyutil.c $(MIHEADERS)
  112. @rm -f mi_plyutil.c ; if $(LN_S) $(top_srcdir)/libxmi/mi_plyutil.c mi_plyutil.c ; then true ; else cp -p $(top_srcdir)/libxmi/mi_plyutil.c mi_plyutil.c ; fi
  113. mi_spans.c: $(top_srcdir)/libxmi/mi_spans.c $(MIHEADERS)
  114. @rm -f mi_spans.c ; if $(LN_S) $(top_srcdir)/libxmi/mi_spans.c mi_spans.c ; then true ; else cp -p $(top_srcdir)/libxmi/mi_spans.c mi_spans.c ; fi
  115. mi_widelin.c: $(top_srcdir)/libxmi/mi_widelin.c $(MIHEADERS)
  116. @rm -f mi_widelin.c ; if $(LN_S) $(top_srcdir)/libxmi/mi_widelin.c mi_widelin.c ; then true ; else cp -p $(top_srcdir)/libxmi/mi_widelin.c mi_widelin.c ; fi
  117. mi_zerarc.c: $(top_srcdir)/libxmi/mi_zerarc.c $(MIHEADERS)
  118. @rm -f mi_zerarc.c ; if $(LN_S) $(top_srcdir)/libxmi/mi_zerarc.c mi_zerarc.c ; then true ; else cp -p $(top_srcdir)/libxmi/mi_zerarc.c mi_zerarc.c ; fi
  119. mi_zerolin.c: $(top_srcdir)/libxmi/mi_zerolin.c $(MIHEADERS)
  120. @rm -f mi_zerolin.c ; if $(LN_S) $(top_srcdir)/libxmi/mi_zerolin.c mi_zerolin.c ; then true ; else cp -p $(top_srcdir)/libxmi/mi_zerolin.c mi_zerolin.c ; fi
  121. mi_version.c: $(top_srcdir)/libxmi/mi_version.c $(MIHEADERS)
  122. @rm -f mi_version.c ; if $(LN_S) $(top_srcdir)/libxmi/mi_version.c mi_version.c ; then true ; else cp -p $(top_srcdir)/libxmi/mi_version.c mi_version.c ; fi
  123. ## execute the following command in ../libxmi to produce the commands
  124. ## that follow
  125. ## (for i in mi_*.h; do echo "$i": "\$(top_srcdir)/libxmi/$i"; echo " @rm -f $i"" ; if \$(LN_S) \$(top_srcdir)/libxmi/$i $i"" ; then true ; else cp -p \$(top_srcdir)/libxmi/$i $i"" ; fi"; echo; done)
  126. xmi.h: $(top_srcdir)/libxmi/xmi.h
  127. @rm -f xmi.h ; if $(LN_S) $(top_srcdir)/libxmi/xmi.h xmi.h ; then true ; else cp -p $(top_srcdir)/libxmi/xmi.h xmi.h ; fi
  128. mi_api.h: $(top_srcdir)/libxmi/mi_api.h
  129. @rm -f mi_api.h ; if $(LN_S) $(top_srcdir)/libxmi/mi_api.h mi_api.h ; then true ; else cp -p $(top_srcdir)/libxmi/mi_api.h mi_api.h ; fi
  130. mi_arc.h: $(top_srcdir)/libxmi/mi_arc.h
  131. @rm -f mi_arc.h ; if $(LN_S) $(top_srcdir)/libxmi/mi_arc.h mi_arc.h ; then true ; else cp -p $(top_srcdir)/libxmi/mi_arc.h mi_arc.h ; fi
  132. mi_fllarc.h: $(top_srcdir)/libxmi/mi_fllarc.h
  133. @rm -f mi_fllarc.h ; if $(LN_S) $(top_srcdir)/libxmi/mi_fllarc.h mi_fllarc.h ; then true ; else cp -p $(top_srcdir)/libxmi/mi_fllarc.h mi_fllarc.h ; fi
  134. mi_fply.h: $(top_srcdir)/libxmi/mi_fply.h
  135. @rm -f mi_fply.h ; if $(LN_S) $(top_srcdir)/libxmi/mi_fply.h mi_fply.h ; then true ; else cp -p $(top_srcdir)/libxmi/mi_fply.h mi_fply.h ; fi
  136. mi_gc.h: $(top_srcdir)/libxmi/mi_gc.h
  137. @rm -f mi_gc.h ; if $(LN_S) $(top_srcdir)/libxmi/mi_gc.h mi_gc.h ; then true ; else cp -p $(top_srcdir)/libxmi/mi_gc.h mi_gc.h ; fi
  138. mi_line.h: $(top_srcdir)/libxmi/mi_line.h
  139. @rm -f mi_line.h ; if $(LN_S) $(top_srcdir)/libxmi/mi_line.h mi_line.h ; then true ; else cp -p $(top_srcdir)/libxmi/mi_line.h mi_line.h ; fi
  140. mi_ply.h: $(top_srcdir)/libxmi/mi_ply.h
  141. @rm -f mi_ply.h ; if $(LN_S) $(top_srcdir)/libxmi/mi_ply.h mi_ply.h ; then true ; else cp -p $(top_srcdir)/libxmi/mi_ply.h mi_ply.h ; fi
  142. mi_scanfill.h: $(top_srcdir)/libxmi/mi_scanfill.h
  143. @rm -f mi_scanfill.h ; if $(LN_S) $(top_srcdir)/libxmi/mi_scanfill.h mi_scanfill.h ; then true ; else cp -p $(top_srcdir)/libxmi/mi_scanfill.h mi_scanfill.h ; fi
  144. mi_spans.h: $(top_srcdir)/libxmi/mi_spans.h
  145. @rm -f mi_spans.h ; if $(LN_S) $(top_srcdir)/libxmi/mi_spans.h mi_spans.h ; then true ; else cp -p $(top_srcdir)/libxmi/mi_spans.h mi_spans.h ; fi
  146. mi_widelin.h: $(top_srcdir)/libxmi/mi_widelin.h
  147. @rm -f mi_widelin.h ; if $(LN_S) $(top_srcdir)/libxmi/mi_widelin.h mi_widelin.h ; then true ; else cp -p $(top_srcdir)/libxmi/mi_widelin.h mi_widelin.h ; fi
  148. mi_zerarc.h: $(top_srcdir)/libxmi/mi_zerarc.h
  149. @rm -f mi_zerarc.h ; if $(LN_S) $(top_srcdir)/libxmi/mi_zerarc.h mi_zerarc.h ; then true ; else cp -p $(top_srcdir)/libxmi/mi_zerarc.h mi_zerarc.h ; fi
  150. ##EOF