Makefile.mingw 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. #
  2. # "$Id: Makefile.mingw 6626 2009-01-12 14:52:45Z fabien $"
  3. #
  4. # Top-level makefile for the Fast Light Tool Kit (FLTK).
  5. #
  6. # Copyright 1998-2009 by Bill Spitzak and others.
  7. #
  8. # This library is free software; you can redistribute it and/or
  9. # modify it under the terms of the GNU Library General Public
  10. # License as published by the Free Software Foundation; either
  11. # version 2 of the License, or (at your option) any later version.
  12. #
  13. # This library is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. # Library General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU Library General Public
  19. # License along with this library; if not, write to the Free Software
  20. # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
  21. # USA.
  22. #
  23. # Please report all bugs and problems on the following page:
  24. #
  25. # http://www.fltk.org/str.php
  26. #
  27. include makeinclude
  28. DIRS = $(IMAGEDIRS) src fluid test documentation
  29. all: makeinclude
  30. for dir in $(DIRS); do\
  31. echo "=== making $$dir ===";\
  32. (cd $$dir; $(MAKE) $(MFLAGS)) || exit 1;\
  33. done
  34. install: makeinclude
  35. -mkdir -p $(DESTDIR)$(bindir)
  36. $(RM) $(DESTDIR)$(bindir)/fltk-config
  37. $(INSTALL_SCRIPT) fltk-config $(DESTDIR)$(bindir)
  38. for dir in FL $(DIRS); do\
  39. echo "=== installing $$dir ===";\
  40. (cd $$dir; $(MAKE) $(MFLAGS) install) || exit 1;\
  41. done
  42. install-desktop: makeinclude
  43. cd documentation; $(MAKE) $(MFLAGS) $(INSTALL_DESKTOP)
  44. cd fluid; $(MAKE) $(MFLAGS) $(INSTALL_DESKTOP)
  45. cd test; $(MAKE) $(MFLAGS) $(INSTALL_DESKTOP)
  46. uninstall: makeinclude
  47. $(RM) $(DESTDIR)$(bindir)/fltk-config
  48. for dir in FL $(DIRS); do\
  49. echo "=== uninstalling $$dir ===";\
  50. (cd $$dir; $(MAKE) $(MFLAGS) uninstall) || exit 1;\
  51. done
  52. uninstall-desktop: makeinclude
  53. cd documentation; $(MAKE) $(MFLAGS) $(UNINSTALL_DESKTOP)
  54. cd fluid; $(MAKE) $(MFLAGS) $(UNINSTALL_DESKTOP)
  55. cd test; $(MAKE) $(MFLAGS) $(UNINSTALL_DESKTOP)
  56. depend: makeinclude
  57. for dir in $(DIRS); do\
  58. echo "=== making dependencies in $$dir ===";\
  59. (cd $$dir; $(MAKE) $(MFLAGS) depend) || exit 1;\
  60. done
  61. clean:
  62. -$(RM) core *.o
  63. for dir in $(DIRS); do\
  64. echo "=== cleaning $$dir ===";\
  65. (cd $$dir; $(MAKE) $(MFLAGS) clean) || exit 1;\
  66. done
  67. distclean: clean
  68. $(RM) config.*
  69. $(RM) fltk-config fltk.list makeinclude
  70. $(RM) fltk.spec
  71. $(RM) FL/Makefile
  72. $(RM) documentation/*.$(CAT1EXT)
  73. $(RM) documentation/*.$(CAT3EXT)
  74. $(RM) documentation/*.$(CAT6EXT)
  75. $(RM) documentation/fltk.pdf
  76. $(RM) documentation/fltk.ps
  77. $(RM) -r documentation/fltk.d
  78. for file in test/*.fl; do\
  79. $(RM) test/`basename $$file .fl`.cxx; \
  80. $(RM) test/`basename $$file .fl`.h; \
  81. done
  82. makeinclude: configure configh.in makeinclude.in
  83. if test -f config.status; then \
  84. ./config.status --recheck; \
  85. ./config.status; \
  86. else \
  87. ./configure; \
  88. fi
  89. touch config.h
  90. chmod +x fltk-config
  91. configure: configure.in
  92. autoconf
  93. portable-dist:
  94. epm -v -s fltk.xpm fltk
  95. native-dist:
  96. epm -v -f native fltk
  97. etags:
  98. etags FL/*.H FL/*.h src/*.cxx src/*.c src/*.h fluid/*.h fluid/*.cxx test/*.h test/*.cxx
  99. #
  100. # End of "$Id: Makefile.mingw 6626 2009-01-12 14:52:45Z fabien $".
  101. #