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
|
|
|
#
|
2016-02-27 18:51:09 +03:00
|
|
|
# Copyright 1998-2016 by Bill Spitzak and others.
|
1998-10-21 01:06:19 +04:00
|
|
|
#
|
2011-07-19 08:49:30 +04:00
|
|
|
# This library is free software. Distribution and use rights are outlined in
|
|
|
|
# the file "COPYING" which should have been included with this file. If this
|
|
|
|
# file is missing or damaged, see the license at:
|
|
|
|
#
|
|
|
|
# http://www.fltk.org/COPYING.php
|
1998-10-21 01:06:19 +04:00
|
|
|
#
|
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 \
|
2016-07-17 22:51:54 +03:00
|
|
|
ExternalCodeEditor_UNIX.cxx \
|
|
|
|
ExternalCodeEditor_WIN32.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)
|
|
|
|
|
2008-12-29 22:45:46 +03:00
|
|
|
fluid$(EXEEXT): $(OBJECTS) $(LIBNAME) $(FLLIBNAME) \
|
|
|
|
$(IMGLIBNAME)
|
2002-07-14 21:03:31 +04:00
|
|
|
echo Linking $@...
|
2013-09-21 21:23:09 +04:00
|
|
|
$(CXX) $(ARCHFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ $(OBJECTS) $(LINKFLTKFORMS) $(LINKFLTKIMG) $(LDLIBS)
|
2019-02-10 18:29:58 +03:00
|
|
|
$(OSX_ONLY) $(RM) -r -f fluid.app/Contents/MacOS
|
|
|
|
$(OSX_ONLY) mkdir fluid.app/Contents/MacOS
|
2008-02-26 18:26:08 +03:00
|
|
|
$(OSX_ONLY) $(INSTALL_BIN) fluid 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 $@...
|
2013-09-21 21:23:09 +04:00
|
|
|
$(CXX) $(ARCHFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ $(OBJECTS) $(LINKSHARED) $(LDLIBS)
|
1998-10-06 22:21:25 +04:00
|
|
|
|
2005-04-16 04:01:49 +04:00
|
|
|
clean:
|
2016-02-27 18:43:26 +03:00
|
|
|
-$(RM) *.o core.* *~ *.bck *.bak
|
2005-04-16 04:01:49 +04:00
|
|
|
-$(RM) core fluid$(EXEEXT) fluid-shared$(EXEEXT)
|
2008-02-26 18:26:08 +03:00
|
|
|
-$(RM) fluid.app/Contents/MacOS/fluid$(EXEEXT)
|
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)..."
|
2007-02-06 22:35:28 +03:00
|
|
|
-$(INSTALL_DIR) $(DESTDIR)$(bindir)
|
|
|
|
$(INSTALL_BIN) $(FLUID) $(DESTDIR)$(bindir)/fluid$(EXEEXT)
|
1998-10-06 22:21:25 +04:00
|
|
|
|
2006-01-15 06:16:09 +03:00
|
|
|
install-linux:
|
2008-02-25 17:43:34 +03:00
|
|
|
-$(INSTALL_DIR) $(DESTDIR)/usr/share/applications
|
|
|
|
$(INSTALL_DATA) fluid.desktop $(DESTDIR)/usr/share/applications
|
2006-01-15 06:16:09 +03:00
|
|
|
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 \
|
2007-02-06 22:35:28 +03:00
|
|
|
$(INSTALL_DIR) $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps; \
|
2006-01-15 21:02:44 +03:00
|
|
|
fi; \
|
2007-02-06 22:35:28 +03:00
|
|
|
$(INSTALL_DATA) icons/fluid-$$size.png $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps/fluid.png; \
|
2006-01-15 06:16:09 +03:00
|
|
|
done
|
2007-02-06 22:35:28 +03:00
|
|
|
-$(INSTALL_DIR) $(DESTDIR)/usr/share/mimelnk/application
|
|
|
|
$(INSTALL_DATA) x-fluid.desktop $(DESTDIR)/usr/share/mimelnk/application
|
2006-01-15 06:16:09 +03:00
|
|
|
|
|
|
|
install-osx:
|
2006-08-30 14:01:35 +04:00
|
|
|
echo Installing Fluid in $(DESTDIR)/Applications...
|
2007-02-06 22:35:28 +03:00
|
|
|
-$(INSTALL_DIR) $(DESTDIR)/Applications/fluid.app
|
|
|
|
-$(INSTALL_DIR) $(DESTDIR)/Applications/fluid.app/Contents
|
|
|
|
$(INSTALL_DATA) fluid.app/Contents/Info.plist $(DESTDIR)/Applications/fluid.app/Contents/Info.plist
|
|
|
|
$(INSTALL_DATA) fluid.app/Contents/PkgInfo $(DESTDIR)/Applications/fluid.app/Contents/PkgInfo
|
|
|
|
-$(INSTALL_DIR) $(DESTDIR)/Applications/fluid.app/Contents/MacOS
|
|
|
|
$(RM) $(DESTDIR)/Applications/fluid.app/Contents/MacOS/fluid
|
2006-08-30 14:01:35 +04:00
|
|
|
$(LN) $(bindir)/fluid $(DESTDIR)/Applications/fluid.app/Contents/MacOS/fluid
|
2007-02-06 22:35:28 +03:00
|
|
|
-$(INSTALL_DIR) $(DESTDIR)/Applications/fluid.app/Contents/Resources
|
|
|
|
$(INSTALL_DATA) 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:
|
2008-02-25 17:43:34 +03:00
|
|
|
$(RM) $(DESTDIR)/usr/share/applications/fluid.desktop
|
2006-01-15 06:16:09 +03:00
|
|
|
$(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
|
|
|
#
|