Added wxAccelerators (sort of)
Moved configure (once again) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
4
setup/.cvsignore
Normal file
4
setup/.cvsignore
Normal file
@@ -0,0 +1,4 @@
|
||||
Makefile
|
||||
Linux
|
||||
linux-gnu
|
||||
setup.h
|
106
setup/general/createall
Executable file
106
setup/general/createall
Executable file
@@ -0,0 +1,106 @@
|
||||
#! /bin/sh
|
||||
|
||||
# Just grab dirbase/dir(s)
|
||||
readbase ()
|
||||
{
|
||||
DIRBASE=$1
|
||||
DIRCONTENTS=$2
|
||||
for each in $DIRBASE/*
|
||||
do
|
||||
if test -d $each
|
||||
then
|
||||
DIRCONTENTS="$DIRCONTENTS $each"
|
||||
fi
|
||||
done
|
||||
echo $DIRCONTENTS
|
||||
}
|
||||
|
||||
# Prefer subdir/src over subdir, use whichever available
|
||||
readbase2 ()
|
||||
{
|
||||
DIRBASE=$1
|
||||
DIRCONTENTS=$2
|
||||
for each in $DIRBASE/*
|
||||
do
|
||||
if test -d $each
|
||||
then
|
||||
if test -d $each/src
|
||||
then
|
||||
DIRCONTENTS="$DIRCONTENTS $each/src"
|
||||
else
|
||||
DIRCONTENTS="$DIRCONTENTS $each"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
echo $DIRCONTENTS
|
||||
}
|
||||
|
||||
OS=$OSTYPE
|
||||
|
||||
if test "x$OS" = x; then
|
||||
echo "please set the environment variable OSTYPE "
|
||||
echo "to a value appropriate for your system."
|
||||
echo "to do so type: setenv OSTYPE `uname` for the csh, tcsh"
|
||||
echo " export OSTYPE=`uname` for other shells"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
SRC_DIR=`readbase src src`
|
||||
SAMPLES_DIR=`readbase2 samples`
|
||||
UTILS_DIR=`readbase2 utils`
|
||||
USER_DIR=`readbase2 user`
|
||||
|
||||
ALL_DIR="$SRC_DIR $SAMPLES_DIR $UTILS_DIR $USER_DIR"
|
||||
|
||||
echo Creating for: $OS
|
||||
|
||||
# create defaults
|
||||
if test ! -d setup/$OS; then
|
||||
mkdir setup/$OS
|
||||
fi
|
||||
|
||||
SUBSTFILE=setup/$OS/substit
|
||||
|
||||
# the substit file first
|
||||
if test -f setup/substit ; then
|
||||
cat setup/substit | sed "s/*/@/g" > $SUBSTFILE;
|
||||
rm -f setup/substit
|
||||
fi
|
||||
# now the template file
|
||||
cat setup/maketmpl.in | sed -f $SUBSTFILE > setup/$OS/maketmpl
|
||||
|
||||
# now the config header file
|
||||
#if test -f setup/wx_setup.h ; then
|
||||
# cat setup/wx_setup.h > setup/$OS/wx_setup.h;
|
||||
# rm -f setup/wx_setup.h
|
||||
#fi
|
||||
|
||||
# create lib and bin directory
|
||||
if test ! -d lib; then
|
||||
mkdir lib
|
||||
fi
|
||||
if test ! -d lib/$OS; then
|
||||
mkdir lib/$OS
|
||||
fi
|
||||
if test ! -d bin; then
|
||||
mkdir bin
|
||||
fi
|
||||
if test ! -d bin/$OS; then
|
||||
mkdir bin/$OS
|
||||
fi
|
||||
|
||||
# create makefiles
|
||||
for each in $ALL_DIR; do
|
||||
DIR=$each/$OS
|
||||
# create Makefile in directory
|
||||
if test -r $each/Makefile.in ; then
|
||||
# create directory
|
||||
if test ! -d $DIR; then
|
||||
echo "Creating Directory: $DIR..."
|
||||
mkdir $DIR
|
||||
fi
|
||||
echo "Creating: $DIR/Makefile..."
|
||||
cat $each/Makefile.in | sed -f $SUBSTFILE > $DIR/Makefile
|
||||
(cd $DIR; make subdirs > /dev/null;)
|
||||
fi
|
||||
done
|
67
setup/general/jointar
Executable file
67
setup/general/jointar
Executable file
@@ -0,0 +1,67 @@
|
||||
#! /bin/sh
|
||||
#
|
||||
# Written by Martin Sperl
|
||||
# (sperl@dsn.ast.univie.ac.at)
|
||||
#
|
||||
|
||||
|
||||
if test $# -lt 3 ; then
|
||||
cat <<EOF
|
||||
Usage: `basename $0` <basedir> <SOURCE-FILES> <DESTINATION-FILS>
|
||||
copies all files from the source-tar-files to the common
|
||||
destination-tar-file with basedir as a common base directory.
|
||||
EOF
|
||||
exit 0
|
||||
fi
|
||||
|
||||
BaseDir="$1"
|
||||
shift
|
||||
|
||||
Sourcefiles="$1"
|
||||
|
||||
while test "$#" != 2 ; do
|
||||
shift
|
||||
Sourcefiles="$Sourcefiles $1"
|
||||
done
|
||||
|
||||
shift
|
||||
Final=$1
|
||||
|
||||
Destination=/tmp/join$$.tar
|
||||
|
||||
touch $Destination
|
||||
|
||||
curdir=`pwd`
|
||||
|
||||
mkdir tmp$$
|
||||
mkdir tmp$$/$BaseDir
|
||||
|
||||
#uncompress all files
|
||||
cd tmp$$/$BaseDir
|
||||
for each in $Sourcefiles ; do
|
||||
( \
|
||||
if test `basename $each gz` != `basename $each` ; then \
|
||||
gzip -dc ../../$each;\
|
||||
else \
|
||||
cat ../../$each;\
|
||||
fi; \
|
||||
) | tar xf -
|
||||
done
|
||||
cd ..
|
||||
#now tar everything
|
||||
tar -cf $Destination *
|
||||
|
||||
cd ..
|
||||
|
||||
rm -fr tmp$$
|
||||
|
||||
# goto old directory
|
||||
cd $curdir
|
||||
|
||||
if test `basename $Final gz` != `basename $Final` ; then
|
||||
gzip -c $Destination > $Final
|
||||
else
|
||||
cat $Destination > $Final
|
||||
fi
|
||||
|
||||
rm -f $Destination
|
73
setup/general/makeapp
Normal file
73
setup/general/makeapp
Normal file
@@ -0,0 +1,73 @@
|
||||
SHELL=/bin/sh
|
||||
|
||||
OS=$(OSTYPE)
|
||||
|
||||
all::
|
||||
-@if test "x$(OS)" = x; then \
|
||||
echo "please set the environment variable OSTYPE ";\
|
||||
echo "to a value appropriate for your system.";\
|
||||
echo "to do so type: setenv OSTYPE `uname` for the csh, tcsh";\
|
||||
echo " export OSTYPE=`uname` for other shells";\
|
||||
else \
|
||||
if test -f Makefile.in ; then \
|
||||
if test -f $(OS)/Makefile ; then \
|
||||
NEEDED=`(cd $(OS); ${MAKE} checkneeds;) | grep "needed to compile" `;\
|
||||
if test "x$$NEEDED" = x; then \
|
||||
(cd $(OS); ${MAKE} $@); \
|
||||
else \
|
||||
(cd $(OS); ${MAKE} checkneeds); \
|
||||
fi ; \
|
||||
else \
|
||||
echo "Did you configure your system?";\
|
||||
fi; \
|
||||
fi; \
|
||||
fi;
|
||||
|
||||
distrib::
|
||||
@if test ! -d ../../distrib ; then mkdir ../../distrib; fi;
|
||||
@if test ! -f ../../system.list ; then \
|
||||
echo "dummy" > ../../system.list;\
|
||||
fi
|
||||
@(curr=`pwd`; direc=`basename $$curr`;\
|
||||
basedir=`dirname $$curr`;\
|
||||
basedirname=`basename $$basedir`;\
|
||||
if test ! -d ../../distrib/$$basedirname ; then \
|
||||
mkdir ../../distrib/$$basedirname;\
|
||||
fi;\
|
||||
if test -d doc; then (cd doc; make clean;); fi;\
|
||||
(cd ..; \
|
||||
echo creating $$direc.tar from the current directory;\
|
||||
files="`\
|
||||
find $$direc -type f \
|
||||
| fgrep -vf ../system.list \
|
||||
| grep -v "~" \
|
||||
| grep -v "#" \
|
||||
` $(DISTRIBUTE_ADDITIONAL)";\
|
||||
tar -cf /tmp/$$direc.tar $$files;\
|
||||
echo compressing $$direc.tar to $$direc.tgz;\
|
||||
gzip -c /tmp/$$direc.tar > ../distrib/$$basedirname/$$direc.tgz;\
|
||||
rm /tmp/$$direc.tar;\
|
||||
)\
|
||||
)
|
||||
|
||||
.DEFAULT:
|
||||
-@if test "x$(OS)" = x; then \
|
||||
echo "please set the environment variable OSTYPE ";\
|
||||
echo "to a value appropriate for your system.";\
|
||||
echo "to do so type: setenv OSTYPE `uname` for the csh, tcsh";\
|
||||
echo " export OSTYPE=`uname` for other shells";\
|
||||
else \
|
||||
if test -f Makefile.in ; then \
|
||||
if test -f $(OS)/Makefile ; then \
|
||||
NEEDED=`(cd $(OS); ${MAKE} checkneeds) | grep "needed to compile" `;\
|
||||
if test "x$$NEEDED" = x; then \
|
||||
(cd $(OS); ${MAKE} $@); \
|
||||
else \
|
||||
(cd $(OS); ${MAKE} checkneeds); \
|
||||
fi ; \
|
||||
else \
|
||||
echo "Did you configure your system?";\
|
||||
fi \
|
||||
fi \
|
||||
fi
|
||||
|
19
setup/general/makedirs
Normal file
19
setup/general/makedirs
Normal file
@@ -0,0 +1,19 @@
|
||||
SHELL=/bin/sh
|
||||
|
||||
DIRS=`find . -print | sed "s|\./||g" | grep -v "/" | grep -v "\." `
|
||||
|
||||
all:
|
||||
@for i in $(DIRS) xxx; do \
|
||||
if test -r $$i/Makefile ; then \
|
||||
echo "entering directory $$i building $@";\
|
||||
(cd $$i ; ${MAKE} $@); \
|
||||
fi; \
|
||||
done
|
||||
|
||||
.DEFAULT:
|
||||
@for i in $(DIRS) xxx; do \
|
||||
if test -r $$i/Makefile ; then \
|
||||
echo "entering directory $$i building $@";\
|
||||
(cd $$i ; ${MAKE} $@); \
|
||||
fi; \
|
||||
done
|
102
setup/general/makedoc
Normal file
102
setup/general/makedoc
Normal file
@@ -0,0 +1,102 @@
|
||||
SHELL=/bin/sh
|
||||
|
||||
FILE_BASE=$(TEX_BASE:.tex=)
|
||||
|
||||
BMP_FILES=$(XPM_FILES:.xpm=.bmp)
|
||||
EPS_FILES=$(XPM_FILES:.xpm=.eps)
|
||||
GIF_FILES=$(XPM_FILES:.xpm=.gif)
|
||||
|
||||
HTML_BUTTONS=back.gif forward.gif contents.gif up.gif
|
||||
|
||||
all:: doc
|
||||
|
||||
clean::
|
||||
@ for each in $(DIRS) . ; do \
|
||||
( cd $$each; \
|
||||
rm -f *.bmp *.eps *.gif *.aux *.dvi *.log \
|
||||
*.ps *.toc *~ *.idx *.hlp *.html \
|
||||
*.rtf *.ref *.xlp *.con *.win *.fts \
|
||||
*.hpj *.HLP; \
|
||||
); done
|
||||
|
||||
doc:: doc_ps doc_html doc_xlp doc_winhelp doc_rtf
|
||||
|
||||
#############################################
|
||||
|
||||
doc_ps:: $(FILE_BASE).ps
|
||||
|
||||
$(FILE_BASE).ps: $(FILE_BASE).dvi
|
||||
dvips $(FILE_BASE).dvi -o$@
|
||||
|
||||
#############################################
|
||||
|
||||
doc_dvi:: $(FILE_BASE).dvi
|
||||
|
||||
$(FILE_BASE).dvi: $(FILE_BASE).tex $(TEX_ADDITIONAL) $(EPS_FILES)
|
||||
latex $(FILE_BASE).tex
|
||||
latex $(FILE_BASE).tex
|
||||
|
||||
#############################################
|
||||
|
||||
doc_xlp:: $(FILE_BASE).xlp
|
||||
|
||||
$(FILE_BASE).xlp: $(FILE_BASE).tex $(TEX_ADDITIONAL)
|
||||
../../../bin/$(OSTYPE)/tex2rtf $(FILE_BASE).tex $(FILE_BASE).xlp -twice -xlp
|
||||
|
||||
#############################################
|
||||
|
||||
doc_html:: $(FILE_BASE)_contents.html $(FILE_BASE).html
|
||||
|
||||
$(FILE_BASE).html:
|
||||
@ln -s $(FILE_BASE)_contents.html $@
|
||||
|
||||
$(FILE_BASE)_contents.html: $(FILE_BASE).tex $(TEX_ADDITIONAL) $(GIF_FILES) $(HTML_BUTTONS)
|
||||
../../../bin/$(OSTYPE)/tex2rtf $(FILE_BASE).tex $(FILE_BASE) -twice -html
|
||||
|
||||
#############################################
|
||||
|
||||
doc_rtf:: $(FILE_BASE).rtf
|
||||
|
||||
$(FILE_BASE).rtf: $(FILE_BASE).tex $(TEX_ADDITIONAL) $(BMP_FILES)
|
||||
../../../bin/$(OSTYPE)/tex2rtf $(FILE_BASE).tex $(FILE_BASE).rtf -twice -rtf
|
||||
|
||||
#############################################
|
||||
|
||||
doc_winhelp:: $(FILE_BASE).win
|
||||
|
||||
$(FILE_BASE).win: $(FILE_BASE).tex $(TEX_ADDITIONAL) $(BMP_FILES)
|
||||
../../../bin/$(OSTYPE)/tex2rtf $(FILE_BASE).tex $(FILE_BASE).win -twice -winhelp
|
||||
@echo final conversion still needs to be done by MSWin
|
||||
|
||||
#############################################
|
||||
|
||||
subst::
|
||||
@if test "x$(OLD)" = x; then \
|
||||
echo "OLD not defined!"; exit -1; \
|
||||
fi
|
||||
@if test "x$(NEW)" = x; then \
|
||||
echo "NEW not defined!"; exit -1; \
|
||||
fi
|
||||
@for each in $(TEX_BASE) $(TEX_ADITIONAL) ; do \
|
||||
cat $$each | sed "s/$(OLD)/$(NEW)/g" > /tmp/subst; \
|
||||
rm $$each; cp /tmp/subst $$each; rm /tmp/subst; \
|
||||
done
|
||||
|
||||
#############################################
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .eps .xpm
|
||||
.SUFFIXES: .bmp .xpm
|
||||
.SUFFIXES: .gif .xpm
|
||||
|
||||
.xpm.eps :
|
||||
@$(RM) -f $@
|
||||
xpmtoppm $< | ppmtogif | giftopnm | pnmtops -rle -center -noturn -scale 0.5 - > $@
|
||||
|
||||
.xpm.bmp :
|
||||
@$(RM) -f $@
|
||||
xpmtoppm $< | ppmtobmp -windows - > $@
|
||||
|
||||
.xpm.gif :
|
||||
@$(RM) -f $@
|
||||
xpmtoppm $< | ppmtogif -interlace - > $@
|
3
setup/general/mygrep
Executable file
3
setup/general/mygrep
Executable file
@@ -0,0 +1,3 @@
|
||||
#! /bin/sh
|
||||
grep $@
|
||||
exit 0
|
10
setup/general/needed
Executable file
10
setup/general/needed
Executable file
@@ -0,0 +1,10 @@
|
||||
#! /bin/sh
|
||||
|
||||
for each in $@ ; do
|
||||
LINE=`grep " $each " ../$OSTYPE/wx_setup.h | grep "#define" | grep 1`
|
||||
if test "x$LINE" = x ; then
|
||||
echo "$each needed to compile";
|
||||
exit 1;
|
||||
fi
|
||||
done
|
||||
|
126
setup/maketmpl.in
Normal file
126
setup/maketmpl.in
Normal file
@@ -0,0 +1,126 @@
|
||||
# Makefile for Autoconf.
|
||||
# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
|
||||
# This program 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 General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||
# 02111-1307, USA.
|
||||
|
||||
#### Start of system configuration section. ####
|
||||
|
||||
GLOBAL_LIB_DIR = $(WXBASEDIR)/lib/$(OS)
|
||||
GLOBAL_BIN_DIR = $(WXBASEDIR)/bin/$(OS)
|
||||
|
||||
# define toolkit to use
|
||||
TOOLKIT_DEF = -D@TOOLKIT_DEF@
|
||||
|
||||
# general compiler stuff
|
||||
OPTIMISE = @OPTIMISE@
|
||||
PROFILE = @PROFILE@
|
||||
DEBUG = @WXDEBUG@ @WXDEBUG_DEFINE@
|
||||
|
||||
# c-compiler stuff
|
||||
CC = @CC@
|
||||
CFLAGS = @CFLAGS@ $(OPTIMISE) $(PROFILE) $(DEBUG)
|
||||
CPP = @CPP@
|
||||
|
||||
# c++-compiler stuff
|
||||
CXX = @CXX@
|
||||
CXXFLAGS = @CXXFLAGS@ $(OPTIMISE) $(PROFILE) $(DEBUG)
|
||||
CXXCPP = @CXXCPP@
|
||||
|
||||
# shared compile stuff
|
||||
PICFLAGS = @PICFLAGS@
|
||||
CREATE_SHARED = @CREATE_SHARED@
|
||||
|
||||
# other stuff
|
||||
RM = rm -f
|
||||
LEX = @LEX@
|
||||
LEXLIB = @LEXLIB@
|
||||
YACC = @YACC@
|
||||
RANLIB = @RANLIB@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
AWK = @AWK@
|
||||
LN_S = @LN_S@
|
||||
CJPEG_PROG =
|
||||
CONVERT_PATH = /usr/bin/X11
|
||||
CONVERT_PROG = /usr/bin/X11/convert
|
||||
DJPEG_PROG =
|
||||
GIFTOPNM_PROG =
|
||||
NETPBM_PATH =
|
||||
|
||||
prefix = @prefix@
|
||||
exec_prefix = @exec_prefix@
|
||||
|
||||
# Directory in which to install scripts.
|
||||
#bindir = @bindir@
|
||||
|
||||
# Directory in which to install library files.
|
||||
datadir = @datadir@
|
||||
acdatadir = $(datadir)/autoconf
|
||||
|
||||
# Directory in which to install documentation info files.
|
||||
infodir = @infodir@
|
||||
|
||||
X_CFLAGS = @X_CFLAGS@
|
||||
X_LIBS = @X_LIBS@
|
||||
X_EXTRA_LIBS = @X_EXTRA_LIBS@
|
||||
X_PRE_LIBS = @X_PRE_LIBS@
|
||||
|
||||
GUI_TK_INCLUDE = @GUI_TK_INCLUDE@
|
||||
GUI_TK_LIBRARY = @GUI_TK_LIBRARY@
|
||||
GUI_TK_LINK = @GUI_TK_LINK@
|
||||
|
||||
OPENGL_INCLUDE = @OPENGL_INCLUDE@
|
||||
OPENGL_LIBRARY = @OPENGL_LIBRARY@
|
||||
OPENGL_LINK = @OPENGL_LINK@
|
||||
|
||||
THREADS_LINK = @THREADS_LINK@
|
||||
EXTRA_LINK = @EXTRA_LINK@
|
||||
|
||||
# INCLUDES
|
||||
WX_INCLUDES = \
|
||||
$(TOOLKIT_DEF) \
|
||||
-I. \
|
||||
-I.. \
|
||||
-I$(WXBASEDIR)/include \
|
||||
-I$(WXBASEDIR)/src/zlib \
|
||||
$(GUI_TK_INCLUDE) \
|
||||
$(OPENGL_INCLUDE) \
|
||||
$(X_CFLAGS)
|
||||
|
||||
# -I$(WXBASEDIR)/src/png \
|
||||
# -I$(WXBASEDIR)/src/zlib \
|
||||
# -I$(WXBASEDIR)/src/gdk_imlib \
|
||||
|
||||
WX_LIBS = -L$(GLOBAL_LIB_DIR) -lwx_gtk
|
||||
|
||||
OPENGL_LIBS = $(OPENGL_LIBRARY) $(OPENGL_LINK)
|
||||
|
||||
GUI_TK_LIBS = $(GUI_TK_LIBRARY) $(GUI_TK_LINK) -ldl
|
||||
|
||||
LINK = $(CXX) -o $@
|
||||
LINK_LIBS= \
|
||||
$(WX_LIBS) \
|
||||
$(GUI_TK_LIBS) \
|
||||
$(X_EXTRA_LIBS) \
|
||||
$(X_PRE_LIBS) \
|
||||
$(THREADS_LINK) \
|
||||
$(EXTRA_LINK)
|
||||
|
||||
# Don't include $(OPENGL_LIBS) in LINK_LIBS; they
|
||||
# can be conveniently added to BIN_LINK in Makefile.in.
|
||||
|
||||
#### End of system configuration section. ####
|
13
setup/rules/bin
Normal file
13
setup/rules/bin
Normal file
@@ -0,0 +1,13 @@
|
||||
# all that is to do
|
||||
all:: checkneeds binary
|
||||
clean:: clean_binary clean_obj
|
||||
|
||||
# now include definite rules
|
||||
BIN_BASE_DIR=.
|
||||
|
||||
# include rules to create library
|
||||
include $(RULES_GENERIC)/bin1
|
||||
# include rules to create objects
|
||||
include $(RULES_GENERIC)/obj
|
||||
# include rule to check for defines needed
|
||||
include $(RULES_GENERIC)/needed
|
14
setup/rules/bin2
Normal file
14
setup/rules/bin2
Normal file
@@ -0,0 +1,14 @@
|
||||
# all that is to do
|
||||
all:: checkneeds binary
|
||||
clean:: clean_binary clean_obj
|
||||
|
||||
# now include definite rules
|
||||
BIN_BASE_DIR=.
|
||||
|
||||
# include rules to create library
|
||||
include $(RULES_GENERIC)/bin2
|
||||
# include rules to create objects
|
||||
include $(RULES_GENERIC)/obj
|
||||
# include rule to check for defines needed
|
||||
include $(RULES_GENERIC)/needed
|
||||
|
90
setup/rules/doc
Normal file
90
setup/rules/doc
Normal file
@@ -0,0 +1,90 @@
|
||||
SHELL=/bin/sh
|
||||
|
||||
FILE_BASE=$(TEX_BASE:.tex=)
|
||||
|
||||
BMP_FILES=$(XPM_FILES:.xpm=.bmp)
|
||||
EPS_FILES=$(XPM_FILES:.xpm=.eps)
|
||||
GIF_FILES=$(XPM_FILES:.xpm=.gif)
|
||||
|
||||
TEX2RTF=$(WXBASEDIR)/bin/$(OSTYPE)/tex2rtf
|
||||
|
||||
HTML_BUTTONS=back.gif forward.gif contents.gif up.gif
|
||||
|
||||
all:: doc
|
||||
|
||||
clean::
|
||||
@ for each in $(DIRS) . ; do \
|
||||
( cd $$each; \
|
||||
rm -f *.bmp *.eps *.gif *.aux *.dvi *.log \
|
||||
*.ps *.toc *~ *.idx *.hlp *.html \
|
||||
*.rtf *.ref *.xlp *.con *.win *.fts \
|
||||
*.hpj *.HLP; \
|
||||
); done
|
||||
|
||||
doc:: doc_ps doc_html doc_xlp doc_winhelp doc_rtf
|
||||
|
||||
#############################################
|
||||
|
||||
doc_ps:: $(FILE_BASE).ps
|
||||
|
||||
$(FILE_BASE).ps: $(FILE_BASE).dvi
|
||||
dvips $(FILE_BASE).dvi -o$@
|
||||
|
||||
#############################################
|
||||
|
||||
doc_dvi:: $(FILE_BASE).dvi
|
||||
|
||||
$(FILE_BASE).dvi: $(FILE_BASE).tex $(TEX_ADDITIONAL) $(EPS_FILES)
|
||||
latex $(FILE_BASE).tex
|
||||
latex $(FILE_BASE).tex
|
||||
|
||||
#############################################
|
||||
|
||||
doc_xlp:: $(FILE_BASE).xlp
|
||||
|
||||
$(FILE_BASE).xlp: $(FILE_BASE).tex $(TEX_ADDITIONAL)
|
||||
$(TEX2RTF) $(FILE_BASE).tex $(FILE_BASE).xlp -twice -xlp
|
||||
|
||||
#############################################
|
||||
|
||||
doc_html:: $(FILE_BASE)_contents.html $(FILE_BASE).html
|
||||
|
||||
$(FILE_BASE).html:
|
||||
@ln -s $(FILE_BASE)_contents.html $@
|
||||
|
||||
$(FILE_BASE)_contents.html: $(FILE_BASE).tex $(TEX_ADDITIONAL) $(GIF_FILES) $(HTML_BUTTONS)
|
||||
$(TEX2RTF) $(FILE_BASE).tex $(FILE_BASE) -twice -html
|
||||
|
||||
#############################################
|
||||
|
||||
doc_rtf:: $(FILE_BASE).rtf
|
||||
|
||||
$(FILE_BASE).rtf: $(FILE_BASE).tex $(TEX_ADDITIONAL) $(BMP_FILES)
|
||||
$(TEX2RTF) $(FILE_BASE).tex $(FILE_BASE).rtf -twice -rtf
|
||||
|
||||
#############################################
|
||||
|
||||
doc_winhelp:: $(FILE_BASE).win
|
||||
|
||||
$(FILE_BASE).win: $(FILE_BASE).tex $(TEX_ADDITIONAL) $(BMP_FILES)
|
||||
../../../bin/$(OSTYPE)/tex2rtf $(FILE_BASE).tex $(FILE_BASE).win -twice -winhelp
|
||||
@echo final conversion still needs to be done by MSWin
|
||||
|
||||
#############################################
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .eps .xpm
|
||||
.SUFFIXES: .bmp .xpm
|
||||
.SUFFIXES: .gif .xpm
|
||||
|
||||
.xpm.eps :
|
||||
@$(RM) -f $@
|
||||
xpmtoppm $< | ppmtogif | giftopnm | pnmtops -rle -center -noturn -scale 0.5 - > $@
|
||||
|
||||
.xpm.bmp :
|
||||
@$(RM) -f $@
|
||||
xpmtoppm $< | ppmtobmp -windows - > $@
|
||||
|
||||
.xpm.gif :
|
||||
@$(RM) -f $@
|
||||
xpmtoppm $< | ppmtogif -interlace - > $@
|
14
setup/rules/gbin
Normal file
14
setup/rules/gbin
Normal file
@@ -0,0 +1,14 @@
|
||||
# all that is to do
|
||||
all:: checkneeds binary
|
||||
clean:: clean_binary clean_obj
|
||||
|
||||
# now include definite rules
|
||||
BIN_BASE_DIR=$(GLOBAL_BIN_DIR)
|
||||
|
||||
# include rules to create library
|
||||
include $(RULES_GENERIC)/bin1
|
||||
# include rules to create objects
|
||||
include $(RULES_GENERIC)/obj
|
||||
# include rule to check for defines needed
|
||||
include $(RULES_GENERIC)/needed
|
||||
|
14
setup/rules/gbin2
Normal file
14
setup/rules/gbin2
Normal file
@@ -0,0 +1,14 @@
|
||||
# all that is to do
|
||||
all:: checkneeds binary
|
||||
clean:: clean_binary clean_obj
|
||||
|
||||
# now include definite rules
|
||||
BIN_BASE_DIR=$(GLOBAL_BIN_DIR)
|
||||
|
||||
# include rules to create library
|
||||
include $(RULES_GENERIC)/bin2
|
||||
# include rules to create objects
|
||||
include $(RULES_GENERIC)/mkobj
|
||||
# include rule to check for defines needed
|
||||
include $(RULES_GENERIC)/needed
|
||||
|
8
setup/rules/generic/bin1
Normal file
8
setup/rules/generic/bin1
Normal file
@@ -0,0 +1,8 @@
|
||||
binary:: binary1
|
||||
|
||||
depend_binary:: depend_binary1
|
||||
|
||||
clean_binary:: clean_binary1
|
||||
|
||||
include $(RULES_GENERIC)/bin1gen
|
||||
|
16
setup/rules/generic/bin1gen
Normal file
16
setup/rules/generic/bin1gen
Normal file
@@ -0,0 +1,16 @@
|
||||
# create binary
|
||||
|
||||
binary1:: $(BIN_BASE_DIR)/$(BIN_TARGET)
|
||||
|
||||
$(BIN_BASE_DIR)/$(BIN_TARGET): $(BIN_OBJ)
|
||||
@$(RM) -f $@
|
||||
$(LINK) $(BIN_OBJ) -L. $(BIN_LINK) $(LINK_LIBS)
|
||||
|
||||
# defining dependencies
|
||||
|
||||
depend_binary1::
|
||||
|
||||
# cleaning all files
|
||||
|
||||
clean_binary1::
|
||||
@$(RM) -f $(BIN_BASE_DIR)/$(BIN_TARGET)
|
9
setup/rules/generic/bin2
Normal file
9
setup/rules/generic/bin2
Normal file
@@ -0,0 +1,9 @@
|
||||
binary:: binary1 binary2
|
||||
|
||||
depend_binary:: depend_binary1 depend_binary2
|
||||
|
||||
clean_binary:: clean_binary1 clean_binary2
|
||||
|
||||
include $(RULES_GENERIC)/bin1gen
|
||||
include $(RULES_GENERIC)/bin2gen
|
||||
|
16
setup/rules/generic/bin2gen
Normal file
16
setup/rules/generic/bin2gen
Normal file
@@ -0,0 +1,16 @@
|
||||
# create binary
|
||||
|
||||
binary2:: $(BIN_BASE_DIR)/$(BIN2_TARGET)
|
||||
|
||||
$(BIN_BASE_DIR)/$(BIN2_TARGET): $(BIN2_OBJ)
|
||||
@$(RM) -f $@
|
||||
$(LINK) $(BIN2_OBJ) -L. $(BIN2_LINK) $(LINK_LIBS)
|
||||
|
||||
# defining dependencies
|
||||
|
||||
depend_binary2::
|
||||
|
||||
# cleaning all files
|
||||
|
||||
clean_binary2::
|
||||
@$(RM) -f $(BIN_BASE_DIR)/$(BIN2_TARGET)
|
18
setup/rules/generic/depend
Normal file
18
setup/rules/generic/depend
Normal file
@@ -0,0 +1,18 @@
|
||||
depend::
|
||||
@echo "$(CXX) -MM \
|
||||
$(WX_INCLUDES) \
|
||||
$(ADD_COMPILE) \
|
||||
$(LIB_SRC) $(BIN_SRC) $(BIN2_SRC)"
|
||||
@(cd .. ;\
|
||||
$(CXX) -MM \
|
||||
$(WX_INCLUDES) \
|
||||
$(ADD_COMPILE) \
|
||||
$(LIB_SRC) $(BIN_SRC) $(BIN2_SRC)\
|
||||
) > .depend
|
||||
@cp Makefile Makefile.bak
|
||||
@cat Makefile.bak | awk 'BEGIN { found=0;} { if ( $$0 == "# DO NOT DELETE") {found=1} ; { if ( found==0 ) { print $$0; } } }' > Makefile1
|
||||
@echo "# DO NOT DELETE" >> Makefile1
|
||||
@cat .depend >> Makefile1
|
||||
@mv Makefile1 Makefile
|
||||
@rm .depend
|
||||
|
15
setup/rules/generic/globals
Normal file
15
setup/rules/generic/globals
Normal file
@@ -0,0 +1,15 @@
|
||||
# creates subdirectories for object-files in case they are needed...
|
||||
|
||||
subdirs::
|
||||
@if test "x$(SRC_DIR)" != x ; then \
|
||||
echo -n "Creating necessary subdirs: "; \
|
||||
for each in $(SRC_DIR) xxx; do \
|
||||
if test "x$$each" != xxxx; then \
|
||||
echo -n "$$each "; \
|
||||
if test ! -d $$each ; then \
|
||||
mkdir $$each ; \
|
||||
fi; \
|
||||
fi; \
|
||||
done; \
|
||||
echo "";\
|
||||
fi
|
17
setup/rules/generic/lib
Normal file
17
setup/rules/generic/lib
Normal file
@@ -0,0 +1,17 @@
|
||||
# create library
|
||||
|
||||
library:: $(LIB_BASE_DIR)/lib$(LIB_TARGET).a
|
||||
|
||||
$(LIB_BASE_DIR)/lib$(LIB_TARGET).a: $(LIB_OBJ)
|
||||
@$(RM) -f $@
|
||||
$(AR) rv $@ $(LIB_OBJ)
|
||||
|
||||
# defining dependencies
|
||||
|
||||
depend_library::
|
||||
|
||||
# cleaning all files
|
||||
|
||||
clean_library::
|
||||
@$(RM) -f $(LIB_BASE_DIR)/lib$(LIB_TARGET).a
|
||||
|
24
setup/rules/generic/needed
Normal file
24
setup/rules/generic/needed
Normal file
@@ -0,0 +1,24 @@
|
||||
#SHELL=/bin/sh
|
||||
MYGREP=$(WXBASEDIR)/setup/general/mygrep
|
||||
checkneeds::
|
||||
@if test "x$(NEEDED_DEFINES)" != x ; then \
|
||||
RESULT=0 ; \
|
||||
for each in $(NEEDED_DEFINES) xxx; do \
|
||||
if test "$$each" != xxx ; then \
|
||||
LINE=`cat $(SETUP_DIR)/wx_setup.h \
|
||||
| sed "s/ /,/g" \
|
||||
| $(MYGREP) ",$$each," \
|
||||
| $(MYGREP) "#define" \
|
||||
| $(MYGREP) "1" ` ; \
|
||||
if test "x$$LINE" = x ; then \
|
||||
(TMPVAR=`pwd`;\
|
||||
TMPVAR=`dirname $$TMPVAR`;\
|
||||
echo "$$each needed to compile "`basename $$TMPVAR`"...";\
|
||||
);\
|
||||
RESULT=1 ; \
|
||||
fi; \
|
||||
fi; \
|
||||
done ;\
|
||||
exit $$RESULT; \
|
||||
fi
|
||||
|
30
setup/rules/generic/obj
Normal file
30
setup/rules/generic/obj
Normal file
@@ -0,0 +1,30 @@
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .o .c
|
||||
.SUFFIXES: .o .cc
|
||||
.SUFFIXES: .o .cpp
|
||||
|
||||
VPATH= ..
|
||||
|
||||
.c.o :
|
||||
@$(RM) -f $@
|
||||
$(CC) -c -o $@ $(CFLAGS) -I.. $(WX_INCLUDES) $(ADD_COMPILE) $(WX_DEFINES) $<
|
||||
|
||||
.cc.o :
|
||||
@$(RM) -f $@
|
||||
$(CXX) -c -o $@ $(CXXFLAGS) -I.. $(WX_INCLUDES) $(ADD_COMPILE) $(WX_DEFINES) $<
|
||||
|
||||
.cpp.o :
|
||||
@$(RM) -f $@
|
||||
$(CXX) -c -o $@ $(CXXFLAGS) -I.. $(WX_INCLUDES) $(ADD_COMPILE) $(WX_DEFINES) $<
|
||||
|
||||
clean_obj::
|
||||
@$(RM) *.o *.osh
|
||||
@if test "x$(SRC_DIR)" != x ; then \
|
||||
for each in $(SRC_DIR) xxx; do \
|
||||
if test -d $$each ; then \
|
||||
$(RM) $$each/*.o $$each/*.osh ; \
|
||||
fi; \
|
||||
done; \
|
||||
fi;
|
||||
|
||||
include $(RULES_GENERIC)/depend
|
21
setup/rules/generic/slib
Normal file
21
setup/rules/generic/slib
Normal file
@@ -0,0 +1,21 @@
|
||||
# create library
|
||||
|
||||
library:: $(LIB_BASE_DIR)/lib$(LIB_TARGET).a
|
||||
|
||||
$(LIB_BASE_DIR)/lib$(LIB_TARGET).a: $(LIB_OBJ)
|
||||
@$(RM) -f $@ $(LIB_BASE_DIR)/lib$(LIB_TARGET).so $(LIB_BASE_DIR)/lib$(LIB_TARGET).so.*
|
||||
@if test "x$(CREATE_SHARED)" != x; then\
|
||||
echo "$(SHARE_DIR)/$(CREATE_SHARED) $(CC) $(LIB_BASE_DIR)/lib$(LIB_TARGET).so $(LIB_MAJOR) $(LIB_MINOR) $(LIB_OBJ)"; \
|
||||
$(SHARE_DIR)/$(CREATE_SHARED) $(CC) $(LIB_BASE_DIR)/lib$(LIB_TARGET).so $(LIB_MAJOR) $(LIB_MINOR) $(LIB_OBJ); \
|
||||
fi
|
||||
$(AR) rv $@ $(LIB_OBJ)
|
||||
|
||||
# defining dependencies
|
||||
|
||||
depend_library::
|
||||
|
||||
# cleaning all files
|
||||
|
||||
clean_library::
|
||||
@$(RM) -f $(LIB_BASE_DIR)/lib$(LIB_TARGET).a $(LIB_BASE_DIR)/lib$(LIB_TARGET).so.* $(LIB_BASE_DIR)/lib$(LIB_TARGET).so
|
||||
|
42
setup/rules/generic/sobj
Normal file
42
setup/rules/generic/sobj
Normal file
@@ -0,0 +1,42 @@
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .o .c
|
||||
.SUFFIXES: .o .cc
|
||||
.SUFFIXES: .o .cpp
|
||||
|
||||
VPATH= ..
|
||||
|
||||
.c.o :
|
||||
@$(RM) -f $@ $@sh
|
||||
@if test "x$(PICFLAGS)" != x; then \
|
||||
echo "$(CC) -c -o $@sh $(PICFLAGS) $(CFLAGS) -I.. $(WX_INCLUDES) $(ADD_COMPILE) $(WX_DEFINES) $<";\
|
||||
$(CC) -c -o $@sh $(PICFLAGS) $(CFLAGS) -I.. $(WX_INCLUDES) $(ADD_COMPILE) $(WX_DEFINES) $<;\
|
||||
fi
|
||||
$(CC) -c -o $@ $(CFLAGS) -I.. $(WX_INCLUDES) $(ADD_COMPILE) $(WX_DEFINES) $<
|
||||
|
||||
.cc.o :
|
||||
@$(RM) -f $@ $@sh
|
||||
@if test "x$(PICFLAGS)" != x; then \
|
||||
echo "$(CXX) -c -o $@sh $(PICFLAGS) $(CXXFLAGS) -I.. $(WX_INCLUDES) $(ADD_COMPILE) $(WX_DEFINES) $<";\
|
||||
$(CXX) -c -o $@sh $(PICFLAGS) $(CXXFLAGS) -I.. $(WX_INCLUDES) $(ADD_COMPILE) $(WX_DEFINES) $<;\
|
||||
fi
|
||||
$(CXX) -c -o $@ $(CXXFLAGS) -I.. $(WX_INCLUDES) $(ADD_COMPILE) $(WX_DEFINES) $<
|
||||
|
||||
.cpp.o :
|
||||
@$(RM) -f $@ $@sh
|
||||
@if test "x$(PICFLAGS)" != x; then \
|
||||
echo "$(CXX) -c -o $@sh $(PICFLAGS) $(CXXFLAGS) -I.. $(WX_INCLUDES) $(ADD_COMPILE) $(WX_DEFINES) $<";\
|
||||
$(CXX) -c -o $@sh $(PICFLAGS) $(CXXFLAGS) -I.. $(WX_INCLUDES) $(ADD_COMPILE) $(WX_DEFINES) $<;\
|
||||
fi
|
||||
$(CXX) -c -o $@ $(CXXFLAGS) -I.. $(WX_INCLUDES) $(ADD_COMPILE) $(WX_DEFINES) $<
|
||||
|
||||
clean_obj::
|
||||
@$(RM) *.o *.osh
|
||||
@if test "x$(SRC_DIR)" != x ; then \
|
||||
for each in $(SRC_DIR) xxx; do \
|
||||
if test -d $$each ; then \
|
||||
$(RM) $$each/*.o $$each/*.osh ; \
|
||||
fi; \
|
||||
done; \
|
||||
fi;
|
||||
|
||||
include $(RULES_GENERIC)/depend
|
15
setup/rules/glib
Normal file
15
setup/rules/glib
Normal file
@@ -0,0 +1,15 @@
|
||||
# all that is to do
|
||||
all:: checkneeds library
|
||||
clean:: clean_library clean_obj
|
||||
|
||||
# now include definite rules
|
||||
LIB_BASE_DIR=$(GLOBAL_LIB_DIR)
|
||||
|
||||
# include rules to create library
|
||||
include $(RULES_GENERIC)/lib
|
||||
# include rules to create objects
|
||||
include $(RULES_GENERIC)/obj
|
||||
# include rule to check for defines needed
|
||||
include $(RULES_GENERIC)/needed
|
||||
|
||||
|
17
setup/rules/glibbin
Normal file
17
setup/rules/glibbin
Normal file
@@ -0,0 +1,17 @@
|
||||
# all that is to do
|
||||
all:: checkneeds library binary
|
||||
clean:: clean_library clean_obj clean_binary
|
||||
|
||||
# now include definite rules
|
||||
LIB_BASE_DIR=$(GLOBAL_LIB_DIR)
|
||||
BIN_BASE_DIR=.
|
||||
|
||||
# include rules to create library
|
||||
include $(RULES_GENERIC)/lib
|
||||
# include rules to create binary
|
||||
include $(RULES_GENERIC)/bin1
|
||||
# include rules to create objects
|
||||
include $(RULES_GENERIC)/obj
|
||||
# include rule to check for defines needed
|
||||
include $(RULES_GENERIC)/needed
|
||||
|
18
setup/rules/glibgbin
Normal file
18
setup/rules/glibgbin
Normal file
@@ -0,0 +1,18 @@
|
||||
# all that is to do
|
||||
all:: checkneeds library binary
|
||||
depend:: depend_library depend_binary
|
||||
clean:: clean_library clean_obj clean_binary
|
||||
|
||||
# now include definite rules
|
||||
LIB_BASE_DIR=$(GLOBAL_LIB_DIR)
|
||||
BIN_BASE_DIR=$(GLOBAL_BIN_DIR)
|
||||
|
||||
# include rules to create library
|
||||
include $(RULES_GENERIC)/lib
|
||||
# include rules to create binary
|
||||
include $(RULES_GENERIC)/mkbin1
|
||||
# include rules to create objects
|
||||
include $(RULES_GENERIC)/obj
|
||||
# include rule to check for defines needed
|
||||
include $(RULES_GENERIC)/needed
|
||||
|
15
setup/rules/gslib
Normal file
15
setup/rules/gslib
Normal file
@@ -0,0 +1,15 @@
|
||||
# all that is to do
|
||||
all:: checkneeds library
|
||||
clean:: clean_library clean_obj
|
||||
|
||||
# now include definite rules
|
||||
LIB_BASE_DIR=$(GLOBAL_LIB_DIR)
|
||||
|
||||
# include rules to create shared library
|
||||
include $(RULES_GENERIC)/slib
|
||||
# include rules to create shared objects
|
||||
include $(RULES_GENERIC)/sobj
|
||||
# include rule to check for defines needed
|
||||
include $(RULES_GENERIC)/needed
|
||||
|
||||
|
14
setup/rules/lib
Normal file
14
setup/rules/lib
Normal file
@@ -0,0 +1,14 @@
|
||||
# all that is to do
|
||||
all:: checkneeds library
|
||||
clean:: clean_library clean_obj
|
||||
|
||||
# now include definite rules
|
||||
LIB_BASE_DIR=.
|
||||
|
||||
# include rules to create library
|
||||
include $(RULES_GENERIC)/lib
|
||||
# include rules to create objects
|
||||
include $(RULES_GENERIC)/obj
|
||||
# include rule to check for defines needed
|
||||
include $(RULES_GENERIC)/needed
|
||||
|
17
setup/rules/libbin
Normal file
17
setup/rules/libbin
Normal file
@@ -0,0 +1,17 @@
|
||||
# all that is to do
|
||||
all:: checkneeds library binary
|
||||
clean:: clean_library clean_obj clean_binary
|
||||
|
||||
# now include definite rules
|
||||
LIB_BASE_DIR=.
|
||||
BIN_BASE_DIR=.
|
||||
|
||||
# include rules to create library
|
||||
include $(RULES_GENERIC)/lib
|
||||
# include rules to create binary
|
||||
include $(RULES_GENERIC)/bin1
|
||||
# include rules to create objects
|
||||
include $(RULES_GENERIC)/obj
|
||||
# include rule to check for defines needed
|
||||
include $(RULES_GENERIC)/needed
|
||||
|
17
setup/rules/libgbin
Normal file
17
setup/rules/libgbin
Normal file
@@ -0,0 +1,17 @@
|
||||
# all that is to do
|
||||
all:: checkneeds library binary
|
||||
clean:: clean_library clean_obj clean_binary
|
||||
|
||||
# now include definite rules
|
||||
LIB_BASE_DIR=.
|
||||
BIN_BASE_DIR=$(GLOBAL_BIN_DIR)
|
||||
|
||||
# include rules to create library
|
||||
include $(RULES_GENERIC)/lib
|
||||
# include rules to create binary
|
||||
include $(RULES_GENERIC)/mkbin1
|
||||
# include rules to create objects
|
||||
include $(RULES_GENERIC)/obj
|
||||
# include rule to check for defines needed
|
||||
include $(RULES_GENERIC)/needed
|
||||
|
562
setup/setup.hin
Normal file
562
setup/setup.hin
Normal file
@@ -0,0 +1,562 @@
|
||||
/* setup.h
|
||||
|
||||
Do not edit this file. It is autogenerated by configure.
|
||||
|
||||
Leave the following blank line there!! Autoheader needs it. */
|
||||
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Features as requested by configure
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
#ifndef __GTKSETUPH__
|
||||
#define __GTKSETUPH__
|
||||
|
||||
#ifdef __GNUG__
|
||||
#pragma interface
|
||||
#endif
|
||||
|
||||
/* define the system to compile */
|
||||
#undef __WXGTK__
|
||||
#undef __WXMOTIF__
|
||||
#undef __WXQT__
|
||||
#undef __UNIX__
|
||||
#undef __LINUX__
|
||||
#undef __SGI__
|
||||
#undef __HPUX__
|
||||
#undef __SYSV__
|
||||
#undef __SVR4__
|
||||
#undef __AIX__
|
||||
#undef __SUN__
|
||||
#undef __SOLARIS__
|
||||
#undef __SUNOS__
|
||||
#undef __ALPHA__
|
||||
#undef __OSF__
|
||||
#undef __BSD__
|
||||
#undef __FREEBSD__
|
||||
#undef __VMS__
|
||||
#undef __ULTRIX__
|
||||
#undef __DATA_GENERAL__
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
// library options
|
||||
//------------------------------------------------------------------------
|
||||
|
||||
/*
|
||||
* Use zlib
|
||||
*/
|
||||
#undef USE_ZLIB
|
||||
/*
|
||||
* Use gdk_imlib
|
||||
*/
|
||||
#undef USE_GDK_IMLIB
|
||||
/*
|
||||
* Use libpng
|
||||
*/
|
||||
#undef USE_LIBPNG
|
||||
/*
|
||||
* Use iODBC
|
||||
*/
|
||||
#undef USE_ODBC
|
||||
/*
|
||||
* Use Threads
|
||||
*/
|
||||
#undef USE_THREADS
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
// GUI control options
|
||||
//------------------------------------------------------------------------
|
||||
|
||||
/*
|
||||
* Use gauge item
|
||||
*/
|
||||
#undef USE_GAUGE
|
||||
/*
|
||||
* Use scrollbar item
|
||||
*/
|
||||
#undef USE_SCROLLBAR
|
||||
/*
|
||||
* Use notebook item
|
||||
*/
|
||||
#undef USE_NOTEBOOK
|
||||
/*
|
||||
* Use listctrl item
|
||||
*/
|
||||
#undef USE_LISTCTRL
|
||||
/*
|
||||
* Use treectrl item
|
||||
*/
|
||||
#undef USE_TREECTRL
|
||||
/*
|
||||
* Use grid item
|
||||
*/
|
||||
#undef USE_GRID
|
||||
/*
|
||||
* Use tab dialog item
|
||||
*/
|
||||
#undef USE_TAB_DIALOG
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
// non-GUI options
|
||||
//------------------------------------------------------------------------
|
||||
|
||||
/*
|
||||
* Use fraction class
|
||||
*/
|
||||
#undef USE_FRACTION
|
||||
/*
|
||||
* Use time and date classes
|
||||
*/
|
||||
#undef USE_TIMEDATE
|
||||
/*
|
||||
* Use config system
|
||||
*/
|
||||
#undef USE_CONFIG
|
||||
/*
|
||||
* Use intl system
|
||||
*/
|
||||
#undef USE_INTL
|
||||
/*
|
||||
* Use streams
|
||||
*/
|
||||
#undef USE_STREAMS
|
||||
/*
|
||||
* Use wxFile
|
||||
*/
|
||||
#undef USE_FILE
|
||||
/*
|
||||
* Use wxTextFile
|
||||
*/
|
||||
#undef USE_TEXTFILE
|
||||
/*
|
||||
* Use class serialization
|
||||
*/
|
||||
#undef USE_SERIAL
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
// PS options
|
||||
//------------------------------------------------------------------------
|
||||
|
||||
/*
|
||||
* Use font metric files in GetTextExtent for wxPostScriptDC
|
||||
* Use consistent PostScript fonts for AFM and printing (!)
|
||||
*/
|
||||
#undef USE_AFM_FOR_POSTSCRIPT
|
||||
#undef WX_NORMALIZED_PS_FONTS
|
||||
/*
|
||||
* Use PostScript device context
|
||||
*/
|
||||
#undef USE_POSTSCRIPT
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
// misc options
|
||||
//------------------------------------------------------------------------
|
||||
|
||||
/*
|
||||
* Use Interprocess communication
|
||||
*/
|
||||
#undef USE_IPC
|
||||
/*
|
||||
* Use wxGetResource & wxWriteResource (change .Xdefaults)
|
||||
*/
|
||||
#undef USE_RESOURCES
|
||||
/*
|
||||
* Use clipboard
|
||||
*/
|
||||
#undef USE_CLIPBOARD
|
||||
/*
|
||||
* Use dnd
|
||||
*/
|
||||
#undef USE_DND
|
||||
/*
|
||||
* Use wxWindows layout constraint system
|
||||
*/
|
||||
#undef USE_CONSTRAINTS
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
// architecture options
|
||||
//------------------------------------------------------------------------
|
||||
|
||||
/*
|
||||
* Use the mdi architecture
|
||||
*/
|
||||
#undef USE_MDI_ARCHITECTURE
|
||||
/*
|
||||
* Use the document/view architecture
|
||||
*/
|
||||
#undef USE_DOC_VIEW_ARCHITECTURE
|
||||
/*
|
||||
* Use the print/preview architecture
|
||||
*/
|
||||
#undef USE_PRINTING_ARCHITECTURE
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
// Prolog and wxWindows' resource system options
|
||||
//------------------------------------------------------------------------
|
||||
|
||||
/*
|
||||
* Use Prolog IO
|
||||
*/
|
||||
#undef USE_PROLOGIO
|
||||
/*
|
||||
* Use Remote Procedure Call (Needs USE_IPC and USE_PROLOGIO)
|
||||
*/
|
||||
#undef USE_RPC
|
||||
/*
|
||||
* Use wxWindows resource loading (.wxr-files) (Needs USE_PROLOGIO 1)
|
||||
*/
|
||||
#undef USE_WX_RESOURCES
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
// the rest
|
||||
//------------------------------------------------------------------------
|
||||
|
||||
/*
|
||||
* Implement a GLCanvas class as an interface to OpenGL, using the GLX
|
||||
* extension to the X11 protocol. You can use the (free) Mesa library
|
||||
* if you don't have a 'real' OpenGL.
|
||||
*/
|
||||
#undef USE_GLX
|
||||
/*
|
||||
* Use wxWindows help facility (needs USE_IPC 1)
|
||||
*/
|
||||
#undef USE_HELP
|
||||
/*
|
||||
* Use iostream.h rather than iostream
|
||||
*/
|
||||
#undef USE_IOSTREAMH
|
||||
/*
|
||||
* Use Metafile and Metafile device context
|
||||
*/
|
||||
#undef USE_METAFILE
|
||||
/*
|
||||
* Use wxGraph
|
||||
*/
|
||||
#undef USE_WXGRAPH
|
||||
/*
|
||||
* Use wxTree
|
||||
*/
|
||||
#undef USE_WXTREE
|
||||
/*
|
||||
* Use Apple Ieee-double converter
|
||||
*/
|
||||
#undef USE_APPLE_IEEE
|
||||
/* Compatibility with 1.66 API.
|
||||
Level 0: no backward compatibility, all new features
|
||||
Level 1: wxDC, OnSize (etc.) compatibility, but
|
||||
some new features such as event tables */
|
||||
#define WXWIN_COMPATIBILITY 1
|
||||
/*
|
||||
* Enables debugging: memory tracing, assert, etc., contains debug level
|
||||
*/
|
||||
#undef WXDEBUG
|
||||
/*
|
||||
* Enables debugging version of wxObject::new and wxObject::delete (IF WXDEBUG)
|
||||
* WARNING: this code may not work with all architectures, especially
|
||||
* if alignment is an issue.
|
||||
*/
|
||||
#undef USE_MEMORY_TRACING
|
||||
/*
|
||||
* Enable debugging version of global memory operators new and delete
|
||||
* Disable it, If this causes problems (e.g. link errors)
|
||||
*/
|
||||
#undef USE_GLOBAL_MEMORY_OPERATORS
|
||||
/*
|
||||
* If WXDEBUG && USE_MEMORY_TRACING && USE_GLOBAL_MEMORY_OPERATORS
|
||||
* used to debug the memory allocation of wxWindows Xt port code
|
||||
*/
|
||||
#define USE_INTERNAL_MEMORY_TRACING 0
|
||||
/*
|
||||
* Matthews garbage collection (used for MrEd?)
|
||||
*/
|
||||
#define WXGARBAGE_COLLECTION_ON 0
|
||||
/*
|
||||
* Use splines
|
||||
*/
|
||||
#define USE_SPLINES 1
|
||||
/*
|
||||
* USE_DYNAMIC_CLASSES is TRUE for the Xt port
|
||||
*/
|
||||
#define USE_DYNAMIC_CLASSES 1
|
||||
/*
|
||||
* Disable this if your compiler can't cope
|
||||
* with omission of prototype parameters.
|
||||
*/
|
||||
#define REMOVE_UNUSED_ARG 1
|
||||
/*
|
||||
* The const keyword is being introduced more in wxWindows.
|
||||
* You can use this setting to maintain backward compatibility.
|
||||
* If 0: will use const wherever possible.
|
||||
* If 1: will use const only where necessary
|
||||
* for precompiled headers to work.
|
||||
* If 2: will be totally backward compatible, but precompiled
|
||||
* headers may not work and program size will be larger.
|
||||
*/
|
||||
#define CONST_COMPATIBILITY 0
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// System-specific stuff
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
/* acconfig.h
|
||||
This file is in the public domain.
|
||||
|
||||
Descriptive text for the C preprocessor macros that
|
||||
the distributed Autoconf macros can define.
|
||||
No software package will use all of them; autoheader copies the ones
|
||||
your configure.in uses into your configuration header file templates.
|
||||
|
||||
The entries are in sort -df order: alphabetical, case insensitive,
|
||||
ignoring punctuation (such as underscores). Although this order
|
||||
can split up related entries, it makes it easier to check whether
|
||||
a given entry is in the file. */
|
||||
|
||||
/* Define if on AIX 3.
|
||||
System headers sometimes define this.
|
||||
We just want to avoid a redefinition error message. */
|
||||
#ifndef _ALL_SOURCE
|
||||
#undef _ALL_SOURCE
|
||||
#endif
|
||||
|
||||
/* Define if using alloca.c. */
|
||||
#undef C_ALLOCA
|
||||
|
||||
/* Define if type char is unsigned and you are not using gcc. */
|
||||
#ifndef __CHAR_UNSIGNED__
|
||||
#undef __CHAR_UNSIGNED__
|
||||
#endif
|
||||
|
||||
/* Define if the closedir function returns void instead of int. */
|
||||
#undef CLOSEDIR_VOID
|
||||
|
||||
/* Define to empty if the keyword does not work. */
|
||||
#undef const
|
||||
|
||||
/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems.
|
||||
This function is required for alloca.c support on those systems. */
|
||||
#undef CRAY_STACKSEG_END
|
||||
|
||||
/* Define for DGUX with <sys/dg_sys_info.h>. */
|
||||
#undef DGUX
|
||||
|
||||
/* Define if you have <dirent.h>. */
|
||||
#undef DIRENT
|
||||
|
||||
/* Define to the type of elements in the array set by `getgroups'.
|
||||
Usually this is either `int' or `gid_t'. */
|
||||
#undef GETGROUPS_T
|
||||
|
||||
/* Define if the `getloadavg' function needs to be run setuid or setgid. */
|
||||
#undef GETLOADAVG_PRIVILEGED
|
||||
|
||||
/* Define if the `getpgrp' function takes no argument. */
|
||||
#undef GETPGRP_VOID
|
||||
|
||||
/* Define to `int' if <sys/types.h> doesn't define. */
|
||||
#undef gid_t
|
||||
|
||||
/* Define if you have alloca, as a function or macro. */
|
||||
#undef HAVE_ALLOCA
|
||||
|
||||
/* Define if you have <alloca.h> and it should be used (not on Ultrix). */
|
||||
#undef HAVE_ALLOCA_H
|
||||
|
||||
/* Define if you don't have vprintf but do have _doprnt. */
|
||||
#undef HAVE_DOPRNT
|
||||
|
||||
/* Define if your system has its own `getloadavg' function. */
|
||||
#undef HAVE_GETLOADAVG
|
||||
|
||||
/* Define if you have the getmntent function. */
|
||||
#undef HAVE_GETMNTENT
|
||||
|
||||
/* Define if the `long double' type works. */
|
||||
#undef HAVE_LONG_DOUBLE
|
||||
|
||||
/* Define if you support file names longer than 14 characters. */
|
||||
#undef HAVE_LONG_FILE_NAMES
|
||||
|
||||
/* Define if you have a working `mmap' system call. */
|
||||
#undef HAVE_MMAP
|
||||
|
||||
/* Define if system calls automatically restart after interruption
|
||||
by a signal. */
|
||||
#undef HAVE_RESTARTABLE_SYSCALLS
|
||||
|
||||
/* Define if your struct stat has st_blksize. */
|
||||
#undef HAVE_ST_BLKSIZE
|
||||
|
||||
/* Define if your struct stat has st_blocks. */
|
||||
#undef HAVE_ST_BLOCKS
|
||||
|
||||
/* Define if you have the strcoll function and it is properly defined. */
|
||||
#undef HAVE_STRCOLL
|
||||
|
||||
/* Define if your struct stat has st_rdev. */
|
||||
#undef HAVE_ST_RDEV
|
||||
|
||||
/* Define if you have the strftime function. */
|
||||
#undef HAVE_STRFTIME
|
||||
|
||||
/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
|
||||
#undef HAVE_SYS_WAIT_H
|
||||
|
||||
/* Define if your struct tm has tm_zone. */
|
||||
#undef HAVE_TM_ZONE
|
||||
|
||||
/* Define if you don't have tm_zone but do have the external array
|
||||
tzname. */
|
||||
#undef HAVE_TZNAME
|
||||
|
||||
/* Define if you have <unistd.h>. */
|
||||
#undef HAVE_UNISTD_H
|
||||
|
||||
/* Define if utime(file, NULL) sets file's timestamp to the present. */
|
||||
#undef HAVE_UTIME_NULL
|
||||
|
||||
/* Define if you have <vfork.h>. */
|
||||
#undef HAVE_VFORK_H
|
||||
|
||||
/* Define if you have the vprintf function. */
|
||||
#undef HAVE_VPRINTF
|
||||
|
||||
/* Define if you have the wait3 system call. */
|
||||
#undef HAVE_WAIT3
|
||||
|
||||
/* Define as __inline if that's what the C compiler calls it. */
|
||||
#ifndef __cplusplus
|
||||
#undef inline
|
||||
#endif
|
||||
|
||||
/* Define if major, minor, and makedev are declared in <mkdev.h>. */
|
||||
#undef MAJOR_IN_MKDEV
|
||||
|
||||
/* Define if major, minor, and makedev are declared in <sysmacros.h>. */
|
||||
#undef MAJOR_IN_SYSMACROS
|
||||
|
||||
/* Define if on MINIX. */
|
||||
#undef _MINIX
|
||||
|
||||
/* Define to `int' if <sys/types.h> doesn't define. */
|
||||
#undef mode_t
|
||||
|
||||
/* Define if you don't have <dirent.h>, but have <ndir.h>. */
|
||||
#undef NDIR
|
||||
|
||||
/* Define if you have <memory.h>, and <string.h> doesn't declare the
|
||||
mem* functions. */
|
||||
#undef NEED_MEMORY_H
|
||||
|
||||
/* Define if your struct nlist has an n_un member. */
|
||||
#undef NLIST_NAME_UNION
|
||||
|
||||
/* Define if you have <nlist.h>. */
|
||||
#undef NLIST_STRUCT
|
||||
|
||||
/* Define if your C compiler doesn't accept -c and -o together. */
|
||||
#undef NO_MINUS_C_MINUS_O
|
||||
|
||||
/* Define to `long' if <sys/types.h> doesn't define. */
|
||||
#undef off_t
|
||||
|
||||
/* Define to `int' if <sys/types.h> doesn't define. */
|
||||
#undef pid_t
|
||||
|
||||
/* Define if the system does not provide POSIX.1 features except
|
||||
with this defined. */
|
||||
#undef _POSIX_1_SOURCE
|
||||
|
||||
/* Define if you need to in order for stat and other things to work. */
|
||||
#undef _POSIX_SOURCE
|
||||
|
||||
/* Define as the return type of signal handlers (int or void). */
|
||||
#undef RETSIGTYPE
|
||||
|
||||
/* Define if the setvbuf function takes the buffering type as its second
|
||||
argument and the buffer pointer as the third, as on System V
|
||||
before release 3. */
|
||||
#undef SETVBUF_REVERSED
|
||||
|
||||
/* Define SIZESOF for some Objects */
|
||||
#undef SIZEOF_INT
|
||||
#undef SIZEOF_INT_P
|
||||
#undef SIZEOF_LONG
|
||||
|
||||
/* Define to `unsigned' if <sys/types.h> doesn't define. */
|
||||
#undef size_t
|
||||
|
||||
/* If using the C implementation of alloca, define if you know the
|
||||
direction of stack growth for your system; otherwise it will be
|
||||
automatically deduced at run-time.
|
||||
STACK_DIRECTION > 0 => grows toward higher addresses
|
||||
STACK_DIRECTION < 0 => grows toward lower addresses
|
||||
STACK_DIRECTION = 0 => direction of growth unknown
|
||||
*/
|
||||
#undef STACK_DIRECTION
|
||||
|
||||
/* Define if the `S_IS*' macros in <sys/stat.h> do not work properly. */
|
||||
#undef STAT_MACROS_BROKEN
|
||||
|
||||
/* Define if you have the ANSI C header files. */
|
||||
#undef STDC_HEADERS
|
||||
|
||||
/* Define on System V Release 4. */
|
||||
#undef SVR4
|
||||
|
||||
/* Define on BSD */
|
||||
#undef BSD
|
||||
|
||||
/* Define on System V */
|
||||
#undef SYSV
|
||||
|
||||
/* Define if you don't have <dirent.h>, but have <sys/dir.h>. */
|
||||
#undef SYSDIR
|
||||
|
||||
/* Define if you don't have <dirent.h>, but have <sys/ndir.h>. */
|
||||
#undef SYSNDIR
|
||||
|
||||
/* Define if `sys_siglist' is declared by <signal.h>. */
|
||||
#undef SYS_SIGLIST_DECLARED
|
||||
|
||||
/* Define if you can safely include both <sys/time.h> and <time.h>. */
|
||||
#undef TIME_WITH_SYS_TIME
|
||||
|
||||
/* Define if your <sys/time.h> declares struct tm. */
|
||||
#undef TM_IN_SYS_TIME
|
||||
|
||||
/* Define to `int' if <sys/types.h> doesn't define. */
|
||||
#undef uid_t
|
||||
|
||||
/* Define for Encore UMAX. */
|
||||
#undef UMAX
|
||||
|
||||
/* Define for Encore UMAX 4.3 that has <inq_status/cpustats.h>
|
||||
instead of <sys/cpustats.h>. */
|
||||
#undef UMAX4_3
|
||||
|
||||
/* Define if you do not have <strings.h>, index, bzero, etc.. */
|
||||
#undef USG
|
||||
|
||||
/* Define if the system is System V Release 4 */
|
||||
#undef SVR4
|
||||
|
||||
/* Define vfork as fork if vfork does not work. */
|
||||
#undef vfork
|
||||
|
||||
/* Define if the closedir function returns void instead of int. */
|
||||
#undef VOID_CLOSEDIR
|
||||
|
||||
/* Define if your processor stores words with the most significant
|
||||
byte first (like Motorola and SPARC, unlike Intel and VAX). */
|
||||
#undef WORDS_BIGENDIAN
|
||||
|
||||
/* Define if lex declares yytext as a char * by default, not a char[]. */
|
||||
#undef YYTEXT_POINTER
|
||||
|
||||
#endif /* __GTKSETUPH__ */
|
||||
|
||||
|
||||
/* Leave that blank line there!! Autoheader needs it.
|
||||
If you're adding to this file, keep in mind:
|
||||
The entries are in sort -df order: alphabetical, case insensitive,
|
||||
ignoring punctuation (such as underscores). */
|
26
setup/shared/sharedAIX
Executable file
26
setup/shared/sharedAIX
Executable file
@@ -0,0 +1,26 @@
|
||||
#! /bin/sh
|
||||
|
||||
COMPILER=$1
|
||||
LIBRARY_BASE=$2
|
||||
LIBRARY_MAJOR=$3
|
||||
LIBRARY_MINOR=$4
|
||||
shift 3
|
||||
LIBRARY_OBJS=
|
||||
while (test $# -ne 1) do
|
||||
shift;
|
||||
LIBRARY_OBJS="$LIBRARY_OBJS $1sh";
|
||||
done
|
||||
|
||||
LIBRARY_BASE=`echo $LIBRARY_BASE | sed 's/.so/.sa/'`
|
||||
LIBRARY_NAME=`basename $LIBRARY_BASE`
|
||||
LIBRARY_FILE=$LIBRARY_BASE
|
||||
|
||||
echo "Creating shared library: $LIBRARY_FILE"
|
||||
|
||||
ar cr $LIBRARY_FILE~ $LIBRARY_OBJS
|
||||
nm $LIBRARY_OBJS | awk '/ [BD] /{print $$3}' | sort | uniq > ${LIBRARY_FILE}.syms
|
||||
ld -o shr.o $LIBRARY_FILE~ -lX11 -lXt -lc -lm -H512 -T512 -bE:${LIBRARY_FILE}.syms -bM:SRE
|
||||
rm -f $LIBRARY_FILE~
|
||||
ar ruv $LIBRARY_FILE shr.o
|
||||
chmod a+x $LIBRARY_FILE
|
||||
|
33
setup/shared/sharedBsd
Executable file
33
setup/shared/sharedBsd
Executable file
@@ -0,0 +1,33 @@
|
||||
#! /bin/sh
|
||||
|
||||
#LIBRARY_BASE=`echo $1 | sed 's/.a/.so/'`
|
||||
COMPILER=$1
|
||||
LIBRARY_BASE=$2
|
||||
LIBRARY_MAJOR=$3
|
||||
LIBRARY_MINOR=$4
|
||||
shift 3
|
||||
LIBRARY_OBJS=
|
||||
while (test $# -ne 1) do
|
||||
shift;
|
||||
LIBRARY_OBJS="$LIBRARY_OBJS $1sh";
|
||||
done
|
||||
|
||||
LIBRARY_NAME=`basename $LIBRARY_BASE`
|
||||
LIBRARY_FILE=$LIBRARY_BASE.$LIBRARY_MAJOR.$LIBRARY_MINOR
|
||||
|
||||
echo "Creating shared library: $LIBRARY_FILE"
|
||||
|
||||
if test "x$COMPILER" = xgcc ; then
|
||||
gcc -shared -o $LIBRARY_FILE $LIBRARY_OBJS
|
||||
else
|
||||
CC -Bshareable -Bforcearchive -o $LIBRARY_FILE $LIBRARY_OBJS
|
||||
fi
|
||||
chmod a+x $LIBRARY_FILE
|
||||
rm -f $LIBRARY_BASE.$LIBRARY_MAJOR
|
||||
ln -s $LIBRARY_NAME.$LIBRARY_MAJOR.$LIBRARY_MINOR $LIBRARY_BASE.$LIBRARY_MAJOR
|
||||
rm -f $LIBRARY_BASE
|
||||
ln -s $LIBRARY_NAME.$LIBRARY_MAJOR $LIBRARY_BASE
|
||||
|
||||
|
||||
|
||||
|
29
setup/shared/sharedDgux
Executable file
29
setup/shared/sharedDgux
Executable file
@@ -0,0 +1,29 @@
|
||||
#! /bin/sh
|
||||
|
||||
COMPILER=$1
|
||||
LIBRARY_BASE=$2
|
||||
LIBRARY_MAJOR=$3
|
||||
LIBRARY_MINOR=$4
|
||||
shift 3
|
||||
LIBRARY_OBJS=
|
||||
while (test $# -ne 1) do
|
||||
shift;
|
||||
LIBRARY_OBJS="$LIBRARY_OBJS $1sh";
|
||||
done
|
||||
|
||||
LIBRARY_BASE=`echo $LIBRARY_BASE | sed 's/.so/.sl/'`
|
||||
LIBRARY_NAME=`basename $LIBRARY_BASE`
|
||||
LIBRARY_FILE=$LIBRARY_BASE
|
||||
|
||||
echo "Creating shared library: $LIBRARY_FILE"
|
||||
|
||||
if test "x$COMPILER" = xgcc ; then
|
||||
gcc -shared -h $LIBRARY_NAME -o $LIBRARY_FILE $LIBRARY_OBJS
|
||||
else
|
||||
CC -G -h $LIBRARY_NAME -o $LIBRARY_FILE $LIBRARY_OBJS
|
||||
fi
|
||||
chmod a+x $LIBRARY_FILE
|
||||
|
||||
|
||||
|
||||
|
29
setup/shared/sharedHpux
Executable file
29
setup/shared/sharedHpux
Executable file
@@ -0,0 +1,29 @@
|
||||
#! /bin/sh
|
||||
|
||||
COMPILER=$1
|
||||
LIBRARY_BASE=$2
|
||||
LIBRARY_MAJOR=$3
|
||||
LIBRARY_MINOR=$4
|
||||
shift 3
|
||||
LIBRARY_OBJS=
|
||||
while (test $# -ne 1) do
|
||||
shift;
|
||||
LIBRARY_OBJS="$LIBRARY_OBJS $1sh";
|
||||
done
|
||||
|
||||
LIBRARY_BASE=`echo $LIBRARY_BASE | sed 's/.so/.sl/'`
|
||||
LIBRARY_NAME=`basename $LIBRARY_BASE`
|
||||
LIBRARY_FILE=$LIBRARY_BASE
|
||||
|
||||
echo "Creating shared library: $LIBRARY_FILE"
|
||||
|
||||
if test "x$COMPILER" = xgcc ; then
|
||||
gcc -shared -o $LIBRARY_FILE $LIBRARY_OBJS
|
||||
else
|
||||
CC -Wl,+s -o $LIBRARY_FILE $LIBRARY_OBJS
|
||||
fi
|
||||
chmod a+x $LIBRARY_FILE
|
||||
|
||||
|
||||
|
||||
|
45
setup/shared/sharedIrix
Executable file
45
setup/shared/sharedIrix
Executable file
@@ -0,0 +1,45 @@
|
||||
#! /bin/sh
|
||||
# on Irix, position independent code is the default
|
||||
|
||||
#LIBRARY_BASE=`echo $1 | sed 's/.a/.so/'`
|
||||
COMPILER=$1
|
||||
LIBRARY_BASE=$2
|
||||
LIBRARY_MAJOR=$3
|
||||
LIBRARY_MINOR=$4
|
||||
shift 3
|
||||
LIBRARY_OBJS=
|
||||
while (test $# -ne 1) do
|
||||
shift;
|
||||
LIBRARY_OBJS="$LIBRARY_OBJS $1";
|
||||
done
|
||||
|
||||
LIBRARY_NAME=`basename $LIBRARY_BASE`
|
||||
LIBRARY_FILE=$LIBRARY_BASE.$LIBRARY_MAJOR.$LIBRARY_MINOR
|
||||
|
||||
echo "Creating shared library: $LIBRARY_FILE"
|
||||
|
||||
if test ! -f /tmp/so_locations; then
|
||||
if test -f /usr/lib/so_locations; then
|
||||
cp /usr/lib/so_locations /tmp
|
||||
else
|
||||
touch /tmp/so_locations
|
||||
fi
|
||||
fi
|
||||
chmod u+w /tmp/so_locations
|
||||
|
||||
if test "x$COMPILER" = xgcc ; then
|
||||
gcc -shared -Wl,-update_registry,/tmp/so_locations \
|
||||
-Wl,-soname,$LIBRARY_NAME.$LIBRARY_MAJOR -o $LIBRARY_FILE $LIBRARY_OBJS
|
||||
else
|
||||
CC -shared -update_registry /tmp/so_locations \
|
||||
-soname $LIBRARY_NAME.$LIBRARY_MAJOR -o $LIBRARY_FILE $LIBRARY_OBJS
|
||||
fi
|
||||
chmod a+x $LIBRARY_FILE
|
||||
rm -f $LIBRARY_BASE.$LIBRARY_MAJOR
|
||||
ln -s $LIBRARY_NAME.$LIBRARY_MAJOR.$LIBRARY_MINOR $LIBRARY_BASE.$LIBRARY_MAJOR
|
||||
rm -f $LIBRARY_BASE
|
||||
ln -s $LIBRARY_NAME.$LIBRARY_MAJOR $LIBRARY_BASE
|
||||
|
||||
|
||||
|
||||
|
34
setup/shared/sharedLinux
Executable file
34
setup/shared/sharedLinux
Executable file
@@ -0,0 +1,34 @@
|
||||
#! /bin/sh
|
||||
|
||||
#LIBRARY_BASE=`echo $1 | sed 's/.a/.so/'`
|
||||
COMPILER=$1
|
||||
LIBRARY_BASE=$2
|
||||
LIBRARY_MAJOR=$3
|
||||
LIBRARY_MINOR=$4
|
||||
shift 3
|
||||
LIBRARY_OBJS=
|
||||
while (test $# -ne 1) do
|
||||
shift;
|
||||
LIBRARY_OBJS="$LIBRARY_OBJS $1sh";
|
||||
done
|
||||
|
||||
LIBRARY_NAME=`basename $LIBRARY_BASE`
|
||||
LIBRARY_FILE=$LIBRARY_BASE.$LIBRARY_MAJOR.$LIBRARY_MINOR
|
||||
|
||||
echo "Creating shared library: $LIBRARY_FILE"
|
||||
|
||||
case $COMPILER in gcc*|*gcc)
|
||||
$COMPILER -shared -Wl,-soname,$LIBRARY_NAME.$LIBRARY_MAJOR -o $LIBRARY_FILE $LIBRARY_OBJS
|
||||
;;
|
||||
*)
|
||||
$COMPILER -shared -soname $LIBRARY_NAME.$LIBRARY_MAJOR -o $LIBRARY_FILE $LIBRARY_OBJS
|
||||
esac
|
||||
chmod a+x $LIBRARY_FILE
|
||||
rm -f $LIBRARY_BASE.$LIBRARY_MAJOR
|
||||
ln -s $LIBRARY_NAME.$LIBRARY_MAJOR.$LIBRARY_MINOR $LIBRARY_BASE.$LIBRARY_MAJOR
|
||||
rm -f $LIBRARY_BASE
|
||||
ln -s $LIBRARY_NAME.$LIBRARY_MAJOR $LIBRARY_BASE
|
||||
|
||||
|
||||
|
||||
|
33
setup/shared/sharedOSF
Executable file
33
setup/shared/sharedOSF
Executable file
@@ -0,0 +1,33 @@
|
||||
#! /bin/sh
|
||||
|
||||
#LIBRARY_BASE=`echo $1 | sed 's/.a/.so/'`
|
||||
COMPILER=$1
|
||||
LIBRARY_BASE=$2
|
||||
LIBRARY_MAJOR=$3
|
||||
LIBRARY_MINOR=$4
|
||||
shift 3
|
||||
LIBRARY_OBJS=
|
||||
while (test $# -ne 1) do
|
||||
shift;
|
||||
LIBRARY_OBJS="$LIBRARY_OBJS $1sh";
|
||||
done
|
||||
|
||||
LIBRARY_NAME=`basename $LIBRARY_BASE`
|
||||
LIBRARY_FILE=$LIBRARY_BASE.$LIBRARY_MAJOR.$LIBRARY_MINOR
|
||||
|
||||
echo "Creating shared library: $LIBRARY_FILE"
|
||||
|
||||
if test "x$COMPILER" = xgcc ; then
|
||||
gcc -shared -Wl,-soname,$LIBRARY_NAME -o $LIBRARY_FILE $LIBRARY_OBJS
|
||||
else
|
||||
$COMPILER -shared -soname $LIBRARY_NAME -o $LIBRARY_FILE $LIBRARY_OBJS
|
||||
fi
|
||||
chmod a+x $LIBRARY_FILE
|
||||
rm -f $LIBRARY_BASE.$LIBRARY_MAJOR
|
||||
ln -s $LIBRARY_NAME.$LIBRARY_MAJOR.$LIBRARY_MINOR $LIBRARY_BASE.$LIBRARY_MAJOR
|
||||
rm -f $LIBRARY_BASE
|
||||
ln -s $LIBRARY_NAME.$LIBRARY_MAJOR $LIBRARY_BASE
|
||||
|
||||
|
||||
|
||||
|
33
setup/shared/sharedSolaris2
Executable file
33
setup/shared/sharedSolaris2
Executable file
@@ -0,0 +1,33 @@
|
||||
#! /bin/sh
|
||||
|
||||
#LIBRARY_BASE=`echo $1 | sed 's/.a/.so/'`
|
||||
COMPILER=$1
|
||||
LIBRARY_BASE=$2
|
||||
LIBRARY_MAJOR=$3
|
||||
LIBRARY_MINOR=$4
|
||||
shift 3
|
||||
LIBRARY_OBJS=
|
||||
while (test $# -ne 1) do
|
||||
shift;
|
||||
LIBRARY_OBJS="$LIBRARY_OBJS $1sh";
|
||||
done
|
||||
|
||||
LIBRARY_NAME=`basename $LIBRARY_BASE`
|
||||
LIBRARY_FILE=$LIBRARY_BASE.$LIBRARY_MAJOR.$LIBRARY_MINOR
|
||||
|
||||
echo "Creating shared library: $LIBRARY_FILE"
|
||||
|
||||
if test "x$COMPILER" = xgcc ; then
|
||||
gcc -shared -h $LIBRARY_NAME -o $LIBRARY_FILE $LIBRARY_OBJS
|
||||
else
|
||||
CC -G -h $LIBRARY_NAME -o $LIBRARY_FILE $LIBRARY_OBJS
|
||||
fi
|
||||
chmod a+x $LIBRARY_FILE
|
||||
rm -f $LIBRARY_BASE.$LIBRARY_MAJOR
|
||||
ln -s $LIBRARY_NAME.$LIBRARY_MAJOR.$LIBRARY_MINOR $LIBRARY_BASE.$LIBRARY_MAJOR
|
||||
rm -f $LIBRARY_BASE
|
||||
ln -s $LIBRARY_NAME.$LIBRARY_MAJOR $LIBRARY_BASE
|
||||
|
||||
|
||||
|
||||
|
33
setup/shared/sharedSunos4
Executable file
33
setup/shared/sharedSunos4
Executable file
@@ -0,0 +1,33 @@
|
||||
#! /bin/sh
|
||||
|
||||
#LIBRARY_BASE=`echo $1 | sed 's/.a/.so/'`
|
||||
COMPILER=$1
|
||||
LIBRARY_BASE=$2
|
||||
LIBRARY_MAJOR=$3
|
||||
LIBRARY_MINOR=$4
|
||||
shift 3
|
||||
LIBRARY_OBJS=
|
||||
while (test $# -ne 1) do
|
||||
shift;
|
||||
LIBRARY_OBJS="$LIBRARY_OBJS $1sh";
|
||||
done
|
||||
|
||||
LIBRARY_NAME=`basename $LIBRARY_BASE`
|
||||
LIBRARY_FILE=$LIBRARY_BASE.$LIBRARY_MAJOR.$LIBRARY_MINOR
|
||||
|
||||
echo "Creating shared library: $LIBRARY_FILE"
|
||||
|
||||
if test "x$COMPILER" = xgcc ; then
|
||||
gcc -shared -o $LIBRARY_FILE $LIBRARY_OBJS
|
||||
else
|
||||
CC -assert pure-text -o $LIBRARY_FILE $LIBRARY_OBJS
|
||||
fi
|
||||
chmod a+x $LIBRARY_FILE
|
||||
rm -f $LIBRARY_BASE.$LIBRARY_MAJOR
|
||||
ln -s $LIBRARY_NAME.$LIBRARY_MAJOR.$LIBRARY_MINOR $LIBRARY_BASE.$LIBRARY_MAJOR
|
||||
rm -f $LIBRARY_BASE
|
||||
ln -s $LIBRARY_NAME.$LIBRARY_MAJOR $LIBRARY_BASE
|
||||
|
||||
|
||||
|
||||
|
29
setup/shared/sharedSysV
Executable file
29
setup/shared/sharedSysV
Executable file
@@ -0,0 +1,29 @@
|
||||
#! /bin/sh
|
||||
|
||||
COMPILER=$1
|
||||
LIBRARY_BASE=$2
|
||||
LIBRARY_MAJOR=$3
|
||||
LIBRARY_MINOR=$4
|
||||
shift 3
|
||||
LIBRARY_OBJS=
|
||||
while (test $# -ne 1) do
|
||||
shift;
|
||||
LIBRARY_OBJS="$LIBRARY_OBJS $1sh";
|
||||
done
|
||||
|
||||
LIBRARY_BASE=`echo $LIBRARY_BASE | sed 's/.so/.sl/'`
|
||||
LIBRARY_NAME=`basename $LIBRARY_BASE`
|
||||
LIBRARY_FILE=$LIBRARY_BASE
|
||||
|
||||
echo "Creating shared library: $LIBRARY_FILE"
|
||||
|
||||
if test "x$COMPILER" = xgcc ; then
|
||||
gcc -shared -h $LIBRARY_NAME -o $LIBRARY_FILE $LIBRARY_OBJS
|
||||
else
|
||||
CC -G -h $LIBRARY_NAME -o $LIBRARY_FILE $LIBRARY_OBJS
|
||||
fi
|
||||
chmod a+x $LIBRARY_FILE
|
||||
|
||||
|
||||
|
||||
|
48
setup/substit.in
Normal file
48
setup/substit.in
Normal file
@@ -0,0 +1,48 @@
|
||||
s|*OS*|@OS@|g
|
||||
s|*MAKEINCLUDE*|@MAKEINCLUDE@|g
|
||||
s|*WXBASEDIR*|@WXBASEDIR@|g
|
||||
s|*PROFILE*|@PROFILE@|g
|
||||
s|*WXDEBUG*|@WXDEBUG@|g
|
||||
s|*WXDEBUG_DEFINE*|@WXDEBUG_DEFINE@|g
|
||||
s|*__WXDEBUG__*|@WXDEBUG@|g
|
||||
s|*OPTIMISE*|@OPTIMISE@|g
|
||||
s|*CC*|@CC@|g
|
||||
s|*CFLAGS*|@CFLAGS@|g
|
||||
s|*CPP*|@CPP@|g
|
||||
s|*CXX*|@CXX@|g
|
||||
s|*CXXFLAGS*|@CXXFLAGS@|g
|
||||
s|*CXXCPP*|@CXXCPP@|g
|
||||
s|*PICFLAGS*|@PICFLAGS@|g
|
||||
s|*CREATE_SHARED*|@CREATE_SHARED@|g
|
||||
s|*LEX*|@LEX@|g
|
||||
s|*LEXLIB*|@LEXLIB@|g
|
||||
s|*YACC*|@YACC@|g
|
||||
s|*RANLIB*|@RANLIB@|g
|
||||
s|*INSTALL*|@INSTALL@|g
|
||||
s|*INSTALL_PROGRAM*|@INSTALL_PROGRAM@|g
|
||||
s|*INSTALL_DATA*|@INSTALL_DATA@|g
|
||||
s|*AWK*|@AWK@|g
|
||||
s|*LN_S*|@LN_S@|g
|
||||
s|*prefix*|@prefix@|g
|
||||
s|*exec_prefix*|@exec_prefix@|g
|
||||
s|*bindir*|@bindir@|g
|
||||
s|*datadir*|@datadir@|g
|
||||
s|*infodir*|@infodir@|g
|
||||
s|*X_CFLAGS*|@X_CFLAGS@|g
|
||||
s|*X_LIBS*|@X_LIBS@|g
|
||||
s|*X_EXTRA_LIBS*|@X_EXTRA_LIBS@|g
|
||||
s|*X_PRE_LIBS*|@X_PRE_LIBS@|g
|
||||
s|*GUI_TK_INCLUDE*|@GUI_TK_INCLUDE@|g
|
||||
s|*GUI_TK_LIBRARY*|@GUI_TK_LIBRARY@|g
|
||||
s|*GUI_TK_LINK*|@GUI_TK_LINK@|g
|
||||
s|*DL_LIBRARY*|@DL_LIBRARY@|g
|
||||
s|*OPENGL_INCLUDE*|@OPENGL_INCLUDE@|g
|
||||
s|*OPENGL_LIBRARY*|@OPENGL_LIBRARY@|g
|
||||
s|*OPENGL_LINK*|@OPENGL_LINK@|g
|
||||
s|*TOOLKIT*|@TOOLKIT@|g
|
||||
s|*TOOLKIT_DEF*|@TOOLKIT_DEF@|g
|
||||
s|*THREADS*|@THREADS@|g
|
||||
s|*THREADS_LINK*|@THREADS_LINK@|g
|
||||
s|*EXTRA_LINK*|@EXTRA_LINK@|g
|
||||
s|*GTK_JOYSTICK*|@GTK_JOYSTICK@|g
|
||||
s|*UNIX_THREAD*|@UNIX_THREAD@|g
|
Reference in New Issue
Block a user