source: rtems-graphics-toolkit/fltk-1.1.10/fluid/Makefile @ 513eea1

Last change on this file since 513eea1 was 513eea1, checked in by Joel Sherrill <joel.sherrill@…>, on 01/09/10 at 22:43:24

2010-01-08 Joel Sherrill <joel.sherrill@…>

fltk 1.1.10. imported

  • ORIGIN: Updated.
  • Property mode set to 100644
File size: 4.3 KB
Line 
1#
2# "$Id$"
3#
4# FLUID makefile for the Fast Light Tool Kit (FLTK).
5#
6# Copyright 1998-2007 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
28CPPFILES = \
29        CodeEditor.cxx \
30        Fl_Function_Type.cxx \
31        Fl_Group_Type.cxx \
32        Fl_Menu_Type.cxx \
33        Fl_Type.cxx \
34        Fl_Widget_Type.cxx \
35        Fl_Window_Type.cxx \
36        Fluid_Image.cxx \
37        about_panel.cxx \
38        align_widget.cxx \
39        alignment_panel.cxx \
40        code.cxx \
41        factory.cxx \
42        file.cxx \
43        fluid.cxx \
44        function_panel.cxx \
45        template_panel.cxx \
46        undo.cxx \
47        widget_panel.cxx
48
49################################################################
50
51OBJECTS = $(CPPFILES:.cxx=.o)
52
53include ../makeinclude
54
55all:    $(FLUID) fluid$(EXEEXT)
56
57fluid$(EXEEXT):         $(OBJECTS) $(LIBNAME) $(FLLIBNAME) \
58                        $(IMGLIBNAME)
59        echo Linking $@...
60        $(CXX) $(ARCHFLAGS) $(LDFLAGS) -o $@ $(OBJECTS) $(LINKFLTKFORMS) $(LINKFLTKIMG) $(LDLIBS)
61        $(OSX_ONLY) $(INSTALL_BIN) fluid fluid.app/Contents/MacOS
62        $(POSTBUILD) $@ ../FL/mac.r
63
64fluid-shared$(EXEEXT):  $(OBJECTS) ../src/$(DSONAME) ../src/$(FLDSONAME) \
65                        ../src/$(IMGDSONAME)
66        echo Linking $@...
67        $(CXX) $(ARCHFLAGS) $(LDFLAGS) -o $@ $(OBJECTS) $(LINKSHARED) $(LDLIBS)
68        $(POSTBUILD) $@ ../FL/mac.r
69
70clean:
71        -$(RM) *.o core.* *~ *.bck *.bck
72        -$(RM) core fluid$(EXEEXT) fluid-shared$(EXEEXT)
73        -$(RM) fluid.app/Contents/MacOS/fluid$(EXEEXT)
74
75depend: $(CPPFILES)
76        makedepend -Y -I.. -f makedepend $(CPPFILES)
77
78# Automatically generated dependencies...
79include makedepend
80
81install: all
82        echo "Installing FLUID in $(DESTDIR)$(bindir)..."
83        -$(INSTALL_DIR) $(DESTDIR)$(bindir)
84        $(INSTALL_BIN) $(FLUID) $(DESTDIR)$(bindir)/fluid$(EXEEXT)
85
86install-linux:
87        -$(INSTALL_DIR) $(DESTDIR)/usr/share/applications
88        $(INSTALL_DATA) fluid.desktop  $(DESTDIR)/usr/share/applications
89        for size in 16 32 48 64 128; do \
90                if test ! -d $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps; then \
91                        $(INSTALL_DIR) $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps; \
92                fi; \
93                $(INSTALL_DATA) icons/fluid-$$size.png $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps/fluid.png; \
94        done
95        -$(INSTALL_DIR) $(DESTDIR)/usr/share/mimelnk/application
96        $(INSTALL_DATA) x-fluid.desktop  $(DESTDIR)/usr/share/mimelnk/application
97
98install-osx:
99        echo Installing Fluid in $(DESTDIR)/Applications...
100        -$(INSTALL_DIR) $(DESTDIR)/Applications/fluid.app
101        -$(INSTALL_DIR) $(DESTDIR)/Applications/fluid.app/Contents
102        $(INSTALL_DATA) fluid.app/Contents/Info.plist $(DESTDIR)/Applications/fluid.app/Contents/Info.plist
103        $(INSTALL_DATA) fluid.app/Contents/PkgInfo $(DESTDIR)/Applications/fluid.app/Contents/PkgInfo
104        -$(INSTALL_DIR) $(DESTDIR)/Applications/fluid.app/Contents/MacOS
105        $(RM) $(DESTDIR)/Applications/fluid.app/Contents/MacOS/fluid
106        $(LN) $(bindir)/fluid $(DESTDIR)/Applications/fluid.app/Contents/MacOS/fluid
107        -$(INSTALL_DIR) $(DESTDIR)/Applications/fluid.app/Contents/Resources
108        $(INSTALL_DATA) fluid.app/Contents/Resources/fluid.icns $(DESTDIR)/Applications/fluid.app/Contents/Resources
109
110uninstall:
111        $(RM) $(DESTDIR)$(bindir)/fluid$(EXEEXT)
112
113uninstall-linux:
114        $(RM) $(DESTDIR)/usr/share/applications/fluid.desktop
115        $(RM) $(DESTDIR)/usr/share/icons/hicolor/*/fluid.png
116        $(RM) $(DESTDIR)/usr/share/mimelnk/application/x-fluid.desktop
117
118uninstall-osx:
119        $(RM) -r $(DESTDIR)/Applications/fluid.app
120
121
122#
123# Note: The rebuild target can only be used if you have the original .fl
124#       files.  This is normally only used by the FLTK maintainers...
125#
126
127rebuild:
128        ./fluid -c about_panel.fl
129        ./fluid -c alignment_panel.fl
130        ./fluid -c function_panel.fl
131        ./fluid -c print_panel.fl
132        ./fluid -c template_panel.fl
133        ./fluid -c widget_panel.fl
134
135#
136# End of "$Id$".
137#
Note: See TracBrowser for help on using the repository browser.