home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / unixtex-6.1b-src.tgz / tar.out / contrib / unixtex / web2c / mf / MFwindow / Makefile.in < prev    next >
Encoding:
Makefile  |  1996-09-28  |  2.1 KB  |  98 lines

  1. # This file makes an archive library consisting of the window support
  2. # for all the devices.  To make Metafont support another device, just
  3. # add a file here, and the obvious declarations in ../../common/texmf.c
  4. # (the device support is the last page in that file).
  5. # By making the result into an archive file, the final binary has only
  6. # the devices which are actually desired, thus saving some small amount
  7. # of time and space.
  8.  
  9. SHELL = /bin/sh
  10. srcdir = @srcdir@
  11. VPATH = @srcdir@
  12.  
  13. CC = @CC@
  14. CFLAGS = -g
  15. # We need `-I.' for mfd.h (when compiling the files from ../lib).
  16. CPPFLAGS = -I../../lib -I$(srcdir)/../../lib -I../../.. -I$(srcdir)/../../.. -I. -I$(srcdir) $(x_include_flags)
  17.  
  18. LN = @LN_S@
  19. RANLIB = @RANLIB@
  20.  
  21. # X-specific compiler/linker arguments.
  22. x_include_flags = @x_include_flags@
  23.  
  24. lib = window.a
  25. objs = hp2627.o next.o regis.o sun.o tek.o uniterm.o x10.o x11.o
  26.  
  27.  
  28. .SUFFIXES:
  29. .SUFFIXES: .o .c
  30. .c.o:
  31.     $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
  32.  
  33.  
  34. default: all
  35.  
  36. all: $(lib)
  37.  
  38. $(lib):    $(objs)
  39.     rm -f $(lib)
  40.     ar qc $(lib) $(objs)
  41.     $(RANLIB) $(lib)
  42.  
  43. $(objs): ../mfd.h
  44.  
  45.  
  46. Makefile: Makefile.in ../../config.status
  47.     (cd ../..; sh config.status)
  48.  
  49.  
  50. c-sources: sun.c x11.c
  51. .PHONY: c-sources
  52.  
  53.  
  54. # If configure hasn't set these up, do it ourselves. Guess the more
  55. # recent Sun and X stuff is being used.
  56. sun.c:
  57.     rm -f sun.c
  58.     $(LN) $(srcdir)/../../mf/MFwindow/sun-xview.c sun.c
  59. x11.c:
  60.     rm -f x11.c
  61.     $(LN) $(srcdir)/../../mf/MFwindow/x11-Xt.c x11.c
  62.  
  63. install install-exec install-data:
  64.  
  65. TAGS: *.c *.h
  66.     etags -t *.c *.h
  67.  
  68.  
  69. mostlyclean::
  70.     rm -f *.o $(program) $(lib) $(programs)
  71.  
  72. clean:: mostlyclean
  73.     rm -f *.dvi *.pool
  74.  
  75. distclean:: clean
  76.     rm -f Makefile config.status c-auto.h
  77.  
  78. # Although we can remake configure and c-auto.h.in, we don't remove
  79. # them, since many people may lack Autoconf.  Use configclean for that.
  80. realclean:: distclean
  81.     rm -f TAGS *.info*
  82.  
  83. extraclean::
  84.     rm -f *.aux *.bak *.bbl *.blg *.dvi *.log *.orig *.pl *.rej
  85.     rm -f *.i *.s *.tfm *.vf *.vpl *\#* *gf *pk *~
  86.     rm -f CONTENTS.tex a.out core mfput.* patch* texput.*
  87.  
  88. configclean:
  89.     rm -f configure c-auto.h.in c-auto.h
  90.  
  91.  
  92. # Prevent GNU make 3 from overflowing arg limit on system V.
  93. .NOEXPORT:
  94.  
  95. distclean realclean::
  96.     rm -f sun.c x11.c
  97.