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 / lib / Makefile.in < prev    next >
Makefile  |  1996-09-28  |  3KB  |  105 lines

  1. # This file makes the web2c library routines.
  2.  
  3. SHELL = /bin/sh
  4. srcdir = @srcdir@
  5. VPATH = @srcdir@
  6.  
  7. # Unlike all other directories, we need @DEFS@ here because we need
  8. # -DHAVE_CONFIG_H to compile getopt.
  9. CC = @CC@
  10. CFLAGS =
  11. CPPFLAGS = @DEFS@ -I../lib -I../.. -I$(srcdir)/../..
  12.  
  13. AR = ar
  14. ARFLAGS = cq
  15. RANLIB = @RANLIB@
  16.  
  17. # Name of the file we make.
  18. lib = lib.a
  19.  
  20. # We don't make `openinout.o' or `texmf.o', since TeX and Metafont need
  21. # to use different routine names, hence they need different .o files.
  22. objs = alloca.o eofeoln.o fprintreal.o getopt.o getopt1.o inputint.o \
  23.        main.o ourpaths.o strpascal.o uexit.o version.o xfopen-pas.o zround.o
  24.  
  25.  
  26. .SUFFIXES: .o .c 
  27. .c.o:
  28.     $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
  29.  
  30. default: all
  31. triptrap: all
  32.  
  33. all: $(lib)
  34.  
  35. $(lib): $(objs)
  36.     rm -f $(lib)
  37.     $(AR) $(ARFLAGS) $(lib) $(objs)
  38.     $(RANLIB) $(lib)
  39.  
  40. # Do not use CPPFLAGS for this, because including "config.h" might
  41. # result in a conflicting decl of xmalloc. How annoying.
  42. alloca.o: alloca.c 
  43.     $(CC) $(CFLAGS) -c $(srcdir)/alloca.c
  44.  
  45. Makefile: Makefile.in ../config.status
  46.     cd ..; $(SHELL) config.status
  47.  
  48. install install-exec install-data:
  49.  
  50. $(srcdir)/../lib/c-auto.h.in: $(srcdir)/../lib/c-auto.h.start \
  51.                               $(configure_in) $(autoheader) 
  52.     rm -f $(srcdir)/../lib/c-auto.h.in
  53.     cd $(srcdir)/../lib; cp c-auto.h.start c-auto.h.in
  54.     echo '/* Below here generated by autoheader.  */' \
  55.       >>$(srcdir)/../lib/c-auto.h.in
  56.     @echo 'GLUERATIO_TYPE will not be covered.'
  57.     -cd $(srcdir)/..; autoheader configure.in >>lib/c-auto.h.in
  58.  
  59. c-auto.h: $(srcdir)/../lib/c-auto.h.in
  60.     cd ..; $(SHELL) config.status
  61.  
  62. TAGS: *.c *.h
  63.     etags -t *.c *.h
  64.  
  65.  
  66. mostlyclean::
  67.     rm -f *.o $(program) $(lib) $(programs)
  68.  
  69. clean:: mostlyclean
  70.     rm -f *.dvi *.pool
  71.  
  72. distclean:: clean
  73.     rm -f Makefile config.status c-auto.h
  74.  
  75. # Although we can remake configure and c-auto.h.in, we don't remove
  76. # them, since many people may lack Autoconf.  Use configclean for that.
  77. realclean:: distclean
  78.     rm -f TAGS *.info*
  79.  
  80. extraclean::
  81.     rm -f *.aux *.bak *.bbl *.blg *.dvi *.log *.orig *.pl *.rej
  82.     rm -f *.i *.s *.tfm *.vf *.vpl *\#* *gf *pk *~
  83.     rm -f CONTENTS.tex a.out core mfput.* patch* texput.*
  84.  
  85. configclean:
  86.     rm -f configure c-auto.h.in c-auto.h
  87.  
  88.  
  89. # Prevent GNU make 3 from overflowing arg limit on system V.
  90. .NOEXPORT:
  91.  
  92. # Dependencies.
  93. eofeoln.o: eofeoln.c config.h getopt.h ourpaths.h c-auto.h
  94. fprintreal.o: fprintreal.c config.h getopt.h ourpaths.h c-auto.h
  95. getopt.o: getopt.c config.h getopt.h ourpaths.h c-auto.h
  96. getopt1.o: getopt1.c config.h getopt.h ourpaths.h c-auto.h
  97. inputint.o: inputint.c config.h getopt.h ourpaths.h c-auto.h
  98. main.o: main.c config.h getopt.h ourpaths.h c-auto.h
  99. ourpaths.o: ourpaths.c config.h getopt.h ourpaths.h \
  100.   ../../kpathsea/paths.h c-auto.h 
  101. strpascal.o: strpascal.c config.h getopt.h ourpaths.h c-auto.h
  102. uexit.o: uexit.c config.h getopt.h ourpaths.h c-auto.h
  103. xfopen-pas.o: xfopen-pas.c config.h getopt.h ourpaths.h c-auto.h
  104. zround.o: zround.c config.h getopt.h ourpaths.h c-auto.h
  105.