1998-10-21 01:06:19 +04:00
|
|
|
#
|
1998-10-22 02:03:53 +04:00
|
|
|
# "$Id: Makefile,v 1.11 1998/10/21 22:03:53 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 =\
|
|
|
|
adjuster.C arc.C ask.C bitmap.C boxtype.C browser.C button.C \
|
|
|
|
buttons.C checkers.C clock.C colbrowser.C color_chooser.C \
|
|
|
|
cube.C cursor.C curve.C demo.C doublebuffer.C file_chooser.C \
|
|
|
|
fonts.C forms.C fractals.C fullscreen.C gl_overlay.C \
|
|
|
|
glpuzzle.C hello.C iconize.C image.C input.C keyboard.C \
|
|
|
|
label.C list_visuals.C mandelbrot.C menubar.C message.C \
|
|
|
|
minimum.C navigation.C output.C overlay.C pixmap.C \
|
|
|
|
pixmap_browser.C radio.C resizebox.C scroll.C shape.C shiny.C \
|
|
|
|
subwindow.C symbols.C tabs.C tile.C valuators.C fast_slow.C \
|
|
|
|
resize.C pack.C inactive.C style.C
|
|
|
|
|
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 \
|
|
|
|
symbols tabs tile valuators fast_slow resize pack inactive style
|
|
|
|
|
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-10-21 22:15:03 +04:00
|
|
|
.SUFFIXES: .C .c .o .fl .H
|
1998-10-06 22:21:25 +04:00
|
|
|
|
|
|
|
.C:
|
|
|
|
@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-10-21 22:15:03 +04:00
|
|
|
.fl.C:
|
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 $<
|
|
|
|
@$(CXX) -I.. $(CXXFLAGS) $@.C -L../lib -lfltk $(LDLIBS) -o $@
|
|
|
|
|
1998-10-06 22:21:25 +04:00
|
|
|
# Programs needing the OpenGL libraries:
|
|
|
|
cube: cube.C
|
|
|
|
@echo $@:
|
1998-10-21 22:15:03 +04:00
|
|
|
@$(CXX) -I.. $(CXXFLAGS) cube.C -L../lib -lfltk $(GLDLIBS) -o $@
|
1998-10-06 22:21:25 +04:00
|
|
|
fullscreen: fullscreen.C
|
|
|
|
@echo $@:
|
1998-10-21 22:15:03 +04:00
|
|
|
@$(CXX) -I.. $(CXXFLAGS) fullscreen.C -L../lib -lfltk $(GLDLIBS) -o $@
|
1998-10-06 22:21:25 +04:00
|
|
|
fractals: fractals.C
|
|
|
|
@echo $@:
|
1998-10-21 22:15:03 +04:00
|
|
|
@$(CXX) -I.. $(CXXFLAGS) fractals.C -L../lib -lfltk $(GLDLIBS) -o $@
|
1998-10-06 22:21:25 +04:00
|
|
|
gl_overlay: gl_overlay.C
|
|
|
|
@echo $@:
|
1998-10-21 22:15:03 +04:00
|
|
|
@$(CXX) -I.. $(CXXFLAGS) gl_overlay.C -L../lib -lfltk $(GLDLIBS) -o $@
|
1998-10-06 22:21:25 +04:00
|
|
|
glpuzzle: glpuzzle.C
|
|
|
|
@echo $@:
|
1998-10-21 22:15:03 +04:00
|
|
|
@$(CXX) -I.. $(CXXFLAGS) glpuzzle.C -L../lib -lfltk $(GLDLIBS) -o $@
|
1998-10-06 22:21:25 +04:00
|
|
|
shape: shape.C
|
|
|
|
@echo $@:
|
1998-10-21 22:15:03 +04:00
|
|
|
@$(CXX) -I.. $(CXXFLAGS) shape.C -L../lib -lfltk $(GLDLIBS) -o $@
|
1998-10-21 21:15:44 +04:00
|
|
|
shiny: shiny.C shiny_panel.C
|
1998-10-06 22:21:25 +04:00
|
|
|
@echo $@:
|
1998-10-21 22:15:03 +04:00
|
|
|
@$(CXX) -I.. $(CXXFLAGS) shiny.C -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"...
|
|
|
|
keyboard: keyboard.C keyboard_ui.C
|
|
|
|
@echo $@:
|
1998-10-21 22:15:03 +04:00
|
|
|
@$(CXX) -I.. $(CXXFLAGS) keyboard.C -L../lib -lfltk $(LDLIBS) -o $@
|
1998-10-21 21:15:44 +04:00
|
|
|
mandelbrot: mandelbrot.C mandelbrot_ui.C
|
|
|
|
@echo $@:
|
1998-10-21 22:15:03 +04:00
|
|
|
@$(CXX) -I.. $(CXXFLAGS) mandelbrot.C -L../lib -lfltk $(LDLIBS) -o $@
|
1998-10-21 21:15:44 +04:00
|
|
|
style: style.C style_ui.C
|
|
|
|
@echo $@:
|
1998-10-21 22:15:03 +04:00
|
|
|
@$(CXX) -I.. $(CXXFLAGS) style.C -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:
|
|
|
|
|
|
|
|
jpeg_image: jpeg_image.C
|
|
|
|
@echo $@:
|
1998-10-21 22:15:03 +04:00
|
|
|
@$(CXX) -I.. $(CXXFLAGS) -I../../../local/jpeg-6b -L../../../local/jpeg-6b jpeg_image.C -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-10-22 02:03:53 +04:00
|
|
|
# End of "$Id: Makefile,v 1.11 1998/10/21 22:03:53 mike Exp $".
|
1998-10-21 01:06:19 +04:00
|
|
|
#
|