new build structure

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@606 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
1998-08-19 00:10:57 +00:00
parent 70551f4702
commit 9d358552fc
2 changed files with 21 additions and 12 deletions

View File

@@ -236,11 +236,11 @@ config.o: config.c
# Setup is copied from Setup.in *only* if it doesn't yet exist
Setup:
cp $(srcdir)/Setup.in Setup
cp Setup.in Setup
# Make the intermediate Makefile.pre from Makefile.pre.in
Makefile.pre: Makefile.pre.in sedscript
sed -f sedscript $(srcdir)/Makefile.pre.in >Makefile.pre
sed -f sedscript Makefile.pre.in >Makefile.pre
# Shortcuts to make the sed arguments on one line
P=prefix
@@ -286,7 +286,7 @@ 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 $(srcdir)/Makefile.pre.in VPATH=$(VPATH) srcdir=$(srcdir) \
$(MAKE) -f Makefile.pre.in VPATH=$(VPATH) srcdir=$(srcdir) \
VERSION=$$VERSION \
installdir=$$installdir \
exec_installdir=$$exec_installdir \
@@ -314,6 +314,10 @@ distclean: clobber
# Custom rules and dependencies added for wxPython
#
ifdef MY_LDSHARED
LDSHARED=$(MY_LDSHARED)
endif
SWIGFLAGS=-c++ -shadow -python -dnone -D__WXGTK__
@@ -328,17 +332,14 @@ PYMODULES = $(GENCODEDIR)/wxp.py $(GENCODEDIR)/events.py \
# Implicit rules to run SWIG
$(GENCODEDIR)/%.cpp : %.i
swig $(SWIGFLAGS) -c -o $@ $<
move $*.py $(GENCODEDIR)
$(GENCODEDIR)/%.py : %.i
swig $(SWIGFLAGS) -c -o $@ $<
move $*.py $(GENCODEDIR)
# This one must leave out the -c flag so we define the whole rule
$(GENCODEDIR)/wxp.cpp $(GENCODEDIR)/wxp.py : wxp.i my_typemaps.i _defs.i _extras.py
swig $(SWIGFLAGS) -o $(GENCODEDIR)/wxp.cpp wxp.i
move wxp.py $(GENCODEDIR)
# define some dependencies
@@ -352,16 +353,17 @@ $(GENCODEDIR)/controls.cpp $(GENCODEDIR)/controls.py : controls.i my_typemap
$(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)/helpers.cpp:
ln -s `pwd`/helpers.cpp $@
wxInstall : sharedmods $(PYMODULES)
if test ! -d $(TARGETDIR) ; then \
mkdir $(TARGETDIR) ; else true ; fi
-for i in $(SHAREDMODS); do \
$(INSTALL_SHARED) $$i $(TARGETDIR)/$$i; \
done
-chmod 755 $(SHAREDMODS); \
cp $(SHAREDMODS) $(TARGETDIR);
-for i in $(PYMODULES); do \
$(INSTALL) $$i $(TARGETDIR)/$$i; \
cp $$i $(TARGETDIR); \
done
python $(LIBDEST)/compileall.py -l $(TARGETDIR)
python -O $(LIBDEST)/compileall.py -l $(TARGETDIR)

View File

@@ -1,4 +1,4 @@
# This file gives the details of what is needed to uild this extension
# This file gives the details of what is needed to build this extension
# module so the Makefile can be created.
*shared*
@@ -6,6 +6,13 @@
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. Fo rexample:
MY_LDSHARED=$(CCC) -shared
## Pick one of these, or set your own
#TARGETDIR=$(BINLIBDEST)/site-packages/wxPython
@@ -13,7 +20,7 @@ TARGETDIR=..
wxpc wxp.cpp helpers.cpp windows.cpp events.cpp misc.cpp gdi.cpp \
mdi.cpp controls.cpp controls2.cpp windows2.cpp cmndlgs.cpp \
-I$(WXWIN)/include -I/usr/lib/glib/include -I$(WXWIN)/src \
-I. -I$(WXWIN)/include -I/usr/lib/glib/include -I$(WXWIN)/src \
# -D__WXDEBUG__ -ldmalloc \
-DSWIG_GLOBAL -D__WXGTK__ -L$(WXWIN)/lib/Linux -lwx_gtk \
-L/usr/X11R6/lib -lgtk -lgdk -lglib -lXext -lX11