1998-10-21 01:06:19 +04:00
|
|
|
#
|
2002-01-03 17:08:08 +03:00
|
|
|
# "$Id: Makefile,v 1.19.2.7.2.27 2002/01/03 14:08:08 easysw Exp $"
|
1998-10-21 01:06:19 +04:00
|
|
|
#
|
|
|
|
# Test/example program makefile for the Fast Light Tool Kit (FLTK).
|
|
|
|
#
|
2002-01-01 18:11:33 +03:00
|
|
|
# Copyright 1998-2002 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.
|
|
|
|
#
|
2000-06-06 01:21:24 +04:00
|
|
|
# Please report all bugs and problems to "fltk-bugs@fltk.org".
|
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 =\
|
2001-11-24 21:07:58 +03:00
|
|
|
adjuster.cxx \
|
|
|
|
arc.cxx \
|
|
|
|
ask.cxx \
|
|
|
|
bitmap.cxx \
|
|
|
|
boxtype.cxx \
|
|
|
|
browser.cxx \
|
|
|
|
button.cxx \
|
|
|
|
buttons.cxx \
|
|
|
|
checkers.cxx \
|
|
|
|
clock.cxx \
|
|
|
|
colbrowser.cxx \
|
|
|
|
color_chooser.cxx \
|
|
|
|
cube.cxx \
|
|
|
|
CubeMain.cxx \
|
|
|
|
CubeView.cxx \
|
|
|
|
cursor.cxx \
|
|
|
|
curve.cxx \
|
|
|
|
demo.cxx \
|
|
|
|
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 \
|
|
|
|
keyboard.cxx \
|
|
|
|
label.cxx \
|
|
|
|
line_style.cxx \
|
|
|
|
list_visuals.cxx \
|
|
|
|
mandelbrot.cxx \
|
|
|
|
menubar.cxx \
|
|
|
|
message.cxx \
|
|
|
|
minimum.cxx \
|
|
|
|
navigation.cxx \
|
|
|
|
output.cxx \
|
|
|
|
overlay.cxx \
|
|
|
|
pack.cxx \
|
|
|
|
pixmap_browser.cxx \
|
|
|
|
pixmap.cxx \
|
|
|
|
radio.cxx \
|
|
|
|
resizebox.cxx \
|
|
|
|
resize.cxx \
|
|
|
|
scroll.cxx \
|
|
|
|
shape.cxx \
|
|
|
|
shiny.cxx \
|
|
|
|
subwindow.cxx \
|
|
|
|
symbols.cxx \
|
|
|
|
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 \
|
|
|
|
valuators.cxx
|
2001-08-02 22:15:44 +04:00
|
|
|
|
2001-11-18 15:48:38 +03:00
|
|
|
ALL = \
|
|
|
|
adjuster$(EXEEXT) \
|
|
|
|
arc$(EXEEXT) \
|
|
|
|
ask$(EXEEXT) \
|
|
|
|
bitmap$(EXEEXT) \
|
|
|
|
boxtype$(EXEEXT) \
|
|
|
|
browser$(EXEEXT) \
|
|
|
|
button$(EXEEXT) \
|
|
|
|
buttons$(EXEEXT) \
|
|
|
|
checkers$(EXEEXT) \
|
|
|
|
clock$(EXEEXT) \
|
|
|
|
colbrowser$(EXEEXT) \
|
|
|
|
color_chooser$(EXEEXT) \
|
|
|
|
cursor$(EXEEXT) \
|
|
|
|
curve$(EXEEXT) \
|
|
|
|
demo$(EXEEXT) \
|
|
|
|
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) \
|
|
|
|
keyboard$(EXEEXT) \
|
|
|
|
label$(EXEEXT) \
|
|
|
|
line_style$(EXEEXT) \
|
|
|
|
list_visuals$(EXEEXT) \
|
|
|
|
mandelbrot$(EXEEXT) \
|
|
|
|
menubar$(EXEEXT) \
|
|
|
|
message$(EXEEXT) \
|
|
|
|
minimum$(EXEEXT) \
|
|
|
|
navigation$(EXEEXT) \
|
|
|
|
output$(EXEEXT) \
|
|
|
|
overlay$(EXEEXT) \
|
|
|
|
pack$(EXEEXT) \
|
|
|
|
pixmap$(EXEEXT) \
|
|
|
|
pixmap_browser$(EXEEXT) \
|
|
|
|
radio$(EXEEXT) \
|
2001-12-23 06:40:51 +03:00
|
|
|
resize$(EXEEXT) \
|
2001-11-18 15:48:38 +03:00
|
|
|
resizebox$(EXEEXT) \
|
|
|
|
scroll$(EXEEXT) \
|
|
|
|
subwindow$(EXEEXT) \
|
|
|
|
symbols$(EXEEXT) \
|
|
|
|
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) \
|
2001-11-18 15:48:38 +03:00
|
|
|
valuators$(EXEEXT)
|
|
|
|
|
|
|
|
GLALL = \
|
|
|
|
cube$(EXEEXT) \
|
|
|
|
CubeView$(EXEEXT) \
|
|
|
|
fractals$(EXEEXT) \
|
|
|
|
fullscreen$(EXEEXT) \
|
|
|
|
gl_overlay$(EXEEXT) \
|
|
|
|
glpuzzle$(EXEEXT) \
|
|
|
|
shape$(EXEEXT) \
|
|
|
|
shiny$(EXEEXT) \
|
2001-08-02 22:15:44 +04:00
|
|
|
|
|
|
|
all: $(ALL) $(GLDEMOS)
|
|
|
|
|
|
|
|
gldemos: $(GLALL)
|
1998-10-06 22:21:25 +04:00
|
|
|
|
2000-06-03 16:04:12 +04:00
|
|
|
# FLUID file rules
|
|
|
|
.fl.cxx .fl.h:
|
|
|
|
echo Generating $<...
|
|
|
|
../fluid/fluid -c $<
|
|
|
|
|
1998-10-21 22:15:03 +04:00
|
|
|
$(ALL): ../lib/$(LIBNAME)
|
1998-10-06 22:21:25 +04:00
|
|
|
|
2001-08-02 22:08:36 +04:00
|
|
|
# Programs needing special instructions...
|
2001-12-13 00:33:34 +03:00
|
|
|
editor$(EXEEXT): editor.o
|
|
|
|
echo Linking $@...
|
|
|
|
$(CXX) -I.. $(CXXFLAGS) editor.o -o $@ $(LINKFLTK) $(LDLIBS) $(IMAGELIBS)
|
2001-12-14 22:34:30 +03:00
|
|
|
$(POSTBUILD) $@ ../FL/mac.r
|
2001-12-13 00:33:34 +03:00
|
|
|
file_chooser$(EXEEXT): file_chooser.o
|
|
|
|
echo Linking $@...
|
|
|
|
$(CXX) -I.. $(CXXFLAGS) file_chooser.o -o $@ $(LINKFLTK) $(LDLIBS) $(IMAGELIBS)
|
2001-12-14 22:34:30 +03:00
|
|
|
$(POSTBUILD) $@ ../FL/mac.r
|
2001-12-13 00:33:34 +03:00
|
|
|
help$(EXEEXT): help.o
|
|
|
|
echo Linking $@...
|
|
|
|
$(CXX) -I.. $(CXXFLAGS) help.o -o $@ $(LINKFLTK) $(LDLIBS) $(IMAGELIBS)
|
2001-12-14 22:34:30 +03:00
|
|
|
$(POSTBUILD) $@ ../FL/mac.r
|
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 $@...
|
2001-12-30 08:16:10 +03:00
|
|
|
$(CXX) -I.. $(CXXFLAGS) keyboard.o keyboard_ui.o $(LINKFLTK) $(LDLIBS) -o $@
|
2001-12-14 22:34:30 +03:00
|
|
|
$(POSTBUILD) $@ ../FL/mac.r
|
2002-01-01 16:11:29 +03:00
|
|
|
keyboard_ui.o: keyboard_ui.h ../fluid/fluid
|
2001-12-13 00:33:34 +03:00
|
|
|
|
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 $@...
|
2001-12-30 08:16:10 +03:00
|
|
|
$(CXX) -I.. $(CXXFLAGS) mandelbrot.o mandelbrot_ui.o $(LINKFLTK) $(LDLIBS) -o $@
|
2001-12-14 22:34:30 +03:00
|
|
|
$(POSTBUILD) $@ ../FL/mac.r
|
2002-01-01 16:11:29 +03:00
|
|
|
mandelbrot_ui.o: mandelbrot_ui.h ../fluid/fluid
|
2001-12-14 19:48:13 +03:00
|
|
|
|
2001-12-13 00:33:34 +03:00
|
|
|
pixmap_browser$(EXEEXT): pixmap_browser.o
|
|
|
|
echo Linking $@...
|
|
|
|
$(CXX) -I.. $(CXXFLAGS) pixmap_browser.o -o $@ $(LINKFLTK) $(LDLIBS) $(IMAGELIBS)
|
2001-12-14 22:34:30 +03:00
|
|
|
$(POSTBUILD) $@ ../FL/mac.r
|
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 $@...
|
2001-08-02 22:08:36 +04:00
|
|
|
$(CXX) $(CXXFLAGS) CubeMain.o CubeView.o CubeViewUI.o \
|
|
|
|
$(LINKFLTKGL) $(LINKFLTK) $(GLDLIBS) -o $@
|
2001-12-14 22:34:30 +03:00
|
|
|
$(POSTBUILD) $@ ../FL/mac.r
|
1999-02-23 00:52:17 +03:00
|
|
|
CubeMain.o: CubeViewUI.h CubeView.h
|
|
|
|
CubeView.o: CubeView.h
|
2002-01-01 16:11:29 +03:00
|
|
|
CubeViewUI.o: CubeViewUI.h ../fluid/fluid
|
1999-02-23 00:52:17 +03:00
|
|
|
|
2001-12-13 00:33:34 +03:00
|
|
|
cube$(EXEEXT): cube.o
|
|
|
|
echo Linking $@...
|
|
|
|
$(CXX) -I.. $(CXXFLAGS) cube.o $(LINKFLTKGL) $(LINKFLTK) $(GLDLIBS) -o $@
|
2001-12-14 22:34:30 +03:00
|
|
|
$(POSTBUILD) $@ ../FL/mac.r
|
2002-01-03 17:08:08 +03:00
|
|
|
fractals$(EXEEXT): fractals.o fracviewer.o
|
2001-12-13 00:33:34 +03:00
|
|
|
echo Linking $@...
|
2002-01-03 17:08:08 +03:00
|
|
|
$(CXX) -I.. $(CXXFLAGS) fractals.o fracviewer.o $(LINKFLTKGL) $(LINKFLTK) $(GLDLIBS) -o $@
|
2001-12-14 22:34:30 +03:00
|
|
|
$(POSTBUILD) $@ ../FL/mac.r
|
2001-12-13 00:33:34 +03:00
|
|
|
fullscreen$(EXEEXT): fullscreen.o
|
|
|
|
echo Linking $@...
|
|
|
|
$(CXX) -I.. $(CXXFLAGS) fullscreen.o $(LINKFLTKGL) $(LINKFLTK) $(GLDLIBS) -o $@
|
2001-12-14 22:34:30 +03:00
|
|
|
$(POSTBUILD) $@ ../FL/mac.r
|
2001-12-13 00:33:34 +03:00
|
|
|
glpuzzle$(EXEEXT): glpuzzle.o
|
|
|
|
echo Linking $@...
|
|
|
|
$(CXX) -I.. $(CXXFLAGS) glpuzzle.o $(LINKFLTKGL) $(LINKFLTK) $(GLDLIBS) -o $@
|
2001-12-14 22:34:30 +03:00
|
|
|
$(POSTBUILD) $@ ../FL/mac.r
|
2001-12-13 00:33:34 +03:00
|
|
|
gl_overlay$(EXEEXT): gl_overlay.o
|
|
|
|
echo Linking $@...
|
|
|
|
$(CXX) -I.. $(CXXFLAGS) gl_overlay.o $(LINKFLTKGL) $(LINKFLTK) $(GLDLIBS) -o $@
|
2001-12-14 22:34:30 +03:00
|
|
|
$(POSTBUILD) $@ ../FL/mac.r
|
2001-12-30 08:16:10 +03:00
|
|
|
shiny$(EXEEXT): shiny_panel.o shiny.o
|
2001-12-13 00:33:34 +03:00
|
|
|
echo Linking $@...
|
2001-12-30 08:16:10 +03:00
|
|
|
$(CXX) -I.. $(CXXFLAGS) shiny.o shiny_panel.o $(LINKFLTKGL) $(LINKFLTK) $(GLDLIBS) -o $@
|
2001-12-14 22:34:30 +03:00
|
|
|
$(POSTBUILD) $@ ../FL/mac.r
|
2002-01-01 16:11:29 +03:00
|
|
|
shiny_panel.o: shiny_panel.h ../fluid/fluid
|
2001-12-14 19:48:13 +03:00
|
|
|
|
2001-12-13 00:33:34 +03:00
|
|
|
shape$(EXEEXT): shape.o
|
|
|
|
echo Linking $@...
|
|
|
|
$(CXX) -I.. $(CXXFLAGS) shape.o $(LINKFLTKGL) $(LINKFLTK) $(GLDLIBS) -o $@
|
2001-12-14 22:34:30 +03:00
|
|
|
$(POSTBUILD) $@ ../FL/mac.r
|
1998-10-21 21:15:44 +04:00
|
|
|
|
2002-01-01 16:11:29 +03:00
|
|
|
fast_slow.cxx: ../fluid/fluid
|
|
|
|
inactive.cxx: ../fluid/fluid
|
|
|
|
radio.cxx: ../fluid/fluid
|
|
|
|
resize.cxx: ../fluid/fluid
|
|
|
|
tabs.cxx: ../fluid/fluid
|
|
|
|
valuators.cxx: ../fluid/fluid
|
|
|
|
|
1998-10-06 22:21:25 +04:00
|
|
|
# If you have libjpeg installed, you might want to try this test program:
|
|
|
|
|
2001-12-13 00:33:34 +03:00
|
|
|
jpeg_image$(EXEEXT): jpeg_image.o
|
|
|
|
echo Linking $@...
|
|
|
|
$(CXX) -I.. $(CXXFLAGS) jpeg_image.o $(LINKFLTK) $(LDLIBS) -ljpeg -lXext -o $@
|
2001-12-14 22:34:30 +03:00
|
|
|
$(POSTBUILD) $@ ../FL/mac.r
|
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)
|
1998-10-21 20:46:07 +04:00
|
|
|
|
1998-10-06 22:21:25 +04:00
|
|
|
clean:
|
2001-11-30 01:22:08 +03:00
|
|
|
-@ rm -f $(ALL) $(GLALL) jpeg_image *.o core *~
|
1998-10-21 01:06:19 +04:00
|
|
|
|
1998-10-22 02:03:53 +04:00
|
|
|
install:
|
|
|
|
@echo Nothing to install in test directory.
|
|
|
|
|
2001-11-20 00:25:35 +03:00
|
|
|
uninstall:
|
|
|
|
@echo Nothing to uninstall in test directory.
|
|
|
|
|
1998-10-21 01:06:19 +04:00
|
|
|
#
|
2002-01-03 17:08:08 +03:00
|
|
|
# End of "$Id: Makefile,v 1.19.2.7.2.27 2002/01/03 14:08:08 easysw Exp $".
|
1998-10-21 01:06:19 +04:00
|
|
|
#
|