You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

136 lines
4.5KB

  1. #
  2. # "$Id: Makefile 8086 2010-12-20 20:33:24Z matt $"
  3. #
  4. # FLUID 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; 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. CPPFILES = \
  28. CodeEditor.cxx \
  29. Fl_Function_Type.cxx \
  30. Fl_Group_Type.cxx \
  31. Fl_Menu_Type.cxx \
  32. Fl_Type.cxx \
  33. Fl_Widget_Type.cxx \
  34. Fl_Window_Type.cxx \
  35. Fluid_Image.cxx \
  36. about_panel.cxx \
  37. align_widget.cxx \
  38. alignment_panel.cxx \
  39. code.cxx \
  40. factory.cxx \
  41. file.cxx \
  42. fluid.cxx \
  43. function_panel.cxx \
  44. template_panel.cxx \
  45. undo.cxx \
  46. widget_panel.cxx
  47. ################################################################
  48. OBJECTS = $(CPPFILES:.cxx=.o)
  49. include ../makeinclude
  50. all: $(FLUID) ntk-fluid$(EXEEXT)
  51. ntk-fluid$(EXEEXT): $(OBJECTS) $(LIBNAME) $(FLLIBNAME) \
  52. $(IMGLIBNAME)
  53. echo Linking $@...
  54. $(CXX) $(ARCHFLAGS) $(LDFLAGS) -o $@ $(OBJECTS) $(LINKFLTKFORMS) $(LINKFLTKIMG) $(LDLIBS)
  55. $(OSX_ONLY) $(INSTALL_BIN) ntk-fluid ntk-fluid.app/Contents/MacOS
  56. ntk-fluid-shared$(EXEEXT): $(OBJECTS) ../src/$(DSONAME) ../src/$(FLDSONAME) \
  57. ../src/$(IMGDSONAME)
  58. echo Linking $@...
  59. $(CXX) $(ARCHFLAGS) $(LDFLAGS) -o $@ $(OBJECTS) $(LINKSHARED) $(LDLIBS)
  60. clean:
  61. -$(RM) *.o core.* *~ *.bck *.bck
  62. -$(RM) core ntk-fluid$(EXEEXT) ntk-fluid-shared$(EXEEXT)
  63. -$(RM) ntk-fluid.app/Contents/MacOS/ntk-fluid$(EXEEXT)
  64. depend: $(CPPFILES)
  65. makedepend -Y -I.. -f makedepend $(CPPFILES)
  66. # Automatically generated dependencies...
  67. include makedepend
  68. install: all
  69. echo "Installing FLUID in $(DESTDIR)$(bindir)..."
  70. -$(INSTALL_DIR) $(DESTDIR)$(bindir)
  71. $(INSTALL_BIN) $(FLUID) $(DESTDIR)$(bindir)/ntk-fluid$(EXEEXT)
  72. install-linux:
  73. -$(INSTALL_DIR) $(DESTDIR)/usr/share/applications
  74. $(INSTALL_DATA) ntk-fluid.desktop $(DESTDIR)/usr/share/applications
  75. for size in 16 32 48 64 128; do \
  76. if test ! -d $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps; then \
  77. $(INSTALL_DIR) $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps; \
  78. fi; \
  79. $(INSTALL_DATA) icons/ntk-fluid-$$size.png $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps/ntk-fluid.png; \
  80. done
  81. -$(INSTALL_DIR) $(DESTDIR)/usr/share/mimelnk/application
  82. $(INSTALL_DATA) x-ntk-fluid.desktop $(DESTDIR)/usr/share/mimelnk/application
  83. install-osx:
  84. echo Installing Fluid in $(DESTDIR)/Applications...
  85. -$(INSTALL_DIR) $(DESTDIR)/Applications/ntk-fluid.app
  86. -$(INSTALL_DIR) $(DESTDIR)/Applications/ntk-fluid.app/Contents
  87. $(INSTALL_DATA) ntk-fluid.app/Contents/Info.plist $(DESTDIR)/Applications/ntk-fluid.app/Contents/Info.plist
  88. $(INSTALL_DATA) ntk-fluid.app/Contents/PkgInfo $(DESTDIR)/Applications/ntk-fluid.app/Contents/PkgInfo
  89. -$(INSTALL_DIR) $(DESTDIR)/Applications/ntk-fluid.app/Contents/MacOS
  90. $(RM) $(DESTDIR)/Applications/ntk-fluid.app/Contents/MacOS/ntk-fluid
  91. $(LN) $(bindir)/ntk-fluid $(DESTDIR)/Applications/ntk-fluid.app/Contents/MacOS/ntk-fluid
  92. -$(INSTALL_DIR) $(DESTDIR)/Applications/ntk-fluid.app/Contents/Resources
  93. $(INSTALL_DATA) ntk-fluid.app/Contents/Resources/ntk-fluid.icns $(DESTDIR)/Applications/ntk-fluid.app/Contents/Resources
  94. uninstall:
  95. $(RM) $(DESTDIR)$(bindir)/ntk-fluid$(EXEEXT)
  96. uninstall-linux:
  97. $(RM) $(DESTDIR)/usr/share/applications/ntk-fluid.desktop
  98. $(RM) $(DESTDIR)/usr/share/icons/hicolor/*/ntk-fluid.png
  99. $(RM) $(DESTDIR)/usr/share/mimelnk/application/x-ntk-fluid.desktop
  100. uninstall-osx:
  101. $(RM) -r $(DESTDIR)/Applications/ntk-fluid.app
  102. #
  103. # Note: The rebuild target can only be used if you have the original .fl
  104. # files. This is normally only used by the FLTK maintainers...
  105. #
  106. rebuild:
  107. ./ntk-fluid -c about_panel.fl
  108. ./ntk-fluid -c alignment_panel.fl
  109. ./ntk-fluid -c function_panel.fl
  110. ./ntk-fluid -c print_panel.fl
  111. ./ntk-fluid -c template_panel.fl
  112. ./ntk-fluid -c widget_panel.fl
  113. #
  114. # End of "$Id: Makefile 8086 2010-12-20 20:33:24Z matt $".
  115. #