1998-10-21 01:06:19 +04:00
|
|
|
#
|
2005-02-25 00:14:22 +03:00
|
|
|
# "$Id$"
|
1998-10-21 01:06:19 +04:00
|
|
|
#
|
|
|
|
# Test/example program makefile for the Fast Light Tool Kit (FLTK).
|
|
|
|
#
|
2010-11-29 00:28:30 +03:00
|
|
|
# Copyright 1998-2010 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
|
|
|
#
|
|
|
|
|
2001-08-05 20:28:03 +04:00
|
|
|
include ../makeinclude
|
|
|
|
|
1998-10-21 20:53:14 +04:00
|
|
|
CPPFILES =\
|
2004-08-27 02:24:24 +04:00
|
|
|
unittests.cxx \
|
2001-11-24 21:07:58 +03:00
|
|
|
adjuster.cxx \
|
|
|
|
arc.cxx \
|
|
|
|
ask.cxx \
|
|
|
|
bitmap.cxx \
|
2006-08-25 10:58:33 +04:00
|
|
|
blocks.cxx \
|
2001-11-24 21:07:58 +03:00
|
|
|
boxtype.cxx \
|
|
|
|
browser.cxx \
|
|
|
|
button.cxx \
|
|
|
|
buttons.cxx \
|
2008-09-25 22:26:33 +04:00
|
|
|
cairo_test.cxx \
|
2001-11-24 21:07:58 +03:00
|
|
|
checkers.cxx \
|
|
|
|
clock.cxx \
|
|
|
|
colbrowser.cxx \
|
|
|
|
color_chooser.cxx \
|
|
|
|
cube.cxx \
|
|
|
|
CubeMain.cxx \
|
|
|
|
CubeView.cxx \
|
|
|
|
cursor.cxx \
|
|
|
|
curve.cxx \
|
|
|
|
demo.cxx \
|
2010-03-14 21:07:24 +03:00
|
|
|
device.cxx \
|
2001-11-24 21:07:58 +03:00
|
|
|
doublebuffer.cxx \
|
|
|
|
editor.cxx \
|
|
|
|
fast_slow.cxx \
|
|
|
|
file_chooser.cxx \
|
|
|
|
fonts.cxx \
|
|
|
|
forms.cxx \
|
|
|
|
fractals.cxx \
|
|
|
|
fullscreen.cxx \
|
|
|
|
gl_overlay.cxx \
|
|
|
|
glpuzzle.cxx \
|
|
|
|
hello.cxx \
|
|
|
|
help.cxx \
|
|
|
|
iconize.cxx \
|
|
|
|
image.cxx \
|
|
|
|
inactive.cxx \
|
|
|
|
input.cxx \
|
2005-02-25 00:14:22 +03:00
|
|
|
input_choice.cxx \
|
2001-11-24 21:07:58 +03:00
|
|
|
keyboard.cxx \
|
|
|
|
label.cxx \
|
|
|
|
line_style.cxx \
|
|
|
|
list_visuals.cxx \
|
|
|
|
mandelbrot.cxx \
|
|
|
|
menubar.cxx \
|
|
|
|
message.cxx \
|
|
|
|
minimum.cxx \
|
2010-01-14 02:13:59 +03:00
|
|
|
native-filechooser.cxx \
|
2001-11-24 21:07:58 +03:00
|
|
|
navigation.cxx \
|
|
|
|
output.cxx \
|
|
|
|
overlay.cxx \
|
|
|
|
pack.cxx \
|
|
|
|
pixmap_browser.cxx \
|
|
|
|
pixmap.cxx \
|
2002-04-30 01:04:13 +04:00
|
|
|
preferences.cxx \
|
2010-03-14 21:07:24 +03:00
|
|
|
device.cxx \
|
2001-11-24 21:07:58 +03:00
|
|
|
radio.cxx \
|
|
|
|
resizebox.cxx \
|
|
|
|
resize.cxx \
|
2009-04-24 13:28:30 +04:00
|
|
|
rotated_text.cxx \
|
2001-11-24 21:07:58 +03:00
|
|
|
scroll.cxx \
|
|
|
|
shape.cxx \
|
|
|
|
subwindow.cxx \
|
2005-11-25 23:40:16 +03:00
|
|
|
sudoku.cxx \
|
2001-11-24 21:07:58 +03:00
|
|
|
symbols.cxx \
|
2009-11-14 16:05:37 +03:00
|
|
|
table.cxx \
|
2001-11-24 21:07:58 +03:00
|
|
|
tabs.cxx \
|
2001-12-08 19:23:51 +03:00
|
|
|
threads.cxx \
|
2001-11-24 21:07:58 +03:00
|
|
|
tile.cxx \
|
|
|
|
tiled_image.cxx \
|
2009-11-14 18:49:12 +03:00
|
|
|
tree.cxx \
|
2008-09-11 03:56:49 +04:00
|
|
|
valuators.cxx \
|
2008-11-11 01:08:30 +03:00
|
|
|
utf8.cxx
|
|
|
|
|
2001-11-18 15:48:38 +03:00
|
|
|
ALL = \
|
2004-08-27 02:24:24 +04:00
|
|
|
unittests$(EXEEXT) \
|
2001-11-18 15:48:38 +03:00
|
|
|
adjuster$(EXEEXT) \
|
|
|
|
arc$(EXEEXT) \
|
|
|
|
ask$(EXEEXT) \
|
|
|
|
bitmap$(EXEEXT) \
|
2006-08-25 10:58:33 +04:00
|
|
|
blocks$(EXEEXT) \
|
2001-11-18 15:48:38 +03:00
|
|
|
boxtype$(EXEEXT) \
|
|
|
|
browser$(EXEEXT) \
|
|
|
|
button$(EXEEXT) \
|
|
|
|
buttons$(EXEEXT) \
|
2008-09-25 22:26:33 +04:00
|
|
|
cairo_test$(EXEEXT) \
|
2001-11-18 15:48:38 +03:00
|
|
|
checkers$(EXEEXT) \
|
|
|
|
clock$(EXEEXT) \
|
|
|
|
colbrowser$(EXEEXT) \
|
|
|
|
color_chooser$(EXEEXT) \
|
|
|
|
cursor$(EXEEXT) \
|
|
|
|
curve$(EXEEXT) \
|
|
|
|
demo$(EXEEXT) \
|
2010-03-14 21:07:24 +03:00
|
|
|
device$(EXEEXT) \
|
2001-11-18 15:48:38 +03:00
|
|
|
doublebuffer$(EXEEXT) \
|
|
|
|
editor$(EXEEXT) \
|
|
|
|
fast_slow$(EXEEXT) \
|
|
|
|
file_chooser$(EXEEXT) \
|
|
|
|
fonts$(EXEEXT) \
|
|
|
|
forms$(EXEEXT) \
|
|
|
|
hello$(EXEEXT) \
|
|
|
|
help$(EXEEXT) \
|
|
|
|
iconize$(EXEEXT) \
|
|
|
|
image$(EXEEXT) \
|
|
|
|
inactive$(EXEEXT) \
|
|
|
|
input$(EXEEXT) \
|
2005-02-25 00:14:22 +03:00
|
|
|
input_choice$(EXEEXT) \
|
2001-11-18 15:48:38 +03:00
|
|
|
keyboard$(EXEEXT) \
|
|
|
|
label$(EXEEXT) \
|
|
|
|
line_style$(EXEEXT) \
|
|
|
|
list_visuals$(EXEEXT) \
|
|
|
|
mandelbrot$(EXEEXT) \
|
|
|
|
menubar$(EXEEXT) \
|
|
|
|
message$(EXEEXT) \
|
|
|
|
minimum$(EXEEXT) \
|
2010-01-14 02:13:59 +03:00
|
|
|
native-filechooser$(EXEEXT) \
|
2001-11-18 15:48:38 +03:00
|
|
|
navigation$(EXEEXT) \
|
|
|
|
output$(EXEEXT) \
|
|
|
|
overlay$(EXEEXT) \
|
|
|
|
pack$(EXEEXT) \
|
|
|
|
pixmap$(EXEEXT) \
|
|
|
|
pixmap_browser$(EXEEXT) \
|
2002-04-30 01:04:13 +04:00
|
|
|
preferences$(EXEEXT) \
|
2010-03-14 21:07:24 +03:00
|
|
|
device$(EXEEXT) \
|
2001-11-18 15:48:38 +03:00
|
|
|
radio$(EXEEXT) \
|
2001-12-23 06:40:51 +03:00
|
|
|
resize$(EXEEXT) \
|
2001-11-18 15:48:38 +03:00
|
|
|
resizebox$(EXEEXT) \
|
2009-04-24 13:28:30 +04:00
|
|
|
rotated_text$(EXEEXT) \
|
2001-11-18 15:48:38 +03:00
|
|
|
scroll$(EXEEXT) \
|
|
|
|
subwindow$(EXEEXT) \
|
2005-11-25 23:40:16 +03:00
|
|
|
sudoku$(EXEEXT) \
|
2001-11-18 15:48:38 +03:00
|
|
|
symbols$(EXEEXT) \
|
2009-11-14 16:05:37 +03:00
|
|
|
table$(EXEEXT) \
|
2001-11-18 15:48:38 +03:00
|
|
|
tabs$(EXEEXT) \
|
2001-12-15 00:02:24 +03:00
|
|
|
$(THREADS) \
|
2001-11-18 15:48:38 +03:00
|
|
|
tile$(EXEEXT) \
|
2001-11-24 21:07:58 +03:00
|
|
|
tiled_image$(EXEEXT) \
|
2009-11-14 18:49:12 +03:00
|
|
|
tree$(EXEEXT) \
|
2008-09-11 03:56:49 +04:00
|
|
|
valuators$(EXEEXT) \
|
Cairo increment 2: Finer cairo granularity, less deps, new fltk_cairo lib
+ added new USE_CAIRO config preprocessor def.
to differentiate from HAVE_CAIRO so that we can use the cairo lib
without forcing the full fltk lib to be linked against it.
In that case, cairo autolink context functionality which needs fltk lib
instrumentation is disabled.
+ added new --enable-cairoext, which correspond to previous --enable-cairo.
now, --enable-cairo only adds HAVE_CAIRO def. and keeps fltk lib
from referencing cairo.
In both cases (--enable-cairo & --enable-cairoext), a new fltk_cairo lib is
created. This lib, similarly to local versions of png,jpeg and zlib,
is not generated if cairo is not enabled.
+ added cairo to fltk-config : now new --use-cairo flag is available
+ modified all unix like makefiles to now generate minimum cairo deps and also
new libfltk_cairo lib.
+ added new cairo subdir to permit conditional fltk_cairo lib generation.
+ vc2005 project minimum update to compile without be broken, but still needs
to create a similar fltk_cairo independent lib. For now, it works as before
with a dedicated cairo env. similar to --enable-cairoext context in unix.
+ regression tested ok with cairo disabled on win32, mac osx, mingw.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6462 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-10-19 05:42:35 +04:00
|
|
|
cairotest$(EXEEXT) \
|
2008-11-11 01:08:30 +03:00
|
|
|
utf8$(EXEEXT)
|
2008-09-11 03:56:49 +04:00
|
|
|
|
2001-11-18 15:48:38 +03:00
|
|
|
|
|
|
|
GLALL = \
|
|
|
|
cube$(EXEEXT) \
|
|
|
|
CubeView$(EXEEXT) \
|
|
|
|
fractals$(EXEEXT) \
|
|
|
|
fullscreen$(EXEEXT) \
|
|
|
|
gl_overlay$(EXEEXT) \
|
|
|
|
glpuzzle$(EXEEXT) \
|
2003-09-05 16:24:31 +04:00
|
|
|
shape$(EXEEXT)
|
2001-08-02 22:15:44 +04:00
|
|
|
|
|
|
|
all: $(ALL) $(GLDEMOS)
|
|
|
|
|
|
|
|
gldemos: $(GLALL)
|
1998-10-06 22:21:25 +04:00
|
|
|
|
2002-01-13 21:38:24 +03:00
|
|
|
depend: $(CPPFILES)
|
|
|
|
makedepend -Y -I.. -f makedepend $(CPPFILES)
|
|
|
|
|
2002-03-28 16:20:11 +03:00
|
|
|
# Automatically generated dependencies...
|
|
|
|
include makedepend
|
|
|
|
|
2002-01-13 21:38:24 +03:00
|
|
|
clean:
|
2006-07-27 23:26:11 +04:00
|
|
|
$(RM) $(ALL) $(GLALL) core
|
2012-12-05 18:53:03 +04:00
|
|
|
for file in $(ALL) $(GLALL); do \
|
2013-09-21 21:23:09 +04:00
|
|
|
if [ $$file = "blocks" -o $$file = "checkers" -o $$file = "sudoku" ]; then \
|
2012-12-05 18:53:03 +04:00
|
|
|
continue; \
|
|
|
|
fi; \
|
|
|
|
$(OSX_ONLY) rm -f -r $$file.app; \
|
|
|
|
done
|
2006-07-27 23:26:11 +04:00
|
|
|
$(RM) *.o core.* *~ *.bck *.bak
|
2011-01-22 19:56:12 +03:00
|
|
|
$(RM) CubeViewUI.cxx CubeViewUI.h
|
|
|
|
$(RM) fast_slow.cxx fast_slow.h
|
|
|
|
$(RM) inactive.cxx inactive.h
|
|
|
|
$(RM) keyboard_ui.cxx keyboard_ui.h
|
|
|
|
$(RM) mandelbrot_ui.cxx mandelbrot_ui.h
|
|
|
|
$(RM) preferences.cxx preferences.h
|
|
|
|
$(RM) radio.cxx radio.h
|
|
|
|
$(RM) resize.cxx resize.h
|
|
|
|
$(RM) tabs.cxx tabs.h
|
|
|
|
$(RM) tree.cxx tree.h
|
|
|
|
$(RM) valuators.cxx valuators.h
|
2008-02-26 18:26:08 +03:00
|
|
|
$(OSX_ONLY) $(RM) blocks.app/Contents/MacOS/blocks$(EXEEXT)
|
|
|
|
$(OSX_ONLY) $(RM) checkers.app/Contents/MacOS/checkers$(EXEEXT)
|
|
|
|
$(OSX_ONLY) $(RM) sudoku.app/Contents/MacOS/sudoku$(EXEEXT)
|
2002-01-13 21:38:24 +03:00
|
|
|
|
2006-07-25 23:06:56 +04:00
|
|
|
install: all
|
2005-04-16 04:01:49 +04:00
|
|
|
echo "Installing example programs to $(DESTDIR)$(docdir)/examples..."
|
2007-02-06 22:35:28 +03:00
|
|
|
-$(INSTALL_DIR) $(DESTDIR)$(docdir)/examples
|
|
|
|
for file in *.h *.cxx *.fl demo.menu; do \
|
|
|
|
$(INSTALL_DATA) $$file $(DESTDIR)$(docdir)/examples; \
|
|
|
|
done
|
|
|
|
-$(INSTALL_DIR) $(DESTDIR)$(docdir)/examples/pixmaps
|
|
|
|
for file in pixmaps/*.xbm pixmaps/*.xpm; do \
|
|
|
|
$(INSTALL_DATA) $$file $(DESTDIR)$(docdir)/examples/pixmaps; \
|
|
|
|
done
|
2002-01-13 21:38:24 +03:00
|
|
|
|
2006-01-15 21:02:44 +03:00
|
|
|
install-linux:
|
|
|
|
echo Installing games to $(DESTDIR)$(bindir)...
|
2007-02-06 22:35:28 +03:00
|
|
|
-$(INSTALL_DIR) $(DESTDIR)$(bindir)
|
2008-02-25 17:43:34 +03:00
|
|
|
-$(INSTALL_DIR) $(DESTDIR)/usr/share/applications
|
2007-02-06 22:35:28 +03:00
|
|
|
-$(INSTALL_DIR) $(DESTDIR)/usr/share/icons/hicolor/32x32/apps
|
|
|
|
-$(INSTALL_DIR) $(DESTDIR)/usr/share/icons/hicolor/128x128/apps
|
2006-08-25 10:58:33 +04:00
|
|
|
for game in blocks checkers sudoku; do \
|
2007-02-06 22:35:28 +03:00
|
|
|
$(INSTALL_BIN) $$game $(DESTDIR)$(bindir); \
|
2008-02-25 17:43:34 +03:00
|
|
|
$(INSTALL_DATA) desktop/$$game.desktop $(DESTDIR)/usr/share/applications; \
|
2007-02-06 22:35:28 +03:00
|
|
|
$(INSTALL_DATA) desktop/$$game-32.png $(DESTDIR)/usr/share/icons/hicolor/32x32/apps/$$game.png; \
|
|
|
|
$(INSTALL_DATA) desktop/$$game-128.png $(DESTDIR)/usr/share/icons/hicolor/128x128/apps/$$game.png; \
|
2006-01-15 21:02:44 +03:00
|
|
|
done
|
|
|
|
|
|
|
|
install-osx:
|
|
|
|
echo Installing games in $(DESTDIR)/Applications...
|
2006-08-25 10:58:33 +04:00
|
|
|
for game in blocks checkers sudoku; do \
|
2006-01-15 21:02:44 +03:00
|
|
|
if test ! -d $(DESTDIR)/Applications/$$game.app; then \
|
2007-02-06 22:35:28 +03:00
|
|
|
$(INSTALL_DIR) $(DESTDIR)/Applications/$$game.app; \
|
|
|
|
$(INSTALL_DIR) $(DESTDIR)/Applications/$$game.app/Contents; \
|
|
|
|
$(INSTALL_DIR) $(DESTDIR)/Applications/$$game.app/Contents/MacOS; \
|
|
|
|
$(INSTALL_DIR) $(DESTDIR)/Applications/$$game.app/Contents/Resources; \
|
2006-01-15 21:02:44 +03:00
|
|
|
fi; \
|
2007-02-06 22:35:28 +03:00
|
|
|
$(INSTALL_DATA) $$game.app/Contents/Info.plist $(DESTDIR)/Applications/$$game.app/Contents; \
|
|
|
|
$(INSTALL_DATA) $$game.app/Contents/PkgInfo $(DESTDIR)/Applications/$$game.app/Contents; \
|
|
|
|
$(INSTALL_BIN) $$game.app/Contents/MacOS/$$game $(DESTDIR)/Applications/$$game.app/Contents/MacOS; \
|
|
|
|
$(INSTALL_DATA) $$game.app/Contents/Resources/$$game.icns $(DESTDIR)/Applications/$$game.app/Contents/Resources; \
|
2006-01-15 21:02:44 +03:00
|
|
|
done
|
|
|
|
|
2002-01-13 21:38:24 +03:00
|
|
|
uninstall:
|
2005-04-16 04:01:49 +04:00
|
|
|
echo "Removing examples programs from $(DESTDIR)$(docdir)/examples..."
|
|
|
|
-$(RMDIR) $(DESTDIR)$(docdir)/examples
|
2002-01-13 21:38:24 +03:00
|
|
|
|
2006-01-15 21:02:44 +03:00
|
|
|
uninstall-linux:
|
|
|
|
echo Removing games from $(DESTDIR)$(bindir)...
|
2006-08-25 10:58:33 +04:00
|
|
|
for game in blocks checkers sudoku; do \
|
2006-01-15 21:02:44 +03:00
|
|
|
$(RM) $(DESTDIR)$(bindir)/$$game; \
|
2008-02-25 17:43:34 +03:00
|
|
|
$(RM) $(DESTDIR)/usr/share/applications/$$game.desktop; \
|
2006-01-15 21:02:44 +03:00
|
|
|
$(RM) $(DESTDIR)/usr/share/icons/hicolor/32x32/apps/$$game.png; \
|
|
|
|
$(RM) $(DESTDIR)/usr/share/icons/hicolor/128x128/apps/$$game.png; \
|
|
|
|
done
|
|
|
|
|
|
|
|
uninstall-osx:
|
|
|
|
echo Removing games from $(DESTDIR)/Applications...
|
2007-02-06 22:35:28 +03:00
|
|
|
$(RMDIR) $(DESTDIR)/Applications/blocks.app
|
|
|
|
$(RMDIR) $(DESTDIR)/Applications/checkers.app
|
|
|
|
$(RMDIR) $(DESTDIR)/Applications/sudoku.app
|
2006-01-15 21:02:44 +03:00
|
|
|
|
2000-06-03 16:04:12 +04:00
|
|
|
# FLUID file rules
|
2002-04-29 18:32:13 +04:00
|
|
|
.fl.cxx .fl.h: ../fluid/fluid$(EXEEXT)
|
2007-02-13 16:55:58 +03:00
|
|
|
echo Generating $@ and header from $<...
|
2002-03-26 03:05:18 +03:00
|
|
|
../fluid/fluid$(EXEEXT) -c $<
|
2000-06-03 16:04:12 +04:00
|
|
|
|
2002-01-13 21:38:24 +03:00
|
|
|
# All demos depend on the FLTK library...
|
2008-12-29 22:45:46 +03:00
|
|
|
$(ALL): $(LIBNAME)
|
2002-01-13 21:38:24 +03:00
|
|
|
|
|
|
|
# General demos...
|
2004-08-27 02:24:24 +04:00
|
|
|
unittests$(EXEEXT): unittests.o
|
|
|
|
|
2013-03-09 00:37:00 +04:00
|
|
|
unittests.o: unittests.cxx unittest_about.cxx unittest_points.cxx unittest_lines.cxx unittest_circles.cxx \
|
2013-03-27 22:32:41 +04:00
|
|
|
unittest_rects.cxx unittest_text.cxx unittest_symbol.cxx unittest_viewport.cxx unittest_images.cxx \
|
2013-03-09 00:37:00 +04:00
|
|
|
unittest_schemes.cxx
|
2009-04-12 17:48:03 +04:00
|
|
|
|
2002-01-13 21:38:24 +03:00
|
|
|
adjuster$(EXEEXT): adjuster.o
|
|
|
|
|
|
|
|
arc$(EXEEXT): arc.o
|
|
|
|
|
|
|
|
ask$(EXEEXT): ask.o
|
|
|
|
|
|
|
|
bitmap$(EXEEXT): bitmap.o
|
|
|
|
|
|
|
|
boxtype$(EXEEXT): boxtype.o
|
|
|
|
|
|
|
|
browser$(EXEEXT): browser.o
|
|
|
|
|
|
|
|
button$(EXEEXT): button.o
|
|
|
|
|
|
|
|
buttons$(EXEEXT): buttons.o
|
|
|
|
|
2006-08-25 10:58:33 +04:00
|
|
|
blocks$(EXEEXT): blocks.o
|
|
|
|
echo Linking $@...
|
2013-09-21 21:23:09 +04:00
|
|
|
$(CXX) $(ARCHFLAGS) $(CXXFLAGS) $(LDFLAGS) blocks.o -o $@ $(AUDIOLIBS) $(LINKFLTK) $(LDLIBS)
|
2008-02-26 18:26:08 +03:00
|
|
|
$(OSX_ONLY) $(INSTALL_BIN) blocks$(EXEEXT) blocks.app/Contents/MacOS
|
2006-08-25 10:58:33 +04:00
|
|
|
|
2002-01-13 21:38:24 +03:00
|
|
|
checkers$(EXEEXT): checkers.o
|
2006-01-15 21:02:44 +03:00
|
|
|
echo Linking $@...
|
2013-09-21 21:23:09 +04:00
|
|
|
$(CXX) $(ARCHFLAGS) $(CXXFLAGS) $(LDFLAGS) checkers.o -o $@ $(LINKFLTK) $(LDLIBS)
|
2008-02-26 18:26:08 +03:00
|
|
|
$(OSX_ONLY) $(INSTALL_BIN) checkers$(EXEEXT) checkers.app/Contents/MacOS
|
2002-01-13 21:38:24 +03:00
|
|
|
|
|
|
|
clock$(EXEEXT): clock.o
|
|
|
|
|
|
|
|
colbrowser$(EXEEXT): colbrowser.o
|
2002-03-26 00:39:01 +03:00
|
|
|
echo Linking $@...
|
2013-09-21 21:23:09 +04:00
|
|
|
$(CXX) $(ARCHFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ colbrowser.o $(LINKFLTKFORMS) $(LDLIBS)
|
2012-12-05 18:53:03 +04:00
|
|
|
$(OSX_ONLY) ../fltk-config --post $@
|
2002-01-13 21:38:24 +03:00
|
|
|
|
|
|
|
color_chooser$(EXEEXT): color_chooser.o
|
|
|
|
|
|
|
|
cursor$(EXEEXT): cursor.o
|
|
|
|
|
|
|
|
curve$(EXEEXT): curve.o
|
|
|
|
|
|
|
|
demo$(EXEEXT): demo.o
|
2002-03-26 00:39:01 +03:00
|
|
|
echo Linking $@...
|
2013-09-21 21:23:09 +04:00
|
|
|
$(CXX) $(ARCHFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ demo.o $(LINKFLTKFORMS) $(LDLIBS)
|
2002-01-13 21:38:24 +03:00
|
|
|
|
2010-03-14 21:07:24 +03:00
|
|
|
device$(EXEEXT): device.o $(IMGLIBNAME)
|
|
|
|
echo Linking $@...
|
2013-09-21 21:23:09 +04:00
|
|
|
$(CXX) $(ARCHFLAGS) $(CXXFLAGS) $(LDFLAGS) device.o -o $@ $(LINKFLTKIMG) $(LDLIBS)
|
2012-12-05 18:53:03 +04:00
|
|
|
$(OSX_ONLY) ../fltk-config --post $@
|
2010-03-14 21:07:24 +03:00
|
|
|
|
2002-01-13 21:38:24 +03:00
|
|
|
doublebuffer$(EXEEXT): doublebuffer.o
|
1998-10-06 22:21:25 +04:00
|
|
|
|
2001-12-13 00:33:34 +03:00
|
|
|
editor$(EXEEXT): editor.o
|
|
|
|
echo Linking $@...
|
2013-09-21 21:23:09 +04:00
|
|
|
$(CXX) $(ARCHFLAGS) $(CXXFLAGS) $(LDFLAGS) editor.o -o $@ $(LINKFLTKIMG) $(LDLIBS)
|
2012-12-05 18:53:03 +04:00
|
|
|
$(OSX_ONLY) ../fltk-config --post $@
|
2002-01-13 21:38:24 +03:00
|
|
|
|
|
|
|
fast_slow$(EXEEXT): fast_slow.o
|
2006-07-27 23:26:11 +04:00
|
|
|
fast_slow.cxx: fast_slow.fl ../fluid/fluid$(EXEEXT)
|
2002-01-13 21:38:24 +03:00
|
|
|
|
2008-12-29 22:45:46 +03:00
|
|
|
file_chooser$(EXEEXT): file_chooser.o $(IMGLIBNAME)
|
2001-12-13 00:33:34 +03:00
|
|
|
echo Linking $@...
|
2013-09-21 21:23:09 +04:00
|
|
|
$(CXX) $(ARCHFLAGS) $(CXXFLAGS) $(LDFLAGS) file_chooser.o -o $@ $(LINKFLTKIMG) $(LDLIBS)
|
2012-12-05 18:53:03 +04:00
|
|
|
$(OSX_ONLY) ../fltk-config --post $@
|
2002-01-13 21:38:24 +03:00
|
|
|
|
|
|
|
fonts$(EXEEXT): fonts.o
|
|
|
|
|
|
|
|
forms$(EXEEXT): forms.o
|
2002-03-26 00:39:01 +03:00
|
|
|
echo Linking $@...
|
2013-09-21 21:23:09 +04:00
|
|
|
$(CXX) $(ARCHFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ forms.o $(LINKFLTKFORMS) $(LDLIBS)
|
2012-12-05 18:53:03 +04:00
|
|
|
$(OSX_ONLY) ../fltk-config --post $@
|
2002-01-13 21:38:24 +03:00
|
|
|
|
|
|
|
hello$(EXEEXT): hello.o
|
|
|
|
|
2008-12-29 22:45:46 +03:00
|
|
|
help$(EXEEXT): help.o $(IMGLIBNAME)
|
2001-12-13 00:33:34 +03:00
|
|
|
echo Linking $@...
|
2013-09-21 21:23:09 +04:00
|
|
|
$(CXX) $(ARCHFLAGS) $(CXXFLAGS) $(LDFLAGS) help.o -o $@ $(LINKFLTKIMG) $(LDLIBS)
|
2012-12-05 18:53:03 +04:00
|
|
|
$(OSX_ONLY) ../fltk-config --post $@
|
2002-01-13 21:38:24 +03:00
|
|
|
|
|
|
|
iconize$(EXEEXT): iconize.o
|
|
|
|
|
|
|
|
image$(EXEEXT): image.o
|
|
|
|
|
|
|
|
inactive$(EXEEXT): inactive.o
|
2006-07-27 23:26:11 +04:00
|
|
|
inactive.cxx: inactive.fl ../fluid/fluid$(EXEEXT)
|
2002-01-13 21:38:24 +03:00
|
|
|
|
|
|
|
input$(EXEEXT): input.o
|
|
|
|
|
2005-02-25 00:14:22 +03:00
|
|
|
input_choice$(EXEEXT): input_choice.o
|
|
|
|
|
2001-12-30 08:16:10 +03:00
|
|
|
keyboard$(EXEEXT): keyboard_ui.o keyboard.o
|
2001-12-13 00:33:34 +03:00
|
|
|
echo Linking $@...
|
2013-09-21 21:23:09 +04:00
|
|
|
$(CXX) $(ARCHFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ keyboard.o keyboard_ui.o $(LINKFLTK) $(LDLIBS)
|
2012-12-05 18:53:03 +04:00
|
|
|
$(OSX_ONLY) ../fltk-config --post $@
|
2002-04-29 18:32:13 +04:00
|
|
|
keyboard_ui.o: keyboard_ui.h
|
2006-07-27 23:26:11 +04:00
|
|
|
keyboard_ui.cxx: keyboard_ui.fl ../fluid/fluid$(EXEEXT)
|
2001-12-13 00:33:34 +03:00
|
|
|
|
2002-01-13 21:38:24 +03:00
|
|
|
label$(EXEEXT): label.o
|
2002-03-26 00:39:01 +03:00
|
|
|
echo Linking $@...
|
2013-09-21 21:23:09 +04:00
|
|
|
$(CXX) $(ARCHFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ label.o $(LINKFLTKFORMS) $(LDLIBS)
|
2012-12-05 18:53:03 +04:00
|
|
|
$(OSX_ONLY) ../fltk-config --post $@
|
2002-01-13 21:38:24 +03:00
|
|
|
|
|
|
|
line_style$(EXEEXT): line_style.o
|
|
|
|
|
|
|
|
list_visuals$(EXEEXT): list_visuals.o
|
|
|
|
|
2001-12-30 08:16:10 +03:00
|
|
|
mandelbrot$(EXEEXT): mandelbrot_ui.o mandelbrot.o
|
2001-12-13 00:33:34 +03:00
|
|
|
echo Linking $@...
|
2013-09-21 21:23:09 +04:00
|
|
|
$(CXX) $(ARCHFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ mandelbrot.o mandelbrot_ui.o $(LINKFLTK) $(LDLIBS)
|
2012-12-05 18:53:03 +04:00
|
|
|
$(OSX_ONLY) ../fltk-config --post $@
|
2002-04-29 18:32:13 +04:00
|
|
|
mandelbrot_ui.o: mandelbrot_ui.h
|
2006-07-27 23:26:11 +04:00
|
|
|
mandelbrot_ui.cxx: mandelbrot_ui.fl ../fluid/fluid$(EXEEXT)
|
2001-12-14 19:48:13 +03:00
|
|
|
|
2002-01-13 21:38:24 +03:00
|
|
|
menubar$(EXEEXT): menubar.o
|
|
|
|
|
|
|
|
message$(EXEEXT): message.o
|
|
|
|
|
|
|
|
minimum$(EXEEXT): minimum.o
|
|
|
|
|
2010-01-14 21:42:13 +03:00
|
|
|
native-filechooser$(EXEEXT): native-filechooser.o $(IMGLIBNAME)
|
|
|
|
echo Linking $@...
|
2013-09-21 21:23:09 +04:00
|
|
|
$(CXX) $(ARCHFLAGS) $(CXXFLAGS) $(LDFLAGS) native-filechooser.o -o $@ $(LINKFLTKIMG) $(LDLIBS)
|
2012-12-05 18:53:03 +04:00
|
|
|
$(OSX_ONLY) ../fltk-config --post $@
|
2010-01-14 02:13:59 +03:00
|
|
|
|
2002-01-13 21:38:24 +03:00
|
|
|
navigation$(EXEEXT): navigation.o
|
|
|
|
|
2008-12-29 22:45:46 +03:00
|
|
|
output$(EXEEXT): output.o $(FLLIBNAME)
|
2002-03-26 00:39:01 +03:00
|
|
|
echo Linking $@...
|
2013-09-21 21:23:09 +04:00
|
|
|
$(CXX) $(ARCHFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ output.o $(LINKFLTKFORMS) $(LDLIBS)
|
2012-12-05 18:53:03 +04:00
|
|
|
$(OSX_ONLY) ../fltk-config --post $@
|
2002-01-13 21:38:24 +03:00
|
|
|
|
|
|
|
overlay$(EXEEXT): overlay.o
|
|
|
|
|
|
|
|
pack$(EXEEXT): pack.o
|
|
|
|
|
|
|
|
pixmap$(EXEEXT): pixmap.o
|
|
|
|
|
2008-12-29 22:45:46 +03:00
|
|
|
pixmap_browser$(EXEEXT): pixmap_browser.o $(IMGLIBNAME)
|
2001-12-13 00:33:34 +03:00
|
|
|
echo Linking $@...
|
2013-09-21 21:23:09 +04:00
|
|
|
$(CXX) $(ARCHFLAGS) $(CXXFLAGS) $(LDFLAGS) pixmap_browser.o -o $@ $(LINKFLTKIMG) $(LDLIBS)
|
2012-12-05 18:53:03 +04:00
|
|
|
$(OSX_ONLY) ../fltk-config --post $@
|
2001-08-02 22:08:36 +04:00
|
|
|
|
2002-04-30 01:04:13 +04:00
|
|
|
preferences$(EXEEXT): preferences.o
|
2006-07-27 23:26:11 +04:00
|
|
|
preferences.cxx: preferences.fl ../fluid/fluid$(EXEEXT)
|
2002-04-30 01:04:13 +04:00
|
|
|
|
2010-03-14 21:07:24 +03:00
|
|
|
device$(EXEEXT): device.o
|
|
|
|
|
2002-01-13 21:38:24 +03:00
|
|
|
radio$(EXEEXT): radio.o
|
2006-07-27 23:26:11 +04:00
|
|
|
radio.cxx: radio.fl ../fluid/fluid$(EXEEXT)
|
2002-01-13 21:38:24 +03:00
|
|
|
|
|
|
|
resize$(EXEEXT): resize.o
|
2006-07-27 23:26:11 +04:00
|
|
|
resize.cxx: resize.fl ../fluid/fluid$(EXEEXT)
|
2002-01-13 21:38:24 +03:00
|
|
|
|
|
|
|
resizebox$(EXEEXT): resizebox.o
|
|
|
|
|
2009-04-24 13:28:30 +04:00
|
|
|
rotated_text$(EXEEXT): rotated_text.o
|
|
|
|
|
2002-01-13 21:38:24 +03:00
|
|
|
scroll$(EXEEXT): scroll.o
|
|
|
|
|
|
|
|
subwindow$(EXEEXT): subwindow.o
|
|
|
|
|
2005-12-04 03:32:31 +03:00
|
|
|
sudoku: sudoku.o
|
2005-11-25 23:40:16 +03:00
|
|
|
echo Linking $@...
|
2013-09-21 21:23:09 +04:00
|
|
|
$(CXX) $(ARCHFLAGS) $(CXXFLAGS) $(LDFLAGS) sudoku.o -o $@ $(AUDIOLIBS) $(LINKFLTKIMG) $(LDLIBS)
|
2008-02-26 18:26:08 +03:00
|
|
|
$(OSX_ONLY) $(INSTALL_BIN) sudoku$(EXEEXT) sudoku.app/Contents/MacOS
|
2005-11-25 23:40:16 +03:00
|
|
|
|
2005-12-04 03:32:31 +03:00
|
|
|
sudoku.exe: sudoku.o sudoku.rc
|
|
|
|
echo Linking $@...
|
2010-12-08 12:48:07 +03:00
|
|
|
$(RC) sudoku.rc sudokures.o
|
2013-09-21 21:23:09 +04:00
|
|
|
$(CXX) $(ARCHFLAGS) $(CXXFLAGS) $(LDFLAGS) sudoku.o sudokures.o -o $@ $(AUDIOLIBS) $(LINKFLTKIMG) $(LDLIBS)
|
2005-12-04 03:32:31 +03:00
|
|
|
|
2002-01-13 21:38:24 +03:00
|
|
|
symbols$(EXEEXT): symbols.o
|
|
|
|
|
2009-11-14 18:49:12 +03:00
|
|
|
table$(EXEEXT): table.o
|
|
|
|
|
2002-01-13 21:38:24 +03:00
|
|
|
tabs$(EXEEXT): tabs.o
|
2006-07-27 23:26:11 +04:00
|
|
|
tabs.cxx: tabs.fl ../fluid/fluid$(EXEEXT)
|
2002-01-13 21:38:24 +03:00
|
|
|
|
|
|
|
threads$(EXEEXT): threads.o
|
2006-01-08 18:50:01 +03:00
|
|
|
# This ensures that we have this dependency even if threads are not
|
|
|
|
# enabled in the current tree...
|
|
|
|
threads.o: threads.h
|
2002-01-13 21:38:24 +03:00
|
|
|
|
|
|
|
tile$(EXEEXT): tile.o
|
|
|
|
|
|
|
|
tiled_image$(EXEEXT): tiled_image.o
|
|
|
|
|
2009-11-14 18:49:12 +03:00
|
|
|
tree$(EXEEXT): tree.o
|
2011-01-22 19:56:12 +03:00
|
|
|
tree.cxx: tree.fl ../fluid/fluid$(EXEEXT)
|
2009-11-14 18:49:12 +03:00
|
|
|
|
2002-01-13 21:38:24 +03:00
|
|
|
valuators$(EXEEXT): valuators.o
|
2006-07-27 23:26:11 +04:00
|
|
|
valuators.cxx: valuators.fl ../fluid/fluid$(EXEEXT)
|
2002-01-13 21:38:24 +03:00
|
|
|
|
|
|
|
# All OpenGL demos depend on the FLTK and FLTK_GL libraries...
|
2008-12-29 22:45:46 +03:00
|
|
|
$(GLALL): $(LIBNAME) $(GLLIBNAME)
|
2002-01-13 21:38:24 +03:00
|
|
|
|
2001-08-02 22:08:36 +04:00
|
|
|
# OpenGL demos...
|
2001-11-18 15:48:38 +03:00
|
|
|
CubeView$(EXEEXT): CubeMain.o CubeView.o CubeViewUI.o
|
2001-12-13 00:33:34 +03:00
|
|
|
echo Linking $@...
|
2013-09-21 21:23:09 +04:00
|
|
|
$(CXX) $(ARCHFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ \
|
2006-06-19 22:29:31 +04:00
|
|
|
CubeMain.o CubeView.o CubeViewUI.o \
|
2002-06-03 16:32:57 +04:00
|
|
|
$(LINKFLTKGL) $(LINKFLTK) $(GLDLIBS)
|
2012-12-05 18:53:03 +04:00
|
|
|
$(OSX_ONLY) ../fltk-config --post $@
|
2006-09-19 12:38:53 +04:00
|
|
|
CubeMain.o: CubeViewUI.h CubeView.h CubeViewUI.cxx
|
1999-02-23 00:52:17 +03:00
|
|
|
CubeView.o: CubeView.h
|
2006-09-19 12:38:53 +04:00
|
|
|
CubeViewUI.o: CubeViewUI.cxx CubeViewUI.h
|
2006-07-27 23:26:11 +04:00
|
|
|
CubeViewUI.cxx: CubeViewUI.fl ../fluid/fluid$(EXEEXT)
|
1999-02-23 00:52:17 +03:00
|
|
|
|
2001-12-13 00:33:34 +03:00
|
|
|
cube$(EXEEXT): cube.o
|
|
|
|
echo Linking $@...
|
2013-09-21 21:23:09 +04:00
|
|
|
$(CXX) $(ARCHFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ cube.o $(LINKFLTKGL) $(LINKFLTK) $(GLDLIBS)
|
2012-12-05 18:53:03 +04:00
|
|
|
$(OSX_ONLY) ../fltk-config --post $@
|
2007-03-06 20:03:25 +03:00
|
|
|
|
2002-01-03 17:08:08 +03:00
|
|
|
fractals$(EXEEXT): fractals.o fracviewer.o
|
2001-12-13 00:33:34 +03:00
|
|
|
echo Linking $@...
|
2013-09-21 21:23:09 +04:00
|
|
|
$(CXX) $(ARCHFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ fractals.o fracviewer.o $(LINKFLTKGL) $(LINKFLTK) $(GLDLIBS)
|
2012-12-05 18:53:03 +04:00
|
|
|
$(OSX_ONLY) ../fltk-config --post $@
|
2007-03-06 20:03:25 +03:00
|
|
|
|
2001-12-13 00:33:34 +03:00
|
|
|
fullscreen$(EXEEXT): fullscreen.o
|
|
|
|
echo Linking $@...
|
2013-09-21 21:23:09 +04:00
|
|
|
$(CXX) $(ARCHFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ fullscreen.o $(LINKFLTKGL) $(LINKFLTK) $(GLDLIBS)
|
2012-12-05 18:53:03 +04:00
|
|
|
$(OSX_ONLY) ../fltk-config --post $@
|
2007-03-06 20:03:25 +03:00
|
|
|
|
2001-12-13 00:33:34 +03:00
|
|
|
glpuzzle$(EXEEXT): glpuzzle.o
|
|
|
|
echo Linking $@...
|
2013-09-21 21:23:09 +04:00
|
|
|
$(CXX) $(ARCHFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ glpuzzle.o $(LINKFLTKGL) $(LINKFLTK) $(GLDLIBS)
|
2012-12-05 18:53:03 +04:00
|
|
|
$(OSX_ONLY) ../fltk-config --post $@
|
2007-03-06 20:03:25 +03:00
|
|
|
|
2001-12-13 00:33:34 +03:00
|
|
|
gl_overlay$(EXEEXT): gl_overlay.o
|
|
|
|
echo Linking $@...
|
2013-09-21 21:23:09 +04:00
|
|
|
$(CXX) $(ARCHFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ gl_overlay.o $(LINKFLTKGL) $(LINKFLTK) $(GLDLIBS)
|
2012-12-05 18:53:03 +04:00
|
|
|
$(OSX_ONLY) ../fltk-config --post $@
|
2007-03-06 20:03:25 +03:00
|
|
|
|
2001-12-13 00:33:34 +03:00
|
|
|
shape$(EXEEXT): shape.o
|
|
|
|
echo Linking $@...
|
2013-09-21 21:23:09 +04:00
|
|
|
$(CXX) $(ARCHFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ shape.o $(LINKFLTKGL) $(LINKFLTK) $(GLDLIBS)
|
2012-12-05 18:53:03 +04:00
|
|
|
$(OSX_ONLY) ../fltk-config --post $@
|
1998-10-21 21:15:44 +04:00
|
|
|
|
2008-09-25 22:26:33 +04:00
|
|
|
cairo_test$(EXEEXT): cairo_test.o
|
Cairo increment 2: Finer cairo granularity, less deps, new fltk_cairo lib
+ added new USE_CAIRO config preprocessor def.
to differentiate from HAVE_CAIRO so that we can use the cairo lib
without forcing the full fltk lib to be linked against it.
In that case, cairo autolink context functionality which needs fltk lib
instrumentation is disabled.
+ added new --enable-cairoext, which correspond to previous --enable-cairo.
now, --enable-cairo only adds HAVE_CAIRO def. and keeps fltk lib
from referencing cairo.
In both cases (--enable-cairo & --enable-cairoext), a new fltk_cairo lib is
created. This lib, similarly to local versions of png,jpeg and zlib,
is not generated if cairo is not enabled.
+ added cairo to fltk-config : now new --use-cairo flag is available
+ modified all unix like makefiles to now generate minimum cairo deps and also
new libfltk_cairo lib.
+ added new cairo subdir to permit conditional fltk_cairo lib generation.
+ vc2005 project minimum update to compile without be broken, but still needs
to create a similar fltk_cairo independent lib. For now, it works as before
with a dedicated cairo env. similar to --enable-cairoext context in unix.
+ regression tested ok with cairo disabled on win32, mac osx, mingw.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6462 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-10-19 05:42:35 +04:00
|
|
|
echo Linking $@...
|
2013-09-21 21:23:09 +04:00
|
|
|
$(CXX) $(ARCHFLAGS) $(CXXFLAGS) $(CAIROFLAGS) $(LDFLAGS) -o $@ cairo_test.o $(LINKFLTK) $(LINKFLTKCAIRO) $(GLDLIBS)
|
2012-12-05 18:53:03 +04:00
|
|
|
$(OSX_ONLY) ../fltk-config --post $@
|
2001-11-20 00:25:35 +03:00
|
|
|
|
1998-10-21 01:06:19 +04:00
|
|
|
#
|
2005-02-25 00:14:22 +03:00
|
|
|
# End of "$Id$".
|
1998-10-21 01:06:19 +04:00
|
|
|
#
|