summaryrefslogtreecommitdiff
path: root/makefiles
diff options
context:
space:
mode:
Diffstat (limited to 'makefiles')
-rwxr-xr-xmakefiles/aixmakesharedlib24
-rw-r--r--makefiles/makeinclude.cygnus43
-rw-r--r--makefiles/makeinclude.mingw3236
3 files changed, 103 insertions, 0 deletions
diff --git a/makefiles/aixmakesharedlib b/makefiles/aixmakesharedlib
new file mode 100755
index 000000000..8fd62a8d7
--- /dev/null
+++ b/makefiles/aixmakesharedlib
@@ -0,0 +1,24 @@
+#!/bin/sh
+#
+# aixmakesharedlib - a simple script for AIX shared lib creation from a
+# non shared library
+#
+# Notes:
+# - Should work for both AIX 3.2.x & 4.1.x
+# - Copies original (non shared) lib to be lib.NS
+# - May require slight modifications for different uses (this was written
+# with the FL library in mind)
+#
+
+/bin/rm -f shr.o syms.exp
+
+# create the exports list:
+echo "#!" > syms.exp
+dump -g $1 | egrep -e '[ \t]*[0-9]+' | sed 's/^[ \t]*[0-9][0-9]*[ \t]*[^ \t]//' | sed 's/^\.//' | sort | uniq >> syms.exp
+
+xlC -o shr.o $1 -bM:SRE -bE:syms.exp -bnoentry -lc -lm -lX11
+
+mv $1 $1.NS
+
+ar ruv $1 shr.o syms.exp
+/bin/rm -f shr.o syms.exp
diff --git a/makefiles/makeinclude.cygnus b/makefiles/makeinclude.cygnus
new file mode 100644
index 000000000..239e87661
--- /dev/null
+++ b/makefiles/makeinclude.cygnus
@@ -0,0 +1,43 @@
+# !!!! YOU PROBABLY WANT TO USE makeinclude.mingw32 INSTEAD !!!!
+
+# Makeinclude file for the Cygwin B19 release of GCC for Windoze
+#
+# This will try to use Cygwin's Unix emulation as much as possible,
+# which means it will link in Cygwin's libraries. This seems to
+# result in much slower performance, and the only real difference
+# is that the file chooser uses cygwin's scandir implementation
+# rather than my own. To compile with direct windoze calls
+# use the file makeinclude.mingw32.
+
+# Copy this file to .. and run make.
+# Thanks to Philipp Knirsch at Lucent and Carl Thompson
+
+prefix =/usr/local
+exec_prefix =${prefix}
+bindir =${exec_prefix}/bin
+includedir =${prefix}/include
+libdir =${exec_prefix}/lib
+srcdir =.
+
+# compiler names:
+CXX =g++
+CC =gcc
+
+# flags for C++ compiler:
+CFLAGS =-Wall -O2 -DCYGNUS
+CXXFLAGS =-Wall -O2 -DCYGNUS
+CXXFLAGS_D =-Wall -g -DDEBUG -DCYGNUS
+
+# program to make the archive:
+LIBNAME =libfltk.a
+LIBNAME_D =libfltk_d.a
+AR =ar -ruv
+RANLIB =ranlib
+
+# libraries to link with:
+LDLIBS =-lgdi32 -luser32 -lm
+
+# libraries to link with when using GL:
+GLDLIBS =-lgdi32 -luser32 -lglu32 -lopengl32 -lm
+
+INSTALL =/CYGNUS/B19/H-I386~1/BIN/install -c
diff --git a/makefiles/makeinclude.mingw32 b/makefiles/makeinclude.mingw32
new file mode 100644
index 000000000..3390f113a
--- /dev/null
+++ b/makefiles/makeinclude.mingw32
@@ -0,0 +1,36 @@
+# Makeinclude file for the Cygwin B19 release of GCC for Windoze
+
+# This will compile the code to directly call Windows interfaces
+# and does not use the CYGWIN library.
+
+# Thanks to Philipp Knirsch at Lucent and Carl Thompson
+
+prefix =/usr/local
+exec_prefix =${prefix}
+bindir =${exec_prefix}/bin
+includedir =${prefix}/include
+libdir =${exec_prefix}/lib
+srcdir =.
+
+# compiler names:
+CXX =g++
+CC =g++
+
+# flags for C++ compiler:
+CFLAGS =-Wall -O2 -DWIN32
+CXXFLAGS =-Wall -O2 -DWIN32
+CXXFLAGS_D =-Wall -g -DDEBUG -DWIN32
+
+# program to make the archive:
+LIBNAME =libfltk.a
+LIBNAME_D =libfltk_d.a
+AR =ar -ruv
+RANLIB =ranlib
+
+# libraries to link with:
+LDLIBS =-lgdi32 -luser32 -lm -mwindows
+
+# libraries to link with when using GL:
+GLDLIBS =-lgdi32 -luser32 -lglu32 -lopengl32 -lm -mwindows
+
+INSTALL =/CYGNUS/B19/H-I386~1/BIN/install -c