1998-10-21 01:06:19 +04:00
|
|
|
#
|
2005-02-25 00:55:12 +03:00
|
|
|
# "$Id$"
|
1998-10-21 01:06:19 +04:00
|
|
|
#
|
2001-11-20 00:25:35 +03:00
|
|
|
# FLUID makefile for the Fast Light Tool Kit (FLTK).
|
1998-10-21 01:06:19 +04:00
|
|
|
#
|
2006-10-07 15:32:22 +04:00
|
|
|
# Copyright 1998-2006 by Bill Spitzak and others.
|
1998-10-21 01:06:19 +04:00
|
|
|
#
|
|
|
|
# This library is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU Library General Public
|
|
|
|
# License as published by the Free Software Foundation; either
|
|
|
|
# version 2 of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This library is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
# Library General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU Library General Public
|
|
|
|
# License along with this library; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
|
|
# USA.
|
|
|
|
#
|
2005-04-16 04:13:17 +04:00
|
|
|
# Please report all bugs and problems on the following page:
|
|
|
|
#
|
|
|
|
# http://www.fltk.org/str.php
|
1998-10-21 01:06:19 +04:00
|
|
|
#
|
|
|
|
|
1998-10-06 22:21:25 +04:00
|
|
|
CPPFILES = \
|
2005-03-21 09:28:30 +03:00
|
|
|
CodeEditor.cxx \
|
1998-12-06 17:59:14 +03:00
|
|
|
Fl_Function_Type.cxx \
|
|
|
|
Fl_Group_Type.cxx \
|
2005-03-20 07:00:48 +03:00
|
|
|
Fl_Menu_Type.cxx \
|
1998-12-06 17:59:14 +03:00
|
|
|
Fl_Type.cxx \
|
2005-03-20 07:00:48 +03:00
|
|
|
Fl_Widget_Type.cxx \
|
1998-12-06 17:59:14 +03:00
|
|
|
Fl_Window_Type.cxx \
|
|
|
|
Fluid_Image.cxx \
|
2005-03-20 07:00:48 +03:00
|
|
|
about_panel.cxx \
|
|
|
|
align_widget.cxx \
|
|
|
|
alignment_panel.cxx \
|
1998-12-06 17:59:14 +03:00
|
|
|
code.cxx \
|
|
|
|
factory.cxx \
|
|
|
|
file.cxx \
|
|
|
|
fluid.cxx \
|
2005-03-20 07:00:48 +03:00
|
|
|
function_panel.cxx \
|
2005-03-21 00:27:20 +03:00
|
|
|
template_panel.cxx \
|
2005-03-20 07:00:48 +03:00
|
|
|
undo.cxx \
|
|
|
|
widget_panel.cxx
|
1998-10-06 22:21:25 +04:00
|
|
|
|
|
|
|
################################################################
|
|
|
|
|
1998-12-06 17:59:14 +03:00
|
|
|
OBJECTS = $(CPPFILES:.cxx=.o)
|
1998-10-06 22:21:25 +04:00
|
|
|
|
|
|
|
include ../makeinclude
|
|
|
|
|
2002-07-14 21:03:31 +04:00
|
|
|
all: $(FLUID) fluid$(EXEEXT)
|
|
|
|
|
|
|
|
fluid$(EXEEXT): $(OBJECTS) ../lib/$(LIBNAME) ../lib/$(FLLIBNAME) \
|
|
|
|
../lib/$(IMGLIBNAME)
|
|
|
|
echo Linking $@...
|
2006-07-25 23:06:56 +04:00
|
|
|
$(CXX) $(ARCHFLAGS) $(LDFLAGS) -o $@ $(OBJECTS) $(LINKFLTKFORMS) $(LINKFLTKIMG) $(LDLIBS)
|
2002-07-14 21:03:31 +04:00
|
|
|
$(POSTBUILD) $@ ../FL/mac.r
|
2006-01-15 22:26:08 +03:00
|
|
|
$(CP) $@ fluid.app/Contents/MacOS
|
2002-07-14 21:03:31 +04:00
|
|
|
|
|
|
|
fluid-shared$(EXEEXT): $(OBJECTS) ../src/$(DSONAME) ../src/$(FLDSONAME) \
|
|
|
|
../src/$(IMGDSONAME)
|
2000-04-26 02:17:00 +04:00
|
|
|
echo Linking $@...
|
2006-07-25 23:06:56 +04:00
|
|
|
$(CXX) $(ARCHFLAGS) $(LDFLAGS) -o $@ $(OBJECTS) $(LINKSHARED) $(LDLIBS)
|
2001-12-14 22:34:30 +03:00
|
|
|
$(POSTBUILD) $@ ../FL/mac.r
|
1998-10-06 22:21:25 +04:00
|
|
|
|
2005-04-16 04:01:49 +04:00
|
|
|
clean:
|
|
|
|
-$(RM) *.o core.* *~ *.bck *.bck
|
|
|
|
-$(RM) core fluid$(EXEEXT) fluid-shared$(EXEEXT)
|
2006-04-28 05:10:00 +04:00
|
|
|
-$(RM) fluid.app/Contents/MacOS/fluid
|
1998-10-06 22:21:25 +04:00
|
|
|
|
2001-12-19 22:23:32 +03:00
|
|
|
depend: $(CPPFILES)
|
2001-08-02 19:32:00 +04:00
|
|
|
makedepend -Y -I.. -f makedepend $(CPPFILES)
|
|
|
|
|
2002-03-28 16:20:11 +03:00
|
|
|
# Automatically generated dependencies...
|
1998-10-06 22:21:25 +04:00
|
|
|
include makedepend
|
|
|
|
|
2006-01-15 18:15:34 +03:00
|
|
|
install: all
|
2004-10-19 00:22:25 +04:00
|
|
|
echo "Installing FLUID in $(DESTDIR)$(bindir)..."
|
|
|
|
-$(MKDIR) $(DESTDIR)$(bindir)
|
|
|
|
$(CP) $(FLUID) $(DESTDIR)$(bindir)/fluid$(EXEEXT)
|
|
|
|
$(STRIP) $(DESTDIR)$(bindir)/fluid$(EXEEXT)
|
|
|
|
$(DESTDIR)$(bindir)/fltk-config --post $(DESTDIR)$(bindir)/fluid$(EXEEXT)
|
|
|
|
$(CHMOD) 755 $(DESTDIR)$(bindir)/fluid$(EXEEXT)
|
1998-10-06 22:21:25 +04:00
|
|
|
|
2006-01-15 06:16:09 +03:00
|
|
|
install-linux:
|
|
|
|
-$(MKDIR) $(DESTDIR)/usr/share/applnk/Development
|
|
|
|
$(CP) fluid.desktop $(DESTDIR)/usr/share/applnk/Development
|
|
|
|
for size in 16 32 48 64 128; do \
|
2006-01-15 21:02:44 +03:00
|
|
|
if test ! -d $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps; then \
|
|
|
|
$(MKDIR) $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps; \
|
|
|
|
fi; \
|
2006-01-15 06:25:44 +03:00
|
|
|
$(CP) icons/fluid-$$size.png $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps/fluid.png; \
|
2006-01-15 06:16:09 +03:00
|
|
|
done
|
|
|
|
-$(MKDIR) $(DESTDIR)/usr/share/mimelnk/application
|
|
|
|
$(CP) x-fluid.desktop $(DESTDIR)/usr/share/mimelnk/application
|
|
|
|
|
|
|
|
install-osx:
|
2006-08-30 14:01:35 +04:00
|
|
|
echo Installing Fluid in $(DESTDIR)/Applications...
|
2006-01-15 06:16:09 +03:00
|
|
|
-$(MKDIR) $(DESTDIR)/Applications/fluid.app
|
|
|
|
-$(MKDIR) $(DESTDIR)/Applications/fluid.app/Contents
|
2006-01-15 22:26:08 +03:00
|
|
|
$(CP) fluid.app/Contents/Info.plist $(DESTDIR)/Applications/fluid.app/Contents/Info.plist
|
|
|
|
$(CP) fluid.app/Contents/PkgInfo $(DESTDIR)/Applications/fluid.app/Contents/PkgInfo
|
2006-01-15 06:16:09 +03:00
|
|
|
-$(MKDIR) $(DESTDIR)/Applications/fluid.app/Contents/MacOS
|
2006-08-30 14:01:35 +04:00
|
|
|
-$(RM) $(DESTDIR)/Applications/fluid.app/Contents/MacOS/fluid
|
|
|
|
$(LN) $(bindir)/fluid $(DESTDIR)/Applications/fluid.app/Contents/MacOS/fluid
|
2006-01-15 06:16:09 +03:00
|
|
|
-$(MKDIR) $(DESTDIR)/Applications/fluid.app/Contents/Resources
|
2006-01-15 22:26:08 +03:00
|
|
|
$(CP) fluid.app/Contents/Resources/fluid.icns $(DESTDIR)/Applications/fluid.app/Contents/Resources
|
2006-01-15 06:16:09 +03:00
|
|
|
|
2006-01-15 18:15:34 +03:00
|
|
|
uninstall:
|
2004-10-19 00:22:25 +04:00
|
|
|
$(RM) $(DESTDIR)$(bindir)/fluid$(EXEEXT)
|
1998-10-06 22:21:25 +04:00
|
|
|
|
2006-01-15 06:16:09 +03:00
|
|
|
uninstall-linux:
|
|
|
|
$(RM) $(DESTDIR)/usr/share/applnk/Development/fluid.desktop
|
|
|
|
$(RM) $(DESTDIR)/usr/share/icons/hicolor/*/fluid.png
|
|
|
|
$(RM) $(DESTDIR)/usr/share/mimelnk/application/x-fluid.desktop
|
|
|
|
|
|
|
|
uninstall-osx:
|
|
|
|
$(RM) -r $(DESTDIR)/Applications/fluid.app
|
|
|
|
|
|
|
|
|
1998-10-21 01:06:19 +04:00
|
|
|
#
|
1998-10-21 21:24:51 +04:00
|
|
|
# Note: The rebuild target can only be used if you have the original .fl
|
|
|
|
# files. This is normally only used by the FLTK maintainers...
|
|
|
|
#
|
|
|
|
|
|
|
|
rebuild:
|
|
|
|
./fluid -c about_panel.fl
|
|
|
|
./fluid -c alignment_panel.fl
|
|
|
|
./fluid -c function_panel.fl
|
2005-04-16 04:01:49 +04:00
|
|
|
./fluid -c print_panel.fl
|
|
|
|
./fluid -c template_panel.fl
|
1998-10-21 21:24:51 +04:00
|
|
|
./fluid -c widget_panel.fl
|
|
|
|
|
|
|
|
#
|
2005-02-25 00:55:12 +03:00
|
|
|
# End of "$Id$".
|
1998-10-21 01:06:19 +04:00
|
|
|
#
|