home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / source / graphicgems4.lha / GemsIV / graph_layout / Makefile < prev    next >
Encoding:
Makefile  |  1995-02-06  |  631 b   |  39 lines

  1. #
  2. # makefile to build program graph layout
  3. #
  4.  
  5. .C.o:
  6.     $(CC) -c $(CFLAGS) $<
  7.  
  8. #
  9. # Define Objects
  10. #
  11. OBJS= window.o graph.o layout.o vector.o fileio.o 
  12.  
  13. #
  14. # define build flags
  15. #
  16. CC = gcc
  17. INCLUDES= -I/usr/include/X11R4 
  18. CFLAGS = -g $(INCLUDES) 
  19. LDFLAGS=  -L/usr/lib/X11R4  
  20. LIBS= -lX11 -lm
  21.  
  22. #
  23. # Dependencies
  24. #
  25. all : graph
  26.  
  27. window.o: window.C window.hxx 
  28.  
  29. graph.o: graph.C window.hxx vector.hxx defines.h graph.hxx
  30.  
  31. layout.o: layout.C window.hxx vector.hxx defines.h graph.hxx
  32.  
  33. vector.o: vector.C vector.hxx
  34.  
  35. fileio.o: fileio.C window.hxx vector.hxx defines.h graph.hxx fileio.hxx
  36.  
  37. graph: $(OBJS)
  38.     $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $@
  39.