summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorBill Spitzak <spitzak@gmail.com>2002-03-07 19:22:58 +0000
committerBill Spitzak <spitzak@gmail.com>2002-03-07 19:22:58 +0000
commit5f55e1cd63883c8d48a0e212e8910f6dfd536a50 (patch)
tree2249cb0f557d70a897c8c9939ee8df8d036ed14f /src/Makefile
parentcab1dedbd1f7f20d56a7c4bcb781569f03f52422 (diff)
Back-ported cut & paste code from fltk2.0.
This code splits the cut & paste into two buffers. The "SELECTION" is used for the currently highlighted text and for middle-mouse paste and (if possible) for handling drag & drop. The "CLIPBOARD" is for Ctrl+C and Ctrl+V style cut & paste. This matches how Motif, GTK, and KDE 3.0 work. But many older X applications (including KDE 2) can only see SELECTION, this results in cut & paste incompatability that is familiar to X users. However this now moves fltk over to the majority camp. On all systems this eliminates the annoying inability to select a region and replace it with Ctrl+V. On Mac and Win32 the SELECTION is local to the application, so middle-mouse paste only works between fields in the application. There may be tricks (special clipboard data types? use drag & drop?) to make it communicate, but unless there are standards it would be fltk-only. The file Fl_cutpaste.cxx has been deleted, so update the IDE files! The Win32 and Mac versions have NOT BEEN TESTED! I tried to be careful editing them but they may need some work. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1989 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/Makefile b/src/Makefile
index 3ca2ecfca..bc42b0d0d 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,5 +1,5 @@
#
-# "$Id: Makefile,v 1.18.2.14.2.35 2002/03/06 18:11:01 easysw Exp $"
+# "$Id: Makefile,v 1.18.2.14.2.36 2002/03/07 19:22:57 spitzak Exp $"
#
# Library makefile for the Fast Light Tool Kit (FLTK).
#
@@ -104,7 +104,6 @@ CPPFILES = \
Fl_add_idle.cxx \
Fl_arg.cxx \
Fl_compose.cxx \
- Fl_cutpaste.cxx \
Fl_display.cxx \
Fl_get_key.cxx \
Fl_get_system_colors.cxx \
@@ -175,6 +174,8 @@ CLEAN = core cmap
################################################################
include ../makeinclude
+CFLAGS += -DFL_LIBRARY
+CXXFLAGS += -DFL_LIBRARY
OBJECTS = $(CPPFILES:.cxx=.o) $(CFILES:.c=.o)
GLOBJECTS = $(GLCPPFILES:.cxx=.o)
@@ -220,8 +221,11 @@ libfltk_gl_s.a: $(GLOBJECTS)
clean :
-@ rm -f *.o $(DSONAME) $(GLDSONAME) $(LIBRARY) $(CLEAN) libfltk.so libfltk_gl.so
-depend: $(CPPFILES) $(GLCPPFILES) $(CFILES)
- makedepend -Y -I.. -f makedepend $(CPPFILES) $(GLCPPFILES) $(CFILES)
+depend:
+ $(MAKEDEPEND) -I.. $(CXXFLAGS) $(CPPFILES) $(GLCPPFILES) $(CFILES) > makedepend
+ sed -e "s'\.o'_s\.o'" makedepend > foo
+ cat foo >> makedepend
+ rm foo
# Automatically generated dependencies...
include makedepend
@@ -354,5 +358,5 @@ uninstall:
#
-# End of "$Id: Makefile,v 1.18.2.14.2.35 2002/03/06 18:11:01 easysw Exp $".
+# End of "$Id: Makefile,v 1.18.2.14.2.36 2002/03/07 19:22:57 spitzak Exp $".
#