Death to all Makefiles and associates!
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3481 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,22 +0,0 @@
|
|||||||
SUBDIRS = html lseditor glcanvas
|
|
||||||
|
|
||||||
all:
|
|
||||||
-for i in $(SUBDIRS); do \
|
|
||||||
if test ! -r $$i/Makefile ; then \
|
|
||||||
make -C $$i -f Makefile.pre.in boot ; \
|
|
||||||
fi ; \
|
|
||||||
make -C $$i; \
|
|
||||||
done
|
|
||||||
|
|
||||||
# Generic target for i.e. install, clean, distclean...
|
|
||||||
%:
|
|
||||||
-for i in $(SUBDIRS); do \
|
|
||||||
if test ! -r $$i/Makefile ; then \
|
|
||||||
make -C $$i -f Makefile.pre.in boot ; \
|
|
||||||
fi ; \
|
|
||||||
make -C $$i $@; \
|
|
||||||
done
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@@ -1,365 +0,0 @@
|
|||||||
# Universal Unix Makefile for Python extensions
|
|
||||||
# =============================================
|
|
||||||
|
|
||||||
# Short Instructions
|
|
||||||
# ------------------
|
|
||||||
|
|
||||||
# 1. Build and install Python (1.5 or newer).
|
|
||||||
# 2. "make -f Makefile.pre.in boot"
|
|
||||||
# 3. "make"
|
|
||||||
# You should now have a shared library.
|
|
||||||
|
|
||||||
# Long Instructions
|
|
||||||
# -----------------
|
|
||||||
|
|
||||||
# Build *and install* the basic Python 1.5 distribution. See the
|
|
||||||
# Python README for instructions. (This version of Makefile.pre.in
|
|
||||||
# only withs with Python 1.5, alpha 3 or newer.)
|
|
||||||
|
|
||||||
# Create a file Setup.in for your extension. This file follows the
|
|
||||||
# format of the Modules/Setup.in file; see the instructions there.
|
|
||||||
# For a simple module called "spam" on file "spammodule.c", it can
|
|
||||||
# contain a single line:
|
|
||||||
# spam spammodule.c
|
|
||||||
# You can build as many modules as you want in the same directory --
|
|
||||||
# just have a separate line for each of them in the Setup.in file.
|
|
||||||
|
|
||||||
# If you want to build your extension as a shared library, insert a
|
|
||||||
# line containing just the string
|
|
||||||
# *shared*
|
|
||||||
# at the top of your Setup.in file.
|
|
||||||
|
|
||||||
# Note that the build process copies Setup.in to Setup, and then works
|
|
||||||
# with Setup. It doesn't overwrite Setup when Setup.in is changed, so
|
|
||||||
# while you're in the process of debugging your Setup.in file, you may
|
|
||||||
# want to edit Setup instead, and copy it back to Setup.in later.
|
|
||||||
# (All this is done so you can distribute your extension easily and
|
|
||||||
# someone else can select the modules they actually want to build by
|
|
||||||
# commenting out lines in the Setup file, without editing the
|
|
||||||
# original. Editing Setup is also used to specify nonstandard
|
|
||||||
# locations for include or library files.)
|
|
||||||
|
|
||||||
# Copy this file (Misc/Makefile.pre.in) to the directory containing
|
|
||||||
# your extension.
|
|
||||||
|
|
||||||
# Run "make -f Makefile.pre.in boot". This creates Makefile
|
|
||||||
# (producing Makefile.pre and sedscript as intermediate files) and
|
|
||||||
# config.c, incorporating the values for sys.prefix, sys.exec_prefix
|
|
||||||
# and sys.version from the installed Python binary. For this to work,
|
|
||||||
# the python binary must be on your path. If this fails, try
|
|
||||||
# make -f Makefile.pre.in Makefile VERSION=1.5 installdir=<prefix>
|
|
||||||
# where <prefix> is the prefix used to install Python for installdir
|
|
||||||
# (and possibly similar for exec_installdir=<exec_prefix>).
|
|
||||||
|
|
||||||
# Note: "make boot" implies "make clobber" -- it assumes that when you
|
|
||||||
# bootstrap you may have changed platforms so it removes all previous
|
|
||||||
# output files.
|
|
||||||
|
|
||||||
# If you are building your extension as a shared library (your
|
|
||||||
# Setup.in file starts with *shared*), run "make" or "make sharedmods"
|
|
||||||
# to build the shared library files. If you are building a statically
|
|
||||||
# linked Python binary (the only solution of your platform doesn't
|
|
||||||
# support shared libraries, and sometimes handy if you want to
|
|
||||||
# distribute or install the resulting Python binary), run "make
|
|
||||||
# python".
|
|
||||||
|
|
||||||
# Note: Each time you edit Makefile.pre.in or Setup, you must run
|
|
||||||
# "make Makefile" before running "make".
|
|
||||||
|
|
||||||
# Hint: if you want to use VPATH, you can start in an empty
|
|
||||||
# subdirectory and say (e.g.):
|
|
||||||
# make -f ../Makefile.pre.in boot srcdir=.. VPATH=..
|
|
||||||
|
|
||||||
|
|
||||||
# === Bootstrap variables (edited through "make boot") ===
|
|
||||||
|
|
||||||
# The prefix used by "make inclinstall libainstall" of core python
|
|
||||||
installdir= /usr/local
|
|
||||||
|
|
||||||
# The exec_prefix used by the same
|
|
||||||
exec_installdir=$(installdir)
|
|
||||||
|
|
||||||
# Source directory and VPATH in case you want to use VPATH.
|
|
||||||
# (You will have to edit these two lines yourself -- there is no
|
|
||||||
# automatic support as the Makefile is not generated by
|
|
||||||
# config.status.)
|
|
||||||
srcdir= .
|
|
||||||
VPATH= .
|
|
||||||
|
|
||||||
# === Variables that you may want to customize (rarely) ===
|
|
||||||
|
|
||||||
# (Static) build target
|
|
||||||
TARGET= python
|
|
||||||
|
|
||||||
# Installed python binary (used only by boot target)
|
|
||||||
PYTHON= python
|
|
||||||
|
|
||||||
# Add more -I and -D options here
|
|
||||||
CFLAGS= $(OPT) -I$(INCLUDEPY) -I$(EXECINCLUDEPY) $(DEFS)
|
|
||||||
|
|
||||||
# These two variables can be set in Setup to merge extensions.
|
|
||||||
# See example[23].
|
|
||||||
BASELIB=
|
|
||||||
BASESETUP=
|
|
||||||
|
|
||||||
# === Variables set by makesetup ===
|
|
||||||
|
|
||||||
MODOBJS= _MODOBJS_
|
|
||||||
MODLIBS= _MODLIBS_
|
|
||||||
|
|
||||||
# === Definitions added by makesetup ===
|
|
||||||
|
|
||||||
# === Variables from configure (through sedscript) ===
|
|
||||||
|
|
||||||
VERSION= @VERSION@
|
|
||||||
CC= @CC@
|
|
||||||
LINKCC= @LINKCC@
|
|
||||||
SGI_ABI= @SGI_ABI@
|
|
||||||
OPT= @OPT@
|
|
||||||
LDFLAGS= @LDFLAGS@
|
|
||||||
LDLAST= @LDLAST@
|
|
||||||
DEFS= @DEFS@
|
|
||||||
LIBS= @LIBS@
|
|
||||||
LIBM= @LIBM@
|
|
||||||
LIBC= @LIBC@
|
|
||||||
RANLIB= @RANLIB@
|
|
||||||
MACHDEP= @MACHDEP@
|
|
||||||
SO= @SO@
|
|
||||||
LDSHARED= @LDSHARED@
|
|
||||||
CCSHARED= @CCSHARED@
|
|
||||||
LINKFORSHARED= @LINKFORSHARED@
|
|
||||||
#@SET_CCC@
|
|
||||||
|
|
||||||
# Install prefix for architecture-independent files
|
|
||||||
prefix= /usr/local
|
|
||||||
|
|
||||||
# Install prefix for architecture-dependent files
|
|
||||||
exec_prefix= $(prefix)
|
|
||||||
|
|
||||||
# === Fixed definitions ===
|
|
||||||
|
|
||||||
# Shell used by make (some versions default to the login shell, which is bad)
|
|
||||||
SHELL= /bin/sh
|
|
||||||
|
|
||||||
# Expanded directories
|
|
||||||
BINDIR= $(exec_installdir)/bin
|
|
||||||
LIBDIR= $(exec_prefix)/lib
|
|
||||||
MANDIR= $(installdir)/man
|
|
||||||
INCLUDEDIR= $(installdir)/include
|
|
||||||
SCRIPTDIR= $(prefix)/lib
|
|
||||||
|
|
||||||
# Detailed destination directories
|
|
||||||
BINLIBDEST= $(LIBDIR)/python$(VERSION)
|
|
||||||
LIBDEST= $(SCRIPTDIR)/python$(VERSION)
|
|
||||||
INCLUDEPY= $(INCLUDEDIR)/python$(VERSION)
|
|
||||||
EXECINCLUDEPY= $(exec_installdir)/include/python$(VERSION)
|
|
||||||
LIBP= $(exec_installdir)/lib/python$(VERSION)
|
|
||||||
DESTSHARED= $(BINLIBDEST)/site-packages
|
|
||||||
|
|
||||||
LIBPL= $(LIBP)/config
|
|
||||||
|
|
||||||
PYTHONLIBS= $(LIBPL)/libpython$(VERSION).a
|
|
||||||
|
|
||||||
MAKESETUP= $(LIBPL)/makesetup
|
|
||||||
MAKEFILE= $(LIBPL)/Makefile
|
|
||||||
CONFIGC= $(LIBPL)/config.c
|
|
||||||
CONFIGCIN= $(LIBPL)/config.c.in
|
|
||||||
SETUP= $(LIBPL)/Setup
|
|
||||||
|
|
||||||
SYSLIBS= $(LIBM) $(LIBC)
|
|
||||||
|
|
||||||
ADDOBJS= $(LIBPL)/python.o config.o
|
|
||||||
|
|
||||||
# Portable install script (configure doesn't always guess right)
|
|
||||||
INSTALL= $(LIBPL)/install-sh -c
|
|
||||||
# Shared libraries must be installed with executable mode on some systems;
|
|
||||||
# rather than figuring out exactly which, we always give them executable mode.
|
|
||||||
# Also, making them read-only seems to be a good idea...
|
|
||||||
INSTALL_SHARED= ${INSTALL} -m 555
|
|
||||||
|
|
||||||
#---------------------------------------------------
|
|
||||||
# Possibly change some definintions for C++
|
|
||||||
ifdef MY_LDSHARED
|
|
||||||
LDSHARED=$(MY_LDSHARED)
|
|
||||||
endif
|
|
||||||
ifdef MY_LINKCC
|
|
||||||
LINKCC=$(MY_LINKCC)
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
# === Fixed rules ===
|
|
||||||
|
|
||||||
# Default target. This builds shared libraries only
|
|
||||||
default: sharedmods
|
|
||||||
|
|
||||||
# Build everything
|
|
||||||
all: static sharedmods
|
|
||||||
|
|
||||||
# Build shared libraries from our extension modules
|
|
||||||
sharedmods: $(SHAREDMODS)
|
|
||||||
|
|
||||||
# Build a static Python binary containing our extension modules
|
|
||||||
static: $(TARGET)
|
|
||||||
$(TARGET): $(ADDOBJS) lib.a $(PYTHONLIBS) Makefile $(BASELIB)
|
|
||||||
$(LINKCC) $(LDFLAGS) $(LINKFORSHARED) \
|
|
||||||
$(ADDOBJS) lib.a $(PYTHONLIBS) \
|
|
||||||
$(LINKPATH) $(BASELIB) $(MODLIBS) $(LIBS) $(SYSLIBS) \
|
|
||||||
-o $(TARGET) $(LDLAST)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
|
||||||
#------------------------------------------------------------------------
|
|
||||||
# This is a default version of the install target for wxPython. It just
|
|
||||||
# redirects to wxInstall below...
|
|
||||||
|
|
||||||
install: wxInstall
|
|
||||||
|
|
||||||
#install: sharedmods
|
|
||||||
# if test ! -d $(DESTSHARED) ; then \
|
|
||||||
# mkdir $(DESTSHARED) ; else true ; fi
|
|
||||||
# -for i in X $(SHAREDMODS); do \
|
|
||||||
# if test $$i != X; \
|
|
||||||
# then $(INSTALL_SHARED) $$i $(DESTSHARED)/$$i; \
|
|
||||||
# fi; \
|
|
||||||
# done
|
|
||||||
|
|
||||||
|
|
||||||
# Build the library containing our extension modules
|
|
||||||
lib.a: $(MODOBJS)
|
|
||||||
-rm -f lib.a
|
|
||||||
ar cr lib.a $(MODOBJS)
|
|
||||||
-$(RANLIB) lib.a
|
|
||||||
|
|
||||||
# This runs makesetup *twice* to use the BASESETUP definition from Setup
|
|
||||||
config.c Makefile: Makefile.pre Setup $(BASESETUP) $(MAKESETUP)
|
|
||||||
$(MAKESETUP) \
|
|
||||||
-m Makefile.pre -c $(CONFIGCIN) Setup -n $(BASESETUP) $(SETUP)
|
|
||||||
$(MAKE) -f Makefile do-it-again
|
|
||||||
|
|
||||||
# Internal target to run makesetup for the second time
|
|
||||||
do-it-again:
|
|
||||||
$(MAKESETUP) \
|
|
||||||
-m Makefile.pre -c $(CONFIGCIN) Setup -n $(BASESETUP) $(SETUP)
|
|
||||||
|
|
||||||
# Make config.o from the config.c created by makesetup
|
|
||||||
config.o: config.c
|
|
||||||
$(CC) $(CFLAGS) -c config.c
|
|
||||||
|
|
||||||
# Setup is copied from Setup.in *only* if it doesn't yet exist
|
|
||||||
Setup:
|
|
||||||
cp Setup.in Setup
|
|
||||||
|
|
||||||
# Make the intermediate Makefile.pre from Makefile.pre.in
|
|
||||||
Makefile.pre: Makefile.pre.in sedscript
|
|
||||||
sed -f sedscript Makefile.pre.in >Makefile.pre
|
|
||||||
|
|
||||||
# Shortcuts to make the sed arguments on one line
|
|
||||||
P=prefix
|
|
||||||
E=exec_prefix
|
|
||||||
H=Generated automatically from Makefile.pre.in by sedscript.
|
|
||||||
L=LINKFORSHARED
|
|
||||||
|
|
||||||
# Make the sed script used to create Makefile.pre from Makefile.pre.in
|
|
||||||
sedscript: $(MAKEFILE)
|
|
||||||
sed -n \
|
|
||||||
-e '1s/.*/1i\\/p' \
|
|
||||||
-e '2s%.*%# $H%p' \
|
|
||||||
-e '/^VERSION=/s/^VERSION=[ ]*\(.*\)/s%@VERSION[@]%\1%/p' \
|
|
||||||
-e '/^CC=/s/^CC=[ ]*\(.*\)/s%@CC[@]%\1%/p' \
|
|
||||||
-e '/^CCC=/s/^CCC=[ ]*\(.*\)/s%#@SET_CCC[@]%CCC=\1%/p' \
|
|
||||||
-e '/^LINKCC=/s/^LINKCC=[ ]*\(.*\)/s%@LINKCC[@]%\1%/p' \
|
|
||||||
-e '/^OPT=/s/^OPT=[ ]*\(.*\)/s%@OPT[@]%\1%/p' \
|
|
||||||
-e '/^LDFLAGS=/s/^LDFLAGS=[ ]*\(.*\)/s%@LDFLAGS[@]%\1%/p' \
|
|
||||||
-e '/^DEFS=/s/^DEFS=[ ]*\(.*\)/s%@DEFS[@]%\1%/p' \
|
|
||||||
-e '/^LIBS=/s/^LIBS=[ ]*\(.*\)/s%@LIBS[@]%\1%/p' \
|
|
||||||
-e '/^LIBM=/s/^LIBM=[ ]*\(.*\)/s%@LIBM[@]%\1%/p' \
|
|
||||||
-e '/^LIBC=/s/^LIBC=[ ]*\(.*\)/s%@LIBC[@]%\1%/p' \
|
|
||||||
-e '/^RANLIB=/s/^RANLIB=[ ]*\(.*\)/s%@RANLIB[@]%\1%/p' \
|
|
||||||
-e '/^MACHDEP=/s/^MACHDEP=[ ]*\(.*\)/s%@MACHDEP[@]%\1%/p' \
|
|
||||||
-e '/^SO=/s/^SO=[ ]*\(.*\)/s%@SO[@]%\1%/p' \
|
|
||||||
-e '/^LDSHARED=/s/^LDSHARED=[ ]*\(.*\)/s%@LDSHARED[@]%\1%/p' \
|
|
||||||
-e '/^CCSHARED=/s/^CCSHARED=[ ]*\(.*\)/s%@CCSHARED[@]%\1%/p' \
|
|
||||||
-e '/^$L=/s/^$L=[ ]*\(.*\)/s%@$L[@]%\1%/p' \
|
|
||||||
-e '/^$P=/s/^$P=\(.*\)/s%^$P=.*%$P=\1%/p' \
|
|
||||||
-e '/^$E=/s/^$E=\(.*\)/s%^$E=.*%$E=\1%/p' \
|
|
||||||
$(MAKEFILE) >sedscript
|
|
||||||
echo "/^#@SET_CCC@/d" >>sedscript
|
|
||||||
echo "/^installdir=/s%=.*%= $(installdir)%" >>sedscript
|
|
||||||
echo "/^exec_installdir=/s%=.*%=$(exec_installdir)%" >>sedscript
|
|
||||||
echo "/^srcdir=/s%=.*%= $(srcdir)%" >>sedscript
|
|
||||||
echo "/^VPATH=/s%=.*%= $(VPATH)%" >>sedscript
|
|
||||||
echo "/^LINKPATH=/s%=.*%= $(LINKPATH)%" >>sedscript
|
|
||||||
echo "/^BASELIB=/s%=.*%= $(BASELIB)%" >>sedscript
|
|
||||||
echo "/^BASESETUP=/s%=.*%= $(BASESETUP)%" >>sedscript
|
|
||||||
|
|
||||||
# Bootstrap target
|
|
||||||
boot: clobber
|
|
||||||
VERSION=`$(PYTHON) -c "import sys; print sys.version[:3]"`; \
|
|
||||||
installdir=`$(PYTHON) -c "import sys; print sys.prefix"`; \
|
|
||||||
exec_installdir=`$(PYTHON) -c "import sys; print sys.exec_prefix"`; \
|
|
||||||
$(MAKE) -f Makefile.pre.in VPATH=$(VPATH) srcdir=$(srcdir) \
|
|
||||||
VERSION=$$VERSION \
|
|
||||||
installdir=$$installdir \
|
|
||||||
exec_installdir=$$exec_installdir \
|
|
||||||
Makefile
|
|
||||||
|
|
||||||
# Handy target to remove intermediate files and backups
|
|
||||||
clean:
|
|
||||||
-rm -f *.o *~
|
|
||||||
|
|
||||||
# Handy target to remove everything that is easily regenerated
|
|
||||||
clobber: clean
|
|
||||||
-rm -f *.a tags TAGS config.c Makefile.pre $(TARGET) sedscript
|
|
||||||
-rm -f *.so *.sl so_locations
|
|
||||||
|
|
||||||
|
|
||||||
# Handy target to remove everything you don't want to distribute
|
|
||||||
distclean: clobber
|
|
||||||
-rm -f Makefile Setup
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
|
||||||
#------------------------------------------------------------------------
|
|
||||||
# Custom rules and dependencies added for wxPython
|
|
||||||
#
|
|
||||||
|
|
||||||
WXP_VERSION=2.1b2
|
|
||||||
|
|
||||||
# WXP_SRCDIR=../wxPython/src
|
|
||||||
|
|
||||||
SWIGFLAGS=-c++ -shadow -python -dnone -I$(WXP_SRCDIR) -D__WXGTK__ $(SEPARATE)
|
|
||||||
|
|
||||||
|
|
||||||
# Implicit rules to run SWIG
|
|
||||||
$(GENCODEDIR)/%.cpp : %.i
|
|
||||||
swig $(SWIGFLAGS) -c -o $@ $<
|
|
||||||
|
|
||||||
$(GENCODEDIR)/%.py : %.i
|
|
||||||
swig $(SWIGFLAGS) -c -o $@ $<
|
|
||||||
$(GENCODEDIR)/%.py : %.i
|
|
||||||
swig $(SWIGFLAGS) -c -o $(GENCODEDIR)/tmp_wrap.cpp $<
|
|
||||||
rm $(GENCODEDIR)/tmp_wrap.cpp
|
|
||||||
|
|
||||||
|
|
||||||
wxInstall : sharedmods $(PYMODULES)
|
|
||||||
if test ! -d $(TARGETDIR) ; then \
|
|
||||||
mkdir $(TARGETDIR) ; else true ; fi
|
|
||||||
if [ "$(SHAREDMODS)" != "" ]; then \
|
|
||||||
chmod 755 $(SHAREDMODS); \
|
|
||||||
cp $(SHAREDMODS) $(TARGETDIR); fi
|
|
||||||
-for i in $(PYMODULES); do \
|
|
||||||
cp $$i $(TARGETDIR); \
|
|
||||||
done
|
|
||||||
if [ "$(TARGETDIR)" != ".." ]; then \
|
|
||||||
python $(LIBDEST)/compileall.py $(TARGETDIR); \
|
|
||||||
python -O $(LIBDEST)/compileall.py $(TARGETDIR); \
|
|
||||||
else \
|
|
||||||
python $(LIBDEST)/compileall.py -l $(TARGETDIR); \
|
|
||||||
python -O $(LIBDEST)/compileall.py -l $(TARGETDIR);\
|
|
||||||
fi
|
|
||||||
|
|
||||||
$(GENCODEDIR)/_glcanvas.cpp:
|
|
||||||
-cp $(WXWIN)/utils/glcanvas/$(GENCODEDIR)/glcanvas.cpp $@
|
|
||||||
-cp $(WXWIN)/utils/glcanvas/$(GENCODEDIR)/glcanvas.h $(GENCODEDIR)/glcanvas.h
|
|
||||||
|
|
@@ -1,52 +0,0 @@
|
|||||||
## This file gives the details of what is needed to build this extension
|
|
||||||
## module so the Makefile can be created.
|
|
||||||
|
|
||||||
## If you have not done "make install" for wxWindows then see Setup.in.linux
|
|
||||||
## for a more verbose version of this file.
|
|
||||||
|
|
||||||
*shared*
|
|
||||||
|
|
||||||
CCC=c++
|
|
||||||
WXWIN=../../../..
|
|
||||||
GENCODEDIR=gtk
|
|
||||||
# srcdir=$(GENCODEDIR)
|
|
||||||
WX_CONFIG_CFLAGS=`wx-config --cflags`
|
|
||||||
WX_CONFIG_LIBS=`wx-config --libs`
|
|
||||||
|
|
||||||
|
|
||||||
## Depending on how your Python was built, you may have to set this
|
|
||||||
## value to use the C++ driver to link with instead of the default
|
|
||||||
## C driver. For example:
|
|
||||||
MY_LDSHARED=$(CCC) -shared
|
|
||||||
|
|
||||||
## Same as above, but for statically linking Python and wxPython together,
|
|
||||||
## in other words, if you comment out the *shared* above. If this is the
|
|
||||||
## case then you should ensure that the main() function is Python's, not
|
|
||||||
## wxWindows'. You can rebuild $(WXWIN)/src/gtk/app.cpp with NOMAIN defined
|
|
||||||
## to force this...
|
|
||||||
MY_LINKCC=$(CCC)
|
|
||||||
|
|
||||||
#--------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Below follow settings that may be specific for a wxPython module
|
|
||||||
#
|
|
||||||
#--------------------------------------------------------------------
|
|
||||||
|
|
||||||
## Pick one of these, or set your own. This is where the wxPython module
|
|
||||||
## should be installed. It should be a subdirectory named wxPython.
|
|
||||||
#TARGETDIR=../..
|
|
||||||
TARGETDIR=$(BINLIBDEST)/site-packages/wxPython
|
|
||||||
|
|
||||||
# The location of the wxPython source dir
|
|
||||||
WXP_SRCDIR=../../src
|
|
||||||
|
|
||||||
# These defines are usually best left alone
|
|
||||||
C_DEFINES = -DSWIG_GLOBAL -DWXP_USE_THREAD -DSEPARATE
|
|
||||||
C_FLAGS = -I. -I$(WXP_SRCDIR) $(WX_CONFIG_CFLAGS)
|
|
||||||
# Add a couple of GL libraries
|
|
||||||
C_LIBS = -lwxPyHelpers -lMesaGL -lMesaGLU $(WX_CONFIG_LIBS)
|
|
||||||
|
|
||||||
PYMODULES = $(GENCODEDIR)/glcanvas.py
|
|
||||||
|
|
||||||
glcanvasc $(GENCODEDIR)/glcanvas.cpp $(GENCODEDIR)/_glcanvas.cpp \
|
|
||||||
$(C_DEFINES) $(C_FLAGS) -Xlinker $(C_LIBS)
|
|
@@ -1,40 +0,0 @@
|
|||||||
|
|
||||||
#----------------------------------------------------------------------
|
|
||||||
|
|
||||||
TARGET = glcanvasc
|
|
||||||
|
|
||||||
OBJECTS = glcanvas.obj
|
|
||||||
|
|
||||||
PYMODULES = $(TARGETDIR)\html.py $(TARGETDIR)\htmlhelper.py
|
|
||||||
|
|
||||||
SOURCES = $(GENCODEDIR)\html.cpp
|
|
||||||
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
|
||||||
|
|
||||||
!include ..\makeinc.vc
|
|
||||||
|
|
||||||
# override this
|
|
||||||
EXTRAINC = $(EXTRAINC) -I$(WXDIR)\utils\glcanvas\win
|
|
||||||
GLLIBS=$(WXDIR)\lib\glcanvas.lib glu32.lib opengl32.lib
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
|
||||||
|
|
||||||
default: $(TARGETDIR)\$(TARGET).pyd pycfiles
|
|
||||||
|
|
||||||
all: $(TARGET)
|
|
||||||
|
|
||||||
$(GENCODEDIR)/glcanvas.cpp : glcanvas.i
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
|
||||||
|
|
||||||
$(TARGETDIR)\$(TARGET).pyd : $(DUMMYOBJ) $(WXLIB) $(OBJECTS) # $(TARGET).res
|
|
||||||
$(link) @<<
|
|
||||||
/out:$@ /dll
|
|
||||||
$(LFLAGS) /def:$(TARGET).def /implib:./$(TARGET).lib
|
|
||||||
$(DUMMYOBJ) $(OBJECTS)
|
|
||||||
$(LIBS) $(GLLIBS)
|
|
||||||
<<
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
|
||||||
|
|
@@ -1,363 +0,0 @@
|
|||||||
# Universal Unix Makefile for Python extensions
|
|
||||||
# =============================================
|
|
||||||
|
|
||||||
# Short Instructions
|
|
||||||
# ------------------
|
|
||||||
|
|
||||||
# 1. Build and install Python (1.5 or newer).
|
|
||||||
# 2. "make -f Makefile.pre.in boot"
|
|
||||||
# 3. "make"
|
|
||||||
# You should now have a shared library.
|
|
||||||
|
|
||||||
# Long Instructions
|
|
||||||
# -----------------
|
|
||||||
|
|
||||||
# Build *and install* the basic Python 1.5 distribution. See the
|
|
||||||
# Python README for instructions. (This version of Makefile.pre.in
|
|
||||||
# only withs with Python 1.5, alpha 3 or newer.)
|
|
||||||
|
|
||||||
# Create a file Setup.in for your extension. This file follows the
|
|
||||||
# format of the Modules/Setup.in file; see the instructions there.
|
|
||||||
# For a simple module called "spam" on file "spammodule.c", it can
|
|
||||||
# contain a single line:
|
|
||||||
# spam spammodule.c
|
|
||||||
# You can build as many modules as you want in the same directory --
|
|
||||||
# just have a separate line for each of them in the Setup.in file.
|
|
||||||
|
|
||||||
# If you want to build your extension as a shared library, insert a
|
|
||||||
# line containing just the string
|
|
||||||
# *shared*
|
|
||||||
# at the top of your Setup.in file.
|
|
||||||
|
|
||||||
# Note that the build process copies Setup.in to Setup, and then works
|
|
||||||
# with Setup. It doesn't overwrite Setup when Setup.in is changed, so
|
|
||||||
# while you're in the process of debugging your Setup.in file, you may
|
|
||||||
# want to edit Setup instead, and copy it back to Setup.in later.
|
|
||||||
# (All this is done so you can distribute your extension easily and
|
|
||||||
# someone else can select the modules they actually want to build by
|
|
||||||
# commenting out lines in the Setup file, without editing the
|
|
||||||
# original. Editing Setup is also used to specify nonstandard
|
|
||||||
# locations for include or library files.)
|
|
||||||
|
|
||||||
# Copy this file (Misc/Makefile.pre.in) to the directory containing
|
|
||||||
# your extension.
|
|
||||||
|
|
||||||
# Run "make -f Makefile.pre.in boot". This creates Makefile
|
|
||||||
# (producing Makefile.pre and sedscript as intermediate files) and
|
|
||||||
# config.c, incorporating the values for sys.prefix, sys.exec_prefix
|
|
||||||
# and sys.version from the installed Python binary. For this to work,
|
|
||||||
# the python binary must be on your path. If this fails, try
|
|
||||||
# make -f Makefile.pre.in Makefile VERSION=1.5 installdir=<prefix>
|
|
||||||
# where <prefix> is the prefix used to install Python for installdir
|
|
||||||
# (and possibly similar for exec_installdir=<exec_prefix>).
|
|
||||||
|
|
||||||
# Note: "make boot" implies "make clobber" -- it assumes that when you
|
|
||||||
# bootstrap you may have changed platforms so it removes all previous
|
|
||||||
# output files.
|
|
||||||
|
|
||||||
# If you are building your extension as a shared library (your
|
|
||||||
# Setup.in file starts with *shared*), run "make" or "make sharedmods"
|
|
||||||
# to build the shared library files. If you are building a statically
|
|
||||||
# linked Python binary (the only solution of your platform doesn't
|
|
||||||
# support shared libraries, and sometimes handy if you want to
|
|
||||||
# distribute or install the resulting Python binary), run "make
|
|
||||||
# python".
|
|
||||||
|
|
||||||
# Note: Each time you edit Makefile.pre.in or Setup, you must run
|
|
||||||
# "make Makefile" before running "make".
|
|
||||||
|
|
||||||
# Hint: if you want to use VPATH, you can start in an empty
|
|
||||||
# subdirectory and say (e.g.):
|
|
||||||
# make -f ../Makefile.pre.in boot srcdir=.. VPATH=..
|
|
||||||
|
|
||||||
|
|
||||||
# === Bootstrap variables (edited through "make boot") ===
|
|
||||||
|
|
||||||
# The prefix used by "make inclinstall libainstall" of core python
|
|
||||||
installdir= /usr/local
|
|
||||||
|
|
||||||
# The exec_prefix used by the same
|
|
||||||
exec_installdir=$(installdir)
|
|
||||||
|
|
||||||
# Source directory and VPATH in case you want to use VPATH.
|
|
||||||
# (You will have to edit these two lines yourself -- there is no
|
|
||||||
# automatic support as the Makefile is not generated by
|
|
||||||
# config.status.)
|
|
||||||
srcdir= .
|
|
||||||
VPATH= .
|
|
||||||
|
|
||||||
# === Variables that you may want to customize (rarely) ===
|
|
||||||
|
|
||||||
# (Static) build target
|
|
||||||
TARGET= python
|
|
||||||
|
|
||||||
# Installed python binary (used only by boot target)
|
|
||||||
PYTHON= python
|
|
||||||
|
|
||||||
# Add more -I and -D options here
|
|
||||||
CFLAGS= $(OPT) -I$(INCLUDEPY) -I$(EXECINCLUDEPY) $(DEFS)
|
|
||||||
|
|
||||||
# These two variables can be set in Setup to merge extensions.
|
|
||||||
# See example[23].
|
|
||||||
BASELIB=
|
|
||||||
BASESETUP=
|
|
||||||
|
|
||||||
# === Variables set by makesetup ===
|
|
||||||
|
|
||||||
MODOBJS= _MODOBJS_
|
|
||||||
MODLIBS= _MODLIBS_
|
|
||||||
|
|
||||||
# === Definitions added by makesetup ===
|
|
||||||
|
|
||||||
# === Variables from configure (through sedscript) ===
|
|
||||||
|
|
||||||
VERSION= @VERSION@
|
|
||||||
CC= @CC@
|
|
||||||
LINKCC= @LINKCC@
|
|
||||||
SGI_ABI= @SGI_ABI@
|
|
||||||
OPT= @OPT@
|
|
||||||
LDFLAGS= @LDFLAGS@
|
|
||||||
LDLAST= @LDLAST@
|
|
||||||
DEFS= @DEFS@
|
|
||||||
LIBS= @LIBS@
|
|
||||||
LIBM= @LIBM@
|
|
||||||
LIBC= @LIBC@
|
|
||||||
RANLIB= @RANLIB@
|
|
||||||
MACHDEP= @MACHDEP@
|
|
||||||
SO= @SO@
|
|
||||||
LDSHARED= @LDSHARED@
|
|
||||||
CCSHARED= @CCSHARED@
|
|
||||||
LINKFORSHARED= @LINKFORSHARED@
|
|
||||||
#@SET_CCC@
|
|
||||||
|
|
||||||
# Install prefix for architecture-independent files
|
|
||||||
prefix= /usr/local
|
|
||||||
|
|
||||||
# Install prefix for architecture-dependent files
|
|
||||||
exec_prefix= $(prefix)
|
|
||||||
|
|
||||||
# === Fixed definitions ===
|
|
||||||
|
|
||||||
# Shell used by make (some versions default to the login shell, which is bad)
|
|
||||||
SHELL= /bin/sh
|
|
||||||
|
|
||||||
# Expanded directories
|
|
||||||
BINDIR= $(exec_installdir)/bin
|
|
||||||
LIBDIR= $(exec_prefix)/lib
|
|
||||||
MANDIR= $(installdir)/man
|
|
||||||
INCLUDEDIR= $(installdir)/include
|
|
||||||
SCRIPTDIR= $(prefix)/lib
|
|
||||||
|
|
||||||
# Detailed destination directories
|
|
||||||
BINLIBDEST= $(LIBDIR)/python$(VERSION)
|
|
||||||
LIBDEST= $(SCRIPTDIR)/python$(VERSION)
|
|
||||||
INCLUDEPY= $(INCLUDEDIR)/python$(VERSION)
|
|
||||||
EXECINCLUDEPY= $(exec_installdir)/include/python$(VERSION)
|
|
||||||
LIBP= $(exec_installdir)/lib/python$(VERSION)
|
|
||||||
DESTSHARED= $(BINLIBDEST)/site-packages
|
|
||||||
|
|
||||||
LIBPL= $(LIBP)/config
|
|
||||||
|
|
||||||
PYTHONLIBS= $(LIBPL)/libpython$(VERSION).a
|
|
||||||
|
|
||||||
MAKESETUP= $(LIBPL)/makesetup
|
|
||||||
MAKEFILE= $(LIBPL)/Makefile
|
|
||||||
CONFIGC= $(LIBPL)/config.c
|
|
||||||
CONFIGCIN= $(LIBPL)/config.c.in
|
|
||||||
SETUP= $(LIBPL)/Setup
|
|
||||||
|
|
||||||
SYSLIBS= $(LIBM) $(LIBC)
|
|
||||||
|
|
||||||
ADDOBJS= $(LIBPL)/python.o config.o
|
|
||||||
|
|
||||||
# Portable install script (configure doesn't always guess right)
|
|
||||||
INSTALL= $(LIBPL)/install-sh -c
|
|
||||||
# Shared libraries must be installed with executable mode on some systems;
|
|
||||||
# rather than figuring out exactly which, we always give them executable mode.
|
|
||||||
# Also, making them read-only seems to be a good idea...
|
|
||||||
INSTALL_SHARED= ${INSTALL} -m 555
|
|
||||||
|
|
||||||
#---------------------------------------------------
|
|
||||||
# Possibly change some definintions for C++
|
|
||||||
ifdef MY_LDSHARED
|
|
||||||
LDSHARED=$(MY_LDSHARED)
|
|
||||||
endif
|
|
||||||
ifdef MY_LINKCC
|
|
||||||
LINKCC=$(MY_LINKCC)
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
# === Fixed rules ===
|
|
||||||
|
|
||||||
# Default target. This builds shared libraries only
|
|
||||||
default: sharedmods
|
|
||||||
|
|
||||||
# Build everything
|
|
||||||
all: static sharedmods
|
|
||||||
|
|
||||||
# Build shared libraries from our extension modules
|
|
||||||
sharedmods: $(SHAREDMODS)
|
|
||||||
|
|
||||||
# Build a static Python binary containing our extension modules
|
|
||||||
static: $(TARGET)
|
|
||||||
$(TARGET): $(ADDOBJS) lib.a $(PYTHONLIBS) Makefile $(BASELIB)
|
|
||||||
$(LINKCC) $(LDFLAGS) $(LINKFORSHARED) \
|
|
||||||
$(ADDOBJS) lib.a $(PYTHONLIBS) \
|
|
||||||
$(LINKPATH) $(BASELIB) $(MODLIBS) $(LIBS) $(SYSLIBS) \
|
|
||||||
-o $(TARGET) $(LDLAST)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
|
||||||
#------------------------------------------------------------------------
|
|
||||||
# This is a default version of the install target for wxPython. It just
|
|
||||||
# redirects to wxInstall below...
|
|
||||||
|
|
||||||
install: wxInstall
|
|
||||||
|
|
||||||
#install: sharedmods
|
|
||||||
# if test ! -d $(DESTSHARED) ; then \
|
|
||||||
# mkdir $(DESTSHARED) ; else true ; fi
|
|
||||||
# -for i in X $(SHAREDMODS); do \
|
|
||||||
# if test $$i != X; \
|
|
||||||
# then $(INSTALL_SHARED) $$i $(DESTSHARED)/$$i; \
|
|
||||||
# fi; \
|
|
||||||
# done
|
|
||||||
|
|
||||||
|
|
||||||
# Build the library containing our extension modules
|
|
||||||
lib.a: $(MODOBJS)
|
|
||||||
-rm -f lib.a
|
|
||||||
ar cr lib.a $(MODOBJS)
|
|
||||||
-$(RANLIB) lib.a
|
|
||||||
|
|
||||||
# This runs makesetup *twice* to use the BASESETUP definition from Setup
|
|
||||||
config.c Makefile: Makefile.pre Setup $(BASESETUP) $(MAKESETUP)
|
|
||||||
$(MAKESETUP) \
|
|
||||||
-m Makefile.pre -c $(CONFIGCIN) Setup -n $(BASESETUP) $(SETUP)
|
|
||||||
$(MAKE) -f Makefile do-it-again
|
|
||||||
|
|
||||||
# Internal target to run makesetup for the second time
|
|
||||||
do-it-again:
|
|
||||||
$(MAKESETUP) \
|
|
||||||
-m Makefile.pre -c $(CONFIGCIN) Setup -n $(BASESETUP) $(SETUP)
|
|
||||||
|
|
||||||
# Make config.o from the config.c created by makesetup
|
|
||||||
config.o: config.c
|
|
||||||
$(CC) $(CFLAGS) -c config.c
|
|
||||||
|
|
||||||
# Setup is copied from Setup.in *only* if it doesn't yet exist
|
|
||||||
Setup:
|
|
||||||
cp Setup.in Setup
|
|
||||||
|
|
||||||
# Make the intermediate Makefile.pre from Makefile.pre.in
|
|
||||||
Makefile.pre: Makefile.pre.in sedscript
|
|
||||||
sed -f sedscript Makefile.pre.in >Makefile.pre
|
|
||||||
|
|
||||||
# Shortcuts to make the sed arguments on one line
|
|
||||||
P=prefix
|
|
||||||
E=exec_prefix
|
|
||||||
H=Generated automatically from Makefile.pre.in by sedscript.
|
|
||||||
L=LINKFORSHARED
|
|
||||||
|
|
||||||
# Make the sed script used to create Makefile.pre from Makefile.pre.in
|
|
||||||
sedscript: $(MAKEFILE)
|
|
||||||
sed -n \
|
|
||||||
-e '1s/.*/1i\\/p' \
|
|
||||||
-e '2s%.*%# $H%p' \
|
|
||||||
-e '/^VERSION=/s/^VERSION=[ ]*\(.*\)/s%@VERSION[@]%\1%/p' \
|
|
||||||
-e '/^CC=/s/^CC=[ ]*\(.*\)/s%@CC[@]%\1%/p' \
|
|
||||||
-e '/^CCC=/s/^CCC=[ ]*\(.*\)/s%#@SET_CCC[@]%CCC=\1%/p' \
|
|
||||||
-e '/^LINKCC=/s/^LINKCC=[ ]*\(.*\)/s%@LINKCC[@]%\1%/p' \
|
|
||||||
-e '/^OPT=/s/^OPT=[ ]*\(.*\)/s%@OPT[@]%\1%/p' \
|
|
||||||
-e '/^LDFLAGS=/s/^LDFLAGS=[ ]*\(.*\)/s%@LDFLAGS[@]%\1%/p' \
|
|
||||||
-e '/^DEFS=/s/^DEFS=[ ]*\(.*\)/s%@DEFS[@]%\1%/p' \
|
|
||||||
-e '/^LIBS=/s/^LIBS=[ ]*\(.*\)/s%@LIBS[@]%\1%/p' \
|
|
||||||
-e '/^LIBM=/s/^LIBM=[ ]*\(.*\)/s%@LIBM[@]%\1%/p' \
|
|
||||||
-e '/^LIBC=/s/^LIBC=[ ]*\(.*\)/s%@LIBC[@]%\1%/p' \
|
|
||||||
-e '/^RANLIB=/s/^RANLIB=[ ]*\(.*\)/s%@RANLIB[@]%\1%/p' \
|
|
||||||
-e '/^MACHDEP=/s/^MACHDEP=[ ]*\(.*\)/s%@MACHDEP[@]%\1%/p' \
|
|
||||||
-e '/^SO=/s/^SO=[ ]*\(.*\)/s%@SO[@]%\1%/p' \
|
|
||||||
-e '/^LDSHARED=/s/^LDSHARED=[ ]*\(.*\)/s%@LDSHARED[@]%\1%/p' \
|
|
||||||
-e '/^CCSHARED=/s/^CCSHARED=[ ]*\(.*\)/s%@CCSHARED[@]%\1%/p' \
|
|
||||||
-e '/^$L=/s/^$L=[ ]*\(.*\)/s%@$L[@]%\1%/p' \
|
|
||||||
-e '/^$P=/s/^$P=\(.*\)/s%^$P=.*%$P=\1%/p' \
|
|
||||||
-e '/^$E=/s/^$E=\(.*\)/s%^$E=.*%$E=\1%/p' \
|
|
||||||
$(MAKEFILE) >sedscript
|
|
||||||
echo "/^#@SET_CCC@/d" >>sedscript
|
|
||||||
echo "/^installdir=/s%=.*%= $(installdir)%" >>sedscript
|
|
||||||
echo "/^exec_installdir=/s%=.*%=$(exec_installdir)%" >>sedscript
|
|
||||||
echo "/^srcdir=/s%=.*%= $(srcdir)%" >>sedscript
|
|
||||||
echo "/^VPATH=/s%=.*%= $(VPATH)%" >>sedscript
|
|
||||||
echo "/^LINKPATH=/s%=.*%= $(LINKPATH)%" >>sedscript
|
|
||||||
echo "/^BASELIB=/s%=.*%= $(BASELIB)%" >>sedscript
|
|
||||||
echo "/^BASESETUP=/s%=.*%= $(BASESETUP)%" >>sedscript
|
|
||||||
|
|
||||||
# Bootstrap target
|
|
||||||
boot: clobber
|
|
||||||
VERSION=`$(PYTHON) -c "import sys; print sys.version[:3]"`; \
|
|
||||||
installdir=`$(PYTHON) -c "import sys; print sys.prefix"`; \
|
|
||||||
exec_installdir=`$(PYTHON) -c "import sys; print sys.exec_prefix"`; \
|
|
||||||
$(MAKE) -f Makefile.pre.in VPATH=$(VPATH) srcdir=$(srcdir) \
|
|
||||||
VERSION=$$VERSION \
|
|
||||||
installdir=$$installdir \
|
|
||||||
exec_installdir=$$exec_installdir \
|
|
||||||
Makefile
|
|
||||||
|
|
||||||
# Handy target to remove intermediate files and backups
|
|
||||||
clean:
|
|
||||||
-rm -f *.o *~
|
|
||||||
|
|
||||||
# Handy target to remove everything that is easily regenerated
|
|
||||||
clobber: clean
|
|
||||||
-rm -f *.a tags TAGS config.c Makefile.pre $(TARGET) sedscript
|
|
||||||
-rm -f *.so *.sl so_locations
|
|
||||||
|
|
||||||
|
|
||||||
# Handy target to remove everything you don't want to distribute
|
|
||||||
distclean: clobber
|
|
||||||
-rm -f Makefile Setup
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
|
||||||
#------------------------------------------------------------------------
|
|
||||||
# Custom rules and dependencies added for wxPython
|
|
||||||
#
|
|
||||||
|
|
||||||
WXP_VERSION=2.1b2
|
|
||||||
|
|
||||||
# WXP_SRCDIR=../wxPython/src
|
|
||||||
|
|
||||||
SWIGFLAGS=-c++ -shadow -python -dnone -I$(WXP_SRCDIR) -D__WXGTK__ $(SEPARATE)
|
|
||||||
|
|
||||||
|
|
||||||
# Implicit rules to run SWIG
|
|
||||||
$(GENCODEDIR)/%.cpp : %.i
|
|
||||||
swig $(SWIGFLAGS) -c -o $@ $<
|
|
||||||
|
|
||||||
$(GENCODEDIR)/%.py : %.i
|
|
||||||
swig $(SWIGFLAGS) -c -o $@ $<
|
|
||||||
$(GENCODEDIR)/%.py : %.i
|
|
||||||
swig $(SWIGFLAGS) -c -o $(GENCODEDIR)/tmp_wrap.cpp $<
|
|
||||||
rm $(GENCODEDIR)/tmp_wrap.cpp
|
|
||||||
|
|
||||||
|
|
||||||
wxInstall : sharedmods $(PYMODULES)
|
|
||||||
if test ! -d $(TARGETDIR) ; then \
|
|
||||||
mkdir $(TARGETDIR) ; else true ; fi
|
|
||||||
if [ "$(SHAREDMODS)" != "" ]; then \
|
|
||||||
chmod 755 $(SHAREDMODS); \
|
|
||||||
cp $(SHAREDMODS) $(TARGETDIR); fi
|
|
||||||
-for i in $(PYMODULES); do \
|
|
||||||
cp $$i $(TARGETDIR); \
|
|
||||||
done
|
|
||||||
if [ "$(TARGETDIR)" != ".." ]; then \
|
|
||||||
python $(LIBDEST)/compileall.py $(TARGETDIR); \
|
|
||||||
python -O $(LIBDEST)/compileall.py $(TARGETDIR); \
|
|
||||||
else \
|
|
||||||
python $(LIBDEST)/compileall.py -l $(TARGETDIR); \
|
|
||||||
python -O $(LIBDEST)/compileall.py -l $(TARGETDIR);\
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@@ -1,45 +0,0 @@
|
|||||||
## This file gives the details of what is needed to build this extension
|
|
||||||
## module so the Makefile can be created.
|
|
||||||
|
|
||||||
## If you have not done "make install" for wxWindows then see Setup.in.linux
|
|
||||||
## for a more verbose version of this file.
|
|
||||||
|
|
||||||
*shared*
|
|
||||||
|
|
||||||
CCC=c++
|
|
||||||
WXWIN=../../..
|
|
||||||
GENCODEDIR=gtk
|
|
||||||
# srcdir=$(GENCODEDIR)
|
|
||||||
WX_CONFIG_CFLAGS=`wx-config --cflags`
|
|
||||||
WX_CONFIG_LIBS=`wx-config --libs`
|
|
||||||
|
|
||||||
|
|
||||||
## Depending on how your Python was built, you may have to set this
|
|
||||||
## value to use the C++ driver to link with instead of the default
|
|
||||||
## C driver. For example:
|
|
||||||
MY_LDSHARED=$(CCC) -shared
|
|
||||||
|
|
||||||
## Same as above, but for statically linking Python and wxPython together,
|
|
||||||
## in other words, if you comment out the *shared* above. If this is the
|
|
||||||
## case then you should ensure that the main() function is Python's, not
|
|
||||||
## wxWindows'. You can rebuild $(WXWIN)/src/gtk/app.cpp with NOMAIN defined
|
|
||||||
## to force this...
|
|
||||||
MY_LINKCC=$(CCC)
|
|
||||||
|
|
||||||
|
|
||||||
## Pick one of these, or set your own. This is where the wxPython module
|
|
||||||
## should be installed. It should be a subdirectory named wxPython.
|
|
||||||
#TARGETDIR=..
|
|
||||||
TARGETDIR=$(BINLIBDEST)/site-packages/wxPython
|
|
||||||
|
|
||||||
# The location of the wxPython source dir
|
|
||||||
WXP_SRCDIR=../../src
|
|
||||||
|
|
||||||
C_DEFINES = -DSWIG_GLOBAL -DWXP_USE_THREAD -DSEPARATE
|
|
||||||
C_FLAGS = -I. -I$(WXP_SRCDIR) $(WX_CONFIG_CFLAGS)
|
|
||||||
C_LIBS = -lwxPyHelpers $(WX_CONFIG_LIBS)
|
|
||||||
|
|
||||||
PYMODULES = $(GENCODEDIR)/html.py htmlhelper.py
|
|
||||||
|
|
||||||
htmlc $(GENCODEDIR)/html.cpp \
|
|
||||||
$(C_DEFINES) $(C_FLAGS) -Xlinker $(C_LIBS)
|
|
@@ -1,38 +0,0 @@
|
|||||||
|
|
||||||
#----------------------------------------------------------------------
|
|
||||||
|
|
||||||
TARGET = htmlc
|
|
||||||
|
|
||||||
OBJECTS = html.obj
|
|
||||||
|
|
||||||
PYMODULES = $(TARGETDIR)\html.py $(TARGETDIR)\htmlhelper.py
|
|
||||||
|
|
||||||
SOURCES = $(GENCODEDIR)\html.cpp
|
|
||||||
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
|
||||||
|
|
||||||
!include ..\makeinc.vc
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
|
||||||
|
|
||||||
default: $(TARGETDIR)\$(TARGET).pyd pycfiles
|
|
||||||
|
|
||||||
all: $(TARGET)
|
|
||||||
|
|
||||||
# for generating the html.cpp file
|
|
||||||
$(GENCODEDIR)/html.cpp : html.i
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
|
||||||
|
|
||||||
$(TARGETDIR)\$(TARGET).pyd : $(DUMMYOBJ) $(WXLIB) $(OBJECTS) # $(TARGET).res
|
|
||||||
$(link) @<<
|
|
||||||
/out:$@ /dll
|
|
||||||
$(LFLAGS) /def:$(TARGET).def /implib:./$(TARGET).lib
|
|
||||||
$(DUMMYOBJ) $(OBJECTS)
|
|
||||||
$(LIBS)
|
|
||||||
<<
|
|
||||||
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
|
||||||
|
|
@@ -1,363 +0,0 @@
|
|||||||
# Universal Unix Makefile for Python extensions
|
|
||||||
# =============================================
|
|
||||||
|
|
||||||
# Short Instructions
|
|
||||||
# ------------------
|
|
||||||
|
|
||||||
# 1. Build and install Python (1.5 or newer).
|
|
||||||
# 2. "make -f Makefile.pre.in boot"
|
|
||||||
# 3. "make"
|
|
||||||
# You should now have a shared library.
|
|
||||||
|
|
||||||
# Long Instructions
|
|
||||||
# -----------------
|
|
||||||
|
|
||||||
# Build *and install* the basic Python 1.5 distribution. See the
|
|
||||||
# Python README for instructions. (This version of Makefile.pre.in
|
|
||||||
# only withs with Python 1.5, alpha 3 or newer.)
|
|
||||||
|
|
||||||
# Create a file Setup.in for your extension. This file follows the
|
|
||||||
# format of the Modules/Setup.in file; see the instructions there.
|
|
||||||
# For a simple module called "spam" on file "spammodule.c", it can
|
|
||||||
# contain a single line:
|
|
||||||
# spam spammodule.c
|
|
||||||
# You can build as many modules as you want in the same directory --
|
|
||||||
# just have a separate line for each of them in the Setup.in file.
|
|
||||||
|
|
||||||
# If you want to build your extension as a shared library, insert a
|
|
||||||
# line containing just the string
|
|
||||||
# *shared*
|
|
||||||
# at the top of your Setup.in file.
|
|
||||||
|
|
||||||
# Note that the build process copies Setup.in to Setup, and then works
|
|
||||||
# with Setup. It doesn't overwrite Setup when Setup.in is changed, so
|
|
||||||
# while you're in the process of debugging your Setup.in file, you may
|
|
||||||
# want to edit Setup instead, and copy it back to Setup.in later.
|
|
||||||
# (All this is done so you can distribute your extension easily and
|
|
||||||
# someone else can select the modules they actually want to build by
|
|
||||||
# commenting out lines in the Setup file, without editing the
|
|
||||||
# original. Editing Setup is also used to specify nonstandard
|
|
||||||
# locations for include or library files.)
|
|
||||||
|
|
||||||
# Copy this file (Misc/Makefile.pre.in) to the directory containing
|
|
||||||
# your extension.
|
|
||||||
|
|
||||||
# Run "make -f Makefile.pre.in boot". This creates Makefile
|
|
||||||
# (producing Makefile.pre and sedscript as intermediate files) and
|
|
||||||
# config.c, incorporating the values for sys.prefix, sys.exec_prefix
|
|
||||||
# and sys.version from the installed Python binary. For this to work,
|
|
||||||
# the python binary must be on your path. If this fails, try
|
|
||||||
# make -f Makefile.pre.in Makefile VERSION=1.5 installdir=<prefix>
|
|
||||||
# where <prefix> is the prefix used to install Python for installdir
|
|
||||||
# (and possibly similar for exec_installdir=<exec_prefix>).
|
|
||||||
|
|
||||||
# Note: "make boot" implies "make clobber" -- it assumes that when you
|
|
||||||
# bootstrap you may have changed platforms so it removes all previous
|
|
||||||
# output files.
|
|
||||||
|
|
||||||
# If you are building your extension as a shared library (your
|
|
||||||
# Setup.in file starts with *shared*), run "make" or "make sharedmods"
|
|
||||||
# to build the shared library files. If you are building a statically
|
|
||||||
# linked Python binary (the only solution of your platform doesn't
|
|
||||||
# support shared libraries, and sometimes handy if you want to
|
|
||||||
# distribute or install the resulting Python binary), run "make
|
|
||||||
# python".
|
|
||||||
|
|
||||||
# Note: Each time you edit Makefile.pre.in or Setup, you must run
|
|
||||||
# "make Makefile" before running "make".
|
|
||||||
|
|
||||||
# Hint: if you want to use VPATH, you can start in an empty
|
|
||||||
# subdirectory and say (e.g.):
|
|
||||||
# make -f ../Makefile.pre.in boot srcdir=.. VPATH=..
|
|
||||||
|
|
||||||
|
|
||||||
# === Bootstrap variables (edited through "make boot") ===
|
|
||||||
|
|
||||||
# The prefix used by "make inclinstall libainstall" of core python
|
|
||||||
installdir= /usr/local
|
|
||||||
|
|
||||||
# The exec_prefix used by the same
|
|
||||||
exec_installdir=$(installdir)
|
|
||||||
|
|
||||||
# Source directory and VPATH in case you want to use VPATH.
|
|
||||||
# (You will have to edit these two lines yourself -- there is no
|
|
||||||
# automatic support as the Makefile is not generated by
|
|
||||||
# config.status.)
|
|
||||||
srcdir= .
|
|
||||||
VPATH= .
|
|
||||||
|
|
||||||
# === Variables that you may want to customize (rarely) ===
|
|
||||||
|
|
||||||
# (Static) build target
|
|
||||||
TARGET= python
|
|
||||||
|
|
||||||
# Installed python binary (used only by boot target)
|
|
||||||
PYTHON= python
|
|
||||||
|
|
||||||
# Add more -I and -D options here
|
|
||||||
CFLAGS= $(OPT) -I$(INCLUDEPY) -I$(EXECINCLUDEPY) $(DEFS)
|
|
||||||
|
|
||||||
# These two variables can be set in Setup to merge extensions.
|
|
||||||
# See example[23].
|
|
||||||
BASELIB=
|
|
||||||
BASESETUP=
|
|
||||||
|
|
||||||
# === Variables set by makesetup ===
|
|
||||||
|
|
||||||
MODOBJS= _MODOBJS_
|
|
||||||
MODLIBS= _MODLIBS_
|
|
||||||
|
|
||||||
# === Definitions added by makesetup ===
|
|
||||||
|
|
||||||
# === Variables from configure (through sedscript) ===
|
|
||||||
|
|
||||||
VERSION= @VERSION@
|
|
||||||
CC= @CC@
|
|
||||||
LINKCC= @LINKCC@
|
|
||||||
SGI_ABI= @SGI_ABI@
|
|
||||||
OPT= @OPT@
|
|
||||||
LDFLAGS= @LDFLAGS@
|
|
||||||
LDLAST= @LDLAST@
|
|
||||||
DEFS= @DEFS@
|
|
||||||
LIBS= @LIBS@
|
|
||||||
LIBM= @LIBM@
|
|
||||||
LIBC= @LIBC@
|
|
||||||
RANLIB= @RANLIB@
|
|
||||||
MACHDEP= @MACHDEP@
|
|
||||||
SO= @SO@
|
|
||||||
LDSHARED= @LDSHARED@
|
|
||||||
CCSHARED= @CCSHARED@
|
|
||||||
LINKFORSHARED= @LINKFORSHARED@
|
|
||||||
#@SET_CCC@
|
|
||||||
|
|
||||||
# Install prefix for architecture-independent files
|
|
||||||
prefix= /usr/local
|
|
||||||
|
|
||||||
# Install prefix for architecture-dependent files
|
|
||||||
exec_prefix= $(prefix)
|
|
||||||
|
|
||||||
# === Fixed definitions ===
|
|
||||||
|
|
||||||
# Shell used by make (some versions default to the login shell, which is bad)
|
|
||||||
SHELL= /bin/sh
|
|
||||||
|
|
||||||
# Expanded directories
|
|
||||||
BINDIR= $(exec_installdir)/bin
|
|
||||||
LIBDIR= $(exec_prefix)/lib
|
|
||||||
MANDIR= $(installdir)/man
|
|
||||||
INCLUDEDIR= $(installdir)/include
|
|
||||||
SCRIPTDIR= $(prefix)/lib
|
|
||||||
|
|
||||||
# Detailed destination directories
|
|
||||||
BINLIBDEST= $(LIBDIR)/python$(VERSION)
|
|
||||||
LIBDEST= $(SCRIPTDIR)/python$(VERSION)
|
|
||||||
INCLUDEPY= $(INCLUDEDIR)/python$(VERSION)
|
|
||||||
EXECINCLUDEPY= $(exec_installdir)/include/python$(VERSION)
|
|
||||||
LIBP= $(exec_installdir)/lib/python$(VERSION)
|
|
||||||
DESTSHARED= $(BINLIBDEST)/site-packages
|
|
||||||
|
|
||||||
LIBPL= $(LIBP)/config
|
|
||||||
|
|
||||||
PYTHONLIBS= $(LIBPL)/libpython$(VERSION).a
|
|
||||||
|
|
||||||
MAKESETUP= $(LIBPL)/makesetup
|
|
||||||
MAKEFILE= $(LIBPL)/Makefile
|
|
||||||
CONFIGC= $(LIBPL)/config.c
|
|
||||||
CONFIGCIN= $(LIBPL)/config.c.in
|
|
||||||
SETUP= $(LIBPL)/Setup
|
|
||||||
|
|
||||||
SYSLIBS= $(LIBM) $(LIBC)
|
|
||||||
|
|
||||||
ADDOBJS= $(LIBPL)/python.o config.o
|
|
||||||
|
|
||||||
# Portable install script (configure doesn't always guess right)
|
|
||||||
INSTALL= $(LIBPL)/install-sh -c
|
|
||||||
# Shared libraries must be installed with executable mode on some systems;
|
|
||||||
# rather than figuring out exactly which, we always give them executable mode.
|
|
||||||
# Also, making them read-only seems to be a good idea...
|
|
||||||
INSTALL_SHARED= ${INSTALL} -m 555
|
|
||||||
|
|
||||||
#---------------------------------------------------
|
|
||||||
# Possibly change some definintions for C++
|
|
||||||
ifdef MY_LDSHARED
|
|
||||||
LDSHARED=$(MY_LDSHARED)
|
|
||||||
endif
|
|
||||||
ifdef MY_LINKCC
|
|
||||||
LINKCC=$(MY_LINKCC)
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
# === Fixed rules ===
|
|
||||||
|
|
||||||
# Default target. This builds shared libraries only
|
|
||||||
default: sharedmods
|
|
||||||
|
|
||||||
# Build everything
|
|
||||||
all: static sharedmods
|
|
||||||
|
|
||||||
# Build shared libraries from our extension modules
|
|
||||||
sharedmods: $(SHAREDMODS)
|
|
||||||
|
|
||||||
# Build a static Python binary containing our extension modules
|
|
||||||
static: $(TARGET)
|
|
||||||
$(TARGET): $(ADDOBJS) lib.a $(PYTHONLIBS) Makefile $(BASELIB)
|
|
||||||
$(LINKCC) $(LDFLAGS) $(LINKFORSHARED) \
|
|
||||||
$(ADDOBJS) lib.a $(PYTHONLIBS) \
|
|
||||||
$(LINKPATH) $(BASELIB) $(MODLIBS) $(LIBS) $(SYSLIBS) \
|
|
||||||
-o $(TARGET) $(LDLAST)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
|
||||||
#------------------------------------------------------------------------
|
|
||||||
# This is a default version of the install target for wxPython. It just
|
|
||||||
# redirects to wxInstall below...
|
|
||||||
|
|
||||||
install: wxInstall
|
|
||||||
|
|
||||||
#install: sharedmods
|
|
||||||
# if test ! -d $(DESTSHARED) ; then \
|
|
||||||
# mkdir $(DESTSHARED) ; else true ; fi
|
|
||||||
# -for i in X $(SHAREDMODS); do \
|
|
||||||
# if test $$i != X; \
|
|
||||||
# then $(INSTALL_SHARED) $$i $(DESTSHARED)/$$i; \
|
|
||||||
# fi; \
|
|
||||||
# done
|
|
||||||
|
|
||||||
|
|
||||||
# Build the library containing our extension modules
|
|
||||||
lib.a: $(MODOBJS)
|
|
||||||
-rm -f lib.a
|
|
||||||
ar cr lib.a $(MODOBJS)
|
|
||||||
-$(RANLIB) lib.a
|
|
||||||
|
|
||||||
# This runs makesetup *twice* to use the BASESETUP definition from Setup
|
|
||||||
config.c Makefile: Makefile.pre Setup $(BASESETUP) $(MAKESETUP)
|
|
||||||
$(MAKESETUP) \
|
|
||||||
-m Makefile.pre -c $(CONFIGCIN) Setup -n $(BASESETUP) $(SETUP)
|
|
||||||
$(MAKE) -f Makefile do-it-again
|
|
||||||
|
|
||||||
# Internal target to run makesetup for the second time
|
|
||||||
do-it-again:
|
|
||||||
$(MAKESETUP) \
|
|
||||||
-m Makefile.pre -c $(CONFIGCIN) Setup -n $(BASESETUP) $(SETUP)
|
|
||||||
|
|
||||||
# Make config.o from the config.c created by makesetup
|
|
||||||
config.o: config.c
|
|
||||||
$(CC) $(CFLAGS) -c config.c
|
|
||||||
|
|
||||||
# Setup is copied from Setup.in *only* if it doesn't yet exist
|
|
||||||
Setup:
|
|
||||||
cp Setup.in Setup
|
|
||||||
|
|
||||||
# Make the intermediate Makefile.pre from Makefile.pre.in
|
|
||||||
Makefile.pre: Makefile.pre.in sedscript
|
|
||||||
sed -f sedscript Makefile.pre.in >Makefile.pre
|
|
||||||
|
|
||||||
# Shortcuts to make the sed arguments on one line
|
|
||||||
P=prefix
|
|
||||||
E=exec_prefix
|
|
||||||
H=Generated automatically from Makefile.pre.in by sedscript.
|
|
||||||
L=LINKFORSHARED
|
|
||||||
|
|
||||||
# Make the sed script used to create Makefile.pre from Makefile.pre.in
|
|
||||||
sedscript: $(MAKEFILE)
|
|
||||||
sed -n \
|
|
||||||
-e '1s/.*/1i\\/p' \
|
|
||||||
-e '2s%.*%# $H%p' \
|
|
||||||
-e '/^VERSION=/s/^VERSION=[ ]*\(.*\)/s%@VERSION[@]%\1%/p' \
|
|
||||||
-e '/^CC=/s/^CC=[ ]*\(.*\)/s%@CC[@]%\1%/p' \
|
|
||||||
-e '/^CCC=/s/^CCC=[ ]*\(.*\)/s%#@SET_CCC[@]%CCC=\1%/p' \
|
|
||||||
-e '/^LINKCC=/s/^LINKCC=[ ]*\(.*\)/s%@LINKCC[@]%\1%/p' \
|
|
||||||
-e '/^OPT=/s/^OPT=[ ]*\(.*\)/s%@OPT[@]%\1%/p' \
|
|
||||||
-e '/^LDFLAGS=/s/^LDFLAGS=[ ]*\(.*\)/s%@LDFLAGS[@]%\1%/p' \
|
|
||||||
-e '/^DEFS=/s/^DEFS=[ ]*\(.*\)/s%@DEFS[@]%\1%/p' \
|
|
||||||
-e '/^LIBS=/s/^LIBS=[ ]*\(.*\)/s%@LIBS[@]%\1%/p' \
|
|
||||||
-e '/^LIBM=/s/^LIBM=[ ]*\(.*\)/s%@LIBM[@]%\1%/p' \
|
|
||||||
-e '/^LIBC=/s/^LIBC=[ ]*\(.*\)/s%@LIBC[@]%\1%/p' \
|
|
||||||
-e '/^RANLIB=/s/^RANLIB=[ ]*\(.*\)/s%@RANLIB[@]%\1%/p' \
|
|
||||||
-e '/^MACHDEP=/s/^MACHDEP=[ ]*\(.*\)/s%@MACHDEP[@]%\1%/p' \
|
|
||||||
-e '/^SO=/s/^SO=[ ]*\(.*\)/s%@SO[@]%\1%/p' \
|
|
||||||
-e '/^LDSHARED=/s/^LDSHARED=[ ]*\(.*\)/s%@LDSHARED[@]%\1%/p' \
|
|
||||||
-e '/^CCSHARED=/s/^CCSHARED=[ ]*\(.*\)/s%@CCSHARED[@]%\1%/p' \
|
|
||||||
-e '/^$L=/s/^$L=[ ]*\(.*\)/s%@$L[@]%\1%/p' \
|
|
||||||
-e '/^$P=/s/^$P=\(.*\)/s%^$P=.*%$P=\1%/p' \
|
|
||||||
-e '/^$E=/s/^$E=\(.*\)/s%^$E=.*%$E=\1%/p' \
|
|
||||||
$(MAKEFILE) >sedscript
|
|
||||||
echo "/^#@SET_CCC@/d" >>sedscript
|
|
||||||
echo "/^installdir=/s%=.*%= $(installdir)%" >>sedscript
|
|
||||||
echo "/^exec_installdir=/s%=.*%=$(exec_installdir)%" >>sedscript
|
|
||||||
echo "/^srcdir=/s%=.*%= $(srcdir)%" >>sedscript
|
|
||||||
echo "/^VPATH=/s%=.*%= $(VPATH)%" >>sedscript
|
|
||||||
echo "/^LINKPATH=/s%=.*%= $(LINKPATH)%" >>sedscript
|
|
||||||
echo "/^BASELIB=/s%=.*%= $(BASELIB)%" >>sedscript
|
|
||||||
echo "/^BASESETUP=/s%=.*%= $(BASESETUP)%" >>sedscript
|
|
||||||
|
|
||||||
# Bootstrap target
|
|
||||||
boot: clobber
|
|
||||||
VERSION=`$(PYTHON) -c "import sys; print sys.version[:3]"`; \
|
|
||||||
installdir=`$(PYTHON) -c "import sys; print sys.prefix"`; \
|
|
||||||
exec_installdir=`$(PYTHON) -c "import sys; print sys.exec_prefix"`; \
|
|
||||||
$(MAKE) -f Makefile.pre.in VPATH=$(VPATH) srcdir=$(srcdir) \
|
|
||||||
VERSION=$$VERSION \
|
|
||||||
installdir=$$installdir \
|
|
||||||
exec_installdir=$$exec_installdir \
|
|
||||||
Makefile
|
|
||||||
|
|
||||||
# Handy target to remove intermediate files and backups
|
|
||||||
clean:
|
|
||||||
-rm -f *.o *~
|
|
||||||
|
|
||||||
# Handy target to remove everything that is easily regenerated
|
|
||||||
clobber: clean
|
|
||||||
-rm -f *.a tags TAGS config.c Makefile.pre $(TARGET) sedscript
|
|
||||||
-rm -f *.so *.sl so_locations
|
|
||||||
|
|
||||||
|
|
||||||
# Handy target to remove everything you don't want to distribute
|
|
||||||
distclean: clobber
|
|
||||||
-rm -f Makefile Setup
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
|
||||||
#------------------------------------------------------------------------
|
|
||||||
# Custom rules and dependencies added for wxPython
|
|
||||||
#
|
|
||||||
|
|
||||||
WXP_VERSION=2.1b2
|
|
||||||
|
|
||||||
# WXP_SRCDIR=../wxPython/src
|
|
||||||
|
|
||||||
SWIGFLAGS=-c++ -shadow -python -dnone -I$(WXP_SRCDIR) -D__WXGTK__ $(SEPARATE)
|
|
||||||
|
|
||||||
|
|
||||||
# Implicit rules to run SWIG
|
|
||||||
$(GENCODEDIR)/%.cpp : %.i
|
|
||||||
swig $(SWIGFLAGS) -c -o $@ $<
|
|
||||||
|
|
||||||
$(GENCODEDIR)/%.py : %.i
|
|
||||||
swig $(SWIGFLAGS) -c -o $@ $<
|
|
||||||
$(GENCODEDIR)/%.py : %.i
|
|
||||||
swig $(SWIGFLAGS) -c -o $(GENCODEDIR)/tmp_wrap.cpp $<
|
|
||||||
rm $(GENCODEDIR)/tmp_wrap.cpp
|
|
||||||
|
|
||||||
|
|
||||||
wxInstall : sharedmods $(PYMODULES)
|
|
||||||
if test ! -d $(TARGETDIR) ; then \
|
|
||||||
mkdir $(TARGETDIR) ; else true ; fi
|
|
||||||
if [ "$(SHAREDMODS)" != "" ]; then \
|
|
||||||
chmod 755 $(SHAREDMODS); \
|
|
||||||
cp $(SHAREDMODS) $(TARGETDIR); fi
|
|
||||||
-for i in $(PYMODULES); do \
|
|
||||||
cp $$i $(TARGETDIR); \
|
|
||||||
done
|
|
||||||
if [ "$(TARGETDIR)" != ".." ]; then \
|
|
||||||
python $(LIBDEST)/compileall.py $(TARGETDIR); \
|
|
||||||
python -O $(LIBDEST)/compileall.py $(TARGETDIR); \
|
|
||||||
else \
|
|
||||||
python $(LIBDEST)/compileall.py -l $(TARGETDIR); \
|
|
||||||
python -O $(LIBDEST)/compileall.py -l $(TARGETDIR);\
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@@ -1,49 +0,0 @@
|
|||||||
## This file gives the details of what is needed to build this extension
|
|
||||||
## module so the Makefile can be created.
|
|
||||||
|
|
||||||
## If you have not done "make install" for wxWindows then see Setup.in.linux
|
|
||||||
## for a more verbose version of this file.
|
|
||||||
|
|
||||||
*shared*
|
|
||||||
|
|
||||||
CCC=c++
|
|
||||||
WXWIN=../../..
|
|
||||||
GENCODEDIR=gtk
|
|
||||||
# srcdir=$(GENCODEDIR)
|
|
||||||
WX_CONFIG_CFLAGS=`wx-config --cflags`
|
|
||||||
WX_CONFIG_LIBS=`wx-config --libs`
|
|
||||||
|
|
||||||
|
|
||||||
## Depending on how your Python was built, you may have to set this
|
|
||||||
## value to use the C++ driver to link with instead of the default
|
|
||||||
## C driver. For example:
|
|
||||||
MY_LDSHARED=$(CCC) -shared
|
|
||||||
|
|
||||||
## Same as above, but for statically linking Python and wxPython together,
|
|
||||||
## in other words, if you comment out the *shared* above. If this is the
|
|
||||||
## case then you should ensure that the main() function is Python's, not
|
|
||||||
## wxWindows'. You can rebuild $(WXWIN)/src/gtk/app.cpp with NOMAIN defined
|
|
||||||
## to force this...
|
|
||||||
MY_LINKCC=$(CCC)
|
|
||||||
|
|
||||||
|
|
||||||
## Pick one of these, or set your own. This is where the wxPython module
|
|
||||||
## should be installed. It should be a subdirectory named wxPython.
|
|
||||||
#TARGETDIR=..
|
|
||||||
TARGETDIR=$(BINLIBDEST)/site-packages/wxPython
|
|
||||||
|
|
||||||
# The location of the wxPython source dir
|
|
||||||
WXP_SRCDIR=../../src
|
|
||||||
|
|
||||||
## define SEPARATE so that the individual modules 'know' at compile time
|
|
||||||
## they're not going to be part of a big wxcmodule.so
|
|
||||||
C_DEFINES = -DSWIG_GLOBAL -DWXP_USE_THREAD -DSEPARATE
|
|
||||||
C_FLAGS = -I. -I$(WXP_SRCDIR) $(WX_CONFIG_CFLAGS)
|
|
||||||
C_LIBS = -lwxPyHelpers $(WX_CONFIG_LIBS)
|
|
||||||
|
|
||||||
PYMODULES = $(GENCODEDIR)/lseditor.py
|
|
||||||
|
|
||||||
lseditorc $(GENCODEDIR)/lseditor.cpp finddlg.cpp lseditorpl.cpp markup.cpp \
|
|
||||||
plugin.cpp sourcepainter.cpp tdefs.cpp \
|
|
||||||
$(C_DEFINES) $(C_FLAGS) -Xlinker $(C_LIBS)
|
|
||||||
|
|
@@ -1,42 +0,0 @@
|
|||||||
|
|
||||||
#----------------------------------------------------------------------
|
|
||||||
|
|
||||||
TARGET = lseditorc
|
|
||||||
|
|
||||||
OBJECTS = lseditor.obj finddlg.obj lseditorpl.obj markup.obj \
|
|
||||||
plugin.obj sourcepainter.obj tdefs.objhtml.obj
|
|
||||||
|
|
||||||
PYMODULES = $(TARGETDIR)\lseditor.py
|
|
||||||
|
|
||||||
SOURCES = $(GENCODEDIR)/lseditor.cpp finddlg.cpp lseditorpl.cpp markup.cpp \
|
|
||||||
plugin.cpp sourcepainter.cpp tdefs.cpp
|
|
||||||
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
|
||||||
|
|
||||||
!include ..\makeinc.vc
|
|
||||||
# undo overrideflags /GX- ...
|
|
||||||
OVERRIDEFLAGS=$(OTHERCFLAGS)
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
|
||||||
|
|
||||||
default: $(TARGETDIR)\$(TARGET).pyd pycfiles
|
|
||||||
|
|
||||||
all: $(TARGET)
|
|
||||||
|
|
||||||
# for generating the html.cpp file
|
|
||||||
$(GENCODEDIR)/lseditor.cpp : lseditor.i
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
|
||||||
|
|
||||||
$(TARGETDIR)\$(TARGET).pyd : $(DUMMYOBJ) $(WXLIB) $(OBJECTS) # $(TARGET).res
|
|
||||||
$(link) @<<
|
|
||||||
/out:$@ /dll
|
|
||||||
$(LFLAGS) /def:$(TARGET).def /implib:./$(TARGET).lib
|
|
||||||
$(DUMMYOBJ) $(OBJECTS)
|
|
||||||
$(LIBS)
|
|
||||||
<<
|
|
||||||
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
|
||||||
|
|
@@ -1,18 +0,0 @@
|
|||||||
all:
|
|
||||||
cd html
|
|
||||||
nmake -f makefile.vc
|
|
||||||
cd ..\lseditor
|
|
||||||
nmake -f makefile.vc
|
|
||||||
cd ..\glcanvas
|
|
||||||
nmake -f makefile.vc
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
|
|
||||||
clean:
|
|
||||||
cd html
|
|
||||||
nmake -f makefile.vc clean
|
|
||||||
cd ..\lseditor
|
|
||||||
nmake -f makefile.vc clean
|
|
||||||
cd ..\glcanvas
|
|
||||||
nmake -f makefile.vc clean
|
|
||||||
cd ..
|
|
@@ -1,152 +0,0 @@
|
|||||||
# -*- makefile -*-
|
|
||||||
#----------------------------------------------------------------------------
|
|
||||||
# Name: makefile.nt
|
|
||||||
# Purpose: Win32, VC++ 5/6 makefile for wxPython
|
|
||||||
#
|
|
||||||
# Author: Robin Dunn
|
|
||||||
#
|
|
||||||
# Created: 3/27/97
|
|
||||||
# RCS-ID: $Id$
|
|
||||||
# Copyright: (c) 1998 by Total Control Software
|
|
||||||
# Licence: wxWindows license
|
|
||||||
#----------------------------------------------------------------------------
|
|
||||||
VERSION=2.1b2
|
|
||||||
|
|
||||||
# Set WXDIR to the root wxWindows directory for your system
|
|
||||||
WXDIR = $(WXWIN)
|
|
||||||
|
|
||||||
# Set this to the root of the Python installation
|
|
||||||
PYTHONDIR=\progra~1\Python
|
|
||||||
|
|
||||||
# Set this to 1 for a non-debug, optimised compile
|
|
||||||
FINAL=1
|
|
||||||
|
|
||||||
# Set this to where you want the stuff installed at. It should
|
|
||||||
# be a directory contained in a PYTHONPATH directory, and should be
|
|
||||||
# named wxPython
|
|
||||||
TARGETDIR=$(PYTHONDIR)\wxPython
|
|
||||||
|
|
||||||
# Set this to 1 for make to pre-compile the Python modules, 0 to
|
|
||||||
# just copy the sources and let Python compile them the first
|
|
||||||
# time they are imported.
|
|
||||||
COMPILEPY=0
|
|
||||||
|
|
||||||
# If your wxWindows is built as a DLL, set this to 1. Using 0 or unset
|
|
||||||
# means that wxWindows will be staticaly linked with wxPython.
|
|
||||||
WXUSINGDLL=1
|
|
||||||
|
|
||||||
# If you want to compile in code to aquire/release the Python
|
|
||||||
# Interpreter Lock at the appropriate places
|
|
||||||
WXP_USE_THREAD=1
|
|
||||||
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
|
||||||
|
|
||||||
!if "$(WXP_USE_THREAD)" == "1"
|
|
||||||
THREAD=-DWXP_USE_THREAD=1
|
|
||||||
!endif
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
|
||||||
|
|
||||||
NOPCH=1
|
|
||||||
THISDIR=$(WXDIR)\utils\wxPython\modules
|
|
||||||
WXPSRCDIR=$(WXDIR)\utils\wxPython\src
|
|
||||||
|
|
||||||
EXTRALIBS=$(PYTHONDIR)\libs\python15.lib $(WXPSRCDIR)\wxc.lib
|
|
||||||
#EXTRALIBS=$(PYTHONDIR)\PCbuild\python15_d.lib -D_DEBUG
|
|
||||||
EXTRAINC=-I$(PYTHONDIR)\include -I$(WXPSRCDIR) -I.
|
|
||||||
EXTRAFLAGS=/Fpwxp.pch /YXhelpers.h -DSWIG_GLOBAL -DHAVE_CONFIG_H $(THREAD)
|
|
||||||
OVERRIDEFLAGS=/GX- $(OTHERCFLAGS)
|
|
||||||
|
|
||||||
|
|
||||||
SWIGFLAGS=-c++ -shadow -python -dnone -D__WXMSW__ -I$(WXPSRCDIR)
|
|
||||||
GENCODEDIR=msw
|
|
||||||
|
|
||||||
|
|
||||||
!include $(WXDIR)\src\makevc.env
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
|
||||||
|
|
||||||
!if "$(FINAL)" == "1"
|
|
||||||
DEBUGLFLAGS = /DEBUG /INCREMENTAL:YES
|
|
||||||
!else
|
|
||||||
DEBUGLFLAGS = /INCREMENTAL:NO
|
|
||||||
!endif
|
|
||||||
|
|
||||||
LFLAGS= $(DEBUGLFLAGS) /DLL /subsystem:windows,3.50 /machine:I386 /nologo
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
|
||||||
|
|
||||||
def: default
|
|
||||||
|
|
||||||
|
|
||||||
showflags:
|
|
||||||
@echo $(CPPFLAGS)
|
|
||||||
|
|
||||||
# implicit rule for compiling .cpp and .c files
|
|
||||||
{}.cpp{}.obj:
|
|
||||||
$(cc) @<<
|
|
||||||
$(CPPFLAGS) /c /Tp $<
|
|
||||||
<<
|
|
||||||
|
|
||||||
{$(GENCODEDIR)}.cpp{}.obj:
|
|
||||||
$(cc) @<<
|
|
||||||
$(CPPFLAGS) /c /Tp $<
|
|
||||||
<<
|
|
||||||
|
|
||||||
{}.c{}.obj:
|
|
||||||
$(cc) @<<
|
|
||||||
$(CPPFLAGS) /c $<
|
|
||||||
<<
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
|
||||||
|
|
||||||
.SUFFIXES : .i .py
|
|
||||||
|
|
||||||
# Implicit rules to run SWIG
|
|
||||||
{}.i{$(GENCODEDIR)}.cpp:
|
|
||||||
swig $(SWIGFLAGS) -c -o $@ $<
|
|
||||||
|
|
||||||
{}.i{$(GENCODEDIR)}.py:
|
|
||||||
swig $(SWIGFLAGS) -c -o $(GENCODEDIR)\tmp_wrap.cpp $<
|
|
||||||
-erase $(GENCODEDIR)\tmp_wrap.cpp
|
|
||||||
|
|
||||||
|
|
||||||
{$(GENCODEDIR)}.py{$(TARGETDIR)}.py:
|
|
||||||
copy $< $@
|
|
||||||
|
|
||||||
{}.py{$(TARGETDIR)}.py:
|
|
||||||
copy $< $@
|
|
||||||
|
|
||||||
#{}.py{$(TARGETDIR)}.$(PYEXT):
|
|
||||||
# $(PYTHON) -c "import py_compile; py_compile.compile('$<', '$@')"
|
|
||||||
|
|
||||||
clean:
|
|
||||||
-erase *.obj
|
|
||||||
-erase *.exe
|
|
||||||
-erase *.res
|
|
||||||
-erase *.map
|
|
||||||
-erase *.sbr
|
|
||||||
-erase *.pdb
|
|
||||||
-erase *.pch
|
|
||||||
-erase $(TARGET).exp
|
|
||||||
-erase $(TARGET).lib
|
|
||||||
# -erase $(TARGETDIR)\$(TARGET).*
|
|
||||||
|
|
||||||
dist:
|
|
||||||
cd ..\..
|
|
||||||
wxPython\distrib\zipit.bat $(VERSION)
|
|
||||||
|
|
||||||
pycfiles : $(PYMODULES)
|
|
||||||
!if "$(COMPILEPY)" == "1"
|
|
||||||
$(PYTHONDIR)\python $(PYTHONDIR)\Lib\compileall.py -l $(TARGETDIR)
|
|
||||||
$(PYTHONDIR)\python -O $(PYTHONDIR)\Lib\compileall.py -l $(TARGETDIR)
|
|
||||||
!endif
|
|
||||||
|
|
||||||
$(TARGET).res : $(TARGET).rc $(WXDIR)\include\wx\msw\wx.rc
|
|
||||||
$(rc) -r /i$(WXDIR)\include -fo$@ $(TARGET).rc
|
|
||||||
|
|
||||||
sources : $(SOURCES)
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
|
@@ -1,363 +0,0 @@
|
|||||||
# Universal Unix Makefile for Python extensions
|
|
||||||
# =============================================
|
|
||||||
|
|
||||||
# Short Instructions
|
|
||||||
# ------------------
|
|
||||||
|
|
||||||
# 1. Build and install Python (1.5 or newer).
|
|
||||||
# 2. "make -f Makefile.pre.in boot"
|
|
||||||
# 3. "make"
|
|
||||||
# You should now have a shared library.
|
|
||||||
|
|
||||||
# Long Instructions
|
|
||||||
# -----------------
|
|
||||||
|
|
||||||
# Build *and install* the basic Python 1.5 distribution. See the
|
|
||||||
# Python README for instructions. (This version of Makefile.pre.in
|
|
||||||
# only withs with Python 1.5, alpha 3 or newer.)
|
|
||||||
|
|
||||||
# Create a file Setup.in for your extension. This file follows the
|
|
||||||
# format of the Modules/Setup.in file; see the instructions there.
|
|
||||||
# For a simple module called "spam" on file "spammodule.c", it can
|
|
||||||
# contain a single line:
|
|
||||||
# spam spammodule.c
|
|
||||||
# You can build as many modules as you want in the same directory --
|
|
||||||
# just have a separate line for each of them in the Setup.in file.
|
|
||||||
|
|
||||||
# If you want to build your extension as a shared library, insert a
|
|
||||||
# line containing just the string
|
|
||||||
# *shared*
|
|
||||||
# at the top of your Setup.in file.
|
|
||||||
|
|
||||||
# Note that the build process copies Setup.in to Setup, and then works
|
|
||||||
# with Setup. It doesn't overwrite Setup when Setup.in is changed, so
|
|
||||||
# while you're in the process of debugging your Setup.in file, you may
|
|
||||||
# want to edit Setup instead, and copy it back to Setup.in later.
|
|
||||||
# (All this is done so you can distribute your extension easily and
|
|
||||||
# someone else can select the modules they actually want to build by
|
|
||||||
# commenting out lines in the Setup file, without editing the
|
|
||||||
# original. Editing Setup is also used to specify nonstandard
|
|
||||||
# locations for include or library files.)
|
|
||||||
|
|
||||||
# Copy this file (Misc/Makefile.pre.in) to the directory containing
|
|
||||||
# your extension.
|
|
||||||
|
|
||||||
# Run "make -f Makefile.pre.in boot". This creates Makefile
|
|
||||||
# (producing Makefile.pre and sedscript as intermediate files) and
|
|
||||||
# config.c, incorporating the values for sys.prefix, sys.exec_prefix
|
|
||||||
# and sys.version from the installed Python binary. For this to work,
|
|
||||||
# the python binary must be on your path. If this fails, try
|
|
||||||
# make -f Makefile.pre.in Makefile VERSION=1.5 installdir=<prefix>
|
|
||||||
# where <prefix> is the prefix used to install Python for installdir
|
|
||||||
# (and possibly similar for exec_installdir=<exec_prefix>).
|
|
||||||
|
|
||||||
# Note: "make boot" implies "make clobber" -- it assumes that when you
|
|
||||||
# bootstrap you may have changed platforms so it removes all previous
|
|
||||||
# output files.
|
|
||||||
|
|
||||||
# If you are building your extension as a shared library (your
|
|
||||||
# Setup.in file starts with *shared*), run "make" or "make sharedmods"
|
|
||||||
# to build the shared library files. If you are building a statically
|
|
||||||
# linked Python binary (the only solution of your platform doesn't
|
|
||||||
# support shared libraries, and sometimes handy if you want to
|
|
||||||
# distribute or install the resulting Python binary), run "make
|
|
||||||
# python".
|
|
||||||
|
|
||||||
# Note: Each time you edit Makefile.pre.in or Setup, you must run
|
|
||||||
# "make Makefile" before running "make".
|
|
||||||
|
|
||||||
# Hint: if you want to use VPATH, you can start in an empty
|
|
||||||
# subdirectory and say (e.g.):
|
|
||||||
# make -f ../Makefile.pre.in boot srcdir=.. VPATH=..
|
|
||||||
|
|
||||||
|
|
||||||
# === Bootstrap variables (edited through "make boot") ===
|
|
||||||
|
|
||||||
# The prefix used by "make inclinstall libainstall" of core python
|
|
||||||
installdir= /usr/local
|
|
||||||
|
|
||||||
# The exec_prefix used by the same
|
|
||||||
exec_installdir=$(installdir)
|
|
||||||
|
|
||||||
# Source directory and VPATH in case you want to use VPATH.
|
|
||||||
# (You will have to edit these two lines yourself -- there is no
|
|
||||||
# automatic support as the Makefile is not generated by
|
|
||||||
# config.status.)
|
|
||||||
srcdir= .
|
|
||||||
VPATH= .
|
|
||||||
|
|
||||||
# === Variables that you may want to customize (rarely) ===
|
|
||||||
|
|
||||||
# (Static) build target
|
|
||||||
TARGET= python
|
|
||||||
|
|
||||||
# Installed python binary (used only by boot target)
|
|
||||||
PYTHON= python
|
|
||||||
|
|
||||||
# Add more -I and -D options here
|
|
||||||
CFLAGS= $(OPT) -I$(INCLUDEPY) -I$(EXECINCLUDEPY) $(DEFS)
|
|
||||||
|
|
||||||
# These two variables can be set in Setup to merge extensions.
|
|
||||||
# See example[23].
|
|
||||||
BASELIB=
|
|
||||||
BASESETUP=
|
|
||||||
|
|
||||||
# === Variables set by makesetup ===
|
|
||||||
|
|
||||||
MODOBJS= _MODOBJS_
|
|
||||||
MODLIBS= _MODLIBS_
|
|
||||||
|
|
||||||
# === Definitions added by makesetup ===
|
|
||||||
|
|
||||||
# === Variables from configure (through sedscript) ===
|
|
||||||
|
|
||||||
VERSION= @VERSION@
|
|
||||||
CC= @CC@
|
|
||||||
LINKCC= @LINKCC@
|
|
||||||
SGI_ABI= @SGI_ABI@
|
|
||||||
OPT= @OPT@
|
|
||||||
LDFLAGS= @LDFLAGS@
|
|
||||||
LDLAST= @LDLAST@
|
|
||||||
DEFS= @DEFS@
|
|
||||||
LIBS= @LIBS@
|
|
||||||
LIBM= @LIBM@
|
|
||||||
LIBC= @LIBC@
|
|
||||||
RANLIB= @RANLIB@
|
|
||||||
MACHDEP= @MACHDEP@
|
|
||||||
SO= @SO@
|
|
||||||
LDSHARED= @LDSHARED@
|
|
||||||
CCSHARED= @CCSHARED@
|
|
||||||
LINKFORSHARED= @LINKFORSHARED@
|
|
||||||
#@SET_CCC@
|
|
||||||
|
|
||||||
# Install prefix for architecture-independent files
|
|
||||||
prefix= /usr/local
|
|
||||||
|
|
||||||
# Install prefix for architecture-dependent files
|
|
||||||
exec_prefix= $(prefix)
|
|
||||||
|
|
||||||
# === Fixed definitions ===
|
|
||||||
|
|
||||||
# Shell used by make (some versions default to the login shell, which is bad)
|
|
||||||
SHELL= /bin/sh
|
|
||||||
|
|
||||||
# Expanded directories
|
|
||||||
BINDIR= $(exec_installdir)/bin
|
|
||||||
LIBDIR= $(exec_prefix)/lib
|
|
||||||
MANDIR= $(installdir)/man
|
|
||||||
INCLUDEDIR= $(installdir)/include
|
|
||||||
SCRIPTDIR= $(prefix)/lib
|
|
||||||
|
|
||||||
# Detailed destination directories
|
|
||||||
BINLIBDEST= $(LIBDIR)/python$(VERSION)
|
|
||||||
LIBDEST= $(SCRIPTDIR)/python$(VERSION)
|
|
||||||
INCLUDEPY= $(INCLUDEDIR)/python$(VERSION)
|
|
||||||
EXECINCLUDEPY= $(exec_installdir)/include/python$(VERSION)
|
|
||||||
LIBP= $(exec_installdir)/lib/python$(VERSION)
|
|
||||||
DESTSHARED= $(BINLIBDEST)/site-packages
|
|
||||||
|
|
||||||
LIBPL= $(LIBP)/config
|
|
||||||
|
|
||||||
PYTHONLIBS= $(LIBPL)/libpython$(VERSION).a
|
|
||||||
|
|
||||||
MAKESETUP= $(LIBPL)/makesetup
|
|
||||||
MAKEFILE= $(LIBPL)/Makefile
|
|
||||||
CONFIGC= $(LIBPL)/config.c
|
|
||||||
CONFIGCIN= $(LIBPL)/config.c.in
|
|
||||||
SETUP= $(LIBPL)/Setup
|
|
||||||
|
|
||||||
SYSLIBS= $(LIBM) $(LIBC)
|
|
||||||
|
|
||||||
ADDOBJS= $(LIBPL)/python.o config.o
|
|
||||||
|
|
||||||
# Portable install script (configure doesn't always guess right)
|
|
||||||
INSTALL= $(LIBPL)/install-sh -c
|
|
||||||
# Shared libraries must be installed with executable mode on some systems;
|
|
||||||
# rather than figuring out exactly which, we always give them executable mode.
|
|
||||||
# Also, making them read-only seems to be a good idea...
|
|
||||||
INSTALL_SHARED= ${INSTALL} -m 555
|
|
||||||
|
|
||||||
#---------------------------------------------------
|
|
||||||
# Possibly change some definintions for C++
|
|
||||||
ifdef MY_LDSHARED
|
|
||||||
LDSHARED=$(MY_LDSHARED)
|
|
||||||
endif
|
|
||||||
ifdef MY_LINKCC
|
|
||||||
LINKCC=$(MY_LINKCC)
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
# === Fixed rules ===
|
|
||||||
|
|
||||||
# Default target. This builds shared libraries only
|
|
||||||
default: sharedmods
|
|
||||||
|
|
||||||
# Build everything
|
|
||||||
all: static sharedmods
|
|
||||||
|
|
||||||
# Build shared libraries from our extension modules
|
|
||||||
sharedmods: $(SHAREDMODS)
|
|
||||||
|
|
||||||
# Build a static Python binary containing our extension modules
|
|
||||||
static: $(TARGET)
|
|
||||||
$(TARGET): $(ADDOBJS) lib.a $(PYTHONLIBS) Makefile $(BASELIB)
|
|
||||||
$(LINKCC) $(LDFLAGS) $(LINKFORSHARED) \
|
|
||||||
$(ADDOBJS) lib.a $(PYTHONLIBS) \
|
|
||||||
$(LINKPATH) $(BASELIB) $(MODLIBS) $(LIBS) $(SYSLIBS) \
|
|
||||||
-o $(TARGET) $(LDLAST)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
|
||||||
#------------------------------------------------------------------------
|
|
||||||
# This is a default version of the install target for wxPython. It just
|
|
||||||
# redirects to wxInstall below...
|
|
||||||
|
|
||||||
install: wxInstall
|
|
||||||
|
|
||||||
#install: sharedmods
|
|
||||||
# if test ! -d $(DESTSHARED) ; then \
|
|
||||||
# mkdir $(DESTSHARED) ; else true ; fi
|
|
||||||
# -for i in X $(SHAREDMODS); do \
|
|
||||||
# if test $$i != X; \
|
|
||||||
# then $(INSTALL_SHARED) $$i $(DESTSHARED)/$$i; \
|
|
||||||
# fi; \
|
|
||||||
# done
|
|
||||||
|
|
||||||
|
|
||||||
# Build the library containing our extension modules
|
|
||||||
lib.a: $(MODOBJS)
|
|
||||||
-rm -f lib.a
|
|
||||||
ar cr lib.a $(MODOBJS)
|
|
||||||
-$(RANLIB) lib.a
|
|
||||||
|
|
||||||
# This runs makesetup *twice* to use the BASESETUP definition from Setup
|
|
||||||
config.c Makefile: Makefile.pre Setup $(BASESETUP) $(MAKESETUP)
|
|
||||||
$(MAKESETUP) \
|
|
||||||
-m Makefile.pre -c $(CONFIGCIN) Setup -n $(BASESETUP) $(SETUP)
|
|
||||||
$(MAKE) -f Makefile do-it-again
|
|
||||||
|
|
||||||
# Internal target to run makesetup for the second time
|
|
||||||
do-it-again:
|
|
||||||
$(MAKESETUP) \
|
|
||||||
-m Makefile.pre -c $(CONFIGCIN) Setup -n $(BASESETUP) $(SETUP)
|
|
||||||
|
|
||||||
# Make config.o from the config.c created by makesetup
|
|
||||||
config.o: config.c
|
|
||||||
$(CC) $(CFLAGS) -c config.c
|
|
||||||
|
|
||||||
# Setup is copied from Setup.in *only* if it doesn't yet exist
|
|
||||||
Setup:
|
|
||||||
cp Setup.in Setup
|
|
||||||
|
|
||||||
# Make the intermediate Makefile.pre from Makefile.pre.in
|
|
||||||
Makefile.pre: Makefile.pre.in sedscript
|
|
||||||
sed -f sedscript Makefile.pre.in >Makefile.pre
|
|
||||||
|
|
||||||
# Shortcuts to make the sed arguments on one line
|
|
||||||
P=prefix
|
|
||||||
E=exec_prefix
|
|
||||||
H=Generated automatically from Makefile.pre.in by sedscript.
|
|
||||||
L=LINKFORSHARED
|
|
||||||
|
|
||||||
# Make the sed script used to create Makefile.pre from Makefile.pre.in
|
|
||||||
sedscript: $(MAKEFILE)
|
|
||||||
sed -n \
|
|
||||||
-e '1s/.*/1i\\/p' \
|
|
||||||
-e '2s%.*%# $H%p' \
|
|
||||||
-e '/^VERSION=/s/^VERSION=[ ]*\(.*\)/s%@VERSION[@]%\1%/p' \
|
|
||||||
-e '/^CC=/s/^CC=[ ]*\(.*\)/s%@CC[@]%\1%/p' \
|
|
||||||
-e '/^CCC=/s/^CCC=[ ]*\(.*\)/s%#@SET_CCC[@]%CCC=\1%/p' \
|
|
||||||
-e '/^LINKCC=/s/^LINKCC=[ ]*\(.*\)/s%@LINKCC[@]%\1%/p' \
|
|
||||||
-e '/^OPT=/s/^OPT=[ ]*\(.*\)/s%@OPT[@]%\1%/p' \
|
|
||||||
-e '/^LDFLAGS=/s/^LDFLAGS=[ ]*\(.*\)/s%@LDFLAGS[@]%\1%/p' \
|
|
||||||
-e '/^DEFS=/s/^DEFS=[ ]*\(.*\)/s%@DEFS[@]%\1%/p' \
|
|
||||||
-e '/^LIBS=/s/^LIBS=[ ]*\(.*\)/s%@LIBS[@]%\1%/p' \
|
|
||||||
-e '/^LIBM=/s/^LIBM=[ ]*\(.*\)/s%@LIBM[@]%\1%/p' \
|
|
||||||
-e '/^LIBC=/s/^LIBC=[ ]*\(.*\)/s%@LIBC[@]%\1%/p' \
|
|
||||||
-e '/^RANLIB=/s/^RANLIB=[ ]*\(.*\)/s%@RANLIB[@]%\1%/p' \
|
|
||||||
-e '/^MACHDEP=/s/^MACHDEP=[ ]*\(.*\)/s%@MACHDEP[@]%\1%/p' \
|
|
||||||
-e '/^SO=/s/^SO=[ ]*\(.*\)/s%@SO[@]%\1%/p' \
|
|
||||||
-e '/^LDSHARED=/s/^LDSHARED=[ ]*\(.*\)/s%@LDSHARED[@]%\1%/p' \
|
|
||||||
-e '/^CCSHARED=/s/^CCSHARED=[ ]*\(.*\)/s%@CCSHARED[@]%\1%/p' \
|
|
||||||
-e '/^$L=/s/^$L=[ ]*\(.*\)/s%@$L[@]%\1%/p' \
|
|
||||||
-e '/^$P=/s/^$P=\(.*\)/s%^$P=.*%$P=\1%/p' \
|
|
||||||
-e '/^$E=/s/^$E=\(.*\)/s%^$E=.*%$E=\1%/p' \
|
|
||||||
$(MAKEFILE) >sedscript
|
|
||||||
echo "/^#@SET_CCC@/d" >>sedscript
|
|
||||||
echo "/^installdir=/s%=.*%= $(installdir)%" >>sedscript
|
|
||||||
echo "/^exec_installdir=/s%=.*%=$(exec_installdir)%" >>sedscript
|
|
||||||
echo "/^srcdir=/s%=.*%= $(srcdir)%" >>sedscript
|
|
||||||
echo "/^VPATH=/s%=.*%= $(VPATH)%" >>sedscript
|
|
||||||
echo "/^LINKPATH=/s%=.*%= $(LINKPATH)%" >>sedscript
|
|
||||||
echo "/^BASELIB=/s%=.*%= $(BASELIB)%" >>sedscript
|
|
||||||
echo "/^BASESETUP=/s%=.*%= $(BASESETUP)%" >>sedscript
|
|
||||||
|
|
||||||
# Bootstrap target
|
|
||||||
boot: clobber
|
|
||||||
VERSION=`$(PYTHON) -c "import sys; print sys.version[:3]"`; \
|
|
||||||
installdir=`$(PYTHON) -c "import sys; print sys.prefix"`; \
|
|
||||||
exec_installdir=`$(PYTHON) -c "import sys; print sys.exec_prefix"`; \
|
|
||||||
$(MAKE) -f Makefile.pre.in VPATH=$(VPATH) srcdir=$(srcdir) \
|
|
||||||
VERSION=$$VERSION \
|
|
||||||
installdir=$$installdir \
|
|
||||||
exec_installdir=$$exec_installdir \
|
|
||||||
Makefile
|
|
||||||
|
|
||||||
# Handy target to remove intermediate files and backups
|
|
||||||
clean:
|
|
||||||
-rm -f *.o *~
|
|
||||||
|
|
||||||
# Handy target to remove everything that is easily regenerated
|
|
||||||
clobber: clean
|
|
||||||
-rm -f *.a tags TAGS config.c Makefile.pre $(TARGET) sedscript
|
|
||||||
-rm -f *.so *.sl so_locations
|
|
||||||
|
|
||||||
|
|
||||||
# Handy target to remove everything you don't want to distribute
|
|
||||||
distclean: clobber
|
|
||||||
-rm -f Makefile Setup
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
|
||||||
#------------------------------------------------------------------------
|
|
||||||
# Custom rules and dependencies added for wxPython
|
|
||||||
#
|
|
||||||
|
|
||||||
WXP_VERSION=2.1b2
|
|
||||||
|
|
||||||
# WXP_SRCDIR=../wxPython/src
|
|
||||||
|
|
||||||
SWIGFLAGS=-c++ -shadow -python -dnone -I$(WXP_SRCDIR) -D__WXGTK__ $(SEPARATE)
|
|
||||||
|
|
||||||
|
|
||||||
# Implicit rules to run SWIG
|
|
||||||
$(GENCODEDIR)/%.cpp : %.i
|
|
||||||
swig $(SWIGFLAGS) -c -o $@ $<
|
|
||||||
|
|
||||||
$(GENCODEDIR)/%.py : %.i
|
|
||||||
swig $(SWIGFLAGS) -c -o $@ $<
|
|
||||||
$(GENCODEDIR)/%.py : %.i
|
|
||||||
swig $(SWIGFLAGS) -c -o $(GENCODEDIR)/tmp_wrap.cpp $<
|
|
||||||
rm $(GENCODEDIR)/tmp_wrap.cpp
|
|
||||||
|
|
||||||
|
|
||||||
wxInstall : sharedmods $(PYMODULES)
|
|
||||||
if test ! -d $(TARGETDIR) ; then \
|
|
||||||
mkdir $(TARGETDIR) ; else true ; fi
|
|
||||||
if [ "$(SHAREDMODS)" != "" ]; then \
|
|
||||||
chmod 755 $(SHAREDMODS); \
|
|
||||||
cp $(SHAREDMODS) $(TARGETDIR); fi
|
|
||||||
-for i in $(PYMODULES); do \
|
|
||||||
cp $$i $(TARGETDIR); \
|
|
||||||
done
|
|
||||||
if [ "$(TARGETDIR)" != ".." ]; then \
|
|
||||||
python $(LIBDEST)/compileall.py $(TARGETDIR); \
|
|
||||||
python -O $(LIBDEST)/compileall.py $(TARGETDIR); \
|
|
||||||
else \
|
|
||||||
python $(LIBDEST)/compileall.py -l $(TARGETDIR); \
|
|
||||||
python -O $(LIBDEST)/compileall.py -l $(TARGETDIR);\
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@@ -1,51 +0,0 @@
|
|||||||
## This file gives the details of what is needed to build this extension
|
|
||||||
## module so the Makefile can be created.
|
|
||||||
|
|
||||||
## If you have not done "make install" for wxWindows then see Setup.in.linux
|
|
||||||
## for a more verbose version of this file.
|
|
||||||
|
|
||||||
*shared*
|
|
||||||
|
|
||||||
CCC=c++
|
|
||||||
WXWIN=../../..
|
|
||||||
GENCODEDIR=gtk
|
|
||||||
# srcdir=$(GENCODEDIR)
|
|
||||||
WX_CONFIG_CFLAGS=`wx-config --cflags`
|
|
||||||
WX_CONFIG_LIBS=`wx-config --libs`
|
|
||||||
|
|
||||||
|
|
||||||
## Depending on how your Python was built, you may have to set this
|
|
||||||
## value to use the C++ driver to link with instead of the default
|
|
||||||
## C driver. For example:
|
|
||||||
MY_LDSHARED=$(CCC) -shared
|
|
||||||
|
|
||||||
## Same as above, but for statically linking Python and wxPython together,
|
|
||||||
## in other words, if you comment out the *shared* above. If this is the
|
|
||||||
## case then you should ensure that the main() function is Python's, not
|
|
||||||
## wxWindows'. You can rebuild $(WXWIN)/src/gtk/app.cpp with NOMAIN defined
|
|
||||||
## to force this...
|
|
||||||
MY_LINKCC=$(CCC)
|
|
||||||
|
|
||||||
#--------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Below follow settings that may be specific for a wxPython module
|
|
||||||
#
|
|
||||||
#--------------------------------------------------------------------
|
|
||||||
|
|
||||||
## Pick one of these, or set your own. This is where the wxPython module
|
|
||||||
## should be installed. It should be a subdirectory named wxPython.
|
|
||||||
#TARGETDIR=../..
|
|
||||||
TARGETDIR=$(BINLIBDEST)/site-packages/wxPython
|
|
||||||
|
|
||||||
# The location of the wxPython source dir
|
|
||||||
WXP_SRCDIR=../../src
|
|
||||||
|
|
||||||
# These defines are usually best left alone
|
|
||||||
C_DEFINES = -DSWIG_GLOBAL -DWXP_USE_THREAD -DSEPARATE
|
|
||||||
C_FLAGS = -I. -I$(WXP_SRCDIR) $(WX_CONFIG_CFLAGS)
|
|
||||||
C_LIBS = -lwxPyHelpers $(WX_CONFIG_LIBS)
|
|
||||||
|
|
||||||
PYMODULES = $(GENCODEDIR)/sample.py
|
|
||||||
|
|
||||||
samplec $(GENCODEDIR)/sample.cpp mywidget.cpp \
|
|
||||||
$(C_DEFINES) $(C_FLAGS) -Xlinker $(C_LIBS)
|
|
@@ -1,38 +0,0 @@
|
|||||||
|
|
||||||
#----------------------------------------------------------------------
|
|
||||||
|
|
||||||
TARGET = samplec
|
|
||||||
|
|
||||||
OBJECTS = sample.obj mywidget.obj
|
|
||||||
|
|
||||||
PYMODULES = $(TARGETDIR)\sample.py
|
|
||||||
|
|
||||||
SOURCES = $(GENCODEDIR)\sample.cpp mywidget.cpp
|
|
||||||
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
|
||||||
|
|
||||||
!include ..\makeinc.vc
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
|
||||||
|
|
||||||
default: $(TARGETDIR)\$(TARGET).pyd pycfiles
|
|
||||||
|
|
||||||
all: $(TARGET)
|
|
||||||
|
|
||||||
# dependency to automatically generate swig files
|
|
||||||
$(GENCODEDIR)/sample.cpp : sample.i
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
|
||||||
|
|
||||||
$(TARGETDIR)\$(TARGET).pyd : $(DUMMYOBJ) $(WXLIB) $(OBJECTS) # $(TARGET).res
|
|
||||||
$(link) @<<
|
|
||||||
/out:$@ /dll
|
|
||||||
$(LFLAGS) /def:$(TARGET).def /implib:./$(TARGET).lib
|
|
||||||
$(DUMMYOBJ) $(OBJECTS)
|
|
||||||
$(LIBS)
|
|
||||||
<<
|
|
||||||
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
|
||||||
|
|
@@ -1,452 +0,0 @@
|
|||||||
# -*- makefile -*-
|
|
||||||
# Universal Unix Makefile for Python extensions
|
|
||||||
# =============================================
|
|
||||||
|
|
||||||
# Short Instructions
|
|
||||||
# ------------------
|
|
||||||
|
|
||||||
# 1. Build and install Python (1.5 or newer).
|
|
||||||
# 2. "make -f Makefile.pre.in boot"
|
|
||||||
# 3. "make"
|
|
||||||
# You should now have a shared library.
|
|
||||||
|
|
||||||
# Long Instructions
|
|
||||||
# -----------------
|
|
||||||
|
|
||||||
# Build *and install* the basic Python 1.5 distribution. See the
|
|
||||||
# Python README for instructions. (This version of Makefile.pre.in
|
|
||||||
# only withs with Python 1.5, alpha 3 or newer.)
|
|
||||||
|
|
||||||
# Create a file Setup.in for your extension. This file follows the
|
|
||||||
# format of the Modules/Setup.in file; see the instructions there.
|
|
||||||
# For a simple module called "spam" on file "spammodule.c", it can
|
|
||||||
# contain a single line:
|
|
||||||
# spam spammodule.c
|
|
||||||
# You can build as many modules as you want in the same directory --
|
|
||||||
# just have a separate line for each of them in the Setup.in file.
|
|
||||||
|
|
||||||
# If you want to build your extension as a shared library, insert a
|
|
||||||
# line containing just the string
|
|
||||||
# *shared*
|
|
||||||
# at the top of your Setup.in file.
|
|
||||||
|
|
||||||
# Note that the build process copies Setup.in to Setup, and then works
|
|
||||||
# with Setup. It doesn't overwrite Setup when Setup.in is changed, so
|
|
||||||
# while you're in the process of debugging your Setup.in file, you may
|
|
||||||
# want to edit Setup instead, and copy it back to Setup.in later.
|
|
||||||
# (All this is done so you can distribute your extension easily and
|
|
||||||
# someone else can select the modules they actually want to build by
|
|
||||||
# commenting out lines in the Setup file, without editing the
|
|
||||||
# original. Editing Setup is also used to specify nonstandard
|
|
||||||
# locations for include or library files.)
|
|
||||||
|
|
||||||
# Copy this file (Misc/Makefile.pre.in) to the directory containing
|
|
||||||
# your extension.
|
|
||||||
|
|
||||||
# Run "make -f Makefile.pre.in boot". This creates Makefile
|
|
||||||
# (producing Makefile.pre and sedscript as intermediate files) and
|
|
||||||
# config.c, incorporating the values for sys.prefix, sys.exec_prefix
|
|
||||||
# and sys.version from the installed Python binary. For this to work,
|
|
||||||
# the python binary must be on your path. If this fails, try
|
|
||||||
# make -f Makefile.pre.in Makefile VERSION=1.5 installdir=<prefix>
|
|
||||||
# where <prefix> is the prefix used to install Python for installdir
|
|
||||||
# (and possibly similar for exec_installdir=<exec_prefix>).
|
|
||||||
|
|
||||||
# Note: "make boot" implies "make clobber" -- it assumes that when you
|
|
||||||
# bootstrap you may have changed platforms so it removes all previous
|
|
||||||
# output files.
|
|
||||||
|
|
||||||
# If you are building your extension as a shared library (your
|
|
||||||
# Setup.in file starts with *shared*), run "make" or "make sharedmods"
|
|
||||||
# to build the shared library files. If you are building a statically
|
|
||||||
# linked Python binary (the only solution of your platform doesn't
|
|
||||||
# support shared libraries, and sometimes handy if you want to
|
|
||||||
# distribute or install the resulting Python binary), run "make
|
|
||||||
# python".
|
|
||||||
|
|
||||||
# Note: Each time you edit Makefile.pre.in or Setup, you must run
|
|
||||||
# "make Makefile" before running "make".
|
|
||||||
|
|
||||||
# Hint: if you want to use VPATH, you can start in an empty
|
|
||||||
# subdirectory and say (e.g.):
|
|
||||||
# make -f ../Makefile.pre.in boot srcdir=.. VPATH=..
|
|
||||||
|
|
||||||
|
|
||||||
# === Bootstrap variables (edited through "make boot") ===
|
|
||||||
|
|
||||||
# The prefix used by "make inclinstall libainstall" of core python
|
|
||||||
installdir= /usr/local
|
|
||||||
|
|
||||||
# The exec_prefix used by the same
|
|
||||||
exec_installdir=$(installdir)
|
|
||||||
|
|
||||||
# Source directory and VPATH in case you want to use VPATH.
|
|
||||||
# (You will have to edit these two lines yourself -- there is no
|
|
||||||
# automatic support as the Makefile is not generated by
|
|
||||||
# config.status.)
|
|
||||||
srcdir= .
|
|
||||||
VPATH= .
|
|
||||||
|
|
||||||
# === Variables that you may want to customize (rarely) ===
|
|
||||||
|
|
||||||
# (Static) build target
|
|
||||||
TARGET= python
|
|
||||||
|
|
||||||
# Installed python binary (used only by boot target)
|
|
||||||
PYTHON= python
|
|
||||||
|
|
||||||
# Add more -I and -D options here
|
|
||||||
CFLAGS= $(OPT) -I$(INCLUDEPY) -I$(EXECINCLUDEPY) $(DEFS)
|
|
||||||
|
|
||||||
# These two variables can be set in Setup to merge extensions.
|
|
||||||
# See example[23].
|
|
||||||
BASELIB=
|
|
||||||
BASESETUP=
|
|
||||||
|
|
||||||
# === Variables set by makesetup ===
|
|
||||||
|
|
||||||
MODOBJS= _MODOBJS_
|
|
||||||
MODLIBS= _MODLIBS_
|
|
||||||
|
|
||||||
# === Definitions added by makesetup ===
|
|
||||||
|
|
||||||
# === Variables from configure (through sedscript) ===
|
|
||||||
|
|
||||||
VERSION= @VERSION@
|
|
||||||
CC= @CC@
|
|
||||||
LINKCC= @LINKCC@
|
|
||||||
SGI_ABI= @SGI_ABI@
|
|
||||||
OPT= @OPT@
|
|
||||||
LDFLAGS= @LDFLAGS@
|
|
||||||
LDLAST= @LDLAST@
|
|
||||||
DEFS= @DEFS@
|
|
||||||
LIBS= @LIBS@
|
|
||||||
LIBM= @LIBM@
|
|
||||||
LIBC= @LIBC@
|
|
||||||
RANLIB= @RANLIB@
|
|
||||||
MACHDEP= @MACHDEP@
|
|
||||||
SO= @SO@
|
|
||||||
LDSHARED= @LDSHARED@
|
|
||||||
CCSHARED= @CCSHARED@
|
|
||||||
LINKFORSHARED= @LINKFORSHARED@
|
|
||||||
#@SET_CCC@
|
|
||||||
|
|
||||||
# Install prefix for architecture-independent files
|
|
||||||
prefix= /usr/local
|
|
||||||
|
|
||||||
# Install prefix for architecture-dependent files
|
|
||||||
exec_prefix= $(prefix)
|
|
||||||
|
|
||||||
# === Fixed definitions ===
|
|
||||||
|
|
||||||
# Shell used by make (some versions default to the login shell, which is bad)
|
|
||||||
SHELL= /bin/sh
|
|
||||||
|
|
||||||
# Expanded directories
|
|
||||||
BINDIR= $(exec_installdir)/bin
|
|
||||||
LIBDIR= $(exec_prefix)/lib
|
|
||||||
MANDIR= $(installdir)/man
|
|
||||||
INCLUDEDIR= $(installdir)/include
|
|
||||||
SCRIPTDIR= $(prefix)/lib
|
|
||||||
|
|
||||||
# Detailed destination directories
|
|
||||||
BINLIBDEST= $(LIBDIR)/python$(VERSION)
|
|
||||||
LIBDEST= $(SCRIPTDIR)/python$(VERSION)
|
|
||||||
INCLUDEPY= $(INCLUDEDIR)/python$(VERSION)
|
|
||||||
EXECINCLUDEPY= $(exec_installdir)/include/python$(VERSION)
|
|
||||||
LIBP= $(exec_installdir)/lib/python$(VERSION)
|
|
||||||
DESTSHARED= $(BINLIBDEST)/site-packages
|
|
||||||
|
|
||||||
LIBPL= $(LIBP)/config
|
|
||||||
|
|
||||||
PYTHONLIBS= $(LIBPL)/libpython$(VERSION).a
|
|
||||||
|
|
||||||
MAKESETUP= $(LIBPL)/makesetup
|
|
||||||
MAKEFILE= $(LIBPL)/Makefile
|
|
||||||
CONFIGC= $(LIBPL)/config.c
|
|
||||||
CONFIGCIN= $(LIBPL)/config.c.in
|
|
||||||
SETUP= $(LIBPL)/Setup
|
|
||||||
|
|
||||||
SYSLIBS= $(LIBM) $(LIBC)
|
|
||||||
|
|
||||||
ADDOBJS= $(LIBPL)/python.o config.o
|
|
||||||
|
|
||||||
# Portable install script (configure doesn't always guess right)
|
|
||||||
INSTALL= $(LIBPL)/install-sh -c
|
|
||||||
# Shared libraries must be installed with executable mode on some systems;
|
|
||||||
# rather than figuring out exactly which, we always give them executable mode.
|
|
||||||
# Also, making them read-only seems to be a good idea...
|
|
||||||
INSTALL_SHARED= ${INSTALL} -m 555
|
|
||||||
|
|
||||||
#---------------------------------------------------
|
|
||||||
# Possibly change some definintions for C++
|
|
||||||
ifdef MY_LDSHARED
|
|
||||||
LDSHARED=$(MY_LDSHARED)
|
|
||||||
endif
|
|
||||||
ifdef MY_LINKCC
|
|
||||||
LINKCC=$(MY_LINKCC)
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
# === Fixed rules ===
|
|
||||||
|
|
||||||
# Default target. This builds shared libraries only
|
|
||||||
default: $(HELPERLIB) sharedmods
|
|
||||||
|
|
||||||
# Build everything
|
|
||||||
all: static sharedmods
|
|
||||||
|
|
||||||
# Build shared libraries from our extension modules
|
|
||||||
sharedmods: $(SHAREDMODS)
|
|
||||||
|
|
||||||
# Build a static Python binary containing our extension modules
|
|
||||||
static: $(TARGET)
|
|
||||||
$(TARGET): $(ADDOBJS) lib.a $(PYTHONLIBS) Makefile $(BASELIB)
|
|
||||||
$(LINKCC) $(LDFLAGS) $(LINKFORSHARED) \
|
|
||||||
$(ADDOBJS) lib.a $(PYTHONLIBS) \
|
|
||||||
$(LINKPATH) $(BASELIB) $(MODLIBS) $(LIBS) $(SYSLIBS) \
|
|
||||||
-o $(TARGET) $(LDLAST)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
|
||||||
#------------------------------------------------------------------------
|
|
||||||
# This is a default version of the install target for wxPython. It just
|
|
||||||
# redirects to wxInstall below...
|
|
||||||
|
|
||||||
install: wxInstall
|
|
||||||
|
|
||||||
#install: sharedmods
|
|
||||||
# if test ! -d $(DESTSHARED) ; then \
|
|
||||||
# mkdir $(DESTSHARED) ; else true ; fi
|
|
||||||
# -for i in X $(SHAREDMODS); do \
|
|
||||||
# if test $$i != X; \
|
|
||||||
# then $(INSTALL_SHARED) $$i $(DESTSHARED)/$$i; \
|
|
||||||
# fi; \
|
|
||||||
# done
|
|
||||||
|
|
||||||
|
|
||||||
# Build the library containing our extension modules
|
|
||||||
lib.a: $(MODOBJS)
|
|
||||||
-rm -f lib.a
|
|
||||||
ar cr lib.a $(MODOBJS)
|
|
||||||
-$(RANLIB) lib.a
|
|
||||||
|
|
||||||
# This runs makesetup *twice* to use the BASESETUP definition from Setup
|
|
||||||
config.c Makefile: Makefile.pre Setup $(BASESETUP) $(MAKESETUP)
|
|
||||||
$(MAKESETUP) \
|
|
||||||
-m Makefile.pre -c $(CONFIGCIN) Setup -n $(BASESETUP) $(SETUP)
|
|
||||||
$(MAKE) -f Makefile do-it-again
|
|
||||||
|
|
||||||
# Internal target to run makesetup for the second time
|
|
||||||
do-it-again:
|
|
||||||
$(MAKESETUP) \
|
|
||||||
-m Makefile.pre -c $(CONFIGCIN) Setup -n $(BASESETUP) $(SETUP)
|
|
||||||
|
|
||||||
# Make config.o from the config.c created by makesetup
|
|
||||||
config.o: config.c
|
|
||||||
$(CC) $(CFLAGS) -c config.c
|
|
||||||
|
|
||||||
# Setup is copied from Setup.in *only* if it doesn't yet exist
|
|
||||||
Setup:
|
|
||||||
cp Setup.in Setup
|
|
||||||
|
|
||||||
# Make the intermediate Makefile.pre from Makefile.pre.in
|
|
||||||
Makefile.pre: Makefile.pre.in sedscript
|
|
||||||
sed -f sedscript Makefile.pre.in >Makefile.pre
|
|
||||||
|
|
||||||
# Shortcuts to make the sed arguments on one line
|
|
||||||
P=prefix
|
|
||||||
E=exec_prefix
|
|
||||||
H=Generated automatically from Makefile.pre.in by sedscript.
|
|
||||||
L=LINKFORSHARED
|
|
||||||
|
|
||||||
# Make the sed script used to create Makefile.pre from Makefile.pre.in
|
|
||||||
sedscript: $(MAKEFILE)
|
|
||||||
sed -n \
|
|
||||||
-e '1s/.*/1i\\/p' \
|
|
||||||
-e '2s%.*%# $H%p' \
|
|
||||||
-e '/^VERSION=/s/^VERSION=[ ]*\(.*\)/s%@VERSION[@]%\1%/p' \
|
|
||||||
-e '/^CC=/s/^CC=[ ]*\(.*\)/s%@CC[@]%\1%/p' \
|
|
||||||
-e '/^CCC=/s/^CCC=[ ]*\(.*\)/s%#@SET_CCC[@]%CCC=\1%/p' \
|
|
||||||
-e '/^LINKCC=/s/^LINKCC=[ ]*\(.*\)/s%@LINKCC[@]%\1%/p' \
|
|
||||||
-e '/^OPT=/s/^OPT=[ ]*\(.*\)/s%@OPT[@]%\1%/p' \
|
|
||||||
-e '/^LDFLAGS=/s/^LDFLAGS=[ ]*\(.*\)/s%@LDFLAGS[@]%\1%/p' \
|
|
||||||
-e '/^DEFS=/s/^DEFS=[ ]*\(.*\)/s%@DEFS[@]%\1%/p' \
|
|
||||||
-e '/^LIBS=/s/^LIBS=[ ]*\(.*\)/s%@LIBS[@]%\1%/p' \
|
|
||||||
-e '/^LIBM=/s/^LIBM=[ ]*\(.*\)/s%@LIBM[@]%\1%/p' \
|
|
||||||
-e '/^LIBC=/s/^LIBC=[ ]*\(.*\)/s%@LIBC[@]%\1%/p' \
|
|
||||||
-e '/^RANLIB=/s/^RANLIB=[ ]*\(.*\)/s%@RANLIB[@]%\1%/p' \
|
|
||||||
-e '/^MACHDEP=/s/^MACHDEP=[ ]*\(.*\)/s%@MACHDEP[@]%\1%/p' \
|
|
||||||
-e '/^SO=/s/^SO=[ ]*\(.*\)/s%@SO[@]%\1%/p' \
|
|
||||||
-e '/^LDSHARED=/s/^LDSHARED=[ ]*\(.*\)/s%@LDSHARED[@]%\1%/p' \
|
|
||||||
-e '/^CCSHARED=/s/^CCSHARED=[ ]*\(.*\)/s%@CCSHARED[@]%\1%/p' \
|
|
||||||
-e '/^$L=/s/^$L=[ ]*\(.*\)/s%@$L[@]%\1%/p' \
|
|
||||||
-e '/^$P=/s/^$P=\(.*\)/s%^$P=.*%$P=\1%/p' \
|
|
||||||
-e '/^$E=/s/^$E=\(.*\)/s%^$E=.*%$E=\1%/p' \
|
|
||||||
$(MAKEFILE) >sedscript
|
|
||||||
echo "/^#@SET_CCC@/d" >>sedscript
|
|
||||||
echo "/^installdir=/s%=.*%= $(installdir)%" >>sedscript
|
|
||||||
echo "/^exec_installdir=/s%=.*%=$(exec_installdir)%" >>sedscript
|
|
||||||
echo "/^srcdir=/s%=.*%= $(srcdir)%" >>sedscript
|
|
||||||
echo "/^VPATH=/s%=.*%= $(VPATH)%" >>sedscript
|
|
||||||
echo "/^LINKPATH=/s%=.*%= $(LINKPATH)%" >>sedscript
|
|
||||||
echo "/^BASELIB=/s%=.*%= $(BASELIB)%" >>sedscript
|
|
||||||
echo "/^BASESETUP=/s%=.*%= $(BASESETUP)%" >>sedscript
|
|
||||||
|
|
||||||
# Bootstrap target
|
|
||||||
boot: clobber
|
|
||||||
VERSION=`$(PYTHON) -c "import sys; print sys.version[:3]"`; \
|
|
||||||
installdir=`$(PYTHON) -c "import sys; print sys.prefix"`; \
|
|
||||||
exec_installdir=`$(PYTHON) -c "import sys; print sys.exec_prefix"`; \
|
|
||||||
$(MAKE) -f Makefile.pre.in VPATH=$(VPATH) srcdir=$(srcdir) \
|
|
||||||
VERSION=$$VERSION \
|
|
||||||
installdir=$$installdir \
|
|
||||||
exec_installdir=$$exec_installdir \
|
|
||||||
Makefile
|
|
||||||
|
|
||||||
# Handy target to remove intermediate files and backups
|
|
||||||
clean:
|
|
||||||
-rm -f *.o *~
|
|
||||||
|
|
||||||
# Handy target to remove everything that is easily regenerated
|
|
||||||
clobber: clean
|
|
||||||
-rm -f *.a tags TAGS config.c Makefile.pre $(TARGET) sedscript
|
|
||||||
-rm -f *.so *.sl so_locations
|
|
||||||
|
|
||||||
|
|
||||||
# Handy target to remove everything you don't want to distribute
|
|
||||||
distclean: clobber
|
|
||||||
-rm -f Makefile Setup
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
|
||||||
#------------------------------------------------------------------------
|
|
||||||
# Custom rules and dependencies added for wxPython
|
|
||||||
#
|
|
||||||
|
|
||||||
WXP_VERSION=2.1b2
|
|
||||||
|
|
||||||
SWIGFLAGS=-c++ -shadow -python -dnone -D__WXGTK__ $(SEPARATE)
|
|
||||||
|
|
||||||
|
|
||||||
PYMODULES = $(GENCODEDIR)/wx.py $(GENCODEDIR)/events.py \
|
|
||||||
$(GENCODEDIR)/windows.py $(GENCODEDIR)/misc.py \
|
|
||||||
$(GENCODEDIR)/gdi.py $(GENCODEDIR)/mdi.py \
|
|
||||||
$(GENCODEDIR)/controls.py $(GENCODEDIR)/controls2.py \
|
|
||||||
$(GENCODEDIR)/windows2.py $(GENCODEDIR)/cmndlgs.py \
|
|
||||||
$(GENCODEDIR)/stattool.py $(GENCODEDIR)/frames.py \
|
|
||||||
$(GENCODEDIR)/windows3.py __init__.py \
|
|
||||||
$(GENCODEDIR)/utils.py $(GENCODEDIR)/image.py \
|
|
||||||
$(GENCODEDIR)/printfw.py $(GENCODEDIR)/misc2.py \
|
|
||||||
$(GENCODEDIR)/glcanvas.py
|
|
||||||
|
|
||||||
|
|
||||||
# Implicit rules to run SWIG
|
|
||||||
$(GENCODEDIR)/%.cpp : %.i
|
|
||||||
swig $(SWIGFLAGS) -c -o $@ $<
|
|
||||||
|
|
||||||
$(GENCODEDIR)/%.py : %.i
|
|
||||||
swig $(SWIGFLAGS) -c -o $(GENCODEDIR)/tmp_wrap.cpp $<
|
|
||||||
rm $(GENCODEDIR)/tmp_wrap.cpp
|
|
||||||
|
|
||||||
# This one must leave out the -c flag so we define the whole rule
|
|
||||||
#$(GENCODEDIR)/wx.cpp $(GENCODEDIR)/wx.py : wx.i my_typemaps.i _defs.i _extras.py
|
|
||||||
# swig $(SWIGFLAGS) -o $(GENCODEDIR)/wx.cpp wx.i
|
|
||||||
|
|
||||||
|
|
||||||
# define some dependencies
|
|
||||||
$(GENCODEDIR)/wx.cpp $(GENCODEDIR)/wx.py : wx.i my_typemaps.i _defs.i _extras.py
|
|
||||||
$(GENCODEDIR)/windows.cpp $(GENCODEDIR)/windows.py : windows.i my_typemaps.i _defs.i
|
|
||||||
$(GENCODEDIR)/windows2.cpp $(GENCODEDIR)/windows2.py : windows2.i my_typemaps.i _defs.i
|
|
||||||
$(GENCODEDIR)/windows3.cpp $(GENCODEDIR)/windows3.py : windows3.i my_typemaps.i _defs.i
|
|
||||||
$(GENCODEDIR)/events.cpp $(GENCODEDIR)/events.py : events.i my_typemaps.i _defs.i
|
|
||||||
$(GENCODEDIR)/misc.cpp $(GENCODEDIR)/misc.py : misc.i my_typemaps.i _defs.i
|
|
||||||
$(GENCODEDIR)/misc2.cpp $(GENCODEDIR)/misc2.py : misc2.i my_typemaps.i _defs.i
|
|
||||||
$(GENCODEDIR)/gdi.cpp $(GENCODEDIR)/gdi.py : gdi.i my_typemaps.i _defs.i
|
|
||||||
$(GENCODEDIR)/mdi.cpp $(GENCODEDIR)/mdi.py : mdi.i my_typemaps.i _defs.i
|
|
||||||
$(GENCODEDIR)/controls.cpp $(GENCODEDIR)/controls.py : controls.i my_typemaps.i _defs.i
|
|
||||||
$(GENCODEDIR)/controls2.cpp $(GENCODEDIR)/controls2.py : controls2.i my_typemaps.i _defs.i
|
|
||||||
$(GENCODEDIR)/cmndlgs.cpp $(GENCODEDIR)/cmndlgs.py : cmndlgs.i my_typemaps.i _defs.i
|
|
||||||
$(GENCODEDIR)/frames.cpp $(GENCODEDIR)/frames.py : frames.i my_typemaps.i _defs.i
|
|
||||||
$(GENCODEDIR)/stattool.cpp $(GENCODEDIR)/stattool.py : stattool.i my_typemaps.i _defs.i
|
|
||||||
$(GENCODEDIR)/image.cpp $(GENCODEDIR)/image.py : image.i my_typemaps.i _defs.i
|
|
||||||
$(GENCODEDIR)/utils.cpp $(GENCODEDIR)/utils.py : utils.i my_typemaps.i _defs.i
|
|
||||||
$(GENCODEDIR)/printfw.cpp $(GENCODEDIR)/printfw.py : printfw.i my_typemaps.i _defs.i
|
|
||||||
$(GENCODEDIR)/glcanvas.cpp $(GENCODEDIR)/glcanvas.py : glcanvas.i my_typemaps.i _defs.i
|
|
||||||
|
|
||||||
$(GENCODEDIR)/helpers.cpp:
|
|
||||||
ln -s `pwd`/helpers.cpp $@
|
|
||||||
|
|
||||||
$(GENCODEDIR)/libpy.c:
|
|
||||||
ln -s `pwd`/libpy.c $@
|
|
||||||
|
|
||||||
$(GENCODEDIR)/_glcanvas.cpp:
|
|
||||||
-cp $(WXWIN)/utils/glcanvas/$(GENCODEDIR)/glcanvas.cpp $@
|
|
||||||
-cp $(WXWIN)/utils/glcanvas/$(GENCODEDIR)/glcanvas.h ./glcanvas.h
|
|
||||||
|
|
||||||
|
|
||||||
wxInstall : $(HELPERLIB) sharedmods $(PYMODULES)
|
|
||||||
if test ! -d $(TARGETDIR) ; then \
|
|
||||||
mkdir $(TARGETDIR) ; else true ; fi
|
|
||||||
if [ "$(SHAREDMODS)" != "" ]; then \
|
|
||||||
chmod 755 $(SHAREDMODS); \
|
|
||||||
cp $(SHAREDMODS) $(TARGETDIR); fi
|
|
||||||
-for i in $(PYMODULES); do \
|
|
||||||
cp $$i $(TARGETDIR); \
|
|
||||||
done
|
|
||||||
if [ "$(TARGETDIR)" != ".." ]; then \
|
|
||||||
mkdir $(TARGETDIR)/lib; \
|
|
||||||
mkdir $(TARGETDIR)/lib/sizers; \
|
|
||||||
mkdir $(TARGETDIR)/demo; \
|
|
||||||
mkdir $(TARGETDIR)/demo/bitmaps; \
|
|
||||||
cp ../lib/*.py $(TARGETDIR)/lib; \
|
|
||||||
cp ../lib/sizers/*.py $(TARGETDIR)/lib/sizers; \
|
|
||||||
cp ../demo/*.py $(TARGETDIR)/demo; \
|
|
||||||
cp ../lib/*.txt $(TARGETDIR)/lib; \
|
|
||||||
cp ../lib/sizers/*.txt $(TARGETDIR)/lib/sizers; \
|
|
||||||
cp ../demo/*.txt $(TARGETDIR)/demo; \
|
|
||||||
cp ../demo/bitmaps/[a-z]* $(TARGETDIR)/demo/bitmaps; \
|
|
||||||
fi
|
|
||||||
if [ "$(TARGETDIR)" != ".." ]; then \
|
|
||||||
python $(LIBDEST)/compileall.py $(TARGETDIR); \
|
|
||||||
python -O $(LIBDEST)/compileall.py $(TARGETDIR); \
|
|
||||||
else \
|
|
||||||
python $(LIBDEST)/compileall.py -l $(TARGETDIR); \
|
|
||||||
python -O $(LIBDEST)/compileall.py -l $(TARGETDIR);\
|
|
||||||
fi
|
|
||||||
ifdef HELPERLIB
|
|
||||||
cp lib$(WXPYLIB)$(SO) $(WXPYLIBDIR)
|
|
||||||
@echo ---------------------------------------------------------
|
|
||||||
@echo You may have to run ldconfig, or set an environment
|
|
||||||
@echo variable in order for $(WXPYLIBDIR)/lib$(WXPYLIB)$(SO)
|
|
||||||
@echo to be found at runtime. See your man pages for ld.so or
|
|
||||||
@echo equivalent.
|
|
||||||
@echo ---------------------------------------------------------
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifdef HELPERLIB
|
|
||||||
helpers.o: $(srcdir)/helpers.cpp; $(CCC) $(CCSHARED) $(C_DEFINES) $(C_FLAGS) $(CFLAGS) -c $(srcdir)/helpers.cpp
|
|
||||||
libpy.o: $(srcdir)/libpy.c; $(CC) $(CCSHARED) $(C_DEFINES) $(C_FLAGS) $(CFLAGS) -c $(srcdir)/libpy.c
|
|
||||||
|
|
||||||
$(HELPERLIB) : helpers.o libpy.o
|
|
||||||
$(LDSHARED) helpers.o libpy.o $(C_DEFINES) $(C_FLAGS) -Xlinker $(WX_CONFIG_LIBS) -o $@
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
lib : libwxPython.a
|
|
||||||
|
|
||||||
libwxPython.a : lib.a
|
|
||||||
cp $< $@
|
|
||||||
|
|
||||||
dist: tgz rpm
|
|
||||||
|
|
||||||
tgz:
|
|
||||||
cd ../..; wxPython/distrib/maketgz $(WXP_VERSION)
|
|
||||||
|
|
||||||
rpm:
|
|
||||||
cd ../distrib; ./makerpm $(WXP_VERSION)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@@ -1,74 +0,0 @@
|
|||||||
# -*- makefile -*-
|
|
||||||
## This file gives the details of what is needed to build this extension
|
|
||||||
## module so the Makefile can be created.
|
|
||||||
|
|
||||||
## If you have not done "make install" for wxWindows then see Setup.in.linux
|
|
||||||
## for a more verbose version of this file.
|
|
||||||
|
|
||||||
*shared*
|
|
||||||
|
|
||||||
CCC=c++
|
|
||||||
WXWIN=../../..
|
|
||||||
GENCODEDIR=gtk
|
|
||||||
srcdir=$(GENCODEDIR)
|
|
||||||
WX_CONFIG_CFLAGS=`wx-config --cflags`
|
|
||||||
WX_CONFIG_LIBS=`wx-config --libs`
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Depending on how your Python was built, you may have to set this
|
|
||||||
## value to use the C++ driver to link with instead of the default
|
|
||||||
## C driver. For example:
|
|
||||||
MY_LDSHARED=$(CCC) -shared
|
|
||||||
|
|
||||||
## Same as above, but for statically linking Python and wxPython together,
|
|
||||||
## in other words, if you comment out the *shared* above. If this is the
|
|
||||||
## case then you should ensure that the main() function is Python's, not
|
|
||||||
## wxWindows'. You can rebuild $(WXWIN)/src/gtk/app.cpp with NOMAIN defined
|
|
||||||
## to force this...
|
|
||||||
MY_LINKCC=$(CCC)
|
|
||||||
|
|
||||||
|
|
||||||
## Pick one of these, or set your own. This is where the wxPython module
|
|
||||||
## should be installed. It should be a subdirectory named wxPython.
|
|
||||||
#TARGETDIR=..
|
|
||||||
TARGETDIR=$(BINLIBDEST)/site-packages/wxPython
|
|
||||||
|
|
||||||
|
|
||||||
##----------------------------------------------------------------------
|
|
||||||
## To build wxPython as separate extension modules, uncomment and use
|
|
||||||
## these variable definitions and Setup rules.
|
|
||||||
##
|
|
||||||
WXPYLIB = wxPyHelpers
|
|
||||||
WXPYLIBDIR = /usr/local/lib
|
|
||||||
HELPERLIB = lib$(WXPYLIB)$(SO)
|
|
||||||
C_DEFINES = -DSWIG_GLOBAL -DWXP_USE_THREAD -DSEPARATE
|
|
||||||
C_FLAGS = -I. $(WX_CONFIG_CFLAGS)
|
|
||||||
C_LIBS = -L. -l$(WXPYLIB) $(WX_CONFIG_LIBS)
|
|
||||||
|
|
||||||
wxc wx.cpp windows.cpp events.cpp misc.cpp misc2.cpp gdi.cpp \
|
|
||||||
mdi.cpp controls.cpp controls2.cpp windows2.cpp cmndlgs.cpp \
|
|
||||||
frames.cpp stattool.cpp windows3.cpp image.cpp printfw.cpp \
|
|
||||||
$(C_DEFINES) $(C_FLAGS) -Xlinker $(C_LIBS)
|
|
||||||
|
|
||||||
utilsc utils.cpp \
|
|
||||||
$(C_DEFINES) $(C_FLAGS) -Xlinker $(C_LIBS)
|
|
||||||
|
|
||||||
glcanvasc _glcanvas.cpp glcanvas.cpp -DWITH_GLCANVAS -lMesaGL -lMesaGLU \
|
|
||||||
$(C_DEFINES) $(C_FLAGS) -Xlinker $(C_LIBS)
|
|
||||||
|
|
||||||
|
|
||||||
##----------------------------------------------------------------------
|
|
||||||
## To build wxPython as one big extension module, comment out the above
|
|
||||||
## rules and definitions, and then uncomment this single Setup rule.
|
|
||||||
##
|
|
||||||
#wxc helpers.cpp libpy.c libptr.c \
|
|
||||||
# wx.cpp windows.cpp events.cpp misc.cpp misc2.cpp gdi.cpp \
|
|
||||||
# mdi.cpp controls.cpp controls2.cpp windows2.cpp cmndlgs.cpp \
|
|
||||||
# frames.cpp stattool.cpp windows3.cpp image.cpp printfw.cpp \
|
|
||||||
# utils.cpp \
|
|
||||||
# ## comment out the next line to disable wxGLCanvas
|
|
||||||
# _glcanvas.cpp glcanvas.cpp -DWITH_GLCANVAS -lGL -lGLU \
|
|
||||||
# -I. $(WX_CONFIG_CFLAGS) -I/usr/local/lib/glib/include \
|
|
||||||
# -DSWIG_GLOBAL -DWXP_USE_THREAD $(SEPARATE) -Xlinker $(WX_CONFIG_LIBS)
|
|
||||||
|
|
@@ -1,56 +0,0 @@
|
|||||||
# This file gives the details of what is needed to build this extension
|
|
||||||
# module so the Makefile can be created.
|
|
||||||
|
|
||||||
###
|
|
||||||
### This file should be created by configure. Currently it is tweaked by hand.
|
|
||||||
###
|
|
||||||
|
|
||||||
*shared*
|
|
||||||
|
|
||||||
CCC=c++
|
|
||||||
WXWIN=../../..
|
|
||||||
GENCODEDIR=gtk
|
|
||||||
srcdir=$(GENCODEDIR)
|
|
||||||
|
|
||||||
# Depending on how your Python was built, you may have to set this
|
|
||||||
# value to use the C++ driver to link with instead of the default
|
|
||||||
# C driver. For example:
|
|
||||||
MY_LDSHARED=$(CCC) -shared
|
|
||||||
|
|
||||||
# Same as above, but for statically linking Python and wxPython together,
|
|
||||||
# in other words, if you comment out the *shared* above. If this is the
|
|
||||||
# case then you should ensure that the main() function is Python's, not
|
|
||||||
# wxWindows'. You can rebuild $(WXWIN)/src/gtk/app.cpp with NOMAIN defined
|
|
||||||
# to force this...
|
|
||||||
MY_LINKCC=$(CCC)
|
|
||||||
|
|
||||||
|
|
||||||
## Pick one of these, or set your own. This is where the
|
|
||||||
## wxPython module should be installed. It should be a
|
|
||||||
## subdirectory named wxPython.
|
|
||||||
TARGETDIR=..
|
|
||||||
#TARGETDIR=$(BINLIBDEST)/site-packages/wxPython
|
|
||||||
|
|
||||||
SEPARATE=-DSEPARATE
|
|
||||||
|
|
||||||
wxc wx.cpp helpers.cpp windows.cpp events.cpp misc.cpp gdi.cpp \
|
|
||||||
mdi.cpp controls.cpp controls2.cpp windows2.cpp cmndlgs.cpp \
|
|
||||||
frames.cpp stattool.cpp windows3.cpp \
|
|
||||||
# CFLAGS
|
|
||||||
-I. -I$(WXWIN)/include -I/usr/lib/glib/include -I$(WXWIN)/src \
|
|
||||||
-I/usr/X11R6/include -DSWIG_GLOBAL -D__WXGTK__ \
|
|
||||||
-DWXP_WITH_THREAD $(SEPARATE) \
|
|
||||||
#-D__WXDEBUG__ \
|
|
||||||
# LFLAGS
|
|
||||||
-L$(WXWIN)/lib/Linux -L/usr/X11R6/lib \
|
|
||||||
-lwx_gtk2 -lgtk -lgdk -lglib -lXext -lX11
|
|
||||||
|
|
||||||
utilsc utils.cpp \
|
|
||||||
# CFLAGS
|
|
||||||
-I. -I$(WXWIN)/include -I/usr/lib/glib/include -I$(WXWIN)/src \
|
|
||||||
-I/usr/X11R6/include -DSWIG_GLOBAL -D__WXGTK__ \
|
|
||||||
-DWXP_WITH_THREAD $(SEPARATE) \
|
|
||||||
#-D__WXDEBUG__ \
|
|
||||||
# LFLAGS
|
|
||||||
-L$(WXWIN)/lib/Linux -L/usr/X11R6/lib \
|
|
||||||
-lwx_gtk2 -lgtk -lgdk -lglib -lXext -lX11
|
|
@@ -1,45 +0,0 @@
|
|||||||
# This file gives the details of what is needed to build this extension
|
|
||||||
# module so the Makefile can be created.
|
|
||||||
|
|
||||||
###
|
|
||||||
### This file should be created by configure. Currently it is tweaked by hand.
|
|
||||||
###
|
|
||||||
|
|
||||||
#*shared*
|
|
||||||
|
|
||||||
CCC=c++
|
|
||||||
WXWIN=../../..
|
|
||||||
GENCODEDIR=gtk
|
|
||||||
srcdir=$(GENCODEDIR)
|
|
||||||
|
|
||||||
# Depending on how your Python was built, you may have to set this
|
|
||||||
# value to use the C++ driver to link with instead of the default
|
|
||||||
# C driver. For example:
|
|
||||||
#MY_LDSHARED=$(CCC) -shared
|
|
||||||
|
|
||||||
# Same as above, but for statically linking Python and wxPython together,
|
|
||||||
# in other words, if you comment out the *shared* above. If this is the
|
|
||||||
# case then you should ensure that the main() function is Python's, not
|
|
||||||
# wxWindows'. You can rebuild $(WXWIN)/src/gtk/app.cpp with NOMAIN defined
|
|
||||||
# to force this...
|
|
||||||
MY_LINKCC=$(CCC)
|
|
||||||
|
|
||||||
|
|
||||||
## Pick one of these, or set your own. This is where the
|
|
||||||
## wxPython module should be installed. It should be a
|
|
||||||
## subdirectory named wxPython.
|
|
||||||
TARGETDIR=..
|
|
||||||
#TARGETDIR=$(BINLIBDEST)/site-packages/wxPython
|
|
||||||
|
|
||||||
|
|
||||||
wxc wx.cpp helpers.cpp windows.cpp events.cpp misc.cpp gdi.cpp \
|
|
||||||
mdi.cpp controls.cpp controls2.cpp windows2.cpp cmndlgs.cpp \
|
|
||||||
frames.cpp stattool.cpp utils.cpp windows3.cpp \
|
|
||||||
# CFLAGS
|
|
||||||
-I. -I$(WXWIN)/include -I/usr/local/lib/glib/include -I$(WXWIN)/src \
|
|
||||||
-I/usr/X/include -DSWIG_GLOBAL -D__WXGTK__ \
|
|
||||||
#-D__WXDEBUG__ \
|
|
||||||
# LFLAGS
|
|
||||||
-L$(WXWIN)/lib/solaris2.6 -L/usr/X/lib \
|
|
||||||
-L/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1 \
|
|
||||||
-lwx_gtk2 -lgtk -lgdk -lglib -lXext -lX11 -lstdc++ -lgcc
|
|
@@ -1,354 +0,0 @@
|
|||||||
# -*- makefile -*-
|
|
||||||
#----------------------------------------------------------------------------
|
|
||||||
# Name: makefile.nt
|
|
||||||
# Purpose: Win32, VC++ 5/6 makefile for wxPython
|
|
||||||
#
|
|
||||||
# Author: Robin Dunn
|
|
||||||
#
|
|
||||||
# Created: 3/27/97
|
|
||||||
# RCS-ID: $Id$
|
|
||||||
# Copyright: (c) 1998 by Total Control Software
|
|
||||||
# Licence: wxWindows license
|
|
||||||
#----------------------------------------------------------------------------
|
|
||||||
VERSION=2.1b3
|
|
||||||
|
|
||||||
# Set WXDIR to the root wxWindows directory for your system
|
|
||||||
WXDIR = $(WXWIN)
|
|
||||||
|
|
||||||
# Set this to the root of the Python installation
|
|
||||||
PYTHONDIR=e:\Tools\Python15
|
|
||||||
|
|
||||||
# Set this to 1 for a non-debug, optimised compile
|
|
||||||
FINAL=0
|
|
||||||
|
|
||||||
# Set this to where you want the stuff installed at. It should
|
|
||||||
# be a directory contained in a PYTHONPATH directory, and should be
|
|
||||||
# named wxPython
|
|
||||||
TARGETDIR=..
|
|
||||||
|
|
||||||
# Set this to 1 for make to pre-compile the Python modules, 0 to
|
|
||||||
# just copy the sources and let Python compile them the first
|
|
||||||
# time they are imported.
|
|
||||||
COMPILEPY=0
|
|
||||||
|
|
||||||
# If your wxWindows is built as a DLL, set this to 1. Using 0 or unset
|
|
||||||
# means that wxWindows will be staticaly linked with wxPython.
|
|
||||||
WXUSINGDLL=1
|
|
||||||
|
|
||||||
# If you want to compile in code to aquire/release the Python
|
|
||||||
# Interpreter Lock at the appropriate places
|
|
||||||
WXP_USE_THREAD=1
|
|
||||||
|
|
||||||
|
|
||||||
# Set this if you want to build the wxGLCanvas
|
|
||||||
WITH_GLCANVAS=1
|
|
||||||
|
|
||||||
# (experimental)
|
|
||||||
SEPARATE=1
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
|
||||||
|
|
||||||
!if "$(WXP_USE_THREAD)" == "1"
|
|
||||||
THREAD=-DWXP_USE_THREAD=1
|
|
||||||
!endif
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
|
||||||
|
|
||||||
NOPCH=1
|
|
||||||
THISDIR=$(WXDIR)\utils\wxPython
|
|
||||||
|
|
||||||
|
|
||||||
EXTRALIBS=$(PYTHONDIR)\libs\python15.lib $(GLLIBS)
|
|
||||||
#EXTRALIBS=$(PYTHONDIR)\PCbuild\python15_d.lib -D_DEBUG
|
|
||||||
EXTRAINC=-I$(PYTHONDIR)\include -I. -I$(WXDIR)\utils\glcanvas\win
|
|
||||||
EXTRAFLAGS=/Fpwxp.pch /YXhelpers.h -DSWIG_GLOBAL -DHAVE_CONFIG_H $(THREAD)
|
|
||||||
OVERRIDEFLAGS=/GX- $(OTHERCFLAGS)
|
|
||||||
|
|
||||||
|
|
||||||
!if "$(WITH_GLCANVAS)" == "1"
|
|
||||||
GLLIBS=$(WXDIR)\lib\glcanvas.lib glu32.lib opengl32.lib
|
|
||||||
OTHERSWIGFLAGS=-DWITH_GLCANVAS
|
|
||||||
OTHERCFLAGS=-DWITH_GLCANVAS
|
|
||||||
!endif
|
|
||||||
|
|
||||||
SWIGFLAGS=-c++ -shadow -python -dnone -D__WXMSW__ $(OTHERSWIGFLAGS)
|
|
||||||
GENCODEDIR=msw
|
|
||||||
|
|
||||||
|
|
||||||
!include $(WXDIR)\src\makevc.env
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
|
||||||
|
|
||||||
TARGET = wxc
|
|
||||||
|
|
||||||
OBJECTS = helpers.obj libpy.obj \
|
|
||||||
wx.obj windows.obj events.obj \
|
|
||||||
misc.obj gdi.obj mdi.obj controls.obj \
|
|
||||||
controls2.obj windows2.obj cmndlgs.obj stattool.obj \
|
|
||||||
frames.obj windows3.obj image.obj printfw.obj \
|
|
||||||
misc2.obj \
|
|
||||||
!if "$(SEPARATE)" == "0"
|
|
||||||
utils.obj \
|
|
||||||
!if "$(WITH_GLCANVAS)" == "1"
|
|
||||||
glcanvas.obj
|
|
||||||
!endif
|
|
||||||
!else
|
|
||||||
|
|
||||||
OTHERCFLAGS=$(OTHERCFLAGS) -DSEPARATE=1
|
|
||||||
OTHERSWIGFLAGS=$(OTHERSWIGFLAGS) -DSEPARATE
|
|
||||||
TARGET2 = utilsc
|
|
||||||
OBJECTS2 = utils.obj
|
|
||||||
target2=$(TARGETDIR)\$(TARGET2).pyd
|
|
||||||
|
|
||||||
TARGET3 = glcanvasc
|
|
||||||
OBJECTS3 = glcanvas.obj
|
|
||||||
target3=$(TARGETDIR)\$(TARGET3).pyd
|
|
||||||
|
|
||||||
#TARGET4 = oglcc
|
|
||||||
#OBJECTS4 = ogl.obj
|
|
||||||
#target4=$(TARGETDIR)\$(TARGET4).pyd
|
|
||||||
!endif
|
|
||||||
|
|
||||||
PYMODULES = $(TARGETDIR)\wx.py $(TARGETDIR)\events.py \
|
|
||||||
$(TARGETDIR)\windows.py $(TARGETDIR)\misc.py \
|
|
||||||
$(TARGETDIR)\gdi.py $(TARGETDIR)\mdi.py \
|
|
||||||
$(TARGETDIR)\controls.py $(TARGETDIR)\controls2.py \
|
|
||||||
$(TARGETDIR)\windows2.py $(TARGETDIR)\cmndlgs.py \
|
|
||||||
$(TARGETDIR)\stattool.py $(TARGETDIR)\frames.py \
|
|
||||||
$(TARGETDIR)\windows3.py $(TARGETDIR)\__init__.py \
|
|
||||||
$(TARGETDIR)\utils.py $(TARGETDIR)\image.py \
|
|
||||||
$(TARGETDIR)\printfw.py $(TARGETDIR)\misc2.py \
|
|
||||||
!if "$(WITH_GLCANVAS)" == "1"
|
|
||||||
$(TARGETDIR)\glcanvas.py
|
|
||||||
!endif
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
|
||||||
|
|
||||||
!if "$(FINAL)" == "0"
|
|
||||||
DEBUGLFLAGS = /DEBUG /INCREMENTAL:YES
|
|
||||||
!else
|
|
||||||
DEBUGLFLAGS = /INCREMENTAL:NO
|
|
||||||
!endif
|
|
||||||
|
|
||||||
LFLAGS= $(DEBUGLFLAGS) /DLL /subsystem:windows,3.50 /machine:I386 /nologo
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
|
||||||
|
|
||||||
default: $(TARGETDIR)\$(TARGET).pyd $(target2) $(target3) pycfiles
|
|
||||||
|
|
||||||
all: wx $(TARGET) $(TARGET2) $(TARGET3)
|
|
||||||
|
|
||||||
wx:
|
|
||||||
cd $(WXDIR)\src\msw
|
|
||||||
nmake -f makefile.nt FINAL=$(FINAL)
|
|
||||||
cd $(THISDIR)
|
|
||||||
|
|
||||||
wxclean:
|
|
||||||
cd $(WXDIR)\src\msw
|
|
||||||
nmake -f makefile.nt clean
|
|
||||||
cd $(THISDIR)
|
|
||||||
|
|
||||||
|
|
||||||
pycfiles : $(PYMODULES)
|
|
||||||
!if "$(COMPILEPY)" == "1"
|
|
||||||
$(PYTHONDIR)\python $(PYTHONDIR)\Lib\compileall.py -l $(TARGETDIR)
|
|
||||||
$(PYTHONDIR)\python -O $(PYTHONDIR)\Lib\compileall.py -l $(TARGETDIR)
|
|
||||||
!endif
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
|
||||||
|
|
||||||
$(TARGETDIR)\$(TARGET).pyd : $(DUMMYOBJ) $(WXLIB) $(OBJECTS) $(TARGET).res
|
|
||||||
$(link) @<<
|
|
||||||
/out:$@ /dll
|
|
||||||
$(LFLAGS) /def:$(TARGET).def /implib:./$(TARGET).lib
|
|
||||||
$(DUMMYOBJ) $(OBJECTS) $(TARGET).res
|
|
||||||
$(LIBS)
|
|
||||||
<<
|
|
||||||
|
|
||||||
$(TARGETDIR)\$(TARGET2).pyd : $(DUMMYOBJ) $(WXLIB) $(OBJECTS2)
|
|
||||||
$(link) @<<
|
|
||||||
/out:$@ /dll
|
|
||||||
$(LFLAGS) /def:$(TARGET2).def /implib:./$(TARGET2).lib
|
|
||||||
$(DUMMYOBJ) $(OBJECTS2)
|
|
||||||
$(LIBS) wxc.lib
|
|
||||||
<<
|
|
||||||
|
|
||||||
$(TARGETDIR)\$(TARGET3).pyd : $(DUMMYOBJ) $(WXLIB) $(OBJECTS3)
|
|
||||||
$(link) @<<
|
|
||||||
/out:$@ /dll
|
|
||||||
$(LFLAGS) /def:$(TARGET3).def /implib:./$(TARGET3).lib
|
|
||||||
$(DUMMYOBJ) $(OBJECTS3)
|
|
||||||
$(LIBS) $(WXDIR)\lib\glcanvas.lib glu32.lib opengl32.lib wxc.lib
|
|
||||||
<<
|
|
||||||
|
|
||||||
|
|
||||||
#$(TARGETDIR)\$(TARGET4).pyd : $(DUMMYOBJ) $(WXLIB) $(OBJECTS4)
|
|
||||||
# $(link) @<<
|
|
||||||
#/out:$@ /dll
|
|
||||||
#$(LFLAGS) /def:$(TARGET4).def /implib:./$(TARGET4).lib
|
|
||||||
#$(DUMMYOBJ) $(OBJECTS4)
|
|
||||||
#$(LIBS) wxc.lib $(WXDIR)\lib\ogl$(LIBEXT).lib
|
|
||||||
#<<
|
|
||||||
|
|
||||||
|
|
||||||
$(TARGET).res : $(TARGET).rc $(WXDIR)\include\wx\msw\wx.rc
|
|
||||||
$(rc) -r /i$(WXDIR)\include -fo$@ $(TARGET).rc
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# implicit rule for compiling .cpp and .c files
|
|
||||||
{}.cpp{}.obj:
|
|
||||||
$(cc) @<<
|
|
||||||
$(CPPFLAGS) /c /Tp $<
|
|
||||||
<<
|
|
||||||
|
|
||||||
{$(GENCODEDIR)}.cpp{}.obj:
|
|
||||||
$(cc) @<<
|
|
||||||
$(CPPFLAGS) /c /Tp $<
|
|
||||||
<<
|
|
||||||
|
|
||||||
{}.c{}.obj:
|
|
||||||
$(cc) @<<
|
|
||||||
$(CPPFLAGS) /c $<
|
|
||||||
<<
|
|
||||||
|
|
||||||
|
|
||||||
clean:
|
|
||||||
-erase *.obj
|
|
||||||
-erase *.exe
|
|
||||||
-erase *.res
|
|
||||||
-erase *.map
|
|
||||||
-erase *.sbr
|
|
||||||
-erase *.pdb
|
|
||||||
-erase *.pch
|
|
||||||
-erase $(TARGET).exp
|
|
||||||
-erase $(TARGET).lib
|
|
||||||
-erase $(TARGETDIR)\$(TARGET).*
|
|
||||||
!if "$(SEPARATE)" != "0"
|
|
||||||
-erase $(TARGET2).exp
|
|
||||||
-erase $(TARGET2).lib
|
|
||||||
-erase $(TARGETDIR)\$(TARGET2).*
|
|
||||||
-erase $(TARGET3).exp
|
|
||||||
-erase $(TARGET3).lib
|
|
||||||
-erase $(TARGETDIR)\$(TARGET3).*
|
|
||||||
# -erase $(TARGET4).exp
|
|
||||||
# -erase $(TARGET4).lib
|
|
||||||
# -erase $(TARGETDIR)\$(TARGET4).*
|
|
||||||
!endif
|
|
||||||
-erase $(TARGETDIR)\$(TARGET).pyd
|
|
||||||
-erase $(TARGETDIR)\*.py
|
|
||||||
-erase $(TARGETDIR)\*.pyc
|
|
||||||
-erase $(TARGETDIR)\*.pyo
|
|
||||||
|
|
||||||
|
|
||||||
showflags:
|
|
||||||
@echo $(CPPFLAGS)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
|
||||||
|
|
||||||
.SUFFIXES : .i .py
|
|
||||||
|
|
||||||
# Implicit rules to run SWIG
|
|
||||||
{}.i{$(GENCODEDIR)}.cpp:
|
|
||||||
swig $(SWIGFLAGS) -c -o $@ $<
|
|
||||||
|
|
||||||
{}.i{$(GENCODEDIR)}.py:
|
|
||||||
swig $(SWIGFLAGS) -c -o $@ $<
|
|
||||||
|
|
||||||
|
|
||||||
{$(GENCODEDIR)}.py{$(TARGETDIR)}.py:
|
|
||||||
copy $< $@
|
|
||||||
|
|
||||||
{}.py{$(TARGETDIR)}.py:
|
|
||||||
copy $< $@
|
|
||||||
|
|
||||||
#{}.py{$(TARGETDIR)}.$(PYEXT):
|
|
||||||
# $(PYTHON) -c "import py_compile; py_compile.compile('$<', '$@')"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Define some dependencies. These MUST use forward slashes so SWIG
|
|
||||||
# will write the shadow file to the right directory.
|
|
||||||
$(GENCODEDIR)/wx.cpp $(GENCODEDIR)/wx.py : wx.i my_typemaps.i _defs.i
|
|
||||||
$(GENCODEDIR)/windows.cpp $(GENCODEDIR)/windows.py : windows.i my_typemaps.i _defs.i
|
|
||||||
$(GENCODEDIR)/windows2.cpp $(GENCODEDIR)/windows2.py : windows2.i my_typemaps.i _defs.i
|
|
||||||
$(GENCODEDIR)/windows3.cpp $(GENCODEDIR)/windows3.py : windows3.i my_typemaps.i _defs.i
|
|
||||||
$(GENCODEDIR)/events.cpp $(GENCODEDIR)/events.py : events.i my_typemaps.i _defs.i
|
|
||||||
$(GENCODEDIR)/misc.cpp $(GENCODEDIR)/misc.py : misc.i my_typemaps.i _defs.i
|
|
||||||
$(GENCODEDIR)/misc2.cpp $(GENCODEDIR)/misc2.py : misc2.i my_typemaps.i _defs.i
|
|
||||||
$(GENCODEDIR)/gdi.cpp $(GENCODEDIR)/gdi.py : gdi.i my_typemaps.i _defs.i
|
|
||||||
$(GENCODEDIR)/mdi.cpp $(GENCODEDIR)/mdi.py : mdi.i my_typemaps.i _defs.i
|
|
||||||
$(GENCODEDIR)/controls.cpp $(GENCODEDIR)/controls.py : controls.i my_typemaps.i _defs.i
|
|
||||||
$(GENCODEDIR)/controls2.cpp $(GENCODEDIR)/controls2.py : controls2.i my_typemaps.i _defs.i
|
|
||||||
$(GENCODEDIR)/cmndlgs.cpp $(GENCODEDIR)/cmndlgs.py : cmndlgs.i my_typemaps.i _defs.i
|
|
||||||
$(GENCODEDIR)/stattool.cpp $(GENCODEDIR)/stattool.py : stattool.i my_typemaps.i _defs.i
|
|
||||||
$(GENCODEDIR)/frames.cpp $(GENCODEDIR)/frames.py : frames.i my_typemaps.i _defs.i
|
|
||||||
$(GENCODEDIR)/image.cpp $(GENCODEDIR)/image.py : image.i my_typemaps.i _defs.i
|
|
||||||
$(GENCODEDIR)/printfw.cpp $(GENCODEDIR)/printfw.py : printfw.i my_typemaps.i _defs.i
|
|
||||||
|
|
||||||
$(GENCODEDIR)/utils.cpp $(GENCODEDIR)/utils.py : utils.i my_typemaps.i _defs.i
|
|
||||||
$(GENCODEDIR)/glcanvas.cpp $(GENCODEDIR)/glcanvas.py : glcanvas.i my_typemaps.i _defs.i
|
|
||||||
#$(GENCODEDIR)/ogl.cpp $(GENCODEDIR)/ogl.py : ogl.i my_typemaps.i _defs.i
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$(TARGETDIR)\wx.py : $(GENCODEDIR)\wx.py
|
|
||||||
$(TARGETDIR)\windows.py : $(GENCODEDIR)\windows.py
|
|
||||||
$(TARGETDIR)\windows2.py : $(GENCODEDIR)\windows2.py
|
|
||||||
$(TARGETDIR)\windows3.py : $(GENCODEDIR)\windows3.py
|
|
||||||
$(TARGETDIR)\events.py : $(GENCODEDIR)\events.py
|
|
||||||
$(TARGETDIR)\misc.py : $(GENCODEDIR)\misc.py
|
|
||||||
$(TARGETDIR)\misc2.py : $(GENCODEDIR)\misc2.py
|
|
||||||
$(TARGETDIR)\gdi.py : $(GENCODEDIR)\gdi.py
|
|
||||||
$(TARGETDIR)\mdi.py : $(GENCODEDIR)\mdi.py
|
|
||||||
$(TARGETDIR)\controls.py : $(GENCODEDIR)\controls.py
|
|
||||||
$(TARGETDIR)\controls2.py : $(GENCODEDIR)\controls2.py
|
|
||||||
$(TARGETDIR)\cmndlgs.py : $(GENCODEDIR)\cmndlgs.py
|
|
||||||
$(TARGETDIR)\frames.py : $(GENCODEDIR)\frames.py
|
|
||||||
$(TARGETDIR)\stattool.py : $(GENCODEDIR)\stattool.py
|
|
||||||
$(TARGETDIR)\__init__.py : __init__.py
|
|
||||||
$(TARGETDIR)\utils.py : $(GENCODEDIR)\utils.py
|
|
||||||
$(TARGETDIR)\image.py : $(GENCODEDIR)\image.py
|
|
||||||
$(TARGETDIR)\printfw.py : $(GENCODEDIR)\printfw.py
|
|
||||||
#$(TARGETDIR)\ogl.py : $(GENCODEDIR)\ogl.py
|
|
||||||
|
|
||||||
!if "$(WITH_GLCANVAS)" == "1"
|
|
||||||
$(TARGETDIR)\glcanvas.py : $(GENCODEDIR)\glcanvas.py
|
|
||||||
!endif
|
|
||||||
|
|
||||||
|
|
||||||
SOURCES = $(GENCODEDIR)/wx.cpp $(GENCODEDIR)/wx.py \
|
|
||||||
$(GENCODEDIR)/windows.cpp $(GENCODEDIR)/windows.py \
|
|
||||||
$(GENCODEDIR)/windows2.cpp $(GENCODEDIR)/windows2.py \
|
|
||||||
$(GENCODEDIR)/windows3.cpp $(GENCODEDIR)/windows3.py \
|
|
||||||
$(GENCODEDIR)/events.cpp $(GENCODEDIR)/events.py \
|
|
||||||
$(GENCODEDIR)/misc.cpp $(GENCODEDIR)/misc.py \
|
|
||||||
$(GENCODEDIR)/misc2.cpp $(GENCODEDIR)/misc2.py \
|
|
||||||
$(GENCODEDIR)/gdi.cpp $(GENCODEDIR)/gdi.py \
|
|
||||||
$(GENCODEDIR)/mdi.cpp $(GENCODEDIR)/mdi.py \
|
|
||||||
$(GENCODEDIR)/controls.cpp $(GENCODEDIR)/controls.py \
|
|
||||||
$(GENCODEDIR)/controls2.cpp $(GENCODEDIR)/controls2.py\
|
|
||||||
$(GENCODEDIR)/cmndlgs.cpp $(GENCODEDIR)/cmndlgs.py \
|
|
||||||
$(GENCODEDIR)/stattool.cpp $(GENCODEDIR)/stattool.py \
|
|
||||||
$(GENCODEDIR)/frames.cpp $(GENCODEDIR)/frames.py \
|
|
||||||
$(GENCODEDIR)/utils.cpp $(GENCODEDIR)/utils.py \
|
|
||||||
$(GENCODEDIR)/image.cpp $(GENCODEDIR)/image.py \
|
|
||||||
$(GENCODEDIR)/printfw.cpp $(GENCODEDIR)/printfw.py \
|
|
||||||
!if "$(WITH_GLCANVAS)" == "1"
|
|
||||||
$(GENCODEDIR)/glcanvas.cpp $(GENCODEDIR)/glcanvas.py \
|
|
||||||
!endif
|
|
||||||
|
|
||||||
|
|
||||||
sources : $(SOURCES)
|
|
||||||
|
|
||||||
|
|
||||||
dist:
|
|
||||||
cd ..\..
|
|
||||||
wxPython\distrib\zipit.bat $(VERSION)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user