home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / pp / pp-6.0 / Format / ascii2fax / Makefile < prev    next >
Encoding:
Makefile  |  1991-12-18  |  4.9 KB  |  193 lines

  1. # ascii2fax
  2. #
  3. ############################################################
  4. #
  5. # @(#) $Header: /xtel/pp/pp-beta/Format/ascii2fax/RCS/Makefile,v 6.0 1991/12/18 20:15:19 jpo Rel $
  6. #
  7. # $Log: Makefile,v $
  8. # Revision 6.0  1991/12/18  20:15:19  jpo
  9. # Release 6.0
  10. #
  11. #
  12. ############################################################
  13. #
  14. # Definitions
  15. #
  16. ############################################################
  17.  
  18. SRCS    = bitmap_util.c char_util.c font_util.c str_util.c \
  19.     ia52fax.c hdr2fax.c
  20. OBJS    = bitmap_util.o char_util.o font_util.o str_util.o \
  21.     ia52fax.o hdr2fax.o
  22.  
  23. PROGS    = xia52fax xhdr2fax xfontconv ximageconv
  24.  
  25. UTIL    = bitmap_util.o char_util.o font_util.o str_util.o
  26.  
  27. HEADERS    =    ../../h
  28. LIBPP    =    ../../Lib/libpp.a
  29.  
  30. CFLAGS    = $(CCOPTIONS) -I$(HEADERS) $(FAXPAGESIZE)
  31. LDFLAGS    = $(LDOPTIONS)
  32.  
  33. LLFLAGS = $(LINTFLAGS) -I$(HEADERS)
  34. LINTLIBS = ../../Lib/llib-lpp.ln $(LINTISODE)
  35.  
  36. ############################################################
  37. #
  38. # Building Rules
  39. #
  40. ############################################################
  41.  
  42. default: $(PROGS)
  43.  
  44. ############################################################
  45. #
  46. # ia52fax converts pages of ia5 to g3fax images
  47. #
  48. ############################################################
  49.  
  50. xia52fax: $(UTIL) ia52fax.o image2fax.o $(LIBPP)
  51.            $(CC) $(LDFLAGS) $(UTIL) ia52fax.o image2fax.o \
  52.            -o $@ $(LIBPP) $(LIBSYS) 
  53.  
  54. ############################################################
  55. #
  56. # hdr2fax converts 822 hdr to g3fax image of coverpage
  57. #
  58. ############################################################
  59.  
  60. xhdr2fax: $(UTIL) hdr2fax.o image2fax.o $(LIBPP)
  61.            $(CC) $(LDFLAGS) $(UTIL) hdr2fax.o image2fax.o \
  62.            -o $@ $(LIBPP) $(LIBSYS) 
  63.  
  64. ############################################################
  65. #
  66. # font converter: converts X fonts to PP fonts
  67. #
  68. ############################################################
  69.  
  70. xfontconv: Xfont2PPfont.o $(UTIL) $(LIBPP)
  71.     $(CC) $(LDFLAGS) Xfont2PPfont.o $(UTIL) \
  72.     -o $@ $(LIBPP) $(LIBSYS) -lXt -lX11
  73.  
  74. ############################################################
  75. #
  76. # imageconv converts X images to PP bitmaps
  77. #
  78. ############################################################
  79.  
  80. ximageconv: X2PPbitmap.o $(UTIL)
  81.            $(CC) $(LDFLAGS) X2PPbitmap.o $(UTIL) \
  82.            -o $@ $(LIBPP) $(LIBSYS) -lXt -lX11
  83.  
  84. ############################################################
  85. #
  86. # Building Rules
  87. #
  88. ############################################################
  89.  
  90.  
  91. install: inst-dir inst-ia52fax inst-hdr2fax
  92.  
  93. inst-dir: $(FORMDIR)
  94.  
  95. inst-ia52fax: $(FORMDIR)/ia52fax
  96.  
  97. $(FORMDIR)/ia52fax: xia52fax
  98.              -$(BACKUP) $@ zxia52fax
  99.              rm -f $@           
  100.              $(INSTALL) xia52fax $@
  101.              -$(CHMOD) $(PGMPROT) $@
  102.              -$(CHOWN) $(PPUSER) $@
  103.              -@ls -ls $@
  104.              -@echo "ia52fax filter installed normally"; echo ""
  105.  
  106. inst-hdr2fax: $(FORMDIR)/hdr2fax
  107.  
  108. $(FORMDIR)/hdr2fax: xhdr2fax
  109.              -$(BACKUP) $@ zxhdr2fax
  110.              rm -f $@           
  111.              $(INSTALL) xhdr2fax $@
  112.              -$(CHMOD) $(PGMPROT) $@
  113.              -$(CHOWN) $(PPUSER) $@
  114.              -@ls -ls $@
  115.              -@echo "hdr2fax filter installed normally"; echo ""
  116.  
  117. clean: tidy
  118.     rm -rf $(PROGS)
  119.  
  120. tidy:
  121.     rm -f $(OBJS) Xfont2PPfont.o X2PPbitmap.o image2fax.o \
  122.         core a.out Makefile.old
  123.  
  124. lint: l-targets
  125.  
  126. depend:
  127.     $(DEPEND) -I$(HEADERS) $(SRCS)
  128.  
  129. ############################################################
  130. #
  131. # End of Building Rules
  132. #
  133. ############################################################
  134. # DO NOT DELETE THIS LINE MAKE DEPEND NEEDS IT
  135. # Dependencies follow
  136. bitmap_util.o: bitmap_util.c
  137. bitmap_util.o: ./fonts.h
  138. bitmap_util.o: ../../h/util.h
  139. bitmap_util.o: ../../h/config.h
  140. bitmap_util.o: ../../h/ll_log.h
  141. bitmap_util.o: ../../h/sys.file.h
  142. char_util.o: char_util.c
  143. char_util.o: ./fonts.h
  144. char_util.o: ../../h/util.h
  145. char_util.o: ../../h/config.h
  146. char_util.o: ../../h/ll_log.h
  147. char_util.o: ../../h/sys.file.h
  148. font_util.o: font_util.c
  149. font_util.o: ./fonts.h
  150. font_util.o: ../../h/util.h
  151. font_util.o: ../../h/config.h
  152. font_util.o: ../../h/ll_log.h
  153. font_util.o: ../../h/sys.file.h
  154. str_util.o: str_util.c
  155. str_util.o: ./fonts.h
  156. str_util.o: ../../h/util.h
  157. str_util.o: ../../h/config.h
  158. str_util.o: ../../h/ll_log.h
  159. str_util.o: ../../h/sys.file.h
  160. ia52fax.o: ia52fax.c
  161. ia52fax.o: ../../h/util.h
  162. ia52fax.o: ../../h/config.h
  163. ia52fax.o: ../../h/ll_log.h
  164. ia52fax.o: ../../h/IOB-types.h
  165. ia52fax.o: ../../h/MTA-types.h
  166. ia52fax.o: ../../h/Toks-types.h
  167. ia52fax.o: ../../h/Auth-types.h
  168. ia52fax.o: ../../h/table.h
  169. ia52fax.o: ./fonts.h
  170. ia52fax.o: ../../h/util.h
  171. ia52fax.o: ../../h/sys.file.h
  172. ia52fax.o: ./pg_sizes.h
  173. hdr2fax.o: hdr2fax.c
  174. hdr2fax.o: ../../h/util.h
  175. hdr2fax.o: ../../h/config.h
  176. hdr2fax.o: ../../h/ll_log.h
  177. hdr2fax.o: ../../h/or.h
  178. hdr2fax.o: ../../h/IOB-types.h
  179. hdr2fax.o: ../../h/MTA-types.h
  180. hdr2fax.o: ../../h/Toks-types.h
  181. hdr2fax.o: ../../h/Auth-types.h
  182. hdr2fax.o: ../../h/table.h
  183. hdr2fax.o: ./fonts.h
  184. hdr2fax.o: ../../h/util.h
  185. hdr2fax.o: ../../h/sys.file.h
  186. hdr2fax.o: ../../h/ap.h
  187. hdr2fax.o: ../../h/util.h
  188. hdr2fax.o: ./pg_sizes.h
  189.  
  190. # DEPENDENCIES MUST END AT END OF FILE
  191. # IF YOU PUT STUFF HERE IT WILL GO AWAY
  192. # see make depend above
  193.