home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ledar34.zip / leda-r-3_4_tar / LEDA-3.4 / Makefile < prev    next >
Makefile  |  1996-09-03  |  2KB  |  71 lines

  1. #------------------------------------------------------------------------------
  2. # Libraries
  3. #------------------------------------------------------------------------------
  4.  
  5. SHELL=/bin/sh
  6.  
  7. lib: .license
  8.     @if [ -f .license ]; then cd src;  $(MAKE) -i FLAGS=-O; fi
  9.  
  10. lib_g: .license
  11.     @if [ -f .license ]; then cd src;  $(MAKE) -i FLAGS=-g; fi
  12.  
  13. lib_Wall: .license
  14.     @if [ -f .license ]; then cd src;  $(MAKE) -i FLAGS=-Wall; fi
  15.  
  16. .license:
  17.     @confdir/util/unix/license.sh
  18.  
  19.  
  20.  
  21. #------------------------------------------------------------------------------
  22. # Programs
  23. #------------------------------------------------------------------------------
  24.  
  25. pro:
  26.     cd prog; $(MAKE) -i FLAGS=-O
  27.  
  28. pro_g:
  29.     cd prog; $(MAKE) -i FLAGS=-g
  30.  
  31.  
  32. #------------------------------------------------------------------------------
  33. # Demos
  34. #------------------------------------------------------------------------------
  35.  
  36. dem:
  37.     cd demo; $(MAKE) -i FLAGS=-O
  38.  
  39. dem_g:
  40.     cd demo; $(MAKE) -i FLAGS=-g
  41.  
  42.  
  43.  
  44. #------------------------------------------------------------------------------
  45. # Libraries & Programs
  46. #------------------------------------------------------------------------------
  47.  
  48. all: lib pro dem
  49.  
  50. all_g: lib_g pro_g dem_g
  51.  
  52.  
  53.  
  54. #------------------------------------------------------------------------------
  55. # Cleaning up
  56. #------------------------------------------------------------------------------
  57.  
  58. del: clean
  59.     rm -f lib*.a lib*.so
  60.  
  61. clean:
  62.     cd src;  $(MAKE) -i clean
  63.     cd prog; $(MAKE) -i clean
  64.     cd demo; $(MAKE) -i clean
  65.  
  66. touch:
  67.     touch src/*/*.c
  68.     touch prog/*/*.c
  69.     touch demo/*/*.c
  70.  
  71.