home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / plot / plot2gl.sha / Makefile < prev    next >
Encoding:
Makefile  |  1989-04-09  |  783 b   |  41 lines

  1. # location of directory with gl source (modes.h)
  2. GLMODES    = $$HOME/net/gl
  3.  
  4. # gl library memory model
  5. # GLMODEL    = -Ml    for Microport System-V/AT
  6. # GLMODEL    =     for other systems
  7. GLMODEL    = -Ml
  8.  
  9. # gl library location
  10. # GLLIB    = /usr/local/lib/gl.a
  11. GLLIB    = -L/usr/local/lib -lgl
  12.  
  13. # end of configurations options
  14.  
  15. SHELL    = /bin/sh
  16. CFLAGS    = -g
  17. FILES    = README Makefile libplot.c plot.1 plot.c testplot.c
  18.  
  19. all: plot libplot.a
  20.  
  21. plot:    plot.o
  22.     $(CC) $(GLMODEL) $(CFLAGS) -o plot plot.o $(GLLIB) -lm
  23.  
  24. plot.o:    plot.c
  25.     $(CC) $(GLMODEL) $(CFLAGS) -I$(GLMODES) -c plot.c
  26.  
  27. libplot.a: libplot.o
  28.     ar rv libplot.a libplot.o
  29.  
  30. testplot: testplot.o libplot.a
  31.     $(CC) $(CFLAGS) -o testplot testplot.o libplot.a
  32.  
  33. shar:    $(FILES)
  34.     @shar $(FILES)
  35.  
  36. clean:
  37.     rm -f *.o core testplot
  38.  
  39. clobber: clean
  40.     rm -f plot libplot.a
  41.