1998-10-21 01:06:19 +04:00
|
|
|
#
|
2001-10-27 07:33:25 +04:00
|
|
|
# "$Id: Makefile,v 1.18.2.14.2.15 2001/10/27 03:33:25 easysw Exp $"
|
1998-10-21 01:06:19 +04:00
|
|
|
#
|
|
|
|
# Library makefile for the Fast Light Tool Kit (FLTK).
|
|
|
|
#
|
2001-01-22 18:13:41 +03:00
|
|
|
# Copyright 1998-2001 by Bill Spitzak and others.
|
1998-10-21 01:06:19 +04:00
|
|
|
#
|
|
|
|
# This library is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU Library General Public
|
|
|
|
# License as published by the Free Software Foundation; either
|
|
|
|
# version 2 of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This library is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
# Library General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU Library General Public
|
|
|
|
# License along with this library; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
|
|
# USA.
|
|
|
|
#
|
2000-06-06 01:21:24 +04:00
|
|
|
# Please report all bugs and problems to "fltk-bugs@fltk.org".
|
1998-10-21 01:06:19 +04:00
|
|
|
#
|
|
|
|
|
1998-10-06 22:21:25 +04:00
|
|
|
CPPFILES = \
|
1998-12-06 17:59:14 +03:00
|
|
|
Fl.cxx \
|
|
|
|
Fl_Adjuster.cxx \
|
|
|
|
Fl_Bitmap.cxx \
|
|
|
|
Fl_Browser.cxx \
|
|
|
|
Fl_Browser_.cxx \
|
|
|
|
Fl_Browser_load.cxx \
|
|
|
|
Fl_Box.cxx \
|
|
|
|
Fl_Button.cxx \
|
|
|
|
Fl_Chart.cxx \
|
2001-08-11 18:49:51 +04:00
|
|
|
Fl_Check_Browser.cxx \
|
1998-12-06 17:59:14 +03:00
|
|
|
Fl_Check_Button.cxx \
|
|
|
|
Fl_Choice.cxx \
|
|
|
|
Fl_Clock.cxx \
|
|
|
|
Fl_Color_Chooser.cxx \
|
|
|
|
Fl_Counter.cxx \
|
|
|
|
Fl_Dial.cxx \
|
|
|
|
Fl_Double_Window.cxx \
|
2001-09-29 18:38:59 +04:00
|
|
|
Fl_File_Browser.cxx \
|
|
|
|
Fl_File_Chooser.cxx \
|
|
|
|
Fl_File_Chooser2.cxx \
|
|
|
|
Fl_File_Icon.cxx \
|
1998-12-06 17:59:14 +03:00
|
|
|
Fl_Group.cxx \
|
2001-09-29 18:38:59 +04:00
|
|
|
Fl_Help_Dialog.cxx \
|
|
|
|
Fl_Help_View.cxx \
|
1998-12-06 17:59:14 +03:00
|
|
|
Fl_Image.cxx \
|
|
|
|
Fl_Input.cxx \
|
|
|
|
Fl_Input_.cxx \
|
|
|
|
Fl_Light_Button.cxx \
|
|
|
|
Fl_Menu.cxx \
|
|
|
|
Fl_Menu_.cxx \
|
|
|
|
Fl_Menu_Bar.cxx \
|
|
|
|
Fl_Menu_Button.cxx \
|
|
|
|
Fl_Menu_Window.cxx \
|
|
|
|
Fl_Menu_add.cxx \
|
|
|
|
Fl_Menu_global.cxx \
|
|
|
|
Fl_Multi_Label.cxx \
|
|
|
|
Fl_Output.cxx \
|
|
|
|
Fl_Overlay_Window.cxx \
|
|
|
|
Fl_Pack.cxx \
|
|
|
|
Fl_Pixmap.cxx \
|
|
|
|
Fl_Positioner.cxx \
|
2001-08-11 18:49:51 +04:00
|
|
|
Fl_Progress.cxx \
|
1998-12-06 17:59:14 +03:00
|
|
|
Fl_Repeat_Button.cxx \
|
|
|
|
Fl_Return_Button.cxx \
|
|
|
|
Fl_Roller.cxx \
|
|
|
|
Fl_Round_Button.cxx \
|
|
|
|
Fl_Scroll.cxx \
|
|
|
|
Fl_Scrollbar.cxx \
|
|
|
|
Fl_Single_Window.cxx \
|
|
|
|
Fl_Slider.cxx \
|
|
|
|
Fl_Tabs.cxx \
|
2001-08-04 16:21:34 +04:00
|
|
|
Fl_Text_Buffer.cxx \
|
|
|
|
Fl_Text_Display.cxx \
|
|
|
|
Fl_Text_Editor.cxx \
|
1998-12-06 17:59:14 +03:00
|
|
|
Fl_Tile.cxx \
|
2001-08-02 01:24:49 +04:00
|
|
|
Fl_Tooltip.cxx \
|
1998-12-06 17:59:14 +03:00
|
|
|
Fl_Valuator.cxx \
|
|
|
|
Fl_Value_Input.cxx \
|
|
|
|
Fl_Value_Output.cxx \
|
|
|
|
Fl_Value_Slider.cxx \
|
|
|
|
Fl_Widget.cxx \
|
|
|
|
Fl_Window.cxx \
|
|
|
|
Fl_Window_fullscreen.cxx \
|
|
|
|
Fl_Window_hotspot.cxx \
|
|
|
|
Fl_Window_iconize.cxx \
|
2001-08-02 22:39:01 +04:00
|
|
|
Fl_Wizard.cxx \
|
1998-12-06 17:59:14 +03:00
|
|
|
Fl_abort.cxx \
|
|
|
|
Fl_add_idle.cxx \
|
|
|
|
Fl_arg.cxx \
|
2000-02-21 13:30:00 +03:00
|
|
|
Fl_compose.cxx \
|
1998-12-06 17:59:14 +03:00
|
|
|
Fl_cutpaste.cxx \
|
|
|
|
Fl_display.cxx \
|
|
|
|
Fl_get_key.cxx \
|
|
|
|
Fl_get_system_colors.cxx \
|
1999-02-03 11:43:35 +03:00
|
|
|
Fl_grab.cxx \
|
1998-12-06 17:59:14 +03:00
|
|
|
Fl_own_colormap.cxx \
|
|
|
|
Fl_visual.cxx \
|
|
|
|
Fl_x.cxx \
|
|
|
|
filename_absolute.cxx \
|
|
|
|
filename_expand.cxx \
|
|
|
|
filename_ext.cxx \
|
|
|
|
filename_isdir.cxx \
|
|
|
|
filename_list.cxx \
|
|
|
|
filename_match.cxx \
|
|
|
|
filename_setext.cxx \
|
|
|
|
fl_arc.cxx \
|
|
|
|
fl_arci.cxx \
|
|
|
|
fl_ask.cxx \
|
|
|
|
fl_boxtype.cxx \
|
|
|
|
fl_color.cxx \
|
|
|
|
fl_cursor.cxx \
|
|
|
|
fl_curve.cxx \
|
|
|
|
fl_diamond_box.cxx \
|
|
|
|
fl_draw.cxx \
|
|
|
|
fl_draw_image.cxx \
|
|
|
|
fl_draw_pixmap.cxx \
|
|
|
|
fl_engraved_label.cxx \
|
2001-09-30 16:30:13 +04:00
|
|
|
fl_file_dir.cxx \
|
1998-12-06 17:59:14 +03:00
|
|
|
fl_font.cxx \
|
|
|
|
fl_labeltype.cxx \
|
2000-05-14 00:03:20 +04:00
|
|
|
fl_line_style.cxx \
|
1998-12-06 17:59:14 +03:00
|
|
|
fl_oval_box.cxx \
|
|
|
|
fl_overlay.cxx \
|
|
|
|
fl_overlay_visual.cxx \
|
|
|
|
fl_rect.cxx \
|
|
|
|
fl_round_box.cxx \
|
|
|
|
fl_rounded_box.cxx \
|
|
|
|
fl_set_font.cxx \
|
|
|
|
fl_set_fonts.cxx \
|
|
|
|
fl_scroll_area.cxx \
|
|
|
|
fl_shadow_box.cxx \
|
|
|
|
fl_shortcut.cxx \
|
|
|
|
fl_show_colormap.cxx \
|
|
|
|
fl_symbols.cxx \
|
|
|
|
fl_vertex.cxx \
|
|
|
|
forms_compatability.cxx \
|
|
|
|
forms_bitmap.cxx \
|
|
|
|
forms_free.cxx \
|
|
|
|
forms_fselect.cxx \
|
|
|
|
forms_pixmap.cxx \
|
2001-08-02 22:08:36 +04:00
|
|
|
forms_timer.cxx
|
|
|
|
|
|
|
|
GLCPPFILES = \
|
|
|
|
Fl_Gl_Choice.cxx \
|
|
|
|
Fl_Gl_Overlay.cxx \
|
|
|
|
Fl_Gl_Window.cxx \
|
1998-12-06 17:59:14 +03:00
|
|
|
gl_draw.cxx \
|
|
|
|
gl_start.cxx \
|
|
|
|
glut_compatability.cxx \
|
|
|
|
glut_font.cxx
|
1998-10-06 22:21:25 +04:00
|
|
|
|
1999-03-29 21:39:46 +04:00
|
|
|
CFILES = fl_call_main.c scandir.c numericsort.c vsnprintf.c
|
1998-10-06 22:21:25 +04:00
|
|
|
|
|
|
|
CLEAN =
|
|
|
|
|
|
|
|
################################################################
|
|
|
|
|
|
|
|
include ../makeinclude
|
|
|
|
|
1998-12-06 17:59:14 +03:00
|
|
|
OBJECTS = $(CPPFILES:.cxx=.o) $(CFILES:.c=.o)
|
2001-08-02 22:08:36 +04:00
|
|
|
GLOBJECTS = $(GLCPPFILES:.cxx=.o)
|
1998-10-06 22:21:25 +04:00
|
|
|
|
2001-08-02 22:08:36 +04:00
|
|
|
all: $(LIBNAME) $(DSONAME) $(GLLIBNAME) $(GLDSONAME)
|
1999-03-09 21:32:44 +03:00
|
|
|
|
2001-08-02 22:08:36 +04:00
|
|
|
$(LIBNAME): $(OBJECTS)
|
2000-04-26 02:17:00 +04:00
|
|
|
echo $(LIBCOMMAND) $@ ...
|
2001-10-27 07:33:25 +04:00
|
|
|
-$(RM) $@
|
2000-04-26 02:17:00 +04:00
|
|
|
$(LIBCOMMAND) $@ $(OBJECTS)
|
|
|
|
$(RANLIB) $@
|
1999-03-09 21:32:44 +03:00
|
|
|
|
2001-08-02 22:08:36 +04:00
|
|
|
libfltk.so.1.1 libfltk.sl.1.1: $(OBJECTS)
|
2000-04-26 02:17:00 +04:00
|
|
|
echo $(DSOCOMMAND) $@ ...
|
2001-08-02 23:43:49 +04:00
|
|
|
$(DSOCOMMAND) $@ $(OBJECTS) $(IMAGELIBS)
|
1998-10-06 22:21:25 +04:00
|
|
|
|
2001-08-02 22:08:36 +04:00
|
|
|
libfltk_s.a: $(OBJECTS)
|
|
|
|
echo $(DSOCOMMAND) libfltk_s.o ...
|
2001-08-02 23:43:49 +04:00
|
|
|
$(DSOCOMMAND) libfltk_s.o $(OBJECTS) $(IMAGELIBS)
|
2001-08-02 22:08:36 +04:00
|
|
|
echo $(LIBCOMMAND) libfltk_s.a libfltk_s.o
|
2001-10-27 07:33:25 +04:00
|
|
|
-$(RM) $@
|
2001-08-02 22:08:36 +04:00
|
|
|
$(LIBCOMMAND) libfltk_s.a libfltk_s.o
|
|
|
|
chmod +x libfltk_s.a
|
|
|
|
|
|
|
|
$(GLLIBNAME): $(GLOBJECTS)
|
|
|
|
echo $(LIBCOMMAND) $@ ...
|
2001-10-27 07:33:25 +04:00
|
|
|
-$(RM) $@
|
2001-08-02 22:08:36 +04:00
|
|
|
$(LIBCOMMAND) $@ $(GLOBJECTS)
|
|
|
|
$(RANLIB) $@
|
|
|
|
|
2001-09-29 19:57:32 +04:00
|
|
|
libfltk_gl.so.1.1 libfltk_gl.sl.1.1: $(GLOBJECTS)
|
2001-08-02 22:08:36 +04:00
|
|
|
echo $(DSOCOMMAND) $@ ...
|
|
|
|
$(DSOCOMMAND) $@ $(GLOBJECTS)
|
|
|
|
|
2001-09-29 19:57:32 +04:00
|
|
|
libfltk_gl_s.a: $(GLOBJECTS)
|
|
|
|
echo $(DSOCOMMAND) libfltk_gl_s.o ...
|
|
|
|
$(DSOCOMMAND) libfltk_gl_s.o $(GLOBJECTS)
|
|
|
|
echo $(LIBCOMMAND) libfltk_gl_s.a libfltk_gl_s.o
|
2001-10-27 07:33:25 +04:00
|
|
|
-$(RM) $@
|
2001-09-29 19:57:32 +04:00
|
|
|
$(LIBCOMMAND) libfltk_gl_s.a libfltk_gl_s.o
|
|
|
|
chmod +x libfltk_gl_s.a
|
2001-08-02 22:08:36 +04:00
|
|
|
|
1998-10-06 22:21:25 +04:00
|
|
|
clean :
|
1999-03-26 15:46:25 +03:00
|
|
|
-@ rm -f *.o *.do $(DSONAME) $(LIBRARY) $(CLEAN) core *~ ../include/*~ makedepend cmap
|
2000-04-26 02:17:00 +04:00
|
|
|
touch makedepend
|
1998-10-06 22:21:25 +04:00
|
|
|
|
|
|
|
depend:
|
2001-08-02 19:32:00 +04:00
|
|
|
# $(MAKEDEPEND) -I.. $(CXXFLAGS) $(CPPFILES) $(CFILES) > makedepend
|
2001-08-02 22:15:44 +04:00
|
|
|
makedepend -Y -I.. -f makedepend $(CPPFILES) $(GLCPPFILES) $(CFILES)
|
2000-04-26 02:17:00 +04:00
|
|
|
|
1998-10-06 22:21:25 +04:00
|
|
|
include makedepend
|
|
|
|
|
|
|
|
################################################################
|
|
|
|
|
2001-08-02 22:08:36 +04:00
|
|
|
install: $(LIBNAME) $(DSONAME) $(GLLIBNAME) $(GLDSONAME)
|
2000-04-26 02:17:00 +04:00
|
|
|
echo "Installing libraries..."
|
|
|
|
-mkdir -p $(libdir)
|
|
|
|
rm -f $(libdir)/$(LIBNAME)
|
2001-08-02 22:08:36 +04:00
|
|
|
-cp $(LIBNAME) $(GLLIBNAME) $(libdir)
|
|
|
|
if test x$(DSONAME) = xlibfltk.so.1.1; then\
|
1999-03-25 18:26:44 +03:00
|
|
|
rm -f $(libdir)/libfltk.so*;\
|
2001-08-02 22:08:36 +04:00
|
|
|
cp libfltk.so.1.1 $(libdir); \
|
|
|
|
ln -s libfltk.so.1.1 $(libdir)/libfltk.so;\
|
1999-02-22 21:05:20 +03:00
|
|
|
fi
|
2001-08-02 22:08:36 +04:00
|
|
|
if test x$(DSONAME) = xlibfltk.sl.1.1; then\
|
1999-03-25 18:26:44 +03:00
|
|
|
rm -f $(libdir)/libfltk.sl*;\
|
2001-08-02 22:08:36 +04:00
|
|
|
cp libfltk.sl.1.1 $(libdir); \
|
|
|
|
ln -s libfltk.sl.1.1 $(libdir)/libfltk.sl;\
|
|
|
|
fi
|
|
|
|
if test x$(DSONAME) = xlibfltk_s.a; then\
|
|
|
|
rm -f $(libdir)/libfltk_s.a;\
|
|
|
|
cp libfltk_s.a $(libdir); \
|
|
|
|
fi
|
2001-09-29 19:57:32 +04:00
|
|
|
if test x$(GLDSONAME) = xlibfltk_gl.so.1.1; then\
|
|
|
|
rm -f $(libdir)/libfltk_gl.so*;\
|
|
|
|
cp libfltk_gl.so.1.1 $(libdir); \
|
|
|
|
ln -s libfltk_gl.so.1.1 $(libdir)/libfltk_gl.so;\
|
2001-08-02 22:08:36 +04:00
|
|
|
fi
|
2001-09-29 19:57:32 +04:00
|
|
|
if test x$(GLDSONAME) = xlibfltk_gl.sl.1.1; then\
|
|
|
|
rm -f $(libdir)/libfltk_gl.sl*;\
|
|
|
|
cp libfltk_gl.sl.1.1 $(libdir); \
|
|
|
|
ln -s libfltk_gl.sl.1.1 $(libdir)/libfltk_gl.sl;\
|
2001-08-02 22:08:36 +04:00
|
|
|
fi
|
2001-09-29 19:57:32 +04:00
|
|
|
if test x$(GLDSONAME) = xlibfltk_gl_s.a; then\
|
|
|
|
rm -f $(libdir)/libfltk_gl_s.a;\
|
|
|
|
cp libfltk_gl_s.a $(libdir); \
|
1999-02-22 21:05:20 +03:00
|
|
|
fi
|
2000-04-26 02:17:00 +04:00
|
|
|
echo "Installing include files..."
|
|
|
|
-mkdir -p $(includedir)
|
|
|
|
rm -rf $(includedir)/FL
|
|
|
|
mkdir $(includedir)/FL
|
2000-06-05 00:57:34 +04:00
|
|
|
cp ../FL/*.[hH] $(includedir)/FL
|
2000-04-26 02:17:00 +04:00
|
|
|
cd $(includedir)/FL;\
|
|
|
|
for file in *.H; do\
|
2001-09-30 21:54:45 +04:00
|
|
|
rm -f "`basename $$file H`h";\
|
2000-06-05 00:57:34 +04:00
|
|
|
ln -s $$file "`basename $$file H`h";\
|
1999-02-23 18:37:19 +03:00
|
|
|
done
|
2001-09-30 21:54:45 +04:00
|
|
|
rm -f $(includedir)/FL/fl_file_chooser.H
|
|
|
|
ln -s Fl_File_Chooser.H $(includedir)/FL/fl_file_chooser.H
|
|
|
|
rm -f $(includedir)/FL/fl_file_chooser.h
|
|
|
|
ln -s Fl_File_Chooser.H $(includedir)/FL/fl_file_chooser.h
|
2000-04-26 02:17:00 +04:00
|
|
|
rm -f $(includedir)/Fl
|
|
|
|
ln -s FL $(includedir)/Fl
|
1998-10-06 22:21:25 +04:00
|
|
|
|
1998-10-21 01:06:19 +04:00
|
|
|
#
|
2001-10-27 07:33:25 +04:00
|
|
|
# End of "$Id: Makefile,v 1.18.2.14.2.15 2001/10/27 03:33:25 easysw Exp $".
|
1998-10-21 01:06:19 +04:00
|
|
|
#
|