Commit 4e083798 authored by Guido van Rossum's avatar Guido van Rossum

Patch and new file by Geoff Furnish for C++ compilation.

parent 95012193
...@@ -17,7 +17,7 @@ VERSION= @VERSION@ ...@@ -17,7 +17,7 @@ VERSION= @VERSION@
srcdir= @srcdir@ srcdir= @srcdir@
VPATH= @srcdir@ VPATH= @srcdir@
@SET_CCC@ @SET_CXX@
CC= @CC@ CC= @CC@
RANLIB= @RANLIB@ RANLIB= @RANLIB@
AR= @AR@ AR= @AR@
...@@ -95,7 +95,8 @@ MAKESETUP= $(srcdir)/makesetup ...@@ -95,7 +95,8 @@ MAKESETUP= $(srcdir)/makesetup
FIXOBJS= config.o getpath.o main.o getbuildinfo.o FIXOBJS= config.o getpath.o main.o getbuildinfo.o
OBJS= $(MODOBJS) $(FIXOBJS) OBJS= $(MODOBJS) $(FIXOBJS)
MAINOBJ= python.o #MAINOBJ= python.o
MAINOBJ= @MAINOBJ@
SYSLIBS= $(LIBM) $(LIBC) SYSLIBS= $(LIBM) $(LIBC)
...@@ -243,4 +244,7 @@ $(DESTSHARED): ...@@ -243,4 +244,7 @@ $(DESTSHARED):
fi; \ fi; \
done done
ccpython.o: ccpython.cc
$(CXX) $(CFLAGS) -c $*.cc
# Stuff is appended here by makesetup and make depend # Stuff is appended here by makesetup and make depend
/* Minimal main program -- everything is loaded from the library */
#include "Python.h"
extern "C"
DL_EXPORT(int) Py_Main( int argc, char *argv[] );
int main( int argc, char *argv[] )
{
return Py_Main(argc, argv);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment