1998-10-21 01:06:19 +04:00
|
|
|
#
|
1998-12-06 17:59:14 +03:00
|
|
|
# "$Id: Makefile,v 1.13 1998/12/06 14:59:14 mike Exp $"
|
1998-10-21 01:06:19 +04:00
|
|
|
#
|
|
|
|
# Test/example program makefile for the Fast Light Tool Kit (FLTK).
|
|
|
|
#
|
|
|
|
# Copyright 1998 by Bill Spitzak and others.
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
# Please report all bugs and problems to "fltk-bugs@easysw.com".
|
|
|
|
#
|
|
|
|
|
1998-10-21 20:53:14 +04:00
|
|
|
CPPFILES =\
|
1998-12-06 17:59:14 +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 cursor.cxx curve.cxx demo.cxx doublebuffer.cxx file_chooser.cxx \
|
|
|
|
fonts.cxx forms.cxx fractals.cxx fullscreen.cxx gl_overlay.cxx \
|
|
|
|
glpuzzle.cxx hello.cxx iconize.cxx image.cxx input.cxx 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
|
1998-10-21 20:53:14 +04:00
|
|
|
|
1998-10-06 22:21:25 +04:00
|
|
|
ALL = adjuster arc ask bitmap boxtype browser button buttons checkers \
|
|
|
|
clock colbrowser color_chooser cube cursor curve demo doublebuffer \
|
|
|
|
file_chooser fonts forms fractals fullscreen gl_overlay glpuzzle \
|
|
|
|
hello iconize image input keyboard label list_visuals mandelbrot \
|
|
|
|
menubar message minimum navigation output overlay pixmap \
|
|
|
|
pixmap_browser radio resizebox scroll shape shiny subwindow \
|
1998-12-02 18:39:39 +03:00
|
|
|
symbols tabs tile valuators fast_slow resize pack inactive
|
1998-10-06 22:21:25 +04:00
|
|
|
|
1998-10-21 22:15:03 +04:00
|
|
|
all: $(ALL)
|
1998-10-06 22:21:25 +04:00
|
|
|
|
|
|
|
include ../makeinclude
|
|
|
|
|
1998-10-21 22:15:03 +04:00
|
|
|
$(ALL): ../lib/$(LIBNAME)
|
1998-10-06 22:21:25 +04:00
|
|
|
|
1998-12-06 17:59:14 +03:00
|
|
|
.SUFFIXES: .cxx .c .o .fl .H
|
1998-10-06 22:21:25 +04:00
|
|
|
|
1998-12-06 17:59:14 +03:00
|
|
|
.cxx:
|
1998-10-06 22:21:25 +04:00
|
|
|
@echo $@:
|
1998-10-21 22:15:03 +04:00
|
|
|
@$(CXX) -I.. $(CXXFLAGS) $< -L../lib -lfltk $(LDLIBS) -o $@
|
1998-10-06 22:21:25 +04:00
|
|
|
|
1998-12-06 17:59:14 +03:00
|
|
|
.fl.cxx:
|
1998-10-21 21:20:18 +04:00
|
|
|
@echo $@:
|
|
|
|
@../fluid/fluid -c $<
|
|
|
|
|
1998-10-22 00:10:23 +04:00
|
|
|
.fl:
|
|
|
|
@echo $@:
|
|
|
|
@../fluid/fluid -c $<
|
1998-12-06 17:59:14 +03:00
|
|
|
@$(CXX) -I.. $(CXXFLAGS) $@.cxx -L../lib -lfltk $(LDLIBS) -o $@
|
1998-10-22 00:10:23 +04:00
|
|
|
|
1998-10-06 22:21:25 +04:00
|
|
|
# Programs needing the OpenGL libraries:
|
1998-12-06 17:59:14 +03:00
|
|
|
cube: cube.cxx
|
1998-10-06 22:21:25 +04:00
|
|
|
@echo $@:
|
1998-12-06 17:59:14 +03:00
|
|
|
@$(CXX) -I.. $(CXXFLAGS) cube.cxx -L../lib -lfltk $(GLDLIBS) -o $@
|
|
|
|
fullscreen: fullscreen.cxx
|
1998-10-06 22:21:25 +04:00
|
|
|
@echo $@:
|
1998-12-06 17:59:14 +03:00
|
|
|
@$(CXX) -I.. $(CXXFLAGS) fullscreen.cxx -L../lib -lfltk $(GLDLIBS) -o $@
|
|
|
|
fractals: fractals.cxx
|
1998-10-06 22:21:25 +04:00
|
|
|
@echo $@:
|
1998-12-06 17:59:14 +03:00
|
|
|
@$(CXX) -I.. $(CXXFLAGS) fractals.cxx -L../lib -lfltk $(GLDLIBS) -o $@
|
|
|
|
gl_overlay: gl_overlay.cxx
|
1998-10-06 22:21:25 +04:00
|
|
|
@echo $@:
|
1998-12-06 17:59:14 +03:00
|
|
|
@$(CXX) -I.. $(CXXFLAGS) gl_overlay.cxx -L../lib -lfltk $(GLDLIBS) -o $@
|
|
|
|
glpuzzle: glpuzzle.cxx
|
1998-10-06 22:21:25 +04:00
|
|
|
@echo $@:
|
1998-12-06 17:59:14 +03:00
|
|
|
@$(CXX) -I.. $(CXXFLAGS) glpuzzle.cxx -L../lib -lfltk $(GLDLIBS) -o $@
|
|
|
|
shape: shape.cxx
|
1998-10-06 22:21:25 +04:00
|
|
|
@echo $@:
|
1998-12-06 17:59:14 +03:00
|
|
|
@$(CXX) -I.. $(CXXFLAGS) shape.cxx -L../lib -lfltk $(GLDLIBS) -o $@
|
|
|
|
shiny: shiny.cxx shiny_panel.cxx
|
1998-10-06 22:21:25 +04:00
|
|
|
@echo $@:
|
1998-12-06 17:59:14 +03:00
|
|
|
@$(CXX) -I.. $(CXXFLAGS) shiny.cxx -L../lib -lfltk $(GLDLIBS) -o $@
|
1998-10-06 22:21:25 +04:00
|
|
|
|
1998-10-21 21:15:44 +04:00
|
|
|
# Other programs needing special "help"...
|
1998-12-06 17:59:14 +03:00
|
|
|
keyboard: keyboard.cxx keyboard_ui.cxx
|
1998-10-21 21:15:44 +04:00
|
|
|
@echo $@:
|
1998-12-06 17:59:14 +03:00
|
|
|
@$(CXX) -I.. $(CXXFLAGS) keyboard.cxx -L../lib -lfltk $(LDLIBS) -o $@
|
|
|
|
mandelbrot: mandelbrot.cxx mandelbrot_ui.cxx
|
1998-10-21 21:15:44 +04:00
|
|
|
@echo $@:
|
1998-12-06 17:59:14 +03:00
|
|
|
@$(CXX) -I.. $(CXXFLAGS) mandelbrot.cxx -L../lib -lfltk $(LDLIBS) -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
|
1998-10-06 22:21:25 +04:00
|
|
|
@echo $@:
|
1998-12-06 17:59:14 +03:00
|
|
|
@$(CXX) -I.. $(CXXFLAGS) -I../../../local/jpeg-6b -L../../../local/jpeg-6b jpeg_image.cxx -L../lib -lfltk $(LDLIBS) -ljpeg -lXext -o $@
|
1998-10-06 22:21:25 +04:00
|
|
|
|
1998-10-21 20:46:07 +04:00
|
|
|
depend:
|
1998-10-21 20:53:14 +04:00
|
|
|
$(MAKEDEPEND) -I.. $(CXXFLAGS) $(CPPFILES) > makedepend
|
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
|
|
|
#
|
1998-12-06 17:59:14 +03:00
|
|
|
# End of "$Id: Makefile,v 1.13 1998/12/06 14:59:14 mike Exp $".
|
1998-10-21 01:06:19 +04:00
|
|
|
#
|