home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / graphics.17 / graphics / graphics-0.17 / plot2plot / Makefile < prev    next >
Encoding:
Makefile  |  1990-11-14  |  1.2 KB  |  39 lines

  1. # This is the Makefile for plot2plot, a plot file to plot file converter.
  2. #----------------------------------------------------------------
  3. CC = gcc
  4. CFLAGS = -g -Wall # -ansi -DSTDC_HEADERS -DHAVE_VOIDPTR
  5. LDFLAGS = -g
  6. GETOPT = ../getopt
  7. # The toplevel make file uses these.
  8. .PHONY: all install clean realclean
  9.  
  10. all : plot2plot
  11.  
  12. VERS=0.1
  13. .c.o:
  14.     $(CC) $(CFLAGS) $(DEF) -I../getopt -I../include -DVERS=\"$(VERS)\" -c $<
  15.  
  16. install : plot2plot
  17.     install -c plot2plot $(BINDIR)
  18. #
  19. # Type `make clean' to clean up after compilation.
  20. #
  21. clean:
  22.     -rm -f *.o *~ \#* core test* diff TAGS CHECKSUMS test.output
  23. realclean : clean
  24.     -rm -f plot2plot *.a libplot.h
  25. #----------------------------------------------------------------
  26. #
  27. # Type `make plot2plot' to compile plot2plot.
  28. #
  29. plot2plot : plot2.o $(GETOPT)/getopt.o $(GETOPT)/getopt1.o ../tek2plot/libplot.a
  30.     $(CC) $(CFLAGS) -o plot2plot plot2.o $(GETOPT)/getopt.o $(GETOPT)/getopt1.o ../tek2plot/libplot.a -lm
  31.  
  32. ../tek2plot/libplot.a :
  33.     cd ../tek2plot; make libplot.a CC=$(CC) CFLAGS=$(CFLAGS)
  34.  
  35. $(GETOPT)/getopt.o $(GETOPT)/getopt1.o : $(GETOPT)/getopt.c $(GETOPT)/getopt1.c
  36.     cd $(GETOPT); make all CC="$(CC)" CFLAGS="$(CFLAGS)"
  37.  
  38. plot2.o : plot2.c ../include/libplot.h
  39.