2
0

Makefile 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. #
  2. # "$Id: Makefile 8864 2011-07-19 04:49:30Z greg.ercolano $"
  3. #
  4. # Top-level makefile for the Fast Light Tool Kit (FLTK).
  5. #
  6. # Copyright 1998-2010 by Bill Spitzak and others.
  7. #
  8. # This library is free software. Distribution and use rights are outlined in
  9. # the file "COPYING" which should have been included with this file. If this
  10. # file is missing or damaged, see the license at:
  11. #
  12. # http://www.fltk.org/COPYING.php
  13. #
  14. # Please report all bugs and problems on the following page:
  15. #
  16. # http://www.fltk.org/str.php
  17. #
  18. include makeinclude
  19. DIRS = $(IMAGEDIRS) src fluid
  20. all: makeinclude fltk-config
  21. for dir in $(DIRS); do\
  22. echo "=== making $$dir ===";\
  23. (cd $$dir; $(MAKE) $(MFLAGS)) || exit 1;\
  24. done
  25. install: makeinclude
  26. -mkdir -p $(DESTDIR)$(bindir)
  27. $(RM) $(DESTDIR)$(bindir)/fltk-config
  28. $(INSTALL_SCRIPT) fltk-config $(DESTDIR)$(bindir)
  29. for dir in FL $(DIRS); do\
  30. echo "=== installing $$dir ===";\
  31. (cd $$dir; $(MAKE) $(MFLAGS) install) || exit 1;\
  32. done
  33. install-desktop: makeinclude
  34. cd documentation; $(MAKE) $(MFLAGS) $(INSTALL_DESKTOP)
  35. cd fluid; $(MAKE) $(MFLAGS) $(INSTALL_DESKTOP)
  36. cd test; $(MAKE) $(MFLAGS) $(INSTALL_DESKTOP)
  37. uninstall: makeinclude
  38. $(RM) $(DESTDIR)$(bindir)/fltk-config
  39. for dir in FL $(DIRS); do\
  40. echo "=== uninstalling $$dir ===";\
  41. (cd $$dir; $(MAKE) $(MFLAGS) uninstall) || exit 1;\
  42. done
  43. uninstall-desktop: makeinclude
  44. cd documentation; $(MAKE) $(MFLAGS) $(UNINSTALL_DESKTOP)
  45. cd fluid; $(MAKE) $(MFLAGS) $(UNINSTALL_DESKTOP)
  46. cd test; $(MAKE) $(MFLAGS) $(UNINSTALL_DESKTOP)
  47. depend: makeinclude
  48. for dir in $(DIRS); do\
  49. echo "=== making dependencies in $$dir ===";\
  50. (cd $$dir; $(MAKE) $(MFLAGS) depend) || exit 1;\
  51. done
  52. clean:
  53. -$(RM) core *.o
  54. for dir in $(DIRS); do\
  55. echo "=== cleaning $$dir ===";\
  56. (cd $$dir; $(MAKE) $(MFLAGS) clean) || exit 1;\
  57. done
  58. distclean: clean
  59. $(RM) config.*
  60. $(RM) fltk-config fltk.list makeinclude
  61. $(RM) fltk.spec
  62. $(RM) FL/Makefile
  63. $(RM) documentation/*.$(CAT1EXT)
  64. $(RM) documentation/*.$(CAT3EXT)
  65. $(RM) documentation/*.$(CAT6EXT)
  66. $(RM) documentation/fltk.ps
  67. $(RM) -r documentation/fltk.d
  68. for file in test/*.fl; do\
  69. $(RM) test/`basename $$file .fl`.cxx; \
  70. $(RM) test/`basename $$file .fl`.h; \
  71. done
  72. fltk-config: configure configh.in fltk-config.in
  73. if test -f config.status; then \
  74. ./config.status --recheck; \
  75. ./config.status; \
  76. else \
  77. ./configure; \
  78. fi
  79. touch config.h
  80. chmod +x fltk-config
  81. makeinclude: configure configh.in makeinclude.in
  82. if test -f config.status; then \
  83. ./config.status --recheck; \
  84. ./config.status; \
  85. else \
  86. ./configure; \
  87. fi
  88. touch config.h
  89. chmod +x fltk-config
  90. configure: configure.in
  91. autoconf
  92. portable-dist:
  93. epm -v -s fltk.xpm fltk
  94. native-dist:
  95. epm -v -f native fltk
  96. etags:
  97. etags FL/*.H FL/*.h src/*.cxx src/*.c src/*.h src/xutf8/*.h src/xutf8/*.c cairo/*.cxx fluid/*.h fluid/*.cxx test/*.h test/*.cxx
  98. #
  99. # Run the clang.llvm.org static code analysis tool on the C sources.
  100. # (at least checker-231 is required for scan-build to work this way)
  101. #
  102. .PHONY: clang clang-changes
  103. clang:
  104. $(RM) -r clang
  105. scan-build -V -k -o `pwd`/clang $(MAKE) $(MFLAGS) clean all
  106. clang-changes:
  107. scan-build -V -k -o `pwd`/clang $(MAKE) $(MFLAGS) all
  108. #
  109. # End of "$Id: Makefile 8864 2011-07-19 04:49:30Z greg.ercolano $".
  110. #