1998-10-21 01:06:19 +04:00
|
|
|
#
|
2001-08-02 01:24:49 +04:00
|
|
|
# "$Id: Makefile,v 1.18.2.14.2.1 2001/08/01 21:24:49 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 \
|
|
|
|
Fl_Check_Button.cxx \
|
|
|
|
Fl_Choice.cxx \
|
|
|
|
Fl_Clock.cxx \
|
|
|
|
Fl_Color_Chooser.cxx \
|
|
|
|
Fl_Counter.cxx \
|
|
|
|
Fl_Dial.cxx \
|
|
|
|
Fl_Double_Window.cxx \
|
|
|
|
Fl_Gl_Choice.cxx \
|
|
|
|
Fl_Gl_Overlay.cxx \
|
|
|
|
Fl_Gl_Window.cxx \
|
|
|
|
Fl_Group.cxx \
|
|
|
|
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 \
|
|
|
|
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 \
|
|
|
|
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 \
|
|
|
|
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 \
|
|
|
|
fl_file_chooser.cxx \
|
|
|
|
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 \
|
|
|
|
forms_timer.cxx \
|
|
|
|
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
|
|
|
|
|
|
|
|
LIBRARY = ../lib/$(LIBNAME)
|
|
|
|
|
1998-12-06 17:59:14 +03:00
|
|
|
OBJECTS = $(CPPFILES:.cxx=.o) $(CFILES:.c=.o)
|
1998-10-06 22:21:25 +04:00
|
|
|
|
1999-03-25 18:26:44 +03:00
|
|
|
all: $(LIBRARY) $(DSONAME)
|
1999-03-09 21:32:44 +03:00
|
|
|
|
1999-03-26 01:15:53 +03:00
|
|
|
$(LIBRARY): $(OBJECTS)
|
2000-04-26 02:17:00 +04:00
|
|
|
echo $(LIBCOMMAND) $@ ...
|
|
|
|
$(LIBCOMMAND) $@ $(OBJECTS)
|
|
|
|
$(RANLIB) $@
|
1999-03-09 21:32:44 +03:00
|
|
|
|
1999-04-26 16:36:17 +04:00
|
|
|
libfltk.so.1 libfltk.sl.1: $(OBJECTS)
|
2000-04-26 02:17:00 +04:00
|
|
|
echo $(DSOCOMMAND) $@ ...
|
|
|
|
$(DSOCOMMAND) $@ $(OBJECTS)
|
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:
|
1999-01-31 10:43:16 +03:00
|
|
|
$(MAKEDEPEND) -I.. $(CXXFLAGS) $(CPPFILES) $(CFILES) > makedepend
|
2000-04-26 02:17:00 +04:00
|
|
|
|
1998-10-06 22:21:25 +04:00
|
|
|
include makedepend
|
|
|
|
|
|
|
|
################################################################
|
|
|
|
|
1999-03-26 10:28:39 +03:00
|
|
|
install: $(LIBRARY) $(DSONAME)
|
2000-04-26 02:17:00 +04:00
|
|
|
echo "Installing libraries..."
|
|
|
|
-mkdir -p $(libdir)
|
|
|
|
rm -f $(libdir)/$(LIBNAME)
|
|
|
|
-cp $(LIBRARY) $(libdir)
|
|
|
|
-chmod 644 $(libdir)/$(LIBNAME)
|
|
|
|
if test "$(DSONAME)" = libfltk.so.1; then\
|
1999-03-25 18:26:44 +03:00
|
|
|
rm -f $(libdir)/libfltk.so*;\
|
1999-03-25 18:47:11 +03:00
|
|
|
cp libfltk.so.1 $(libdir); \
|
1999-03-25 18:26:44 +03:00
|
|
|
chmod 755 $(libdir)/libfltk.so.1; \
|
2000-06-05 00:57:34 +04:00
|
|
|
ln -s libfltk.so.1 $(libdir)/libfltk.so;\
|
1999-02-22 21:05:20 +03:00
|
|
|
fi
|
2000-04-26 02:17:00 +04:00
|
|
|
if test "$(DSONAME)" = libfltk.sl.1; then\
|
1999-03-25 18:26:44 +03:00
|
|
|
rm -f $(libdir)/libfltk.sl*;\
|
1999-03-25 18:47:11 +03:00
|
|
|
cp libfltk.sl.1 $(libdir); \
|
1999-03-25 18:26:44 +03:00
|
|
|
chmod 755 $(libdir)/libfltk.sl.1; \
|
2000-06-05 00:57:34 +04:00
|
|
|
ln -s libfltk.sl.1 $(libdir)/libfltk.sl;\
|
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
|
|
|
-chmod 755 $(includedir)/FL
|
|
|
|
-chmod 644 $(includedir)/FL/*
|
|
|
|
cd $(includedir)/FL;\
|
|
|
|
for file in *.H; do\
|
2000-06-05 00:57:34 +04:00
|
|
|
ln -s $$file "`basename $$file H`h";\
|
1999-02-23 18:37:19 +03:00
|
|
|
done
|
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-08-02 01:24:49 +04:00
|
|
|
# End of "$Id: Makefile,v 1.18.2.14.2.1 2001/08/01 21:24:49 easysw Exp $".
|
1998-10-21 01:06:19 +04:00
|
|
|
#
|