summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2001-08-02 18:15:44 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2001-08-02 18:15:44 +0000
commit58b0f306be3f6d5a1161d83d1ac6e0e3b8d8ad19 (patch)
tree0eee998511cb87642fa3c71e6f18fa3b29e40414
parentbff75e491ab2e03e02ff52262c79dbdc1533b88a (diff)
Don't build OpenGL demos if OpenGL is not available or disabled.
Fix depend rule for src directory (wasn't doing OpenGL files) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1520 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--configure.in8
-rw-r--r--makeinclude.in7
-rw-r--r--src/Makefile6
-rw-r--r--test/Makefile54
4 files changed, 45 insertions, 30 deletions
diff --git a/configure.in b/configure.in
index 7e829bfdb..a750e4a10 100644
--- a/configure.in
+++ b/configure.in
@@ -1,7 +1,7 @@
dnl -*- sh -*-
dnl the "configure" script is made from this by running GNU "autoconf"
dnl
-dnl "$Id: configure.in,v 1.33.2.31.2.1 2001/08/02 18:08:36 easysw Exp $"
+dnl "$Id: configure.in,v 1.33.2.31.2.2 2001/08/02 18:15:44 easysw Exp $"
dnl
dnl Configuration script for the Fast Light Tool Kit (FLTK).
dnl
@@ -31,6 +31,7 @@ AC_PROG_RANLIB
LINKFLTK="-lfltk"
LINKFLTKGL="-lfltkgl"
+GLDEMOS="gldemos"
LIBNAME="../lib/libfltk.a"
GLLIBNAME="../lib/libfltkgl.a"
@@ -197,13 +198,16 @@ if test x$enable_gl != xno; then
LINKFLTKGL=""
GLLIBNAME=""
GLDSONAME=""
+ GLDEMOS=""
fi
else
LINKFLTKGL=""
GLLIBNAME=""
GLDSONAME=""
+ GLDEMOS=""
fi
+AC_SUBST(GLDEMOS)
AC_SUBST(GLLIB)
dnl Check for the Xdbe extension...
@@ -399,5 +403,5 @@ AC_CONFIG_HEADER(config.h:configh.in)
AC_OUTPUT(makeinclude)
dnl
-dnl End of "$Id: configure.in,v 1.33.2.31.2.1 2001/08/02 18:08:36 easysw Exp $".
+dnl End of "$Id: configure.in,v 1.33.2.31.2.2 2001/08/02 18:15:44 easysw Exp $".
dnl
diff --git a/makeinclude.in b/makeinclude.in
index 6fdac64bd..97d543bd9 100644
--- a/makeinclude.in
+++ b/makeinclude.in
@@ -1,5 +1,5 @@
#
-# "$Id: makeinclude.in,v 1.7.2.11.2.1 2001/08/02 18:08:36 easysw Exp $"
+# "$Id: makeinclude.in,v 1.7.2.11.2.2 2001/08/02 18:15:44 easysw Exp $"
#
# Make include file for the Fast Light Tool Kit (FLTK).
# @configure_input@
@@ -62,6 +62,9 @@ GLDLIBS =@LDFLAGS@ @LIBS@ @GLLIB@ -lX11 -lXext @X_EXTRA_LIBS@ -lm
LINKFLTK =-L../lib @LINKFLTK@
LINKFLTKGL =-L../lib @LINKFLTKGL@
+# Do we build the OpenGL demos?
+GLDEMOS =@GLDEMOS@
+
# Man page extensions...
CAT1EXT =@CAT1EXT@
CAT3EXT =@CAT3EXT@
@@ -97,5 +100,5 @@ CAT3EXT =@CAT3EXT@
mv t.z $@
#
-# End of "$Id: makeinclude.in,v 1.7.2.11.2.1 2001/08/02 18:08:36 easysw Exp $".
+# End of "$Id: makeinclude.in,v 1.7.2.11.2.2 2001/08/02 18:15:44 easysw Exp $".
#
diff --git a/src/Makefile b/src/Makefile
index 64f59dd5e..8ea2c0eeb 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,5 +1,5 @@
#
-# "$Id: Makefile,v 1.18.2.14.2.4 2001/08/02 18:08:36 easysw Exp $"
+# "$Id: Makefile,v 1.18.2.14.2.5 2001/08/02 18:15:44 easysw Exp $"
#
# Library makefile for the Fast Light Tool Kit (FLTK).
#
@@ -198,7 +198,7 @@ clean :
depend:
# $(MAKEDEPEND) -I.. $(CXXFLAGS) $(CPPFILES) $(CFILES) > makedepend
- makedepend -Y -I.. -f makedepend $(CPPFILES) $(CFILES)
+ makedepend -Y -I.. -f makedepend $(CPPFILES) $(GLCPPFILES) $(CFILES)
include makedepend
@@ -250,5 +250,5 @@ install: $(LIBNAME) $(DSONAME) $(GLLIBNAME) $(GLDSONAME)
ln -s FL $(includedir)/Fl
#
-# End of "$Id: Makefile,v 1.18.2.14.2.4 2001/08/02 18:08:36 easysw Exp $".
+# End of "$Id: Makefile,v 1.18.2.14.2.5 2001/08/02 18:15:44 easysw Exp $".
#
diff --git a/test/Makefile b/test/Makefile
index f551801b3..b32d59c55 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -1,5 +1,5 @@
#
-# "$Id: Makefile,v 1.19.2.7.2.2 2001/08/02 18:08:36 easysw Exp $"
+# "$Id: Makefile,v 1.19.2.7.2.3 2001/08/02 18:15:44 easysw Exp $"
#
# Test/example program makefile for the Fast Light Tool Kit (FLTK).
#
@@ -24,27 +24,35 @@
#
CPPFILES =\
- 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 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 line_style.cxx
-
-ALL = CubeView adjuster arc ask bitmap boxtype browser button buttons checkers \
- clock colbrowser color_chooser cube cursor curve demo doublebuffer \
- editor 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 line_style
-
-all: $(ALL)
+ 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 \
+ 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 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 \
+ iconize image input keyboard label list_visuals \
+ 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)
include ../makeinclude
@@ -116,5 +124,5 @@ install:
@echo Nothing to install in test directory.
#
-# End of "$Id: Makefile,v 1.19.2.7.2.2 2001/08/02 18:08:36 easysw Exp $".
+# End of "$Id: Makefile,v 1.19.2.7.2.3 2001/08/02 18:15:44 easysw Exp $".
#