mirror of https://github.com/fltk/fltk
Update "clean" targets to properly handle core files, remove backup files,
etc. Add "install" target to test directory which installs the example programs. Install the config.h file in the examples directory. Make sure the example programs compile outside the FLTK source dir. Add example programs to fltk.list.in. Fix missing redraw() in x_cb() in FLUID... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4287 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
91c3b8231d
commit
b41cf28662
4
CHANGES
4
CHANGES
|
@ -2,6 +2,10 @@ CHANGES IN FLTK 1.1.7
|
||||||
|
|
||||||
- Documentation fixes (STR #648, STR #692, STR #730, STR
|
- Documentation fixes (STR #648, STR #692, STR #730, STR
|
||||||
#744, STR #745)
|
#744, STR #745)
|
||||||
|
- The example programs can now compile separate from the
|
||||||
|
FLTK source distribution (STR #809)
|
||||||
|
- The example programs are now installed with the
|
||||||
|
documentation (STR #809)
|
||||||
- Fixed the drawing of the Fl_Browser_ selection box (STR
|
- Fixed the drawing of the Fl_Browser_ selection box (STR
|
||||||
#786)
|
#786)
|
||||||
- Dropped Codewarrier project files and support.
|
- Dropped Codewarrier project files and support.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# "$Id: Makefile.in,v 1.1.2.9 2004/10/18 20:22:21 easysw Exp $"
|
# "$Id$"
|
||||||
#
|
#
|
||||||
# Header makefile for the Fast Light Tool Kit (FLTK).
|
# Header makefile for the Fast Light Tool Kit (FLTK).
|
||||||
#
|
#
|
||||||
|
@ -27,6 +27,10 @@ include ../makeinclude
|
||||||
|
|
||||||
all:
|
all:
|
||||||
|
|
||||||
|
clean:
|
||||||
|
|
||||||
|
depend:
|
||||||
|
|
||||||
install:
|
install:
|
||||||
echo "Installing include files in $(DESTDIR)$(includedir)..."
|
echo "Installing include files in $(DESTDIR)$(includedir)..."
|
||||||
-$(MKDIR) -p $(DESTDIR)$(includedir)
|
-$(MKDIR) -p $(DESTDIR)$(includedir)
|
||||||
|
@ -54,5 +58,5 @@ uninstall:
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# End of "$Id: Makefile.in,v 1.1.2.9 2004/10/18 20:22:21 easysw Exp $".
|
# End of "$Id$".
|
||||||
#
|
#
|
||||||
|
|
|
@ -162,9 +162,9 @@ IMAGEFILES = \
|
||||||
Fl_Check_Button.gif \
|
Fl_Check_Button.gif \
|
||||||
fl_choice.gif \
|
fl_choice.gif \
|
||||||
fl_color_chooser.jpg \
|
fl_color_chooser.jpg \
|
||||||
FL.gif \
|
|
||||||
Fl_File_Chooser.jpg \
|
Fl_File_Chooser.jpg \
|
||||||
Fl_File_Input.gif \
|
Fl_File_Input.gif \
|
||||||
|
FL.gif \
|
||||||
Fl_Help_Dialog.gif \
|
Fl_Help_Dialog.gif \
|
||||||
fl_input.gif \
|
fl_input.gif \
|
||||||
Fl_Light_Button.gif \
|
Fl_Light_Button.gif \
|
||||||
|
@ -192,6 +192,7 @@ IMAGEFILES = \
|
||||||
Fl_Value_Input.gif \
|
Fl_Value_Input.gif \
|
||||||
Fl_Value_Output.gif \
|
Fl_Value_Output.gif \
|
||||||
hello.C.gif \
|
hello.C.gif \
|
||||||
|
input_choice.jpg \
|
||||||
menubar.gif \
|
menubar.gif \
|
||||||
menu_button.gif \
|
menu_button.gif \
|
||||||
menu.gif \
|
menu.gif \
|
||||||
|
@ -207,6 +208,7 @@ IMAGEFILES = \
|
||||||
valuators.gif \
|
valuators.gif \
|
||||||
value_slider.gif
|
value_slider.gif
|
||||||
|
|
||||||
|
|
||||||
MANPAGES = fltk.$(CAT3EXT) fltk-config.$(CAT1EXT) fluid.$(CAT1EXT)
|
MANPAGES = fltk.$(CAT3EXT) fltk-config.$(CAT1EXT) fluid.$(CAT1EXT)
|
||||||
|
|
||||||
all: $(MANPAGES)
|
all: $(MANPAGES)
|
||||||
|
@ -217,6 +219,7 @@ clean:
|
||||||
$(RM) fltk.ps
|
$(RM) fltk.ps
|
||||||
$(RM) fltk.pdf
|
$(RM) fltk.pdf
|
||||||
$(RMDIR) fltk.d
|
$(RMDIR) fltk.d
|
||||||
|
$(RM) *~ *.bck *.bck
|
||||||
|
|
||||||
depend:
|
depend:
|
||||||
|
|
||||||
|
@ -229,8 +232,8 @@ docdir = $(datadir)/doc/fltk
|
||||||
install: $(MANPAGES)
|
install: $(MANPAGES)
|
||||||
echo "Installing documentation files in $(DESTDIR)$(docdir)..."
|
echo "Installing documentation files in $(DESTDIR)$(docdir)..."
|
||||||
-$(MKDIR) $(DESTDIR)$(docdir)
|
-$(MKDIR) $(DESTDIR)$(docdir)
|
||||||
$(CP) $(HTMLFILES) *.gif *.jpg index.html $(DESTDIR)$(docdir)
|
$(CP) $(HTMLFILES) $(IMAGEFILES) index.html $(DESTDIR)$(docdir)
|
||||||
$(CHMOD) 644 $(DESTDIR)$(docdir)/*
|
$(CHMOD) 644 $(DESTDIR)$(docdir)/*.*
|
||||||
echo "Installing man pages in $(DESTDIR)$(mandir)..."
|
echo "Installing man pages in $(DESTDIR)$(mandir)..."
|
||||||
-$(MKDIR) $(DESTDIR)$(mandir)/cat1
|
-$(MKDIR) $(DESTDIR)$(mandir)/cat1
|
||||||
$(CP) fluid.$(CAT1EXT) $(DESTDIR)$(mandir)/cat1
|
$(CP) fluid.$(CAT1EXT) $(DESTDIR)$(mandir)/cat1
|
||||||
|
|
100
fltk.list.in
100
fltk.list.in
|
@ -31,7 +31,13 @@
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%readme README
|
%readme README
|
||||||
%version @FL_MAJOR_VERSION@.@FL_MINOR_VERSION@.@FL_PATCH_VERSION@@FL_RELEASE_VERSION@
|
%version @FL_MAJOR_VERSION@.@FL_MINOR_VERSION@.@FL_PATCH_VERSION@@FL_RELEASE_VERSION@
|
||||||
%description FLTK is a cross-platform GUI toolkit for C++.
|
%description << EOF
|
||||||
|
The Fast Light Tool Kit ("FLTK", pronounced "fulltick") is a
|
||||||
|
cross-platform C++ GUI toolkit for UNIX(r)/Linux(r) (X11),
|
||||||
|
Microsoft(r) Windows(r), and MacOS(r) X. FLTK provides modern
|
||||||
|
GUI functionality without the bloat and supports 3D graphics via
|
||||||
|
OpenGL(r) and its built-in GLUT emulation.
|
||||||
|
EOF
|
||||||
|
|
||||||
$prefix=@prefix@
|
$prefix=@prefix@
|
||||||
$exec_prefix=@exec_prefix@
|
$exec_prefix=@exec_prefix@
|
||||||
|
@ -40,6 +46,7 @@ $datadir=@datadir@
|
||||||
$includedir=@includedir@
|
$includedir=@includedir@
|
||||||
$libdir=@libdir@
|
$libdir=@libdir@
|
||||||
$mandir=@mandir@
|
$mandir=@mandir@
|
||||||
|
$docdir=@docdir@
|
||||||
|
|
||||||
$CAT1EXT=@CAT1EXT@
|
$CAT1EXT=@CAT1EXT@
|
||||||
$CAT3EXT=@CAT3EXT@
|
$CAT3EXT=@CAT3EXT@
|
||||||
|
@ -51,6 +58,59 @@ $GLDSONAME=@GLDSONAME@
|
||||||
$GLLIBNAME=@GLLIBNAME@
|
$GLLIBNAME=@GLLIBNAME@
|
||||||
$FLUID=@FLUID@
|
$FLUID=@FLUID@
|
||||||
|
|
||||||
|
%if DSONAME
|
||||||
|
%system aix
|
||||||
|
f 0555 root sys $libdir/libfltk_s.a src/libfltk_s.a nostrip()
|
||||||
|
%system hpux
|
||||||
|
f 0555 root sys $libdir/libfltk.sl.@FL_API_VERSION@ src/libfltk.sl.@FL_API_VERSION@ nostrip()
|
||||||
|
%system darwin
|
||||||
|
f 0555 root sys $libdir/libfltk.@FL_API_VERSION@.dylib src/libfltk.@FL_API_VERSION@.dylib nostrip()
|
||||||
|
%system !aix !darwin !hpux
|
||||||
|
f 0555 root sys $libdir/libfltk.so.@FL_API_VERSION@ src/libfltk.so.@FL_API_VERSION@ nostrip()
|
||||||
|
%system all
|
||||||
|
|
||||||
|
%system aix
|
||||||
|
f 0555 root sys $libdir/libfltk_forms_s.a src/libfltk_forms_s.a nostrip()
|
||||||
|
%system hpux
|
||||||
|
f 0555 root sys $libdir/libfltk_forms.sl.@FL_API_VERSION@ src/libfltk_forms.sl.@FL_API_VERSION@ nostrip()
|
||||||
|
%system darwin
|
||||||
|
f 0555 root sys $libdir/libfltk_forms.@FL_API_VERSION@.dylib src/libfltk_forms.@FL_API_VERSION@.dylib nostrip()
|
||||||
|
%system !aix !darwin !hpux
|
||||||
|
f 0555 root sys $libdir/libfltk_forms.so.@FL_API_VERSION@ src/libfltk_forms.so.@FL_API_VERSION@ nostrip()
|
||||||
|
%system all
|
||||||
|
|
||||||
|
%system aix
|
||||||
|
f 0555 root sys $libdir/libfltk_images_s.a src/libfltk_images_s.a nostrip()
|
||||||
|
%system hpux
|
||||||
|
f 0555 root sys $libdir/libfltk_images.sl.@FL_API_VERSION@ src/libfltk_images.sl.@FL_API_VERSION@ nostrip()
|
||||||
|
%system darwin
|
||||||
|
f 0555 root sys $libdir/libfltk_images.@FL_API_VERSION@.dylib src/libfltk_images.@FL_API_VERSION@.dylib nostrip()
|
||||||
|
%system !aix !darwin !hpux
|
||||||
|
f 0555 root sys $libdir/libfltk_images.so.@FL_API_VERSION@ src/libfltk_images.so.@FL_API_VERSION@ nostrip()
|
||||||
|
%system all
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if GLDSONAME
|
||||||
|
%system aix
|
||||||
|
f 0555 root sys $libdir/libfltk_gl_s.a src/libfltk_gl_s.a nostrip()
|
||||||
|
%system hpux
|
||||||
|
f 0555 root sys $libdir/libfltk_gl.sl.@FL_API_VERSION@ src/libfltk_gl.sl.@FL_API_VERSION@ nostrip()
|
||||||
|
%system darwin
|
||||||
|
f 0555 root sys $libdir/libfltk_gl.@FL_API_VERSION@.dylib src/libfltk_gl.@FL_API_VERSION@.dylib nostrip()
|
||||||
|
%system !aix !darwin !hpux
|
||||||
|
f 0555 root sys $libdir/libfltk_gl.so.@FL_API_VERSION@ src/libfltk_gl.so.@FL_API_VERSION@ nostrip()
|
||||||
|
%system all
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%subpackage devel
|
||||||
|
%description FLTK Development Environment
|
||||||
|
%description << EOF
|
||||||
|
Install fltk-devel if you need to develop FLTK applications.
|
||||||
|
You'll need to install the fltk package if you plan to run
|
||||||
|
dynamically linked applications.
|
||||||
|
EOF
|
||||||
|
|
||||||
%system darwin
|
%system darwin
|
||||||
f 0444 root sys $includedir/FL/mac.r FL/mac.r
|
f 0444 root sys $includedir/FL/mac.r FL/mac.r
|
||||||
l 0444 root sys /usr/include/gcc/darwin/3.1/g++-v3/FL $includedir/FL
|
l 0444 root sys /usr/include/gcc/darwin/3.1/g++-v3/FL $includedir/FL
|
||||||
|
@ -88,57 +148,37 @@ f 0444 root sys $libdir/libfltk_gl.a lib/libfltk_gl.a
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if DSONAME
|
%if DSONAME
|
||||||
%system aix
|
|
||||||
f 0555 root sys $libdir/libfltk_s.a src/libfltk_s.a nostrip()
|
|
||||||
%system hpux
|
%system hpux
|
||||||
f 0555 root sys $libdir/libfltk.sl.@FL_API_VERSION@ src/libfltk.sl.@FL_API_VERSION@ nostrip()
|
|
||||||
l 0000 root sys $libdir/libfltk.sl libfltk.sl.@FL_API_VERSION@
|
l 0000 root sys $libdir/libfltk.sl libfltk.sl.@FL_API_VERSION@
|
||||||
%system darwin
|
%system darwin
|
||||||
f 0555 root sys $libdir/libfltk.@FL_API_VERSION@.dylib src/libfltk.@FL_API_VERSION@.dylib nostrip()
|
|
||||||
l 0000 root sys $libdir/libfltk.dylib libfltk.@FL_API_VERSION@.dylib
|
l 0000 root sys $libdir/libfltk.dylib libfltk.@FL_API_VERSION@.dylib
|
||||||
%system !aix !darwin !hpux
|
%system !aix !darwin !hpux
|
||||||
f 0555 root sys $libdir/libfltk.so.@FL_API_VERSION@ src/libfltk.so.@FL_API_VERSION@ nostrip()
|
|
||||||
l 0000 root sys $libdir/libfltk.so libfltk.so.@FL_API_VERSION@
|
l 0000 root sys $libdir/libfltk.so libfltk.so.@FL_API_VERSION@
|
||||||
%system all
|
%system all
|
||||||
|
|
||||||
%system aix
|
|
||||||
f 0555 root sys $libdir/libfltk_forms_s.a src/libfltk_forms_s.a nostrip()
|
|
||||||
%system hpux
|
%system hpux
|
||||||
f 0555 root sys $libdir/libfltk_forms.sl.@FL_API_VERSION@ src/libfltk_forms.sl.@FL_API_VERSION@ nostrip()
|
|
||||||
l 0000 root sys $libdir/libfltk_forms.sl libfltk_forms.sl.@FL_API_VERSION@
|
l 0000 root sys $libdir/libfltk_forms.sl libfltk_forms.sl.@FL_API_VERSION@
|
||||||
%system darwin
|
%system darwin
|
||||||
f 0555 root sys $libdir/libfltk_forms.@FL_API_VERSION@.dylib src/libfltk_forms.@FL_API_VERSION@.dylib nostrip()
|
|
||||||
l 0000 root sys $libdir/libfltk_forms.dylib libfltk_forms.@FL_API_VERSION@.dylib
|
l 0000 root sys $libdir/libfltk_forms.dylib libfltk_forms.@FL_API_VERSION@.dylib
|
||||||
%system !aix !darwin !hpux
|
%system !aix !darwin !hpux
|
||||||
f 0555 root sys $libdir/libfltk_forms.so.@FL_API_VERSION@ src/libfltk_forms.so.@FL_API_VERSION@ nostrip()
|
|
||||||
l 0000 root sys $libdir/libfltk_forms.so libfltk_forms.so.@FL_API_VERSION@
|
l 0000 root sys $libdir/libfltk_forms.so libfltk_forms.so.@FL_API_VERSION@
|
||||||
%system all
|
%system all
|
||||||
|
|
||||||
%system aix
|
|
||||||
f 0555 root sys $libdir/libfltk_images_s.a src/libfltk_images_s.a nostrip()
|
|
||||||
%system hpux
|
%system hpux
|
||||||
f 0555 root sys $libdir/libfltk_images.sl.@FL_API_VERSION@ src/libfltk_images.sl.@FL_API_VERSION@ nostrip()
|
|
||||||
l 0000 root sys $libdir/libfltk_images.sl libfltk_images.sl.@FL_API_VERSION@
|
l 0000 root sys $libdir/libfltk_images.sl libfltk_images.sl.@FL_API_VERSION@
|
||||||
%system darwin
|
%system darwin
|
||||||
f 0555 root sys $libdir/libfltk_images.@FL_API_VERSION@.dylib src/libfltk_images.@FL_API_VERSION@.dylib nostrip()
|
|
||||||
l 0000 root sys $libdir/libfltk_images.dylib libfltk_images.@FL_API_VERSION@.dylib
|
l 0000 root sys $libdir/libfltk_images.dylib libfltk_images.@FL_API_VERSION@.dylib
|
||||||
%system !aix !darwin !hpux
|
%system !aix !darwin !hpux
|
||||||
f 0555 root sys $libdir/libfltk_images.so.@FL_API_VERSION@ src/libfltk_images.so.@FL_API_VERSION@ nostrip()
|
|
||||||
l 0000 root sys $libdir/libfltk_images.so libfltk_images.so.@FL_API_VERSION@
|
l 0000 root sys $libdir/libfltk_images.so libfltk_images.so.@FL_API_VERSION@
|
||||||
%system all
|
%system all
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if GLDSONAME
|
%if GLDSONAME
|
||||||
%system aix
|
|
||||||
f 0555 root sys $libdir/libfltk_gl_s.a src/libfltk_gl_s.a nostrip()
|
|
||||||
%system hpux
|
%system hpux
|
||||||
f 0555 root sys $libdir/libfltk_gl.sl.@FL_API_VERSION@ src/libfltk_gl.sl.@FL_API_VERSION@ nostrip()
|
|
||||||
l 0000 root sys $libdir/libfltk_gl.sl libfltk_gl.sl.@FL_API_VERSION@
|
l 0000 root sys $libdir/libfltk_gl.sl libfltk_gl.sl.@FL_API_VERSION@
|
||||||
%system darwin
|
%system darwin
|
||||||
f 0555 root sys $libdir/libfltk_gl.@FL_API_VERSION@.dylib src/libfltk_gl.@FL_API_VERSION@.dylib nostrip()
|
|
||||||
l 0000 root sys $libdir/libfltk_gl.dylib libfltk_gl.@FL_API_VERSION@.dylib
|
l 0000 root sys $libdir/libfltk_gl.dylib libfltk_gl.@FL_API_VERSION@.dylib
|
||||||
%system !aix !darwin !hpux
|
%system !aix !darwin !hpux
|
||||||
f 0555 root sys $libdir/libfltk_gl.so.@FL_API_VERSION@ src/libfltk_gl.so.@FL_API_VERSION@ nostrip()
|
|
||||||
l 0000 root sys $libdir/libfltk_gl.so libfltk_gl.so.@FL_API_VERSION@
|
l 0000 root sys $libdir/libfltk_gl.so libfltk_gl.so.@FL_API_VERSION@
|
||||||
%system all
|
%system all
|
||||||
%endif
|
%endif
|
||||||
|
@ -259,11 +299,19 @@ l 0000 root sys $includedir/FL/x.h x.H
|
||||||
%system all
|
%system all
|
||||||
|
|
||||||
# Documentation
|
# Documentation
|
||||||
f 0444 root sys $datadir/doc/fltk/ documentation/*.gif
|
d 0555 root sys $docdir -
|
||||||
f 0444 root sys $datadir/doc/fltk/ documentation/*.html
|
f 0444 root sys $docdir/ documentation/*.gif
|
||||||
f 0444 root sys $datadir/doc/fltk/ documentation/*.jpg
|
f 0444 root sys $docdir/ documentation/*.html
|
||||||
f 0444 root sys $datadir/doc/fltk/COPYING COPYING
|
f 0444 root sys $docdir/ documentation/*.jpg
|
||||||
f 0444 root sys $datadir/doc/fltk/CHANGES CHANGES
|
f 0444 root sys $docdir/COPYING COPYING
|
||||||
|
f 0444 root sys $docdir/CHANGES CHANGES
|
||||||
|
|
||||||
|
# Examples
|
||||||
|
d 0555 root sys $docdir/examples
|
||||||
|
f 0444 root sys $docdir/examples/config.h config.h
|
||||||
|
f 0444 root sys $docdir/examples/ test/*.cxx
|
||||||
|
f 0444 root sys $docdir/examples/ test/*.fl
|
||||||
|
f 0444 root sys $docdir/examples/ test/*.h
|
||||||
|
|
||||||
#
|
#
|
||||||
# End of "$Id$".
|
# End of "$Id$".
|
||||||
|
|
|
@ -47,7 +47,7 @@ GUI functionality without the bloat and supports 3D graphics via
|
||||||
OpenGL(r) and its built-in GLUT emulation.
|
OpenGL(r) and its built-in GLUT emulation.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: FLTK - development environment
|
Summary: FLTK Development Environment
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
|
|
|
@ -424,7 +424,7 @@ void x_cb(Fl_Value_Input *i, void *v) {
|
||||||
if (o->selected && o->is_widget()) {
|
if (o->selected && o->is_widget()) {
|
||||||
Fl_Widget *w = ((Fl_Widget_Type *)o)->o;
|
Fl_Widget *w = ((Fl_Widget_Type *)o)->o;
|
||||||
w->resize((int)i->value(), w->y(), w->w(), w->h());
|
w->resize((int)i->value(), w->y(), w->w(), w->h());
|
||||||
if (w->window()) w->window();
|
if (w->window()) w->window()->redraw();
|
||||||
if (o->is_window()) {
|
if (o->is_window()) {
|
||||||
((Fl_Window *)w)->size_range(gridx, gridy, Fl::w(), Fl::h(),
|
((Fl_Window *)w)->size_range(gridx, gridy, Fl::w(), Fl::h(),
|
||||||
gridx, gridy, 0);
|
gridx, gridy, 0);
|
||||||
|
|
|
@ -48,8 +48,6 @@ CPPFILES = \
|
||||||
|
|
||||||
OBJECTS = $(CPPFILES:.cxx=.o)
|
OBJECTS = $(CPPFILES:.cxx=.o)
|
||||||
|
|
||||||
CLEAN = core*
|
|
||||||
|
|
||||||
include ../makeinclude
|
include ../makeinclude
|
||||||
|
|
||||||
all: $(FLUID) fluid$(EXEEXT)
|
all: $(FLUID) fluid$(EXEEXT)
|
||||||
|
@ -66,8 +64,9 @@ fluid-shared$(EXEEXT): $(OBJECTS) ../src/$(DSONAME) ../src/$(FLDSONAME) \
|
||||||
$(CXX) $(CXXFLAGS) -o $@ $(OBJECTS) $(LINKSHARED) $(LDLIBS)
|
$(CXX) $(CXXFLAGS) -o $@ $(OBJECTS) $(LINKSHARED) $(LDLIBS)
|
||||||
$(POSTBUILD) $@ ../FL/mac.r
|
$(POSTBUILD) $@ ../FL/mac.r
|
||||||
|
|
||||||
clean :
|
clean:
|
||||||
-@ $(RM) *.o fluid$(EXEEXT) fluid-shared$(EXEEXT) $(CLEAN)
|
-$(RM) *.o core.* *~ *.bck *.bck
|
||||||
|
-$(RM) core fluid$(EXEEXT) fluid-shared$(EXEEXT)
|
||||||
|
|
||||||
depend: $(CPPFILES)
|
depend: $(CPPFILES)
|
||||||
makedepend -Y -I.. -f makedepend $(CPPFILES)
|
makedepend -Y -I.. -f makedepend $(CPPFILES)
|
||||||
|
@ -95,6 +94,8 @@ rebuild:
|
||||||
./fluid -c about_panel.fl
|
./fluid -c about_panel.fl
|
||||||
./fluid -c alignment_panel.fl
|
./fluid -c alignment_panel.fl
|
||||||
./fluid -c function_panel.fl
|
./fluid -c function_panel.fl
|
||||||
|
./fluid -c print_panel.fl
|
||||||
|
./fluid -c template_panel.fl
|
||||||
./fluid -c widget_panel.fl
|
./fluid -c widget_panel.fl
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
|
@ -178,8 +178,6 @@ IMGCPPFILES = \
|
||||||
|
|
||||||
CFILES = fl_call_main.c flstring.c scandir.c numericsort.c vsnprintf.c
|
CFILES = fl_call_main.c flstring.c scandir.c numericsort.c vsnprintf.c
|
||||||
|
|
||||||
CLEAN = core* cmap
|
|
||||||
|
|
||||||
################################################################
|
################################################################
|
||||||
|
|
||||||
include ../makeinclude
|
include ../makeinclude
|
||||||
|
@ -339,15 +337,16 @@ libfltk_images_s.a: $(IMGOBJECTS)
|
||||||
$(CHMOD) +x libfltk_images_s.a
|
$(CHMOD) +x libfltk_images_s.a
|
||||||
|
|
||||||
|
|
||||||
clean :
|
clean:
|
||||||
-@ $(RM) *.o $(DSONAME) $(FLDSONAME) $(GLDSONAME) $(IMGDSONAME) \
|
-$(RM) *.o core.* *~ *.bck *.bck
|
||||||
|
-$(RM) $(DSONAME) $(FLDSONAME) $(GLDSONAME) $(IMGDSONAME) \
|
||||||
../lib/$(LIBNAME) ../lib/$(FLLIBNAME) ../lib/$(GLLIBNAME) \
|
../lib/$(LIBNAME) ../lib/$(FLLIBNAME) ../lib/$(GLLIBNAME) \
|
||||||
../lib/$(IMGLIBNAME) \
|
../lib/$(IMGLIBNAME) \
|
||||||
libfltk.so libfltk_forms.so libfltk_gl.so libfltk_images.so \
|
libfltk.so libfltk_forms.so libfltk_gl.so libfltk_images.so \
|
||||||
libfltk.sl libfltk_forms.sl libfltk_gl.sl libfltk_images.sl \
|
libfltk.sl libfltk_forms.sl libfltk_gl.sl libfltk_images.sl \
|
||||||
libfltk.dylib libfltk_forms.dylib \
|
libfltk.dylib libfltk_forms.dylib \
|
||||||
libfltk_gl.dylib libfltk_images.dylib \
|
libfltk_gl.dylib libfltk_images.dylib \
|
||||||
$(CLEAN)
|
cmap core
|
||||||
|
|
||||||
depend: $(CPPFILES) $(FLCPPFILES) $(GLCPPFILES) $(IMGCPPFILES) $(CFILES)
|
depend: $(CPPFILES) $(FLCPPFILES) $(GLCPPFILES) $(IMGCPPFILES) $(CFILES)
|
||||||
makedepend -Y -I.. -f makedepend $(CPPFILES) $(FLCPPFILES) \
|
makedepend -Y -I.. -f makedepend $(CPPFILES) $(FLCPPFILES) \
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
// Please report all bugs and problems to "fltk-bugs@fltk.org".
|
// Please report all bugs and problems to "fltk-bugs@fltk.org".
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <config.h>
|
#include "config.h"
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include "CubeViewUI.h"
|
#include "CubeViewUI.h"
|
||||||
|
|
||||||
|
|
|
@ -167,14 +167,18 @@ depend: $(CPPFILES)
|
||||||
include makedepend
|
include makedepend
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-@ rm -f $(ALL) $(GLALL) *.o core *~
|
-$(RM) $(ALL) $(GLALL) core
|
||||||
|
-$(RM) *.o core.* *~ *.bck *.bak
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@echo Nothing to install in test directory.
|
echo "Installing example programs to $(DESTDIR)$(docdir)/examples..."
|
||||||
|
-$(MKDIR) $(DESTDIR)$(docdir)/examples
|
||||||
|
$(CP) *.h *.cxx *.fl $(DESTDIR)$(docdir)/examples
|
||||||
|
$(CHMOD) 644 $(DESTDIR)$(docdir)/examples/*.*
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
@echo Nothing to uninstall in test directory.
|
echo "Removing examples programs from $(DESTDIR)$(docdir)/examples..."
|
||||||
|
-$(RMDIR) $(DESTDIR)$(docdir)/examples
|
||||||
|
|
||||||
# FLUID file rules
|
# FLUID file rules
|
||||||
.fl.cxx .fl.h: ../fluid/fluid$(EXEEXT)
|
.fl.cxx .fl.h: ../fluid/fluid$(EXEEXT)
|
||||||
|
|
|
@ -56,7 +56,7 @@ const char* copyright =
|
||||||
#define FLTK
|
#define FLTK
|
||||||
//#define VT100
|
//#define VT100
|
||||||
|
|
||||||
#include "../src/flstring.h"
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
// Please report all bugs and problems to "fltk-bugs@fltk.org".
|
// Please report all bugs and problems to "fltk-bugs@fltk.org".
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <config.h>
|
#include "config.h"
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/Fl_Window.H>
|
#include <FL/Fl_Window.H>
|
||||||
#include <FL/Fl_Box.H>
|
#include <FL/Fl_Box.H>
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
#include <FL/Fl_Shared_Image.H>
|
#include <FL/Fl_Shared_Image.H>
|
||||||
#include <FL/Fl_PNM_Image.H>
|
#include <FL/Fl_PNM_Image.H>
|
||||||
#include <FL/Fl_Light_Button.H>
|
#include <FL/Fl_Light_Button.H>
|
||||||
#include "../src/flstring.h"
|
#include <string.h>
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -220,12 +220,12 @@ pdf_check(const char *name, // I - Name of file
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
home = getenv("HOME");
|
home = getenv("HOME");
|
||||||
snprintf(preview, sizeof(preview), "%s/.preview.ppm", home ? home : "");
|
sprintf(preview, "%s/.preview.ppm", home ? home : "");
|
||||||
|
|
||||||
snprintf(command, sizeof(command),
|
sprintf(command,
|
||||||
"gs -r100 -dFIXED -sDEVICE=ppmraw -dQUIET -dNOPAUSE -dBATCH "
|
"gs -r100 -dFIXED -sDEVICE=ppmraw -dQUIET -dNOPAUSE -dBATCH "
|
||||||
"-sstdout=\"%%stderr\" -sOUTPUTFILE=\'%s\' "
|
"-sstdout=\"%%stderr\" -sOUTPUTFILE=\'%s\' "
|
||||||
"-dFirstPage=1 -dLastPage=1 \'%s\' 2>/dev/null", preview, name);
|
"-dFirstPage=1 -dLastPage=1 \'%s\' 2>/dev/null", preview, name);
|
||||||
|
|
||||||
if (system(command)) return 0;
|
if (system(command)) return 0;
|
||||||
|
|
||||||
|
@ -256,11 +256,11 @@ ps_check(const char *name, // I - Name of file
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
home = getenv("HOME");
|
home = getenv("HOME");
|
||||||
snprintf(preview, sizeof(preview), "%s/.preview.ppm", home ? home : "");
|
sprintf(preview, "%s/.preview.ppm", home ? home : "");
|
||||||
|
|
||||||
if (memcmp(header, "%!PS", 4) == 0) {
|
if (memcmp(header, "%!PS", 4) == 0) {
|
||||||
// PS file has DSC comments; extract the first page...
|
// PS file has DSC comments; extract the first page...
|
||||||
snprintf(outname, sizeof(outname), "%s/.preview.ps", home ? home : "");
|
sprintf(outname, "%s/.preview.ps", home ? home : "");
|
||||||
|
|
||||||
if (strcmp(name, outname) != 0) {
|
if (strcmp(name, outname) != 0) {
|
||||||
in = fopen(name, "rb");
|
in = fopen(name, "rb");
|
||||||
|
@ -281,13 +281,14 @@ ps_check(const char *name, // I - Name of file
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// PS file doesn't have DSC comments; do the whole file...
|
// PS file doesn't have DSC comments; do the whole file...
|
||||||
strlcpy(outname, name, sizeof(outname));
|
strncpy(outname, name, sizeof(outname) - 1);
|
||||||
|
outname[sizeof(outname) - 1] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
snprintf(command, sizeof(command),
|
sprintf(command,
|
||||||
"gs -r100 -dFIXED -sDEVICE=ppmraw -dQUIET -dNOPAUSE -dBATCH "
|
"gs -r100 -dFIXED -sDEVICE=ppmraw -dQUIET -dNOPAUSE -dBATCH "
|
||||||
"-sstdout=\"%%stderr\" -sOUTPUTFILE=\'%s\' \'%s\' 2>/dev/null",
|
"-sstdout=\"%%stderr\" -sOUTPUTFILE=\'%s\' \'%s\' 2>/dev/null",
|
||||||
preview, outname);
|
preview, outname);
|
||||||
|
|
||||||
if (system(command)) return 0;
|
if (system(command)) return 0;
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
// Please report all bugs and problems to "fltk-bugs@fltk.org".
|
// Please report all bugs and problems to "fltk-bugs@fltk.org".
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <config.h>
|
#include "config.h"
|
||||||
#if !HAVE_GL || !HAVE_GL_GLU_H
|
#if !HAVE_GL || !HAVE_GL_GLU_H
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/fl_message.H>
|
#include <FL/fl_message.H>
|
||||||
|
|
|
@ -54,7 +54,7 @@
|
||||||
// Please report all bugs and problems to "fltk-bugs@fltk.org".
|
// Please report all bugs and problems to "fltk-bugs@fltk.org".
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <config.h>
|
#include "config.h"
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/Fl_Single_Window.H>
|
#include <FL/Fl_Single_Window.H>
|
||||||
#include <FL/Fl_Hor_Slider.H>
|
#include <FL/Fl_Hor_Slider.H>
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
// Please report all bugs and problems to "fltk-bugs@fltk.org".
|
// Please report all bugs and problems to "fltk-bugs@fltk.org".
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <config.h>
|
#include "config.h"
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/Fl_Window.H>
|
#include <FL/Fl_Window.H>
|
||||||
#include <FL/Fl_Hor_Slider.H>
|
#include <FL/Fl_Hor_Slider.H>
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
// this block added for fltk's distribtion so it will compile w/o OpenGL:
|
// this block added for fltk's distribtion so it will compile w/o OpenGL:
|
||||||
#include <config.h>
|
#include "config.h"
|
||||||
#if !HAVE_GL || !HAVE_GL_GLU_H
|
#if !HAVE_GL || !HAVE_GL_GLU_H
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/fl_message.H>
|
#include <FL/fl_message.H>
|
||||||
|
|
|
@ -42,7 +42,7 @@ int main(int, char**) {
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#include <config.h>
|
#include "config.h"
|
||||||
|
|
||||||
#ifndef Fl_H
|
#ifndef Fl_H
|
||||||
|
|
||||||
|
|
|
@ -34,15 +34,14 @@ buttons.o: ../FL/Fl_Button.H ../FL/Fl_Repeat_Button.H ../FL/Fl.H
|
||||||
buttons.o: ../FL/Fl_Check_Button.H ../FL/Fl_Light_Button.H
|
buttons.o: ../FL/Fl_Check_Button.H ../FL/Fl_Light_Button.H
|
||||||
buttons.o: ../FL/Fl_Light_Button.H ../FL/Fl_Round_Button.H ../FL/Fl_Tooltip.H
|
buttons.o: ../FL/Fl_Light_Button.H ../FL/Fl_Round_Button.H ../FL/Fl_Tooltip.H
|
||||||
buttons.o: ../FL/Fl_Widget.H
|
buttons.o: ../FL/Fl_Widget.H
|
||||||
checkers.o: ../src/flstring.h ../FL/Fl_Export.H ../config.h ../FL/Fl.H
|
checkers.o: ../FL/Fl.H ../FL/Enumerations.H ../FL/Fl_Export.H
|
||||||
checkers.o: ../FL/Enumerations.H ../FL/Fl_Export.H ../FL/Fl_Double_Window.H
|
checkers.o: ../FL/Fl_Double_Window.H ../FL/Fl_Window.H ../FL/Fl_Group.H
|
||||||
checkers.o: ../FL/Fl_Window.H ../FL/Fl_Group.H ../FL/Fl_Widget.H
|
checkers.o: ../FL/Fl_Widget.H ../FL/Fl_Bitmap.H ../FL/Fl_Image.H
|
||||||
checkers.o: ../FL/Fl_Bitmap.H ../FL/Fl_Image.H ../FL/fl_draw.H
|
checkers.o: ../FL/fl_draw.H ../FL/Fl_Menu_Item.H ../FL/fl_ask.H black_1.xbm
|
||||||
checkers.o: ../FL/Fl_Menu_Item.H ../FL/fl_ask.H black_1.xbm black_2.xbm
|
checkers.o: black_2.xbm black_3.xbm black_4.xbm white_1.xbm white_2.xbm
|
||||||
checkers.o: black_3.xbm black_4.xbm white_1.xbm white_2.xbm white_3.xbm
|
checkers.o: white_3.xbm white_4.xbm blackking_1.xbm blackking_2.xbm
|
||||||
checkers.o: white_4.xbm blackking_1.xbm blackking_2.xbm blackking_3.xbm
|
checkers.o: blackking_3.xbm blackking_4.xbm whiteking_1.xbm whiteking_2.xbm
|
||||||
checkers.o: blackking_4.xbm whiteking_1.xbm whiteking_2.xbm whiteking_3.xbm
|
checkers.o: whiteking_3.xbm whiteking_4.xbm ../FL/Fl_Box.H ../FL/Fl_Slider.H
|
||||||
checkers.o: whiteking_4.xbm ../FL/Fl_Box.H ../FL/Fl_Slider.H
|
|
||||||
checkers.o: ../FL/Fl_Valuator.H ../FL/Fl_Value_Output.H
|
checkers.o: ../FL/Fl_Valuator.H ../FL/Fl_Value_Output.H
|
||||||
clock.o: ../FL/Fl.H ../FL/Enumerations.H ../FL/Fl_Export.H ../FL/Fl_Window.H
|
clock.o: ../FL/Fl.H ../FL/Enumerations.H ../FL/Fl_Export.H ../FL/Fl_Window.H
|
||||||
clock.o: ../FL/Fl_Clock.H ../FL/Fl_Widget.H ../FL/Fl_Round_Clock.H
|
clock.o: ../FL/Fl_Clock.H ../FL/Fl_Widget.H ../FL/Fl_Round_Clock.H
|
||||||
|
@ -139,8 +138,7 @@ file_chooser.o: ../FL/Fl_Light_Button.H ../FL/Fl_Button.H
|
||||||
file_chooser.o: ../FL/Fl_File_Input.H ../FL/Fl_Input.H ../FL/Fl_Input_.H
|
file_chooser.o: ../FL/Fl_File_Input.H ../FL/Fl_Input.H ../FL/Fl_Input_.H
|
||||||
file_chooser.o: ../FL/Fl_Return_Button.H ../FL/fl_ask.H ../FL/Fl_File_Icon.H
|
file_chooser.o: ../FL/Fl_Return_Button.H ../FL/fl_ask.H ../FL/Fl_File_Icon.H
|
||||||
file_chooser.o: ../FL/Fl_Shared_Image.H ../FL/Fl_PNM_Image.H
|
file_chooser.o: ../FL/Fl_Shared_Image.H ../FL/Fl_PNM_Image.H
|
||||||
file_chooser.o: ../FL/Fl_Light_Button.H ../src/flstring.h ../FL/Fl_Export.H
|
file_chooser.o: ../FL/Fl_Light_Button.H
|
||||||
file_chooser.o: ../config.h
|
|
||||||
fonts.o: ../FL/Fl.H ../FL/Enumerations.H ../FL/Fl_Export.H ../FL/Fl_Window.H
|
fonts.o: ../FL/Fl.H ../FL/Enumerations.H ../FL/Fl_Export.H ../FL/Fl_Window.H
|
||||||
fonts.o: ../FL/Fl_Hold_Browser.H ../FL/Fl_Browser.H ../FL/Fl_Browser_.H
|
fonts.o: ../FL/Fl_Hold_Browser.H ../FL/Fl_Browser.H ../FL/Fl_Browser_.H
|
||||||
fonts.o: ../FL/Fl_Group.H ../FL/Fl_Widget.H ../FL/Fl_Scrollbar.H
|
fonts.o: ../FL/Fl_Group.H ../FL/Fl_Widget.H ../FL/Fl_Scrollbar.H
|
||||||
|
@ -191,7 +189,7 @@ help.o: ../FL/Fl_Export.H ../FL/Fl_Double_Window.H ../FL/Fl_Window.H
|
||||||
help.o: ../FL/Fl_Group.H ../FL/Fl_Widget.H ../FL/Fl_Help_View.H ../FL/Fl.H
|
help.o: ../FL/Fl_Group.H ../FL/Fl_Widget.H ../FL/Fl_Help_View.H ../FL/Fl.H
|
||||||
help.o: ../FL/Fl_Scrollbar.H ../FL/Fl_Slider.H ../FL/Fl_Valuator.H
|
help.o: ../FL/Fl_Scrollbar.H ../FL/Fl_Slider.H ../FL/Fl_Valuator.H
|
||||||
help.o: ../FL/fl_draw.H ../FL/Fl_Shared_Image.H ../FL/Fl_Image.H
|
help.o: ../FL/fl_draw.H ../FL/Fl_Shared_Image.H ../FL/Fl_Image.H
|
||||||
help.o: ../FL/Fl_Button.H ../FL/Fl_Group.H ../FL/Fl_Input.H ../FL/Fl_Input_.H
|
help.o: ../FL/Fl_Group.H ../FL/Fl_Button.H ../FL/Fl_Input.H ../FL/Fl_Input_.H
|
||||||
iconize.o: ../FL/Fl.H ../FL/Enumerations.H ../FL/Fl_Export.H
|
iconize.o: ../FL/Fl.H ../FL/Enumerations.H ../FL/Fl_Export.H
|
||||||
iconize.o: ../FL/Fl_Window.H ../FL/Fl_Button.H ../FL/Fl_Box.H
|
iconize.o: ../FL/Fl_Window.H ../FL/Fl_Button.H ../FL/Fl_Box.H
|
||||||
image.o: ../FL/Fl.H ../FL/Enumerations.H ../FL/Fl_Export.H ../FL/Fl_Window.H
|
image.o: ../FL/Fl.H ../FL/Enumerations.H ../FL/Fl_Export.H ../FL/Fl_Window.H
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
// Please report all bugs and problems to "fltk-bugs@fltk.org".
|
// Please report all bugs and problems to "fltk-bugs@fltk.org".
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <config.h>
|
#include "config.h"
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/Fl_Window.H>
|
#include <FL/Fl_Window.H>
|
||||||
#include <FL/Fl_Hor_Slider.H>
|
#include <FL/Fl_Hor_Slider.H>
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
// Please report all bugs and problems to "fltk-bugs@fltk.org".
|
// Please report all bugs and problems to "fltk-bugs@fltk.org".
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <config.h>
|
#include "config.h"
|
||||||
|
|
||||||
#if HAVE_PTHREAD || defined(WIN32)
|
#if HAVE_PTHREAD || defined(WIN32)
|
||||||
# include <FL/Fl.H>
|
# include <FL/Fl.H>
|
||||||
|
|
Loading…
Reference in New Issue