home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / s / stex2-18.zip / SeeTeX / Tex3b1 / Makefile.3b1 < prev    next >
Makefile  |  1990-07-09  |  2KB  |  87 lines

  1. #
  2. # Makefile for dvi previewer.
  3. #
  4. LIBTEX = ../libtex
  5. BINDIR = /usr/local/bin
  6. MANDIR = /usr/man
  7. INCLUDES = -I$(LIBTEX)
  8. #
  9. # The following defaults will be used unless overriden here
  10. #   -DPAGE_HEIGHT=11                /* inches */
  11. #   -DPAGE_WIDTH=8.5                /* inches */
  12. #   -DFONT_DPI=300
  13. #   -DBLACKNESS=3
  14. #   -DSHRINK_1=3
  15. #   -DSHRINK_2=4
  16. #   -DSHRINK_3=2
  17. #
  18. # add -DNOSHARED_LIB if you want a non-shared-lib form form of tex3b1
  19. #
  20. DEFINES = # -DFONT_DPI=360 -DBLACKNESS=9 -DSHRINK_1=4 -DSHRINK_2=6 -DSHRINK_3=2
  21. #
  22. #  Use these for gcc
  23. #
  24. CC = gcc
  25. COPT = -O -fstrength-reduce
  26. CFLAGS = $(COPT) $(INCLUDES) $(DEFINES)
  27. LD = gcc
  28. LDFLAGS = -shlib # -s
  29. LIBS = $(LIBTEX)/libtex.a -lmalloc
  30. OBJS = tex3b1.o assist.o misc.o vfprintf.o doprnt.o
  31. #
  32. # ...and these for cc
  33. #
  34. #CC = cc
  35. #COPT = -O
  36. #CFLAGS = $(COPT) $(INCLUDES) $(DEFINES)
  37. #LD = ld
  38. #LDFLAGS = /lib/crt0s.o /lib/shlib.ifile 
  39. #LIBS = $(LIBTEX)/libtex.a 
  40. #OBJS = tex3b1.o assist.o misc.o vfprintf.o doprnt.o
  41. #
  42. #
  43. # and now for libtex!
  44. #
  45. FONTDESC = /usr/local/lib/tex/fontdesc
  46. #
  47. MANSRC = tex3b1.1
  48.  
  49. default: tex3b1
  50.  
  51. tex3b1: $(OBJS) $(LIBTEX)/libtex.a
  52.     $(LD) $(LDFLAGS) $(OBJS) $(LIBS) -o tex3b1
  53.  
  54. tex3b1.o: tex3b1.c $(LIBTEX)/dvistuff.h Makefile
  55.  
  56. vfprintf.o doprnt.o:
  57.     ar x /lib/libc.a $@
  58.  
  59. $(LIBTEX)/libtex.a:
  60.     cd $(LIBTEX); \
  61.     $(MAKE) -f Makefile.3b1 "CC=$(CC)" "COPT=$(COPT)" "FontDesc=$(FONTDESC)"
  62.  
  63. $(SRCS) $(MANSRC):
  64.     co -q $@
  65.  
  66. inst-tex3b1: tex3b1 tex3b1.1
  67.     cp tex3b1 $(BINDIR)/tex3b1
  68.     strip $(BINDIR)/tex3b1
  69.     chown bin $(BINDIR)/tex3b1
  70.     chgrp bin $(BINDIR)/tex3b1
  71.     chmod 755 $(BINDIR)/tex3b1
  72.     cp tex3b1.1 $(MANDIR)/man1/tex3b1.1
  73.     chown bin $(MANDIR)/man1/tex3b1.1
  74.     chgrp bin $(MANDIR)/man1/tex3b1.1
  75.     chmod 664 $(MANDIR)/man1/tex3b1.1
  76.  
  77. depend:
  78.     makedepend $(CFLAGS) $(SRCS)
  79.  
  80. install: inst-tex3b1
  81.  
  82. clean:
  83.     -rm -f *.o tex3b1 a.out core
  84.  
  85. lint:
  86.     lint -u $(INCLUDES) tex3b1.c 
  87.