Configure/make: Quote variables that may contain spaces
This allows installing FLTK to directories that contain spaces.
This commit is contained in:
parent
fe7560fe61
commit
b83a6abe01
@ -24,24 +24,24 @@ depend:
|
|||||||
|
|
||||||
install:
|
install:
|
||||||
echo "Installing include files in $(DESTDIR)$(includedir)..."
|
echo "Installing include files in $(DESTDIR)$(includedir)..."
|
||||||
$(RMDIR) $(DESTDIR)$(includedir)/FL
|
$(RMDIR) "$(DESTDIR)$(includedir)/FL"
|
||||||
$(INSTALL_DIR) $(DESTDIR)$(includedir)/FL
|
$(INSTALL_DIR) "$(DESTDIR)$(includedir)/FL"
|
||||||
for file in *.[hH]; do \
|
for file in *.[hH]; do \
|
||||||
$(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/FL; \
|
$(INSTALL_DATA) $$file "$(DESTDIR)$(includedir)/FL"; \
|
||||||
done
|
done
|
||||||
@HLINKS@ cd $(DESTDIR)$(includedir)/FL;\
|
@HLINKS@ cd "$(DESTDIR)$(includedir)/FL";\
|
||||||
@HLINKS@ for file in *.H; do\
|
@HLINKS@ for file in *.H; do\
|
||||||
@HLINKS@ $(RM) "`basename $$file H`h";\
|
@HLINKS@ $(RM) "`basename $$file H`h";\
|
||||||
@HLINKS@ $(LN) $$file "`basename $$file H`h";\
|
@HLINKS@ $(LN) $$file "`basename $$file H`h";\
|
||||||
@HLINKS@ done
|
@HLINKS@ done
|
||||||
@HLINKS@ $(RM) $(DESTDIR)$(includedir)/FL/fl_file_chooser.H
|
@HLINKS@ $(RM) "$(DESTDIR)$(includedir)/FL/fl_file_chooser.H"
|
||||||
@HLINKS@ $(LN) Fl_File_Chooser.H $(DESTDIR)$(includedir)/FL/fl_file_chooser.H
|
@HLINKS@ $(LN) Fl_File_Chooser.H "$(DESTDIR)$(includedir)/FL/fl_file_chooser.H"
|
||||||
@HLINKS@ $(RM) $(DESTDIR)$(includedir)/FL/fl_file_chooser.h
|
@HLINKS@ $(RM) "$(DESTDIR)$(includedir)/FL/fl_file_chooser.h"
|
||||||
@HLINKS@ $(LN) Fl_File_Chooser.H $(DESTDIR)$(includedir)/FL/fl_file_chooser.h
|
@HLINKS@ $(LN) Fl_File_Chooser.H "$(DESTDIR)$(includedir)/FL/fl_file_chooser.h"
|
||||||
@HLINKS@ $(RM) $(DESTDIR)$(includedir)/Fl
|
@HLINKS@ $(RM) "$(DESTDIR)$(includedir)/Fl"
|
||||||
@HLINKS@ $(LN) FL $(DESTDIR)$(includedir)/Fl
|
@HLINKS@ $(LN) FL "$(DESTDIR)$(includedir)/Fl"
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
echo "Uninstalling include files..."
|
echo "Uninstalling include files..."
|
||||||
$(RMDIR) $(DESTDIR)$(includedir)/FL
|
$(RMDIR) "$(DESTDIR)$(includedir)/FL"
|
||||||
@HLINKS@ $(RM) $(DESTDIR)$(includedir)/Fl
|
@HLINKS@ $(RM) "$(DESTDIR)$(includedir)/Fl"
|
||||||
|
8
Makefile
8
Makefile
@ -31,9 +31,9 @@ test: all
|
|||||||
(cd test; $(MAKE) $(MFLAGS)) || exit 1
|
(cd test; $(MAKE) $(MFLAGS)) || exit 1
|
||||||
|
|
||||||
install: makeinclude
|
install: makeinclude
|
||||||
-mkdir -p $(DESTDIR)$(bindir)
|
-mkdir -p "$(DESTDIR)$(bindir)"
|
||||||
$(RM) $(DESTDIR)$(bindir)/fltk-config
|
$(RM) "$(DESTDIR)$(bindir)/fltk-config"
|
||||||
$(INSTALL_SCRIPT) fltk-config $(DESTDIR)$(bindir)
|
$(INSTALL_SCRIPT) fltk-config "$(DESTDIR)$(bindir)"
|
||||||
for dir in FL $(DIRS); do\
|
for dir in FL $(DIRS); do\
|
||||||
echo "=== installing $$dir ===";\
|
echo "=== installing $$dir ===";\
|
||||||
(cd $$dir; $(MAKE) $(MFLAGS) install) || exit 1;\
|
(cd $$dir; $(MAKE) $(MFLAGS) install) || exit 1;\
|
||||||
@ -46,7 +46,7 @@ install-desktop: makeinclude
|
|||||||
cd test; $(MAKE) $(MFLAGS) $(INSTALL_DESKTOP)
|
cd test; $(MAKE) $(MFLAGS) $(INSTALL_DESKTOP)
|
||||||
|
|
||||||
uninstall: makeinclude
|
uninstall: makeinclude
|
||||||
$(RM) $(DESTDIR)$(bindir)/fltk-config
|
$(RM) "$(DESTDIR)$(bindir)/fltk-config"
|
||||||
for dir in FL $(DIRS); do\
|
for dir in FL $(DIRS); do\
|
||||||
echo "=== uninstalling $$dir ===";\
|
echo "=== uninstalling $$dir ===";\
|
||||||
(cd $$dir; $(MAKE) $(MFLAGS) uninstall) || exit 1;\
|
(cd $$dir; $(MAKE) $(MFLAGS) uninstall) || exit 1;\
|
||||||
|
@ -79,59 +79,59 @@ depend:
|
|||||||
|
|
||||||
install: $(MANPAGES)
|
install: $(MANPAGES)
|
||||||
echo "Installing documentation files in $(DESTDIR)$(docdir) ..."
|
echo "Installing documentation files in $(DESTDIR)$(docdir) ..."
|
||||||
-$(INSTALL_DIR) $(DESTDIR)$(docdir)
|
-$(INSTALL_DIR) "$(DESTDIR)$(docdir)"
|
||||||
if test -f html/index.html ; then \
|
if test -f html/index.html ; then \
|
||||||
for file in html/* ; do \
|
for file in html/* ; do \
|
||||||
$(INSTALL_DATA) $$file $(DESTDIR)$(docdir); \
|
$(INSTALL_DATA) $$file "$(DESTDIR)$(docdir)"; \
|
||||||
done \
|
done \
|
||||||
fi
|
fi
|
||||||
if test -f fltk.pdf ; then \
|
if test -f fltk.pdf ; then \
|
||||||
echo "Installing fltk.pdf in $(DESTDIR)$(docdir) ..."; \
|
echo "Installing fltk.pdf in $(DESTDIR)$(docdir) ..."; \
|
||||||
$(INSTALL_DATA) fltk.pdf $(DESTDIR)$(docdir); \
|
$(INSTALL_DATA) fltk.pdf "$(DESTDIR)$(docdir)"; \
|
||||||
fi
|
fi
|
||||||
echo "Installing man pages in $(DESTDIR)$(mandir) ..."
|
echo "Installing man pages in $(DESTDIR)$(mandir) ..."
|
||||||
-$(INSTALL_DIR) $(DESTDIR)$(mandir)/cat1
|
-$(INSTALL_DIR) "$(DESTDIR)$(mandir)/cat1"
|
||||||
$(INSTALL_MAN) $(SRC_DOCDIR)/fluid.$(CAT1EXT) $(DESTDIR)$(mandir)/cat1
|
$(INSTALL_MAN) $(SRC_DOCDIR)/fluid.$(CAT1EXT) "$(DESTDIR)$(mandir)/cat1"
|
||||||
$(INSTALL_MAN) $(SRC_DOCDIR)/fltk-config.$(CAT1EXT) $(DESTDIR)$(mandir)/cat1
|
$(INSTALL_MAN) $(SRC_DOCDIR)/fltk-config.$(CAT1EXT) "$(DESTDIR)$(mandir)/cat1"
|
||||||
$(INSTALL_MAN) $(SRC_DOCDIR)/fltk-options.$(CAT1EXT) $(DESTDIR)$(mandir)/cat1
|
$(INSTALL_MAN) $(SRC_DOCDIR)/fltk-options.$(CAT1EXT) "$(DESTDIR)$(mandir)/cat1"
|
||||||
-$(INSTALL_DIR) $(DESTDIR)$(mandir)/cat3
|
-$(INSTALL_DIR) "$(DESTDIR)$(mandir)/cat3"
|
||||||
$(INSTALL_MAN) $(SRC_DOCDIR)/fltk.$(CAT3EXT) $(DESTDIR)$(mandir)/cat3
|
$(INSTALL_MAN) $(SRC_DOCDIR)/fltk.$(CAT3EXT) "$(DESTDIR)$(mandir)/cat3"
|
||||||
-$(INSTALL_DIR) $(DESTDIR)$(mandir)/man1
|
-$(INSTALL_DIR) "$(DESTDIR)$(mandir)/man1"
|
||||||
$(INSTALL_MAN) $(SRC_DOCDIR)/fluid.man $(DESTDIR)$(mandir)/man1/fluid.1
|
$(INSTALL_MAN) $(SRC_DOCDIR)/fluid.man "$(DESTDIR)$(mandir)/man1/fluid.1"
|
||||||
$(INSTALL_MAN) $(SRC_DOCDIR)/fltk-config.man $(DESTDIR)$(mandir)/man1/fltk-config.1
|
$(INSTALL_MAN) $(SRC_DOCDIR)/fltk-config.man "$(DESTDIR)$(mandir)/man1/fltk-config.1"
|
||||||
$(INSTALL_MAN) $(SRC_DOCDIR)/fltk-options.man $(DESTDIR)$(mandir)/man1/fltk-options.1
|
$(INSTALL_MAN) $(SRC_DOCDIR)/fltk-options.man "$(DESTDIR)$(mandir)/man1/fltk-options.1"
|
||||||
-$(INSTALL_DIR) $(DESTDIR)$(mandir)/man3
|
-$(INSTALL_DIR) "$(DESTDIR)$(mandir)/man3"
|
||||||
$(INSTALL_MAN) $(SRC_DOCDIR)/fltk.man $(DESTDIR)$(mandir)/man3/fltk.3
|
$(INSTALL_MAN) $(SRC_DOCDIR)/fltk.man "$(DESTDIR)$(mandir)/man3/fltk.3"
|
||||||
|
|
||||||
install-linux install-osx:
|
install-linux install-osx:
|
||||||
-$(INSTALL_DIR) $(DESTDIR)$(mandir)/cat6
|
-$(INSTALL_DIR) "$(DESTDIR)$(mandir)/cat6"
|
||||||
$(INSTALL_MAN) $(SRC_DOCDIR)/blocks.$(CAT6EXT) $(DESTDIR)$(mandir)/cat6
|
$(INSTALL_MAN) $(SRC_DOCDIR)/blocks.$(CAT6EXT) "$(DESTDIR)$(mandir)/cat6"
|
||||||
$(INSTALL_MAN) $(SRC_DOCDIR)/checkers.$(CAT6EXT) $(DESTDIR)$(mandir)/cat6
|
$(INSTALL_MAN) $(SRC_DOCDIR)/checkers.$(CAT6EXT) "$(DESTDIR)$(mandir)/cat6"
|
||||||
$(INSTALL_MAN) $(SRC_DOCDIR)/sudoku.$(CAT6EXT) $(DESTDIR)$(mandir)/cat6
|
$(INSTALL_MAN) $(SRC_DOCDIR)/sudoku.$(CAT6EXT) "$(DESTDIR)$(mandir)/cat6"
|
||||||
-$(INSTALL_DIR) $(DESTDIR)$(mandir)/man6
|
-$(INSTALL_DIR) "$(DESTDIR)$(mandir)/man6"
|
||||||
$(INSTALL_MAN) $(SRC_DOCDIR)/blocks.man $(DESTDIR)$(mandir)/man6/blocks.6
|
$(INSTALL_MAN) $(SRC_DOCDIR)/blocks.man "$(DESTDIR)$(mandir)/man6/blocks.6"
|
||||||
$(INSTALL_MAN) $(SRC_DOCDIR)/checkers.man $(DESTDIR)$(mandir)/man6/checkers.6
|
$(INSTALL_MAN) $(SRC_DOCDIR)/checkers.man "$(DESTDIR)$(mandir)/man6/checkers.6"
|
||||||
$(INSTALL_MAN) $(SRC_DOCDIR)/sudoku.man $(DESTDIR)$(mandir)/man6/sudoku.6
|
$(INSTALL_MAN) $(SRC_DOCDIR)/sudoku.man "$(DESTDIR)$(mandir)/man6/sudoku.6"
|
||||||
|
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
$(RMDIR) $(DESTDIR)$(docdir)
|
$(RMDIR) "$(DESTDIR)$(docdir)"
|
||||||
$(RM) $(DESTDIR)$(mandir)/cat1/fluid.$(CAT1EXT)
|
$(RM) "$(DESTDIR)$(mandir)/cat1/fluid.$(CAT1EXT)"
|
||||||
$(RM) $(DESTDIR)$(mandir)/man1/fluid.1
|
$(RM) "$(DESTDIR)$(mandir)/man1/fluid.1"
|
||||||
$(RM) $(DESTDIR)$(mandir)/cat1/fltk-config.$(CAT1EXT)
|
$(RM) "$(DESTDIR)$(mandir)/cat1/fltk-config.$(CAT1EXT)"
|
||||||
$(RM) $(DESTDIR)$(mandir)/man1/fltk-config.1
|
$(RM) "$(DESTDIR)$(mandir)/man1/fltk-config.1"
|
||||||
$(RM) $(DESTDIR)$(mandir)/cat1/fltk-options.$(CAT1EXT)
|
$(RM) "$(DESTDIR)$(mandir)/cat1/fltk-options.$(CAT1EXT)"
|
||||||
$(RM) $(DESTDIR)$(mandir)/man1/fltk-options.1
|
$(RM) "$(DESTDIR)$(mandir)/man1/fltk-options.1"
|
||||||
$(RM) $(DESTDIR)$(mandir)/cat3/fltk.$(CAT3EXT)
|
$(RM) "$(DESTDIR)$(mandir)/cat3/fltk.$(CAT3EXT)"
|
||||||
$(RM) $(DESTDIR)$(mandir)/man3/fltk.3
|
$(RM) "$(DESTDIR)$(mandir)/man3/fltk.3"
|
||||||
|
|
||||||
uninstall-linux uninstall-osx:
|
uninstall-linux uninstall-osx:
|
||||||
$(RM) $(DESTDIR)$(mandir)/cat6/blocks.$(CAT6EXT)
|
$(RM) "$(DESTDIR)$(mandir)/cat6/blocks.$(CAT6EXT)"
|
||||||
$(RM) $(DESTDIR)$(mandir)/cat6/checkers.$(CAT6EXT)
|
$(RM) "$(DESTDIR)$(mandir)/cat6/checkers.$(CAT6EXT)"
|
||||||
$(RM) $(DESTDIR)$(mandir)/cat6/sudoku.$(CAT6EXT)
|
$(RM) "$(DESTDIR)$(mandir)/cat6/sudoku.$(CAT6EXT)"
|
||||||
$(RM) $(DESTDIR)$(mandir)/man6/blocks.6
|
$(RM) "$(DESTDIR)$(mandir)/man6/blocks.6"
|
||||||
$(RM) $(DESTDIR)$(mandir)/man6/checkers.6
|
$(RM) "$(DESTDIR)$(mandir)/man6/checkers.6"
|
||||||
$(RM) $(DESTDIR)$(mandir)/man6/sudoku.6
|
$(RM) "$(DESTDIR)$(mandir)/man6/sudoku.6"
|
||||||
|
|
||||||
# The documentation is generated using doxygen. There are two control files
|
# The documentation is generated using doxygen. There are two control files
|
||||||
# for doxygen: Doxyfile for html documentation and Doxybook for pdf docs.
|
# for doxygen: Doxyfile for html documentation and Doxybook for pdf docs.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# FLTK configuration utility.
|
# FLTK configuration utility.
|
||||||
#
|
#
|
||||||
# Copyright 2000-2023 by Bill Spitzak and others.
|
# Copyright 2000-2024 by Bill Spitzak and others.
|
||||||
# Original version Copyright 2000 by James Dean Palmer
|
# Original version Copyright 2000 by James Dean Palmer
|
||||||
# Adapted by Vincent Penne and Michael Sweet
|
# Adapted by Vincent Penne and Michael Sweet
|
||||||
#
|
#
|
||||||
@ -72,25 +72,25 @@ GLLIBS="@GLLIBS@"
|
|||||||
|
|
||||||
# Check bundled image libraries in source tree
|
# Check bundled image libraries in source tree
|
||||||
if test -f "$libdir/libfltk_jpeg.a"; then
|
if test -f "$libdir/libfltk_jpeg.a"; then
|
||||||
CFLAGS="-I$includedir/jpeg $CFLAGS"
|
CFLAGS="-I'$includedir/jpeg' $CFLAGS"
|
||||||
CXXFLAGS="-I$includedir/jpeg $CXXFLAGS"
|
CXXFLAGS="-I'$includedir/jpeg' $CXXFLAGS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -f "$libdir/libfltk_z.a"; then
|
if test -f "$libdir/libfltk_z.a"; then
|
||||||
CFLAGS="-I$includedir/zlib $CFLAGS"
|
CFLAGS="-I'$includedir/zlib' $CFLAGS"
|
||||||
CXXFLAGS="-I$includedir/zlib $CXXFLAGS"
|
CXXFLAGS="-I'$includedir/zlib' $CXXFLAGS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -f "$libdir/libfltk_png.a"; then
|
if test -f "$libdir/libfltk_png.a"; then
|
||||||
CFLAGS="-I$includedir/png $CFLAGS"
|
CFLAGS="-I'$includedir/png' $CFLAGS"
|
||||||
CXXFLAGS="-I$includedir/png $CXXFLAGS"
|
CXXFLAGS="-I'$includedir/png' $CXXFLAGS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check bundled image libraries in installation folder.
|
# Check bundled image libraries in installation folder.
|
||||||
# Note: jpeg, png, and zlib headers are installed in FL/images
|
# Note: jpeg, png, and zlib headers are installed in FL/images
|
||||||
if test -d $includedir/FL/images; then
|
if test -d $includedir/FL/images; then
|
||||||
CFLAGS="-I$includedir/FL/images $CFLAGS"
|
CFLAGS="-I'$includedir/FL/images' $CFLAGS"
|
||||||
CXXFLAGS="-I$includedir/FL/images $CXXFLAGS"
|
CXXFLAGS="-I'$includedir/FL/images' $CXXFLAGS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Cairo support
|
# Cairo support
|
||||||
@ -254,39 +254,39 @@ do
|
|||||||
done
|
done
|
||||||
|
|
||||||
if test "$includedir" != /usr/include; then
|
if test "$includedir" != /usr/include; then
|
||||||
includes=-I$includedir
|
includes="-I'$includedir'"
|
||||||
else
|
else
|
||||||
includes=
|
includes=
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# prepend build directory for fltk-config in CMake build folder
|
# prepend build directory for fltk-config in CMake build folder
|
||||||
if test -n "$BINARY_DIR"; then
|
if test -n "$BINARY_DIR"; then
|
||||||
includes="-I$BINARY_DIR $includes"
|
includes="-I'$BINARY_DIR' $includes"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$libdir" != /usr/lib -a "$libdir" != /usr/lib32; then
|
if test "$libdir" != /usr/lib -a "$libdir" != /usr/lib32; then
|
||||||
libs=-L$libdir
|
libs="-L'$libdir'"
|
||||||
else
|
else
|
||||||
libs=
|
libs=
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Calculate needed libraries
|
# Calculate needed libraries
|
||||||
LDSTATIC="$libdir/libfltk.a $LDLIBS"
|
LDSTATIC="'$libdir/libfltk.a' $LDLIBS"
|
||||||
LDLIBS="-lfltk$SHAREDSUFFIX $LDLIBS"
|
LDLIBS="-lfltk$SHAREDSUFFIX $LDLIBS"
|
||||||
|
|
||||||
if test x$use_forms = xyes; then
|
if test x$use_forms = xyes; then
|
||||||
LDLIBS="-lfltk_forms$SHAREDSUFFIX $LDLIBS"
|
LDLIBS="-lfltk_forms$SHAREDSUFFIX $LDLIBS"
|
||||||
LDSTATIC="$libdir/libfltk_forms.a $LDSTATIC"
|
LDSTATIC="'$libdir/libfltk_forms.a' $LDSTATIC"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test x$use_gl = xyes; then
|
if test x$use_gl = xyes; then
|
||||||
LDLIBS="-lfltk_gl$SHAREDSUFFIX $GLLIBS $LDLIBS"
|
LDLIBS="-lfltk_gl$SHAREDSUFFIX $GLLIBS $LDLIBS"
|
||||||
LDSTATIC="$libdir/libfltk_gl.a $GLLIBS $LDSTATIC"
|
LDSTATIC="'$libdir/libfltk_gl.a' $GLLIBS $LDSTATIC"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test x$use_images = xyes; then
|
if test x$use_images = xyes; then
|
||||||
LDLIBS="-lfltk_images$SHAREDSUFFIX $IMAGELIBS $LDLIBS"
|
LDLIBS="-lfltk_images$SHAREDSUFFIX $IMAGELIBS $LDLIBS"
|
||||||
LDSTATIC="$libdir/libfltk_images.a $STATICIMAGELIBS $LDSTATIC"
|
LDSTATIC="'$libdir/libfltk_images.a' $STATICIMAGELIBS $LDSTATIC"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test x$use_cairo = xyes -a -n "$CAIROLIBS"; then
|
if test x$use_cairo = xyes -a -n "$CAIROLIBS"; then
|
||||||
@ -392,10 +392,10 @@ fi
|
|||||||
|
|
||||||
if test "$echo_ldflags" = "yes"; then
|
if test "$echo_ldflags" = "yes"; then
|
||||||
my_libs=
|
my_libs=
|
||||||
libdirs=$libs
|
libdirs="$libs"
|
||||||
|
|
||||||
for i in $LDLIBS ; do
|
for i in $LDLIBS ; do
|
||||||
if test $i != -L$libdir ; then
|
if test $i != "-L'$libdir'" ; then
|
||||||
if test -z "$my_libs" ; then
|
if test -z "$my_libs" ; then
|
||||||
my_libs="$i"
|
my_libs="$i"
|
||||||
else
|
else
|
||||||
@ -411,22 +411,22 @@ if test "$echo_ldstaticflags" = "yes"; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$echo_libs" = "yes"; then
|
if test "$echo_libs" = "yes"; then
|
||||||
USELIBS="$libdir/libfltk.a"
|
USELIBS="'$libdir/libfltk.a'"
|
||||||
|
|
||||||
if test x$use_forms = xyes; then
|
if test x$use_forms = xyes; then
|
||||||
USELIBS="$libdir/libfltk_forms.a $USELIBS"
|
USELIBS="'$libdir/libfltk_forms.a' $USELIBS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test x$use_gl = xyes; then
|
if test x$use_gl = xyes; then
|
||||||
USELIBS="$libdir/libfltk_gl.a $USELIBS"
|
USELIBS="'$libdir/libfltk_gl.a' $USELIBS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test x$use_images = xyes; then
|
if test x$use_images = xyes; then
|
||||||
USELIBS="$libdir/libfltk_images.a $USELIBS"
|
USELIBS="'$libdir/libfltk_images.a' $USELIBS"
|
||||||
|
|
||||||
for lib in fltk_jpeg fltk_png fltk_z; do
|
for lib in fltk_jpeg fltk_png fltk_z; do
|
||||||
if test -f $libdir/lib$lib.a; then
|
if test -f "$libdir/lib$lib.a"; then
|
||||||
USELIBS="$libdir/lib$lib.a $USELIBS"
|
USELIBS="'$libdir/lib$lib.a' $USELIBS"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# FLUID Makefile for the Fast Light Tool Kit (FLTK).
|
# FLUID Makefile for the Fast Light Tool Kit (FLTK).
|
||||||
#
|
#
|
||||||
# Copyright 1998-2023 by Bill Spitzak and others.
|
# Copyright 1998-2024 by Bill Spitzak and others.
|
||||||
#
|
#
|
||||||
# This library is free software. Distribution and use rights are outlined in
|
# This library is free software. Distribution and use rights are outlined in
|
||||||
# the file "COPYING" which should have been included with this file. If this
|
# the file "COPYING" which should have been included with this file. If this
|
||||||
@ -97,45 +97,45 @@ include makedepend
|
|||||||
|
|
||||||
install: all
|
install: all
|
||||||
echo "Installing FLUID in $(DESTDIR)$(bindir)..."
|
echo "Installing FLUID in $(DESTDIR)$(bindir)..."
|
||||||
-$(INSTALL_DIR) $(DESTDIR)$(bindir)
|
-$(INSTALL_DIR) "$(DESTDIR)$(bindir)"
|
||||||
$(INSTALL_BIN) $(FLUID) $(DESTDIR)$(bindir)/fluid$(EXEEXT)
|
$(INSTALL_BIN) $(FLUID) "$(DESTDIR)$(bindir)/fluid$(EXEEXT)"
|
||||||
|
|
||||||
install-linux:
|
install-linux:
|
||||||
-$(INSTALL_DIR) $(DESTDIR)/usr/share/applications
|
-$(INSTALL_DIR) "$(DESTDIR)$(datadir)/applications"
|
||||||
$(INSTALL_DATA) fluid.desktop $(DESTDIR)/usr/share/applications
|
$(INSTALL_DATA) fluid.desktop "$(DESTDIR)$(datadir)/applications"
|
||||||
for size in 16 32 48 64 128; do \
|
for size in 16 32 48 64 128; do \
|
||||||
if test ! -d $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps; then \
|
if test ! -d "$(DESTDIR)$(datadir)/icons/hicolor/$${size}x$${size}/apps"; then \
|
||||||
$(INSTALL_DIR) $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps; \
|
$(INSTALL_DIR) "$(DESTDIR)$(datadir)/icons/hicolor/$${size}x$${size}/apps"; \
|
||||||
fi; \
|
fi; \
|
||||||
$(INSTALL_DATA) icons/fluid-$$size.png $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps/fluid.png; \
|
$(INSTALL_DATA) icons/fluid-$$size.png "$(DESTDIR)$(datadir)/icons/hicolor/$${size}x$${size}/apps/fluid.png"; \
|
||||||
done
|
done
|
||||||
-$(INSTALL_DIR) $(DESTDIR)/usr/share/mimelnk/application
|
-$(INSTALL_DIR) "$(DESTDIR)$(datadir)/mimelnk/application"
|
||||||
$(INSTALL_DATA) x-fluid.desktop $(DESTDIR)/usr/share/mimelnk/application
|
$(INSTALL_DATA) x-fluid.desktop "$(DESTDIR)$(datadir)/mimelnk/application"
|
||||||
|
|
||||||
install-osx:
|
install-osx:
|
||||||
echo Installing Fluid in $(DESTDIR)/Applications...
|
echo Installing Fluid in $(DESTDIR)/Applications...
|
||||||
-$(INSTALL_DIR) $(DESTDIR)/Applications/fluid.app
|
-$(INSTALL_DIR) "$(DESTDIR)/Applications/fluid.app"
|
||||||
-$(INSTALL_DIR) $(DESTDIR)/Applications/fluid.app/Contents
|
-$(INSTALL_DIR) "$(DESTDIR)/Applications/fluid.app/Contents"
|
||||||
$(INSTALL_DATA) fluid.app/Contents/Info.plist $(DESTDIR)/Applications/fluid.app/Contents/Info.plist
|
$(INSTALL_DATA) fluid.app/Contents/Info.plist "$(DESTDIR)/Applications/fluid.app/Contents/Info.plist"
|
||||||
-$(INSTALL_DIR) $(DESTDIR)/Applications/fluid.app/Contents/MacOS
|
-$(INSTALL_DIR) "$(DESTDIR)/Applications/fluid.app/Contents/MacOS"
|
||||||
$(RM) $(DESTDIR)/Applications/fluid.app/Contents/MacOS/fluid
|
$(RM) "$(DESTDIR)/Applications/fluid.app/Contents/MacOS/fluid"
|
||||||
$(LN) $(bindir)/fluid $(DESTDIR)/Applications/fluid.app/Contents/MacOS/fluid
|
$(LN) "$(bindir)/fluid" "$(DESTDIR)/Applications/fluid.app/Contents/MacOS/fluid"
|
||||||
-$(INSTALL_DIR) $(DESTDIR)/Applications/fluid.app/Contents/Resources
|
-$(INSTALL_DIR) "$(DESTDIR)/Applications/fluid.app/Contents/Resources"
|
||||||
$(INSTALL_DATA) fluid.app/Contents/Resources/fluid.icns $(DESTDIR)/Applications/fluid.app/Contents/Resources
|
$(INSTALL_DATA) fluid.app/Contents/Resources/fluid.icns "$(DESTDIR)/Applications/fluid.app/Contents/Resources"
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
$(RM) $(DESTDIR)$(bindir)/fluid$(EXEEXT)
|
$(RM) "$(DESTDIR)$(bindir)/fluid$(EXEEXT)"
|
||||||
|
|
||||||
uninstall-linux:
|
uninstall-linux:
|
||||||
$(RM) $(DESTDIR)/usr/share/applications/fluid.desktop
|
$(RM) "$(DESTDIR)$(datadir)/applications/fluid.desktop"
|
||||||
$(RM) $(DESTDIR)/usr/share/icons/hicolor/*/fluid.png
|
$(RM) "$(DESTDIR)$(datadir)/icons/hicolor"/*/fluid.png
|
||||||
$(RM) $(DESTDIR)/usr/share/mimelnk/application/x-fluid.desktop
|
$(RM) "$(DESTDIR)$(datadir)/mimelnk/application/x-fluid.desktop"
|
||||||
|
|
||||||
uninstall-osx:
|
uninstall-osx:
|
||||||
$(RM) -r $(DESTDIR)/Applications/fluid.app
|
$(RM) -r "$(DESTDIR)/Applications/fluid.app"
|
||||||
|
|
||||||
# Note: The rebuild target can only be used if you have the original .fl
|
# Note: The rebuild target can only be used if you have the original .fl
|
||||||
# files. This is normally only used by the FLTK maintainers...
|
# files. This is normally only used by FLTK maintainers...
|
||||||
# It *must* be executed *after* fluid has been built and
|
# It *must* be executed *after* fluid has been built and
|
||||||
# fluid must be rebuilt if any {.fl|.cxx|.h} files were changed.
|
# fluid must be rebuilt if any {.fl|.cxx|.h} files were changed.
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
# JPEG library makefile for the Fast Light Toolkit (FLTK).
|
# JPEG library makefile for the Fast Light Toolkit (FLTK).
|
||||||
#
|
#
|
||||||
# Copyright 1997-2023 by Bill Spitzak and others.
|
# Copyright 1997-2024 by Bill Spitzak and others.
|
||||||
#
|
#
|
||||||
# This library is free software. Distribution and use rights are outlined in
|
# This library is free software. Distribution and use rights are outlined in
|
||||||
# the file "COPYING" which should have been included with this file. If this
|
# the file "COPYING" which should have been included with this file. If this
|
||||||
@ -93,16 +93,16 @@ clean:
|
|||||||
|
|
||||||
install: $(LIBJPEG)
|
install: $(LIBJPEG)
|
||||||
echo "Installing $(LIBJPEG) in $(libdir)..."
|
echo "Installing $(LIBJPEG) in $(libdir)..."
|
||||||
-$(INSTALL_DIR) $(DESTDIR)$(libdir)
|
-$(INSTALL_DIR) "$(DESTDIR)$(libdir)"
|
||||||
$(INSTALL_LIB) $(LIBJPEG) $(DESTDIR)$(libdir)
|
$(INSTALL_LIB) $(LIBJPEG) "$(DESTDIR)$(libdir)"
|
||||||
$(RANLIB) $(DESTDIR)$(libdir)/libfltk_jpeg$(LIBEXT)
|
$(RANLIB) "$(DESTDIR)$(libdir)/libfltk_jpeg$(LIBEXT)"
|
||||||
echo "Installing jpeg headers in $(includedir)/FL/images..."
|
echo "Installing jpeg headers in $(includedir)/FL/images..."
|
||||||
-$(INSTALL_DIR) $(DESTDIR)$(includedir)/FL/images
|
-$(INSTALL_DIR) "$(DESTDIR)$(includedir)/FL/images"
|
||||||
$(INSTALL_DATA) jconfig.h $(DESTDIR)$(includedir)/FL/images
|
$(INSTALL_DATA) jconfig.h "$(DESTDIR)$(includedir)/FL/images"
|
||||||
$(INSTALL_DATA) jerror.h $(DESTDIR)$(includedir)/FL/images
|
$(INSTALL_DATA) jerror.h "$(DESTDIR)$(includedir)/FL/images"
|
||||||
$(INSTALL_DATA) jmorecfg.h $(DESTDIR)$(includedir)/FL/images
|
$(INSTALL_DATA) jmorecfg.h "$(DESTDIR)$(includedir)/FL/images"
|
||||||
$(INSTALL_DATA) jpeglib.h $(DESTDIR)$(includedir)/FL/images
|
$(INSTALL_DATA) jpeglib.h "$(DESTDIR)$(includedir)/FL/images"
|
||||||
$(INSTALL_DATA) fltk_jpeg_prefix.h $(DESTDIR)$(includedir)/FL/images
|
$(INSTALL_DATA) fltk_jpeg_prefix.h "$(DESTDIR)$(includedir)/FL/images"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Uninstall everything...
|
# Uninstall everything...
|
||||||
@ -110,13 +110,13 @@ install: $(LIBJPEG)
|
|||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
echo "Uninstalling libfltk_jpeg$(LIBEXT) in $(libdir)..."
|
echo "Uninstalling libfltk_jpeg$(LIBEXT) in $(libdir)..."
|
||||||
$(RM) $(libdir)/libfltk_jpeg$(LIBEXT)
|
$(RM) "$(libdir)/libfltk_jpeg$(LIBEXT)"
|
||||||
echo "Uninstalling jpeg headers in $(includedir)/FL/images..."
|
echo "Uninstalling jpeg headers in $(includedir)/FL/images..."
|
||||||
$(RM) $(includedir)/FL/images/jconfig.h
|
$(RM) "$(includedir)/FL/images/jconfig.h"
|
||||||
$(RM) $(includedir)/FL/images/jerror.h
|
$(RM) "$(includedir)/FL/images/jerror.h"
|
||||||
$(RM) $(includedir)/FL/images/jmorecfg.h
|
$(RM) "$(includedir)/FL/images/jmorecfg.h"
|
||||||
$(RM) $(includedir)/FL/images/jpeglib.h
|
$(RM) "$(includedir)/FL/images/jpeglib.h"
|
||||||
$(RM) $(includedir)/FL/images/fltk_jpeg_prefix.h
|
$(RM) "$(includedir)/FL/images/fltk_jpeg_prefix.h"
|
||||||
|
|
||||||
#
|
#
|
||||||
# libfltk_jpeg.a
|
# libfltk_jpeg.a
|
||||||
|
28
png/Makefile
28
png/Makefile
@ -2,7 +2,7 @@
|
|||||||
# PNG library Makefile for the Fast Light Toolkit (FLTK).
|
# PNG library Makefile for the Fast Light Toolkit (FLTK).
|
||||||
#
|
#
|
||||||
# Copyright 1997-2011 by Easy Software Products.
|
# Copyright 1997-2011 by Easy Software Products.
|
||||||
# Copyright 2012-2023 by Bill Spitzak and others.
|
# Copyright 2012-2024 by Bill Spitzak and others.
|
||||||
#
|
#
|
||||||
# This library is free software. Distribution and use rights are outlined in
|
# This library is free software. Distribution and use rights are outlined in
|
||||||
# the file "COPYING" which should have been included with this file. If this
|
# the file "COPYING" which should have been included with this file. If this
|
||||||
@ -52,15 +52,15 @@ clean:
|
|||||||
|
|
||||||
install: $(LIBPNG)
|
install: $(LIBPNG)
|
||||||
echo "Installing libfltk_png$(LIBEXT) in $(libdir)..."
|
echo "Installing libfltk_png$(LIBEXT) in $(libdir)..."
|
||||||
-$(INSTALL_DIR) $(DESTDIR)$(libdir)
|
-$(INSTALL_DIR) "$(DESTDIR)$(libdir)"
|
||||||
$(INSTALL_LIB) $(LIBPNG) $(DESTDIR)$(libdir)
|
$(INSTALL_LIB) $(LIBPNG) "$(DESTDIR)$(libdir)"
|
||||||
$(RANLIB) $(DESTDIR)$(libdir)/libfltk_png$(LIBEXT)
|
$(RANLIB) "$(DESTDIR)$(libdir)/libfltk_png$(LIBEXT)"
|
||||||
echo "Installing png headers in $(includedir)/FL/images..."
|
echo "Installing png headers in $(includedir)/FL/images..."
|
||||||
-$(INSTALL_DIR) $(DESTDIR)$(includedir)/FL/images
|
-$(INSTALL_DIR) "$(DESTDIR)$(includedir)/FL/images"
|
||||||
$(INSTALL_DATA) png.h $(DESTDIR)$(includedir)/FL/images
|
$(INSTALL_DATA) png.h "$(DESTDIR)$(includedir)/FL/images"
|
||||||
$(INSTALL_DATA) pngconf.h $(DESTDIR)$(includedir)/FL/images
|
$(INSTALL_DATA) pngconf.h "$(DESTDIR)$(includedir)/FL/images"
|
||||||
$(INSTALL_DATA) pnglibconf.h $(DESTDIR)$(includedir)/FL/images
|
$(INSTALL_DATA) pnglibconf.h "$(DESTDIR)$(includedir)/FL/images"
|
||||||
$(INSTALL_DATA) pngprefix.h $(DESTDIR)$(includedir)/FL/images
|
$(INSTALL_DATA) pngprefix.h "$(DESTDIR)$(includedir)/FL/images"
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -69,12 +69,12 @@ install: $(LIBPNG)
|
|||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
echo "Uninstalling libfltk_png$(LIBEXT) in $(libdir)..."
|
echo "Uninstalling libfltk_png$(LIBEXT) in $(libdir)..."
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_png$(LIBEXT)
|
$(RM) "$(DESTDIR)$(libdir)/libfltk_png$(LIBEXT)"
|
||||||
echo "Uninstalling png headers in $(includedir)/FL/images..."
|
echo "Uninstalling png headers in $(includedir)/FL/images..."
|
||||||
$(RM) $(DESTDIR)$(includedir)/FL/images/png.h
|
$(RM) "$(DESTDIR)$(includedir)/FL/images/png.h"
|
||||||
$(RM) $(DESTDIR)$(includedir)/FL/images/pngconf.h
|
$(RM) "$(DESTDIR)$(includedir)/FL/images/pngconf.h"
|
||||||
$(RM) $(DESTDIR)$(includedir)/FL/images/pnglibconf.h
|
$(RM) "$(DESTDIR)$(includedir)/FL/images/pnglibconf.h"
|
||||||
$(RM) $(DESTDIR)$(includedir)/FL/images/pngprefix.h
|
$(RM) "$(DESTDIR)$(includedir)/FL/images/pngprefix.h"
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
262
src/Makefile
262
src/Makefile
@ -853,248 +853,248 @@ install: $(LIBNAME) $(DSONAME) \
|
|||||||
$(GLLIBNAME) $(GLDSONAME) \
|
$(GLLIBNAME) $(GLDSONAME) \
|
||||||
$(IMGLIBNAME) $(IMGDSONAME)
|
$(IMGLIBNAME) $(IMGDSONAME)
|
||||||
echo "Installing libraries in $(DESTDIR)$(libdir)..."
|
echo "Installing libraries in $(DESTDIR)$(libdir)..."
|
||||||
-$(INSTALL_DIR) $(DESTDIR)$(libdir)
|
-$(INSTALL_DIR) "$(DESTDIR)$(libdir)"
|
||||||
-$(INSTALL_DIR) $(DESTDIR)$(bindir)
|
-$(INSTALL_DIR) "$(DESTDIR)$(bindir)"
|
||||||
$(RM) $(DESTDIR)$(libdir)/$(LIBBASENAME)
|
$(RM) "$(DESTDIR)$(libdir)/$(LIBBASENAME)"
|
||||||
$(INSTALL_LIB) $(LIBNAME) $(DESTDIR)$(libdir)
|
$(INSTALL_LIB) $(LIBNAME) "$(DESTDIR)$(libdir)"
|
||||||
$(INSTALL_LIB) $(FLLIBNAME) $(DESTDIR)$(libdir)
|
$(INSTALL_LIB) $(FLLIBNAME) "$(DESTDIR)$(libdir)"
|
||||||
$(INSTALL_LIB) $(IMGLIBNAME) $(DESTDIR)$(libdir)
|
$(INSTALL_LIB) $(IMGLIBNAME) "$(DESTDIR)$(libdir)"
|
||||||
$(RANLIB) $(DESTDIR)$(libdir)/$(LIBBASENAME)
|
$(RANLIB) "$(DESTDIR)$(libdir)/$(LIBBASENAME)"
|
||||||
$(RANLIB) $(DESTDIR)$(libdir)/$(FLLIBBASENAME)
|
$(RANLIB) "$(DESTDIR)$(libdir)/$(FLLIBBASENAME)"
|
||||||
if test x$(GLLIBNAME) != x; then \
|
if test x$(GLLIBNAME) != x; then \
|
||||||
$(INSTALL_LIB) $(GLLIBNAME) $(DESTDIR)$(libdir); \
|
$(INSTALL_LIB) $(GLLIBNAME) "$(DESTDIR)$(libdir)"; \
|
||||||
$(RANLIB) $(DESTDIR)$(libdir)/$(GLLIBBASENAME); \
|
$(RANLIB) "$(DESTDIR)$(libdir)/$(GLLIBBASENAME)"; \
|
||||||
fi
|
fi
|
||||||
$(RANLIB) $(DESTDIR)$(libdir)/$(IMGLIBBASENAME)
|
$(RANLIB) "$(DESTDIR)$(libdir)/$(IMGLIBBASENAME)"
|
||||||
if test x$(DSONAME) = xlibfltk.so.$(FL_DSO_VERSION); then\
|
if test x$(DSONAME) = xlibfltk.so.$(FL_DSO_VERSION); then\
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk.so*;\
|
$(RM) "$(DESTDIR)$(libdir)"/libfltk.so*;\
|
||||||
$(INSTALL_LIB) libfltk.so.$(FL_DSO_VERSION) $(DESTDIR)$(libdir); \
|
$(INSTALL_LIB) libfltk.so.$(FL_DSO_VERSION) "$(DESTDIR)$(libdir)"; \
|
||||||
$(LN) libfltk.so.$(FL_DSO_VERSION) $(DESTDIR)$(libdir)/libfltk.so;\
|
$(LN) libfltk.so.$(FL_DSO_VERSION) "$(DESTDIR)$(libdir)/libfltk.so";\
|
||||||
fi
|
fi
|
||||||
if test x$(DSONAME) = xlibfltk.sl.$(FL_DSO_VERSION); then\
|
if test x$(DSONAME) = xlibfltk.sl.$(FL_DSO_VERSION); then\
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk.sl*;\
|
$(RM) "$(DESTDIR)$(libdir)"/libfltk.sl*;\
|
||||||
$(INSTALL_LIB) libfltk.sl.$(FL_DSO_VERSION) $(DESTDIR)$(libdir); \
|
$(INSTALL_LIB) libfltk.sl.$(FL_DSO_VERSION) "$(DESTDIR)$(libdir)"; \
|
||||||
$(LN) libfltk.sl.$(FL_DSO_VERSION) $(DESTDIR)$(libdir)/libfltk.sl;\
|
$(LN) libfltk.sl.$(FL_DSO_VERSION) "$(DESTDIR)$(libdir)/libfltk.sl";\
|
||||||
fi
|
fi
|
||||||
if test x$(DSONAME) = xlibfltk.$(FL_DSO_VERSION).dylib; then\
|
if test x$(DSONAME) = xlibfltk.$(FL_DSO_VERSION).dylib; then\
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk.*dylib;\
|
$(RM) "$(DESTDIR)$(libdir)"/libfltk.*dylib;\
|
||||||
$(INSTALL_LIB) libfltk.$(FL_DSO_VERSION).dylib $(DESTDIR)$(libdir); \
|
$(INSTALL_LIB) libfltk.$(FL_DSO_VERSION).dylib "$(DESTDIR)$(libdir)"; \
|
||||||
$(LN) libfltk.$(FL_DSO_VERSION).dylib $(DESTDIR)$(libdir)/libfltk.dylib;\
|
$(LN) libfltk.$(FL_DSO_VERSION).dylib "$(DESTDIR)$(libdir)/libfltk.dylib";\
|
||||||
fi
|
fi
|
||||||
if test x$(DSONAME) = xlibfltk_s.a; then\
|
if test x$(DSONAME) = xlibfltk_s.a; then\
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_s.a;\
|
$(RM) "$(DESTDIR)$(libdir)/libfltk_s.a";\
|
||||||
$(INSTALL_LIB) libfltk_s.a $(DESTDIR)$(libdir); \
|
$(INSTALL_LIB) libfltk_s.a "$(DESTDIR)$(libdir)"; \
|
||||||
fi
|
fi
|
||||||
if test x$(DSONAME) = xcygfltknox-$(FL_DSO_VERSION).dll; then\
|
if test x$(DSONAME) = xcygfltknox-$(FL_DSO_VERSION).dll; then\
|
||||||
$(RM) $(DESTDIR)$(bindir)/$(DSONAME);\
|
$(RM) "$(DESTDIR)$(bindir)/$(DSONAME)";\
|
||||||
$(INSTALL_LIB) $(DSONAME) $(DESTDIR)$(bindir); \
|
$(INSTALL_LIB) $(DSONAME) "$(DESTDIR)$(bindir)"; \
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk.dll.a;\
|
$(RM) "$(DESTDIR)$(libdir)/libfltk.dll.a";\
|
||||||
$(INSTALL_LIB) libfltk.dll.a $(DESTDIR)$(libdir); \
|
$(INSTALL_LIB) libfltk.dll.a "$(DESTDIR)$(libdir)"; \
|
||||||
fi
|
fi
|
||||||
if test x$(DSONAME) = xmgwfltknox-$(FL_DSO_VERSION).dll; then\
|
if test x$(DSONAME) = xmgwfltknox-$(FL_DSO_VERSION).dll; then\
|
||||||
$(RM) $(DESTDIR)$(bindir)/$(DSONAME);\
|
$(RM) "$(DESTDIR)$(bindir)/$(DSONAME)";\
|
||||||
$(INSTALL_LIB) $(DSONAME) $(DESTDIR)$(bindir); \
|
$(INSTALL_LIB) $(DSONAME) "$(DESTDIR)$(bindir)"; \
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk.dll.a;\
|
$(RM) "$(DESTDIR)$(libdir)/libfltk.dll.a";\
|
||||||
$(INSTALL_LIB) libfltk.dll.a $(DESTDIR)$(libdir); \
|
$(INSTALL_LIB) libfltk.dll.a "$(DESTDIR)$(libdir)"; \
|
||||||
fi
|
fi
|
||||||
if test x$(FLDSONAME) = xlibfltk_forms.so.$(FL_DSO_VERSION); then\
|
if test x$(FLDSONAME) = xlibfltk_forms.so.$(FL_DSO_VERSION); then\
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_forms.so*;\
|
$(RM) "$(DESTDIR)$(libdir)"/libfltk_forms.so*;\
|
||||||
$(INSTALL_LIB) libfltk_forms.so.$(FL_DSO_VERSION) $(DESTDIR)$(libdir); \
|
$(INSTALL_LIB) libfltk_forms.so.$(FL_DSO_VERSION) "$(DESTDIR)$(libdir)"; \
|
||||||
$(LN) libfltk_forms.so.$(FL_DSO_VERSION) $(DESTDIR)$(libdir)/libfltk_forms.so;\
|
$(LN) libfltk_forms.so.$(FL_DSO_VERSION) "$(DESTDIR)$(libdir)/libfltk_forms.so";\
|
||||||
fi
|
fi
|
||||||
if test x$(FLDSONAME) = xlibfltk_forms.sl.$(FL_DSO_VERSION); then\
|
if test x$(FLDSONAME) = xlibfltk_forms.sl.$(FL_DSO_VERSION); then\
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_forms.sl*;\
|
$(RM) "$(DESTDIR)$(libdir)"/libfltk_forms.sl*;\
|
||||||
$(INSTALL_LIB) libfltk_forms.sl.$(FL_DSO_VERSION) $(DESTDIR)$(libdir); \
|
$(INSTALL_LIB) libfltk_forms.sl.$(FL_DSO_VERSION) "$(DESTDIR)$(libdir)"; \
|
||||||
$(LN) libfltk_forms.sl.$(FL_DSO_VERSION) $(DESTDIR)$(libdir)/libfltk_forms.sl;\
|
$(LN) libfltk_forms.sl.$(FL_DSO_VERSION) "$(DESTDIR)$(libdir)/libfltk_forms.sl";\
|
||||||
fi
|
fi
|
||||||
if test x$(FLDSONAME) = xlibfltk_forms.$(FL_DSO_VERSION).dylib; then\
|
if test x$(FLDSONAME) = xlibfltk_forms.$(FL_DSO_VERSION).dylib; then\
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_forms.*dylib;\
|
$(RM) "$(DESTDIR)$(libdir)"/libfltk_forms.*dylib;\
|
||||||
$(INSTALL_LIB) libfltk_forms.$(FL_DSO_VERSION).dylib $(DESTDIR)$(libdir); \
|
$(INSTALL_LIB) libfltk_forms.$(FL_DSO_VERSION).dylib "$(DESTDIR)$(libdir)"; \
|
||||||
$(LN) libfltk_forms.$(FL_DSO_VERSION).dylib $(DESTDIR)$(libdir)/libfltk_forms.dylib;\
|
$(LN) libfltk_forms.$(FL_DSO_VERSION).dylib "$(DESTDIR)$(libdir)/libfltk_forms.dylib";\
|
||||||
fi
|
fi
|
||||||
if test x$(FLDSONAME) = xlibfltk_forms_s.a; then\
|
if test x$(FLDSONAME) = xlibfltk_forms_s.a; then\
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_forms_s.a;\
|
$(RM) "$(DESTDIR)$(libdir)/libfltk_forms_s.a";\
|
||||||
$(INSTALL_LIB) libfltk_forms_s.a $(DESTDIR)$(libdir); \
|
$(INSTALL_LIB) libfltk_forms_s.a "$(DESTDIR)$(libdir)"; \
|
||||||
fi
|
fi
|
||||||
if test x$(FLDSONAME) = xcygfltknox_forms-$(FL_DSO_VERSION).dll; then\
|
if test x$(FLDSONAME) = xcygfltknox_forms-$(FL_DSO_VERSION).dll; then\
|
||||||
$(RM) $(DESTDIR)$(bindir)/$(FLDSONAME);\
|
$(RM) "$(DESTDIR)$(bindir)/$(FLDSONAME)";\
|
||||||
$(INSTALL_LIB) $(FLDSONAME) $(DESTDIR)$(bindir); \
|
$(INSTALL_LIB) $(FLDSONAME) "$(DESTDIR)$(bindir)"; \
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_forms.dll.a;\
|
$(RM) "$(DESTDIR)$(libdir)/libfltk_forms.dll.a";\
|
||||||
$(INSTALL_LIB) libfltk_forms.dll.a $(DESTDIR)$(libdir); \
|
$(INSTALL_LIB) libfltk_forms.dll.a "$(DESTDIR)$(libdir)"; \
|
||||||
fi
|
fi
|
||||||
if test x$(FLDSONAME) = xmgwfltknox_forms-$(FL_DSO_VERSION).dll; then\
|
if test x$(FLDSONAME) = xmgwfltknox_forms-$(FL_DSO_VERSION).dll; then\
|
||||||
$(RM) $(DESTDIR)$(bindir)/$(FLDSONAME);\
|
$(RM) "$(DESTDIR)$(bindir)/$(FLDSONAME)";\
|
||||||
$(INSTALL_LIB) $(FLDSONAME) $(DESTDIR)$(bindir); \
|
$(INSTALL_LIB) $(FLDSONAME) "$(DESTDIR)$(bindir)"; \
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_forms.dll.a;\
|
$(RM) "$(DESTDIR)$(libdir)/libfltk_forms.dll.a";\
|
||||||
$(INSTALL_LIB) libfltk_forms.dll.a $(DESTDIR)$(libdir); \
|
$(INSTALL_LIB) libfltk_forms.dll.a "$(DESTDIR)$(libdir)"; \
|
||||||
fi
|
fi
|
||||||
if test x$(GLDSONAME) = xlibfltk_gl.so.$(FL_DSO_VERSION); then\
|
if test x$(GLDSONAME) = xlibfltk_gl.so.$(FL_DSO_VERSION); then\
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_gl.so*;\
|
$(RM) "$(DESTDIR)$(libdir)"/libfltk_gl.so*;\
|
||||||
$(INSTALL_LIB) libfltk_gl.so.$(FL_DSO_VERSION) $(DESTDIR)$(libdir); \
|
$(INSTALL_LIB) libfltk_gl.so.$(FL_DSO_VERSION) "$(DESTDIR)$(libdir)"; \
|
||||||
$(LN) libfltk_gl.so.$(FL_DSO_VERSION) $(DESTDIR)$(libdir)/libfltk_gl.so;\
|
$(LN) libfltk_gl.so.$(FL_DSO_VERSION) "$(DESTDIR)$(libdir)/libfltk_gl.so";\
|
||||||
fi
|
fi
|
||||||
if test x$(GLDSONAME) = xlibfltk_gl.sl.$(FL_DSO_VERSION); then\
|
if test x$(GLDSONAME) = xlibfltk_gl.sl.$(FL_DSO_VERSION); then\
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_gl.sl*;\
|
$(RM) "$(DESTDIR)$(libdir)"/libfltk_gl.sl*;\
|
||||||
$(INSTALL_LIB) libfltk_gl.sl.$(FL_DSO_VERSION) $(DESTDIR)$(libdir); \
|
$(INSTALL_LIB) libfltk_gl.sl.$(FL_DSO_VERSION) "$(DESTDIR)$(libdir)"; \
|
||||||
$(LN) libfltk_gl.sl.$(FL_DSO_VERSION) $(DESTDIR)$(libdir)/libfltk_gl.sl;\
|
$(LN) libfltk_gl.sl.$(FL_DSO_VERSION) "$(DESTDIR)$(libdir)/libfltk_gl.sl";\
|
||||||
fi
|
fi
|
||||||
if test x$(GLDSONAME) = xlibfltk_gl.$(FL_DSO_VERSION).dylib; then\
|
if test x$(GLDSONAME) = xlibfltk_gl.$(FL_DSO_VERSION).dylib; then\
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_gl.*dylib;\
|
$(RM) "$(DESTDIR)$(libdir)"/libfltk_gl.*dylib;\
|
||||||
$(INSTALL_LIB) libfltk_gl.$(FL_DSO_VERSION).dylib $(DESTDIR)$(libdir); \
|
$(INSTALL_LIB) libfltk_gl.$(FL_DSO_VERSION).dylib "$(DESTDIR)$(libdir)"; \
|
||||||
$(LN) libfltk_gl.$(FL_DSO_VERSION).dylib $(DESTDIR)$(libdir)/libfltk_gl.dylib;\
|
$(LN) libfltk_gl.$(FL_DSO_VERSION).dylib "$(DESTDIR)$(libdir)/libfltk_gl.dylib";\
|
||||||
fi
|
fi
|
||||||
if test x$(GLDSONAME) = xlibfltk_gl_s.a; then\
|
if test x$(GLDSONAME) = xlibfltk_gl_s.a; then\
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_gl_s.a;\
|
$(RM) "$(DESTDIR)$(libdir)/libfltk_gl_s.a";\
|
||||||
$(INSTALL_LIB) libfltk_gl_s.a $(DESTDIR)$(libdir); \
|
$(INSTALL_LIB) libfltk_gl_s.a "$(DESTDIR)$(libdir)"; \
|
||||||
fi
|
fi
|
||||||
if test x$(GLDSONAME) = xcygfltknox_gl-$(FL_DSO_VERSION).dll; then\
|
if test x$(GLDSONAME) = xcygfltknox_gl-$(FL_DSO_VERSION).dll; then\
|
||||||
$(RM) $(DESTDIR)$(bindir)/$(GLDSONAME);\
|
$(RM) "$(DESTDIR)$(bindir)/$(GLDSONAME)";\
|
||||||
$(INSTALL_LIB) $(GLDSONAME) $(DESTDIR)$(bindir); \
|
$(INSTALL_LIB) $(GLDSONAME) "$(DESTDIR)$(bindir)"; \
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_gl.dll.a;\
|
$(RM) "$(DESTDIR)$(libdir)/libfltk_gl.dll.a";\
|
||||||
$(INSTALL_LIB) libfltk_gl.dll.a $(DESTDIR)$(libdir); \
|
$(INSTALL_LIB) libfltk_gl.dll.a "$(DESTDIR)$(libdir)"; \
|
||||||
fi
|
fi
|
||||||
if test x$(GLDSONAME) = xmgwfltknox_gl-$(FL_DSO_VERSION).dll; then\
|
if test x$(GLDSONAME) = xmgwfltknox_gl-$(FL_DSO_VERSION).dll; then\
|
||||||
$(RM) $(DESTDIR)$(bindir)/$(GLDSONAME);\
|
$(RM) "$(DESTDIR)$(bindir)/$(GLDSONAME)";\
|
||||||
$(INSTALL_LIB) $(GLDSONAME) $(DESTDIR)$(bindir); \
|
$(INSTALL_LIB) $(GLDSONAME) "$(DESTDIR)$(bindir)"; \
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_gl.dll.a;\
|
$(RM) "$(DESTDIR)$(libdir)/libfltk_gl.dll.a";\
|
||||||
$(INSTALL_LIB) libfltk_gl.dll.a $(DESTDIR)$(libdir); \
|
$(INSTALL_LIB) libfltk_gl.dll.a "$(DESTDIR)$(libdir)"; \
|
||||||
fi
|
fi
|
||||||
if test x$(IMGDSONAME) = xlibfltk_images.so.$(FL_DSO_VERSION); then\
|
if test x$(IMGDSONAME) = xlibfltk_images.so.$(FL_DSO_VERSION); then\
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_images.so*;\
|
$(RM) "$(DESTDIR)$(libdir)"/libfltk_images.so*;\
|
||||||
$(INSTALL_LIB) libfltk_images.so.$(FL_DSO_VERSION) $(DESTDIR)$(libdir); \
|
$(INSTALL_LIB) libfltk_images.so.$(FL_DSO_VERSION) "$(DESTDIR)$(libdir)"; \
|
||||||
$(LN) libfltk_images.so.$(FL_DSO_VERSION) $(DESTDIR)$(libdir)/libfltk_images.so;\
|
$(LN) libfltk_images.so.$(FL_DSO_VERSION) "$(DESTDIR)$(libdir)/libfltk_images.so";\
|
||||||
fi
|
fi
|
||||||
if test x$(IMGDSONAME) = xlibfltk_images.sl.$(FL_DSO_VERSION); then\
|
if test x$(IMGDSONAME) = xlibfltk_images.sl.$(FL_DSO_VERSION); then\
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_images.sl*;\
|
$(RM) "$(DESTDIR)$(libdir)"/libfltk_images.sl*;\
|
||||||
$(INSTALL_LIB) libfltk_images.sl.$(FL_DSO_VERSION) $(DESTDIR)$(libdir); \
|
$(INSTALL_LIB) libfltk_images.sl.$(FL_DSO_VERSION) "$(DESTDIR)$(libdir)"; \
|
||||||
$(LN) libfltk_images.sl.$(FL_DSO_VERSION) $(DESTDIR)$(libdir)/libfltk_images.sl;\
|
$(LN) libfltk_images.sl.$(FL_DSO_VERSION) "$(DESTDIR)$(libdir)/libfltk_images.sl";\
|
||||||
fi
|
fi
|
||||||
if test x$(IMGDSONAME) = xlibfltk_images.$(FL_DSO_VERSION).dylib; then\
|
if test x$(IMGDSONAME) = xlibfltk_images.$(FL_DSO_VERSION).dylib; then\
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_images.*dylib;\
|
$(RM) "$(DESTDIR)$(libdir)"/libfltk_images.*dylib;\
|
||||||
$(INSTALL_LIB) libfltk_images.$(FL_DSO_VERSION).dylib $(DESTDIR)$(libdir); \
|
$(INSTALL_LIB) libfltk_images.$(FL_DSO_VERSION).dylib "$(DESTDIR)$(libdir)"; \
|
||||||
$(LN) libfltk_images.$(FL_DSO_VERSION).dylib $(DESTDIR)$(libdir)/libfltk_images.dylib;\
|
$(LN) libfltk_images.$(FL_DSO_VERSION).dylib "$(DESTDIR)$(libdir)/libfltk_images.dylib";\
|
||||||
fi
|
fi
|
||||||
if test x$(IMGDSONAME) = xlibfltk_images_s.a; then\
|
if test x$(IMGDSONAME) = xlibfltk_images_s.a; then\
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_images_s.a;\
|
$(RM) "$(DESTDIR)$(libdir)/libfltk_images_s.a";\
|
||||||
$(INSTALL_LIB) libfltk_images_s.a $(DESTDIR)$(libdir); \
|
$(INSTALL_LIB) libfltk_images_s.a "$(DESTDIR)$(libdir)"; \
|
||||||
fi
|
fi
|
||||||
if test x$(IMGDSONAME) = xcygfltknox_images-$(FL_DSO_VERSION).dll; then\
|
if test x$(IMGDSONAME) = xcygfltknox_images-$(FL_DSO_VERSION).dll; then\
|
||||||
$(RM) $(DESTDIR)$(bindir)/$(IMGDSONAME); \
|
$(RM) "$(DESTDIR)$(bindir)/$(IMGDSONAME)"; \
|
||||||
$(INSTALL_LIB) $(IMGDSONAME) $(DESTDIR)$(bindir); \
|
$(INSTALL_LIB) $(IMGDSONAME) "$(DESTDIR)$(bindir)"; \
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_images.dll.a;\
|
$(RM) "$(DESTDIR)$(libdir)/libfltk_images.dll.a";\
|
||||||
$(INSTALL_LIB) libfltk_images.dll.a $(DESTDIR)$(libdir); \
|
$(INSTALL_LIB) libfltk_images.dll.a "$(DESTDIR)$(libdir)"; \
|
||||||
fi
|
fi
|
||||||
if test x$(IMGDSONAME) = xmgwfltknox_images-$(FL_DSO_VERSION).dll; then\
|
if test x$(IMGDSONAME) = xmgwfltknox_images-$(FL_DSO_VERSION).dll; then\
|
||||||
$(RM) $(DESTDIR)$(bindir)/$(IMGDSONAME); \
|
$(RM) "$(DESTDIR)$(bindir)/$(IMGDSONAME)"; \
|
||||||
$(INSTALL_LIB) $(IMGDSONAME) $(DESTDIR)$(bindir); \
|
$(INSTALL_LIB) $(IMGDSONAME) "$(DESTDIR)$(bindir)"; \
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_images.dll.a;\
|
$(RM) "$(DESTDIR)$(libdir)/libfltk_images.dll.a";\
|
||||||
$(INSTALL_LIB) libfltk_images.dll.a $(DESTDIR)$(libdir); \
|
$(INSTALL_LIB) libfltk_images.dll.a "$(DESTDIR)$(libdir)"; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
echo "Uninstalling libraries..."
|
echo "Uninstalling libraries..."
|
||||||
$(RM) $(DESTDIR)$(libdir)/$(LIBBASENAME)
|
$(RM) "$(DESTDIR)$(libdir)/$(LIBBASENAME)"
|
||||||
if test x$(DSONAME) = xlibfltk.so.$(FL_DSO_VERSION); then\
|
if test x$(DSONAME) = xlibfltk.so.$(FL_DSO_VERSION); then\
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk.so*;\
|
$(RM) "$(DESTDIR)$(libdir)"/libfltk.so*;\
|
||||||
fi
|
fi
|
||||||
if test x$(DSONAME) = xlibfltk.sl.$(FL_DSO_VERSION); then\
|
if test x$(DSONAME) = xlibfltk.sl.$(FL_DSO_VERSION); then\
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk.sl*;\
|
$(RM) "$(DESTDIR)$(libdir)"/libfltk.sl*;\
|
||||||
fi
|
fi
|
||||||
if test x$(DSONAME) = xlibfltk.$(FL_DSO_VERSION).dylib; then\
|
if test x$(DSONAME) = xlibfltk.$(FL_DSO_VERSION).dylib; then\
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk.*dylib;\
|
$(RM) "$(DESTDIR)$(libdir)"/libfltk.*dylib;\
|
||||||
fi
|
fi
|
||||||
if test x$(DSONAME) = xlibfltk_s.a; then\
|
if test x$(DSONAME) = xlibfltk_s.a; then\
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_s.a;\
|
$(RM) "$(DESTDIR)$(libdir)/libfltk_s.a";\
|
||||||
fi
|
fi
|
||||||
if test x$(DSONAME) = xcygfltknox-$(FL_DSO_VERSION).dll; then\
|
if test x$(DSONAME) = xcygfltknox-$(FL_DSO_VERSION).dll; then\
|
||||||
$(RM) $(DESTDIR)$(bindir)/$(DSONAME); \
|
$(RM) "$(DESTDIR)$(bindir)/$(DSONAME)"; \
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk.dll.a;\
|
$(RM) "$(DESTDIR)$(libdir)/libfltk.dll.a";\
|
||||||
fi
|
fi
|
||||||
if test x$(DSONAME) = xcygfltk-$(FL_DSO_VERSION).dll; then\
|
if test x$(DSONAME) = xcygfltk-$(FL_DSO_VERSION).dll; then\
|
||||||
$(RM) $(DESTDIR)$(bindir)/$(DSONAME); \
|
$(RM) "$(DESTDIR)$(bindir)/$(DSONAME)"; \
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk.dll.a;\
|
$(RM) "$(DESTDIR)$(libdir)/libfltk.dll.a";\
|
||||||
fi
|
fi
|
||||||
if test x$(DSONAME) = xmgwfltknox-$(FL_DSO_VERSION).dll; then\
|
if test x$(DSONAME) = xmgwfltknox-$(FL_DSO_VERSION).dll; then\
|
||||||
$(RM) $(DESTDIR)$(bindir)/$(DSONAME); \
|
$(RM) "$(DESTDIR)$(bindir)/$(DSONAME)"; \
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk.dll.a;\
|
$(RM) "$(DESTDIR)$(libdir)/libfltk.dll.a";\
|
||||||
fi
|
fi
|
||||||
$(RM) $(DESTDIR)$(libdir)/$(FLLIBBASENAME);
|
$(RM) "$(DESTDIR)$(libdir)/$(FLLIBBASENAME)";
|
||||||
if test x$(FLDSONAME) = xlibfltk_forms.so.$(FL_DSO_VERSION); then\
|
if test x$(FLDSONAME) = xlibfltk_forms.so.$(FL_DSO_VERSION); then\
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_forms.so*;\
|
$(RM) "$(DESTDIR)$(libdir)"/libfltk_forms.so*;\
|
||||||
fi
|
fi
|
||||||
if test x$(FLDSONAME) = xlibfltk_forms.sl.$(FL_DSO_VERSION); then\
|
if test x$(FLDSONAME) = xlibfltk_forms.sl.$(FL_DSO_VERSION); then\
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_forms.sl*;\
|
$(RM) "$(DESTDIR)$(libdir)"/libfltk_forms.sl*;\
|
||||||
fi
|
fi
|
||||||
if test x$(FLDSONAME) = xlibfltk_forms.$(FL_DSO_VERSION).dylib; then\
|
if test x$(FLDSONAME) = xlibfltk_forms.$(FL_DSO_VERSION).dylib; then\
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_forms.*dylib;\
|
$(RM) "$(DESTDIR)$(libdir)"/libfltk_forms.*dylib;\
|
||||||
fi
|
fi
|
||||||
if test x$(FLDSONAME) = xlibfltk_forms_s.a; then\
|
if test x$(FLDSONAME) = xlibfltk_forms_s.a; then\
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_forms_s.a;\
|
$(RM) "$(DESTDIR)$(libdir)/libfltk_forms_s.a";\
|
||||||
fi
|
fi
|
||||||
if test x$(FLDSONAME) = xcygfltknox_forms-$(FL_DSO_VERSION).dll; then\
|
if test x$(FLDSONAME) = xcygfltknox_forms-$(FL_DSO_VERSION).dll; then\
|
||||||
$(RM) $(DESTDIR)$(bindir)/$(FLDSONAME); \
|
$(RM) "$(DESTDIR)$(bindir)/$(FLDSONAME)"; \
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_forms.dll.a;\
|
$(RM) "$(DESTDIR)$(libdir)/libfltk_forms.dll.a";\
|
||||||
fi
|
fi
|
||||||
if test x$(FLDSONAME) = xcygfltk_forms-$(FL_DSO_VERSION).dll; then\
|
if test x$(FLDSONAME) = xcygfltk_forms-$(FL_DSO_VERSION).dll; then\
|
||||||
$(RM) $(DESTDIR)$(bindir)/$(FLDSONAME); \
|
$(RM) "$(DESTDIR)$(bindir)/$(FLDSONAME)"; \
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_forms.dll.a;\
|
$(RM) "$(DESTDIR)$(libdir)/libfltk_forms.dll.a";\
|
||||||
fi
|
fi
|
||||||
if test x$(FLDSONAME) = xmgwfltknox_forms-$(FL_DSO_VERSION).dll; then\
|
if test x$(FLDSONAME) = xmgwfltknox_forms-$(FL_DSO_VERSION).dll; then\
|
||||||
$(RM) $(DESTDIR)$(bindir)/$(FLDSONAME); \
|
$(RM) "$(DESTDIR)$(bindir)/$(FLDSONAME)"; \
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_forms.dll.a;\
|
$(RM) "$(DESTDIR)$(libdir)/libfltk_forms.dll.a";\
|
||||||
fi
|
fi
|
||||||
if test x$(GLLIBNAME) != x; then\
|
if test x$(GLLIBNAME) != x; then\
|
||||||
$(RM) $(DESTDIR)$(libdir)/$(GLLIBBASENAME);\
|
$(RM) "$(DESTDIR)$(libdir)/$(GLLIBBASENAME)";\
|
||||||
fi
|
fi
|
||||||
if test x$(GLDSONAME) = xlibfltk_gl.so.$(FL_DSO_VERSION); then\
|
if test x$(GLDSONAME) = xlibfltk_gl.so.$(FL_DSO_VERSION); then\
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_gl.so*;\
|
$(RM) "$(DESTDIR)$(libdir)"/libfltk_gl.so*;\
|
||||||
fi
|
fi
|
||||||
if test x$(GLDSONAME) = xlibfltk_gl.sl.$(FL_DSO_VERSION); then\
|
if test x$(GLDSONAME) = xlibfltk_gl.sl.$(FL_DSO_VERSION); then\
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_gl.sl*;\
|
$(RM) "$(DESTDIR)$(libdir)"/libfltk_gl.sl*;\
|
||||||
fi
|
fi
|
||||||
if test x$(GLDSONAME) = xlibfltk_gl.$(FL_DSO_VERSION).dylib; then\
|
if test x$(GLDSONAME) = xlibfltk_gl.$(FL_DSO_VERSION).dylib; then\
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_gl.*dylib;\
|
$(RM) "$(DESTDIR)$(libdir)"/libfltk_gl.*dylib;\
|
||||||
fi
|
fi
|
||||||
if test x$(GLDSONAME) = xlibfltk_gl_s.a; then\
|
if test x$(GLDSONAME) = xlibfltk_gl_s.a; then\
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_gl_s.a;\
|
$(RM) "$(DESTDIR)$(libdir)/libfltk_gl_s.a";\
|
||||||
fi
|
fi
|
||||||
if test x$(GLDSONAME) = xcygfltknox_gl-$(FL_DSO_VERSION).dll; then\
|
if test x$(GLDSONAME) = xcygfltknox_gl-$(FL_DSO_VERSION).dll; then\
|
||||||
$(RM) $(DESTDIR)$(bindir)/$(GLDSONAME); \
|
$(RM) "$(DESTDIR)$(bindir)/$(GLDSONAME)"; \
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_gl.dll.a;\
|
$(RM) "$(DESTDIR)$(libdir)/libfltk_gl.dll.a";\
|
||||||
fi
|
fi
|
||||||
if test x$(GLDSONAME) = xcygfltk_gl-$(FL_DSO_VERSION).dll; then\
|
if test x$(GLDSONAME) = xcygfltk_gl-$(FL_DSO_VERSION).dll; then\
|
||||||
$(RM) $(DESTDIR)$(bindir)/$(GLDSONAME); \
|
$(RM) "$(DESTDIR)$(bindir)/$(GLDSONAME)"; \
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_gl.dll.a;\
|
$(RM) "$(DESTDIR)$(libdir)/libfltk_gl.dll.a";\
|
||||||
fi
|
fi
|
||||||
if test x$(GLDSONAME) = xmgwfltknox_gl-$(FL_DSO_VERSION).dll; then\
|
if test x$(GLDSONAME) = xmgwfltknox_gl-$(FL_DSO_VERSION).dll; then\
|
||||||
$(RM) $(DESTDIR)$(bindir)/$(GLDSONAME); \
|
$(RM) "$(DESTDIR)$(bindir)/$(GLDSONAME)"; \
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_gl.dll.a;\
|
$(RM) "$(DESTDIR)$(libdir)/libfltk_gl.dll.a";\
|
||||||
fi
|
fi
|
||||||
if test x$(IMGLIBNAME) != x; then\
|
if test x$(IMGLIBNAME) != x; then\
|
||||||
$(RM) $(DESTDIR)$(libdir)/$(IMGLIBBASENAME);\
|
$(RM) "$(DESTDIR)$(libdir)/$(IMGLIBBASENAME)";\
|
||||||
fi
|
fi
|
||||||
if test x$(IMGDSONAME) = xlibfltk_images.so.$(FL_DSO_VERSION); then\
|
if test x$(IMGDSONAME) = xlibfltk_images.so.$(FL_DSO_VERSION); then\
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_images.so*;\
|
$(RM) "$(DESTDIR)$(libdir)"/libfltk_images.so*;\
|
||||||
fi
|
fi
|
||||||
if test x$(IMGDSONAME) = xlibfltk_images.sl.$(FL_DSO_VERSION); then\
|
if test x$(IMGDSONAME) = xlibfltk_images.sl.$(FL_DSO_VERSION); then\
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_images.sl*;\
|
$(RM) "$(DESTDIR)$(libdir)"/libfltk_images.sl*;\
|
||||||
fi
|
fi
|
||||||
if test x$(IMGDSONAME) = xlibfltk_images.$(FL_DSO_VERSION).dylib; then\
|
if test x$(IMGDSONAME) = xlibfltk_images.$(FL_DSO_VERSION).dylib; then\
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_images.*dylib;\
|
$(RM) "$(DESTDIR)$(libdir)"/libfltk_images.*dylib;\
|
||||||
fi
|
fi
|
||||||
if test x$(IMGDSONAME) = xlibfltk_images_s.a; then\
|
if test x$(IMGDSONAME) = xlibfltk_images_s.a; then\
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_images_s.a;\
|
$(RM) "$(DESTDIR)$(libdir)/libfltk_images_s.a";\
|
||||||
fi
|
fi
|
||||||
if test x$(IMGDSONAME) = xcygfltknox_images-$(FL_DSO_VERSION).dll; then\
|
if test x$(IMGDSONAME) = xcygfltknox_images-$(FL_DSO_VERSION).dll; then\
|
||||||
$(RM) $(DESTDIR)$(bindir)/$(IMGDSONAME); \
|
$(RM) "$(DESTDIR)$(bindir)/$(IMGDSONAME)"; \
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_images.dll.a;\
|
$(RM) "$(DESTDIR)$(libdir)/libfltk_images.dll.a";\
|
||||||
fi
|
fi
|
||||||
if test x$(IMGDSONAME) = xcygfltk_images-$(FL_DSO_VERSION).dll; then\
|
if test x$(IMGDSONAME) = xcygfltk_images-$(FL_DSO_VERSION).dll; then\
|
||||||
$(RM) $(DESTDIR)$(bindir)/$(IMGDSONAME); \
|
$(RM) "$(DESTDIR)$(bindir)/$(IMGDSONAME)"; \
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_images.dll.a;\
|
$(RM) "$(DESTDIR)$(libdir)/libfltk_images.dll.a";\
|
||||||
fi
|
fi
|
||||||
if test x$(IMGDSONAME) = xmgwfltknox_images-$(FL_DSO_VERSION).dll; then\
|
if test x$(IMGDSONAME) = xmgwfltknox_images-$(FL_DSO_VERSION).dll; then\
|
||||||
$(RM) $(DESTDIR)$(bindir)/$(IMGDSONAME); \
|
$(RM) "$(DESTDIR)$(bindir)/$(IMGDSONAME)"; \
|
||||||
$(RM) $(DESTDIR)$(libdir)/libfltk_images.dll.a;\
|
$(RM) "$(DESTDIR)$(libdir)/libfltk_images.dll.a";\
|
||||||
fi
|
fi
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Test/example program Makefile for the Fast Light Tool Kit (FLTK).
|
# Test/demo program Makefile for the Fast Light Tool Kit (FLTK).
|
||||||
#
|
#
|
||||||
# Copyright 1998-2024 by Bill Spitzak and others.
|
# Copyright 1998-2024 by Bill Spitzak and others.
|
||||||
#
|
#
|
||||||
@ -282,60 +282,60 @@ clean:
|
|||||||
|
|
||||||
install: all
|
install: all
|
||||||
echo "Installing example programs to $(DESTDIR)$(docdir)/examples..."
|
echo "Installing example programs to $(DESTDIR)$(docdir)/examples..."
|
||||||
-$(INSTALL_DIR) $(DESTDIR)$(docdir)/examples
|
-$(INSTALL_DIR) "$(DESTDIR)$(docdir)/examples"
|
||||||
for file in *.h *.cxx *.fl demo.menu; do \
|
for file in *.h *.cxx *.fl demo.menu; do \
|
||||||
$(INSTALL_DATA) $$file $(DESTDIR)$(docdir)/examples; \
|
$(INSTALL_DATA) $$file "$(DESTDIR)$(docdir)/examples"; \
|
||||||
done
|
done
|
||||||
-$(INSTALL_DIR) $(DESTDIR)$(docdir)/examples/pixmaps
|
-$(INSTALL_DIR) "$(DESTDIR)$(docdir)/examples/pixmaps"
|
||||||
for file in pixmaps/*.xbm pixmaps/*.xpm; do \
|
for file in pixmaps/*.xbm pixmaps/*.xpm; do \
|
||||||
$(INSTALL_DATA) $$file $(DESTDIR)$(docdir)/examples/pixmaps; \
|
$(INSTALL_DATA) $$file "$(DESTDIR)$(docdir)/examples/pixmaps"; \
|
||||||
done
|
done
|
||||||
|
|
||||||
install-linux:
|
install-linux:
|
||||||
echo Installing games to $(DESTDIR)$(bindir)...
|
echo Installing games to $(DESTDIR)$(bindir)...
|
||||||
-$(INSTALL_DIR) $(DESTDIR)$(bindir)
|
-$(INSTALL_DIR) "$(DESTDIR)$(bindir)"
|
||||||
-$(INSTALL_DIR) $(DESTDIR)/usr/share/applications
|
-$(INSTALL_DIR) "$(DESTDIR)$(datadir)/applications"
|
||||||
-$(INSTALL_DIR) $(DESTDIR)/usr/share/icons/hicolor/32x32/apps
|
-$(INSTALL_DIR) "$(DESTDIR)$(datadir)/icons/hicolor/32x32/apps"
|
||||||
-$(INSTALL_DIR) $(DESTDIR)/usr/share/icons/hicolor/128x128/apps
|
-$(INSTALL_DIR) "$(DESTDIR)$(datadir)/icons/hicolor/128x128/apps"
|
||||||
for game in blocks checkers sudoku; do \
|
for game in blocks checkers sudoku; do \
|
||||||
$(INSTALL_BIN) $$game $(DESTDIR)$(bindir); \
|
$(INSTALL_BIN) $$game "$(DESTDIR)$(bindir)"; \
|
||||||
$(INSTALL_DATA) desktop/$$game.desktop $(DESTDIR)/usr/share/applications; \
|
$(INSTALL_DATA) desktop/$$game.desktop "$(DESTDIR)$(datadir)/applications"; \
|
||||||
$(INSTALL_DATA) desktop/$$game-32.png $(DESTDIR)/usr/share/icons/hicolor/32x32/apps/$$game.png; \
|
$(INSTALL_DATA) desktop/$$game-32.png "$(DESTDIR)$(datadir)/icons/hicolor/32x32/apps/$$game.png"; \
|
||||||
$(INSTALL_DATA) desktop/$$game-128.png $(DESTDIR)/usr/share/icons/hicolor/128x128/apps/$$game.png; \
|
$(INSTALL_DATA) desktop/$$game-128.png "$(DESTDIR)$(datadir)/icons/hicolor/128x128/apps/$$game.png"; \
|
||||||
done
|
done
|
||||||
|
|
||||||
install-osx:
|
install-osx:
|
||||||
echo Installing games in $(DESTDIR)/Applications...
|
echo Installing games in $(DESTDIR)/Applications...
|
||||||
for game in blocks checkers sudoku; do \
|
for game in blocks checkers sudoku; do \
|
||||||
if test ! -d $(DESTDIR)/Applications/$$game.app; then \
|
if test ! -d "$(DESTDIR)/Applications/$$game.app"; then \
|
||||||
$(INSTALL_DIR) $(DESTDIR)/Applications/$$game.app; \
|
$(INSTALL_DIR) "$(DESTDIR)/Applications/$$game.app"; \
|
||||||
$(INSTALL_DIR) $(DESTDIR)/Applications/$$game.app/Contents; \
|
$(INSTALL_DIR) "$(DESTDIR)/Applications/$$game.app/Contents"; \
|
||||||
$(INSTALL_DIR) $(DESTDIR)/Applications/$$game.app/Contents/MacOS; \
|
$(INSTALL_DIR) "$(DESTDIR)/Applications/$$game.app/Contents/MacOS"; \
|
||||||
$(INSTALL_DIR) $(DESTDIR)/Applications/$$game.app/Contents/Resources; \
|
$(INSTALL_DIR) "$(DESTDIR)/Applications/$$game.app/Contents/Resources"; \
|
||||||
fi; \
|
fi; \
|
||||||
$(INSTALL_DATA) $$game.app/Contents/Info.plist $(DESTDIR)/Applications/$$game.app/Contents; \
|
$(INSTALL_DATA) $$game.app/Contents/Info.plist "$(DESTDIR)/Applications/$$game.app/Contents"; \
|
||||||
$(INSTALL_BIN) $$game.app/Contents/MacOS/$$game $(DESTDIR)/Applications/$$game.app/Contents/MacOS; \
|
$(INSTALL_BIN) $$game.app/Contents/MacOS/$$game "$(DESTDIR)/Applications/$$game.app/Contents/MacOS"; \
|
||||||
$(INSTALL_DATA) $$game.app/Contents/Resources/$$game.icns $(DESTDIR)/Applications/$$game.app/Contents/Resources; \
|
$(INSTALL_DATA) $$game.app/Contents/Resources/$$game.icns "$(DESTDIR)/Applications/$$game.app/Contents/Resources"; \
|
||||||
done
|
done
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
echo "Removing examples programs from $(DESTDIR)$(docdir)/examples..."
|
echo "Removing examples programs from $(DESTDIR)$(docdir)/examples..."
|
||||||
-$(RMDIR) $(DESTDIR)$(docdir)/examples
|
-$(RMDIR) "$(DESTDIR)$(docdir)/examples"
|
||||||
|
|
||||||
uninstall-linux:
|
uninstall-linux:
|
||||||
echo Removing games from $(DESTDIR)$(bindir)...
|
echo Removing games from $(DESTDIR)$(bindir)...
|
||||||
for game in blocks checkers sudoku; do \
|
for game in blocks checkers sudoku; do \
|
||||||
$(RM) $(DESTDIR)$(bindir)/$$game; \
|
$(RM) "$(DESTDIR)$(bindir)/$$game"; \
|
||||||
$(RM) $(DESTDIR)/usr/share/applications/$$game.desktop; \
|
$(RM) "$(DESTDIR)$(datadir)/applications/$$game.desktop"; \
|
||||||
$(RM) $(DESTDIR)/usr/share/icons/hicolor/32x32/apps/$$game.png; \
|
$(RM) "$(DESTDIR)$(datadir)/icons/hicolor/32x32/apps/$$game.png"; \
|
||||||
$(RM) $(DESTDIR)/usr/share/icons/hicolor/128x128/apps/$$game.png; \
|
$(RM) "$(DESTDIR)$(datadir)/icons/hicolor/128x128/apps/$$game.png"; \
|
||||||
done
|
done
|
||||||
|
|
||||||
uninstall-osx:
|
uninstall-osx:
|
||||||
echo Removing games from $(DESTDIR)/Applications...
|
echo Removing games from $(DESTDIR)/Applications...
|
||||||
$(RMDIR) $(DESTDIR)/Applications/blocks.app
|
$(RMDIR) "$(DESTDIR)/Applications/blocks.app"
|
||||||
$(RMDIR) $(DESTDIR)/Applications/checkers.app
|
$(RMDIR) "$(DESTDIR)/Applications/checkers.app"
|
||||||
$(RMDIR) $(DESTDIR)/Applications/sudoku.app
|
$(RMDIR) "$(DESTDIR)/Applications/sudoku.app"
|
||||||
|
|
||||||
# FLUID file rules
|
# FLUID file rules
|
||||||
.fl.cxx .fl.h:
|
.fl.cxx .fl.h:
|
||||||
|
@ -46,14 +46,14 @@ clean:
|
|||||||
|
|
||||||
install: $(LIBZ)
|
install: $(LIBZ)
|
||||||
echo "Installing libfltk_z$(LIBEXT) in $(libdir)..."
|
echo "Installing libfltk_z$(LIBEXT) in $(libdir)..."
|
||||||
-$(INSTALL_DIR) $(DESTDIR)$(libdir)
|
-$(INSTALL_DIR) "$(DESTDIR)$(libdir)"
|
||||||
$(INSTALL_LIB) $(LIBZ) $(DESTDIR)$(libdir)
|
$(INSTALL_LIB) $(LIBZ) "$(DESTDIR)$(libdir)"
|
||||||
$(RANLIB) $(DESTDIR)$(libdir)/libfltk_z$(LIBEXT)
|
$(RANLIB) "$(DESTDIR)$(libdir)/libfltk_z$(LIBEXT)"
|
||||||
echo "Installing zlib headers in $(includedir)/FL/images..."
|
echo "Installing zlib headers in $(includedir)/FL/images..."
|
||||||
-$(INSTALL_DIR) $(DESTDIR)$(includedir)/FL/images
|
-$(INSTALL_DIR) "$(DESTDIR)$(includedir)/FL/images"
|
||||||
$(INSTALL_DATA) zconf.h $(DESTDIR)$(includedir)/FL/images
|
$(INSTALL_DATA) zconf.h "$(DESTDIR)$(includedir)/FL/images"
|
||||||
$(INSTALL_DATA) zlib.h $(DESTDIR)$(includedir)/FL/images
|
$(INSTALL_DATA) zlib.h "$(DESTDIR)$(includedir)/FL/images"
|
||||||
$(INSTALL_DATA) zutil.h $(DESTDIR)$(includedir)/FL/images
|
$(INSTALL_DATA) zutil.h "$(DESTDIR)$(includedir)/FL/images"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Uninstall everything...
|
# Uninstall everything...
|
||||||
@ -61,11 +61,11 @@ install: $(LIBZ)
|
|||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
echo "Uninstalling libfltk_z$(LIBEXT) in $(libdir)..."
|
echo "Uninstalling libfltk_z$(LIBEXT) in $(libdir)..."
|
||||||
$(RM) $(libdir)/libfltk_z$(LIBEXT)
|
$(RM) "$(libdir)/libfltk_z$(LIBEXT)"
|
||||||
echo "Uninstalling zlib headers in $(includedir)/FL/images..."
|
echo "Uninstalling zlib headers in $(includedir)/FL/images..."
|
||||||
$(RM) $(includedir)/FL/images/zconf.h
|
$(RM) "$(includedir)/FL/images/zconf.h"
|
||||||
$(RM) $(includedir)/FL/images/zlib.h
|
$(RM) "$(includedir)/FL/images/zlib.h"
|
||||||
$(RM) $(includedir)/FL/images/zutil.h
|
$(RM) "$(includedir)/FL/images/zutil.h"
|
||||||
|
|
||||||
#
|
#
|
||||||
# libfltk_z.a
|
# libfltk_z.a
|
||||||
|
Loading…
Reference in New Issue
Block a user