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

  1. # This is the Makefile for xplot, an X11 plot file previewer.
  2. # You may have to edit LDLIBS or CFLAGS to indicate the paths to
  3. # your X11 libs and includes if your compiler does not find them
  4. # by default.
  5. #
  6. LDLIBS = -lXaw -lXmu -lXt -lXext -lX11 -lm
  7. #
  8. # If they aren't in /usr/lib or /usr/local/lib, you might have
  9. # to supply full path names something like:
  10. #
  11. # LDLIBS = /usr/foo/lib/libXaw.a /usr/foo/lib/libXmu.a ...
  12. #
  13. #----------------------------------------------------------------
  14. GETOPT=../getopt
  15. #CC=gcc
  16. #CFLAGS=-g -DDEBUG -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -fwritable-strings
  17. CC=cc
  18. CFLAGS=-O -DDEBUG
  19. #----------------------------------------------------------------
  20. # The toplevel make file uses these.
  21. .PHONY: all install clean realclean
  22. VERS=0.4
  23.  
  24. all : xplot
  25.  
  26. install :
  27.     install -c xplot $(BINDIR)
  28.     install -c xplot.man $(MANDIR)/xplot.$(MANEXT)
  29.  
  30. clean :
  31.     -rm -f \#* *.o *~
  32. realclean : clean
  33.     -rm -f xplot *.a
  34. #----------------------------------------------------------------
  35. .c.o:
  36.     $(CC) $(CFLAGS) -I$(GETOPT) -I../include -DVERS=\"$(VERS)\" -c $<
  37.  
  38. xplot : xplot.o alabel.o $(GETOPT)/getopt.o $(GETOPT)/getopt1.o
  39.     $(CC) $(CFLAGS) xplot.o alabel.o  $(GETOPT)/getopt.o $(GETOPT)/getopt1.o $(LDLIBS) -o xplot
  40.  
  41. $(GETOPT)/getopt.o $(GETOPT)/getopt1.o : $(GETOPT)/getopt.c $(GETOPT)/getopt1.c
  42.     cd $(GETOPT); make all CC="$(CC)" CFLAGS="$(CFLAGS)"
  43. $(GETOPT)/getopt.o : $(GETOPT)/getopt.h $(GETOPT)/getopt.h
  44. $(GETOPT)/getopt1.o : $(GETOPT)/getopt.h $(GETOPT)/getopt.h
  45.  
  46. alabel.o : alabel.c 
  47. xplot.o : xplot.c 
  48.