summaryrefslogtreecommitdiff
path: root/makefiles/makeinclude.cygnus
diff options
context:
space:
mode:
Diffstat (limited to 'makefiles/makeinclude.cygnus')
-rw-r--r--makefiles/makeinclude.cygnus44
1 files changed, 35 insertions, 9 deletions
diff --git a/makefiles/makeinclude.cygnus b/makefiles/makeinclude.cygnus
index 669688059..1d6ce5a60 100644
--- a/makefiles/makeinclude.cygnus
+++ b/makefiles/makeinclude.cygnus
@@ -1,5 +1,5 @@
#
-# "$Id: makeinclude.cygnus,v 1.9.2.4 2000/06/05 21:20:44 mike Exp $"
+# "$Id: makeinclude.cygnus,v 1.9.2.5 2000/06/13 20:33:35 mike Exp $"
#
# Make include file for the Fast Light Tool Kit (FLTK).
#
@@ -20,9 +20,36 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA.
#
-# Please report all bugs and problems to "fltk-bugs@easysw.com".
+# Please report all bugs and problems to "fltk-bugs@fltk.org".
#
+# Notes:
+#
+# 1) Console windows appearing
+#
+# Consoles will not appear when run from a cygwin shell command line prompt
+# but will cause an 'unnecessary' console to appear when run directly from
+# windows (say explorer). It provides i/o for stdin/stdout for debugging
+#
+# To avoid this use an additional compile/link switch to move the program
+# entry point to WinMain(). If not defined a link warning may appear
+# but the program will run correctly from main() and not produce a console.
+# Adding -mwindows to CFLAGS,CXXFLAGS,LDLIBS,GLDLIBS below
+# will cause this revised behaviour
+#
+# 2) Stripping the executable to reduce size
+#
+# An external program may be run to strip out any debug symbols:
+# strip filename.exe
+#
+# Alternatively add -s option to LDLIBS and GLDLIBS below to strip all
+# symbols. (or -S for stripping of debug symbols only). See 'ld' man page
+# for other useful link-time options.
+#
+# The default is to leave -mwindows and the stripping off, so as to facilitate
+# debugging. For release it may be appropriate to add these additional switches
+
+
prefix = /usr/local
exec_prefix = ${prefix}
bindir = ${exec_prefix}/bin
@@ -35,8 +62,8 @@ CXX = g++
CC = gcc
# flags for C++ compiler:
-CFLAGS = -Wall -O2 -DWIN32 -mno-cygwin
-CXXFLAGS = -Wall -O2 -DWIN32 -mno-cygwin
+CFLAGS = -Wall -O2 -DWIN32
+CXXFLAGS = -Wall -O2 -DWIN32
# program to make the archive:
LIBNAME = libfltk.a
@@ -45,10 +72,9 @@ RANLIB = ranlib
DSONAME =
DSOCOMMAND = echo
-# libraries to link with:
-LDLIBS = -lgdi32 -luser32 -lmsvcrt -lwsock32 -lm -mno-cygwin -mwindows
-GLDLIBS = -lgdi32 -luser32 -lglu32 -lopengl32 -lmsvcrt -lwsock32 -lm \
- -mno-cygwin -mwindows
+# libraries to link with (in addition to default libs):
+LDLIBS = -lm -lgdi32 -lwsock32
+GLDLIBS = -lglu32 -lopengl32 -lm -lgdi32 -lwsock32
# Be quiet when building...
.SILENT:
@@ -69,5 +95,5 @@ GLDLIBS = -lgdi32 -luser32 -lglu32 -lopengl32 -lmsvcrt -lwsock32 -lm \
$(CXX) -I.. $(CXXFLAGS) $< -c
#
-# End of "$Id: makeinclude.cygnus,v 1.9.2.4 2000/06/05 21:20:44 mike Exp $".
+# End of "$Id: makeinclude.cygnus,v 1.9.2.5 2000/06/13 20:33:35 mike Exp $".
#