home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / c / cxref-1.001 / cxref-1~ / cxref / query / Makefile < prev    next >
Encoding:
Makefile  |  1996-02-24  |  1.2 KB  |  64 lines

  1. # $Header: /home/amb/cxref/query/RCS/Makefile 1.3 1996/02/24 14:53:42 amb Exp $
  2. #
  3. # C Cross Referencing & Documentation tool. Version 1.0
  4. #
  5. # Query Program Makefile.
  6. #
  7. # Written by Andrew M. Bishop
  8. #
  9. # This file Copyright 1995,96 Andrew M. Bishop
  10. # It may be distributed under the GNU Public License, version 2, or
  11. # any higher version.  See section COPYING of the GNU Public license
  12. # for conditions under which this file may be redistributed.
  13. #
  14.  
  15. CC=gcc
  16. CFLAGS=-O2
  17.  
  18. INCLUDES=
  19.  
  20. LIB=
  21.  
  22. COMPILE=$(CC) -c $(CFLAGS)
  23.  
  24. LINK=$(CC) 
  25.  
  26. ########
  27.  
  28. program : cxref-query
  29.     @
  30.  
  31. all : program
  32.     @
  33.  
  34. ####
  35.  
  36. OBJ_FILES=query.o \
  37.           input.o output.o \
  38.           ../memory.o ../slist.o
  39.  
  40. cxref-query : $(OBJ_FILES)
  41.     $(LINK) $(OBJ_FILES) -o $@ $(LIB)
  42.  
  43. ########
  44.  
  45. %.o:%.c
  46.     $(COMPILE) $< -o $@ $(INCLUDES)
  47.  
  48. query.o   : query.c   query.h ../cxref.h ../datatype.h ../memory.h
  49. input.o   : input.c   query.h ../cxref.h ../datatype.h ../memory.h
  50. output.o  : output.c  query.h ../cxref.h ../datatype.h ../memory.h
  51.  
  52. ../memory.o   : ../memory.c                            ../memory.h
  53.     $(MAKE) -C .. memory.o
  54.  
  55. ../slist.o   : ../slist.c     ../cxref.h ../datatype.h ../memory.h
  56.     $(MAKE) -C .. slist.o
  57.  
  58. ########
  59.  
  60. clean :
  61.     -rm -f core *.o *~
  62.  
  63. ########
  64.