home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / yacl-012.zip / makefile.gcc < prev    next >
Makefile  |  1995-03-29  |  1KB  |  71 lines

  1.  
  2.  
  3. include $(YACLPATH)/control/gccmak.ctl
  4.  
  5.  
  6. LIBS = base io ui
  7.  
  8.  
  9. yacl: libdir $(LIBS)
  10.  
  11.  
  12.  
  13. libdir:
  14.     -mkdir $(YACLPATH)/lib
  15.     -mkdir $(YACLPATH)/lib/$(YACLPLATFORM)
  16.  
  17.  
  18.  
  19.  
  20. .PHONY: base io ui
  21.  
  22. base:
  23.     - cd base && make -f makefile.gcc && cd .. 
  24.  
  25.  
  26. io:
  27.     - cd io && make -f makefile.gcc && cd .. 
  28.  
  29.  
  30. ui:
  31.     - cd ui && make -f makefile.gcc && cd .. 
  32.  
  33.  
  34. uidemos:
  35.     - cd uidemo && make -f makefile.gcc && cd ..
  36.  
  37.  
  38. everything: base io ui uidemos
  39.  
  40.  
  41. clean:
  42.     -rm -f base/*.o io/*.o ui/*.o lib/$(YACLPLATFORM)/*.a
  43.     - cd uidemo && make -f makefile.gcc clean && cd ..
  44.         
  45.  
  46.         
  47.  
  48.  
  49.  
  50. ZIP = zip
  51.  
  52. zip:
  53.     rm -f yacl_all.zip
  54.     find . \! \( -perm +u+x -o -name '*.o' -o -name '*.a' \) -print | \
  55.     sort  | \
  56.     $(ZIP) yacl_all.zip -@
  57.  
  58. changezip:
  59.     rm -f changes.zip
  60.     find . -newer watmak.ctl \! \( -perm +u+x \) -print | \
  61.         egrep -v '\.[oa]' | sort  | \
  62.     $(ZIP) changes.zip -@
  63.  
  64. uizip:
  65.     rm -f yaclui.zip
  66.     (find ./ui ./uidemo \! \( -perm +u+x -o -name '*.o' -o -name \
  67.         '*.a' \)  -print; ls ./*.ctl ./makefile.* ./changlog ./*.txt)| sort | \
  68.     $(ZIP) yaclui.zip -@
  69.  
  70.  
  71.