home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / GCC / GERLIB_DEV08B.LHA / gerlib / libg++ / etc / ADT-examples / Makefile.in < prev    next >
Encoding:
Makefile  |  1993-12-12  |  995 b   |  48 lines

  1. # A makefile for the stuff now in libg++/etc/ADT-examples
  2.  
  3. srcdir = .
  4.  
  5. TEST_PROGS = generic-q search keyhash tsort tsortinp genkey patricia kmp
  6.  
  7. #### package, host, target, and site dependent Makefile fragments come in here.
  8. ##
  9.  
  10. check: $(TEST_PROGS)
  11.     -./generic-q < $(srcdir)/generic-q.cc
  12.     -./tsortinp 20 | ./tsort
  13.     -./keyhash < $(srcdir)/keyhash.cc
  14.     -./search 1000
  15.     -./genkey 1000 200 > input
  16.     -./patricia ./input ./input | grep -v "is found"
  17.  
  18. #    -./dhrystone
  19.  
  20. run_tests: check
  21.  
  22. generic-q: generic-q.o
  23.     $(CXX)  generic-q.o -o $@ $(LIBS)
  24.  
  25. tsort: tsortinp tsort.o
  26.     $(CXX)  tsort.o -o $@ $(LIBS)
  27.  
  28. tsortinp: tsortinp.o
  29.     $(CXX)  tsortinp.o -o $@ $(LIBS)
  30.  
  31. keyhash: keyhash.o
  32.     $(CXX)  keyhash.o -o $@ $(LIBS)
  33.  
  34. search: search.o
  35.     $(CXX)  search.o -o $@ $(LIBS)
  36.  
  37. genkey: genPatkey.o
  38.     $(CXX)  genPatkey.o -o $@ $(LIBS)
  39.    
  40. Patricia.o: $(srcdir)/Patricia.h
  41. Patmain.o: $(srcdir)/Patricia.h 
  42.  
  43. patricia: Patmain.o Patricia.o
  44.     $(CXX)  Patmain.o Patricia.o -o $@ $(LIBS)
  45.  
  46. kmp: kmp.o
  47.     $(CXX)  kmp.o -o $@ $(LIBS)
  48.