1998-10-21 01:06:19 +04:00
|
|
|
#
|
2001-08-05 20:28:03 +04:00
|
|
|
# "$Id: Makefile,v 1.19.2.7.2.6 2001/08/05 16:28:03 easysw Exp $"
|
1998-10-21 01:06:19 +04:00
|
|
|
#
|
|
|
|
# Test/example program makefile for the Fast Light Tool Kit (FLTK).
|
|
|
|
#
|
2001-01-22 18:13:41 +03:00
|
|
|
# Copyright 1998-2001 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-08-02 22:15:44 +04:00
|
|
|
CubeMain.cxx CubeView.cxx 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 cursor.cxx curve.cxx demo.cxx \
|
|
|
|
doublebuffer.cxx editor.cxx file_chooser.cxx fonts.cxx \
|
|
|
|
forms.cxx fractals.cxx fullscreen.cxx gl_overlay.cxx \
|
2001-08-02 23:43:49 +04:00
|
|
|
glpuzzle.cxx hello.cxx help.cxx iconize.cxx image.cxx input.cxx \
|
2001-08-02 22:15:44 +04:00
|
|
|
keyboard.cxx label.cxx list_visuals.cxx mandelbrot.cxx \
|
|
|
|
menubar.cxx message.cxx minimum.cxx navigation.cxx \
|
|
|
|
output.cxx overlay.cxx pixmap.cxx pixmap_browser.cxx \
|
|
|
|
radio.cxx resizebox.cxx scroll.cxx shape.cxx shiny.cxx \
|
|
|
|
subwindow.cxx symbols.cxx tabs.cxx tile.cxx \
|
|
|
|
valuators.cxx fast_slow.cxx resize.cxx pack.cxx \
|
|
|
|
inactive.cxx line_style.cxx
|
|
|
|
|
|
|
|
ALL = adjuster arc ask bitmap boxtype browser button buttons \
|
|
|
|
checkers clock colbrowser color_chooser cursor curve \
|
|
|
|
demo doublebuffer editor file_chooser fonts forms hello \
|
2001-08-02 23:43:49 +04:00
|
|
|
help iconize image input keyboard label list_visuals \
|
2001-08-02 22:15:44 +04:00
|
|
|
mandelbrot menubar message minimum navigation output \
|
|
|
|
overlay pixmap pixmap_browser radio resizebox scroll \
|
|
|
|
subwindow symbols tabs tile valuators fast_slow resize \
|
|
|
|
pack inactive line_style
|
|
|
|
|
|
|
|
GLALL = CubeView cube fullscreen fractals gl_overlay glpuzzle shiny shape
|
|
|
|
|
|
|
|
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 $<
|
|
|
|
|
|
|
|
.fl:
|
|
|
|
echo Generating, compiling, and linking $@...
|
|
|
|
../fluid/fluid -c $<
|
2001-08-02 22:08:36 +04:00
|
|
|
$(CXX) -I.. $(CXXFLAGS) $@.cxx $(LINKFLTK) $(LDLIBS) -o $@
|
2000-06-03 16:04:12 +04:00
|
|
|
|
|
|
|
|
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-08-02 23:43:49 +04:00
|
|
|
help: help.cxx
|
|
|
|
echo Compiling and linking $@...
|
|
|
|
$(CXX) -I.. $(CXXFLAGS) help.cxx -o $@ $(LINKFLTK) $(LDLIBS) $(IMAGELIBS)
|
2001-08-02 22:08:36 +04:00
|
|
|
keyboard: keyboard.cxx keyboard_ui.cxx
|
|
|
|
echo Compiling and linking $@...
|
|
|
|
$(CXX) -I.. $(CXXFLAGS) keyboard.cxx $(LINKFLTK) $(LDLIBS) -o $@
|
|
|
|
mandelbrot: mandelbrot.cxx mandelbrot_ui.cxx
|
|
|
|
echo Compiling and linking $@...
|
|
|
|
$(CXX) -I.. $(CXXFLAGS) mandelbrot.cxx $(LINKFLTK) $(LDLIBS) -o $@
|
|
|
|
|
|
|
|
# OpenGL demos...
|
1999-02-23 00:33:55 +03:00
|
|
|
CubeView: CubeMain.o CubeView.o CubeViewUI.o
|
2000-04-27 04:17:54 +04:00
|
|
|
echo Compiling and linking $@...
|
2001-08-02 22:08:36 +04:00
|
|
|
$(CXX) $(CXXFLAGS) CubeMain.o CubeView.o CubeViewUI.o \
|
|
|
|
$(LINKFLTKGL) $(LINKFLTK) $(GLDLIBS) -o $@
|
1999-02-23 00:52:17 +03:00
|
|
|
CubeMain.o: CubeViewUI.h CubeView.h
|
|
|
|
CubeView.o: CubeView.h
|
|
|
|
|
1999-03-25 18:26:44 +03:00
|
|
|
cube: cube.cxx
|
2000-04-27 04:17:54 +04:00
|
|
|
echo Compiling and linking $@...
|
2001-08-02 22:08:36 +04:00
|
|
|
$(CXX) -I.. $(CXXFLAGS) cube.cxx $(LINKFLTKGL) $(LINKFLTK) $(GLDLIBS) -o $@
|
1999-03-25 18:26:44 +03:00
|
|
|
fractals: fractals.cxx
|
2000-04-27 04:17:54 +04:00
|
|
|
echo Compiling and linking $@...
|
2001-08-02 22:08:36 +04:00
|
|
|
$(CXX) -I.. $(CXXFLAGS) fractals.cxx $(LINKFLTKGL) $(LINKFLTK) $(GLDLIBS) -o $@
|
1999-03-25 18:26:44 +03:00
|
|
|
fullscreen: fullscreen.cxx
|
2000-04-27 04:17:54 +04:00
|
|
|
echo Compiling and linking $@...
|
2001-08-02 22:08:36 +04:00
|
|
|
$(CXX) -I.. $(CXXFLAGS) fullscreen.cxx $(LINKFLTKGL) $(LINKFLTK) $(GLDLIBS) -o $@
|
1999-03-25 18:26:44 +03:00
|
|
|
glpuzzle: glpuzzle.cxx
|
2000-04-27 04:17:54 +04:00
|
|
|
echo Compiling and linking $@...
|
2001-08-02 22:08:36 +04:00
|
|
|
$(CXX) -I.. $(CXXFLAGS) glpuzzle.cxx $(LINKFLTKGL) $(LINKFLTK) $(GLDLIBS) -o $@
|
1999-03-25 18:26:44 +03:00
|
|
|
gl_overlay: gl_overlay.cxx
|
2000-04-27 04:17:54 +04:00
|
|
|
echo Compiling and linking $@...
|
2001-08-02 22:08:36 +04:00
|
|
|
$(CXX) -I.. $(CXXFLAGS) gl_overlay.cxx $(LINKFLTKGL) $(LINKFLTK) $(GLDLIBS) -o $@
|
1998-12-06 17:59:14 +03:00
|
|
|
shiny: shiny.cxx shiny_panel.cxx
|
2000-04-27 04:17:54 +04:00
|
|
|
echo Compiling and linking $@...
|
2001-08-02 22:08:36 +04:00
|
|
|
$(CXX) -I.. $(CXXFLAGS) shiny.cxx $(LINKFLTKGL) $(LINKFLTK) $(GLDLIBS) -o $@
|
1999-03-25 18:26:44 +03:00
|
|
|
shape: shape.cxx
|
2000-04-27 04:17:54 +04:00
|
|
|
echo Compiling and linking $@...
|
2001-08-02 22:08:36 +04:00
|
|
|
$(CXX) -I.. $(CXXFLAGS) shape.cxx $(LINKFLTKGL) $(LINKFLTK) $(GLDLIBS) -o $@
|
1998-10-21 21:15:44 +04:00
|
|
|
|
1998-10-06 22:21:25 +04:00
|
|
|
# If you have libjpeg installed, you might want to try this test program:
|
|
|
|
|
1998-12-06 17:59:14 +03:00
|
|
|
jpeg_image: jpeg_image.cxx
|
2000-04-27 04:17:54 +04:00
|
|
|
echo Compiling and linking $@...
|
2001-08-02 22:08:36 +04:00
|
|
|
$(CXX) -I.. $(CXXFLAGS) -I../../../local/jpeg-6b -L../../../local/jpeg-6b jpeg_image.cxx $(LINKFLTK) $(LDLIBS) -ljpeg -lXext -o $@
|
1998-10-06 22:21:25 +04:00
|
|
|
|
1998-10-21 20:46:07 +04:00
|
|
|
depend:
|
2001-08-02 19:32:00 +04:00
|
|
|
# $(MAKEDEPEND) -I.. $(CXXFLAGS) $(CPPFILES) > makedepend
|
|
|
|
makedepend -Y -I.. -f makedepend $(CPPFILES)
|
1998-10-21 20:46:07 +04:00
|
|
|
|
1998-10-06 22:21:25 +04:00
|
|
|
clean:
|
1998-10-21 22:15:03 +04:00
|
|
|
-@ rm -f $(ALL) 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.
|
|
|
|
|
1998-10-21 01:06:19 +04:00
|
|
|
#
|
2001-08-05 20:28:03 +04:00
|
|
|
# End of "$Id: Makefile,v 1.19.2.7.2.6 2001/08/05 16:28:03 easysw Exp $".
|
1998-10-21 01:06:19 +04:00
|
|
|
#
|