home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / graphics-0.17 / tek2plot / Makefile < prev    next >
Encoding:
Makefile  |  1991-03-10  |  2.8 KB  |  85 lines

  1. # This is the make file for tek2plot, a tek4010 to plot file translator.
  2. CC=gcc
  3. CFLAGS=-Wall
  4. LDLIBS=-lm
  5. GETOPT=../getopt
  6. #----------------------------------------------------------------
  7. # The toplevel make file uses these.
  8. .PHONY: all install clean realclean
  9.  
  10. # $(DEV) indicates which graphics device this library supports.
  11. DEV=tek
  12.  
  13. all : $(DEV)2plot
  14.  
  15. VERS=0.1
  16. .c.o:
  17.     $(CC) $(CFLAGS) -I$(GETOPT) -I../include -DVERS=\"$(VERS)\" -c $<
  18.  
  19. install : $(DEV)2plot
  20.     install -c $(DEV)2plot $(BINDIR)
  21. # no manual page for tek2plot yet
  22. #    install -c $(DEV)2plot.man $(MANDIR)/$(DEV)2plot.$(MANEXT)
  23. clean :
  24.     -rm -f *.o *~ \#* core diff TAGS CHECKSUMS
  25. realclean : clean
  26.     -rm -f $(DEV)2plot *.a spline*
  27. #----------------------------------------------------------------
  28. $(DEV)2plot : $(DEV)2.o $(GETOPT)/getopt.o $(GETOPT)/getopt1.o libplot.a
  29.     $(CC) $(CFLAGS) -I$(GETOPT) -I../include -o $(DEV)2plot $(DEV)2.o $(GETOPT)/getopt.o $(GETOPT)/getopt1.o libplot.a $(LDLIBS)
  30.  
  31. $(GETOPT)/getopt.o $(GETOPT)/getopt1.o : $(GETOPT)/getopt.c $(GETOPT)/getopt1.c
  32.     cd $(GETOPT); make all CC="$(CC)" CFLAGS="$(CFLAGS)"
  33. $(GETOPT)/getopt.o : $(GETOPT)/getopt.h $(GETOPT)/getopt.h
  34. $(GETOPT)/getopt1.o : $(GETOPT)/getopt.h $(GETOPT)/getopt.h
  35.  
  36. ../xplot/xplot :
  37.     cd ../xplot; make xplot CC=$(CC) CFLAGS=$(CFLAGS)
  38. #
  39. # Type `make ts.tek' to create ts.tek, a standalone test for $(DEV)2plot.
  40. #
  41. ts.tek: libplot.a ts.c
  42.     $(CC) $(CFLAGS) ts.c libplot.a -lm -o ts
  43.     ./ts >ts.tek
  44. #
  45. # Type `make libplot.a' to creaate the plot compatible library of
  46. # functions for unix plot file output.
  47. #
  48. LSRC = openpl.c closepl.c space.c rotate.c point.c \
  49. linemod.c line.c label.c alabel.c erase.c color.c move.c cont.c \
  50. arc.c circle.c fontname.c fontsize.c fill.c putshort.c
  51.  
  52. LOBJ = openpl.o closepl.o space.o rotate.o point.o \
  53. linemod.o line.o label.o alabel.o erase.o color.o move.o cont.o \
  54. arc.o circle.o fontname.o fontsize.o fill.o putshort.o
  55.  
  56. libplot.a : $(LOBJ)
  57.     ar ru libplot.a $?
  58.     ranlib libplot.a
  59.  
  60. #
  61. # Type `make TAGS' to update the TAGS file for use with GNU emacs.
  62. #
  63. TAGS : $(DEV)2.c $(LSRC) ../include/libplot.h
  64.     etags $(DEV)2.c $(LSRC) ../include/libplot.h
  65. #
  66. # Dependencies generated by gcc -MM *.c *.h:
  67. #
  68. alabel.o : alabel.c ../include/libplot.h 
  69. arc.o : arc.c ../include/libplot.h 
  70. box.o : box.c ../include/libplot.h 
  71. circle.o : circle.c ../include/libplot.h 
  72. closepl.o : closepl.c ../include/libplot.h 
  73. color.o : color.c ../include/libplot.h 
  74. cont.o : cont.c ../include/libplot.h 
  75. erase.o : erase.c ../include/libplot.h 
  76. label.o : label.c ../include/libplot.h 
  77. line.o : line.c ../include/libplot.h 
  78. linemod.o : linemod.c ../include/libplot.h 
  79. move.o : move.c ../include/libplot.h 
  80. openpl.o : openpl.c ../include/libplot.h 
  81. $(DEV)2.o : $(DEV)2.c ../include/libplot.h 
  82. point.o : point.c ../include/libplot.h 
  83. rotate.o : rotate.c ../include/libplot.h 
  84. space.o : space.c ../include/libplot.h 
  85.