summaryrefslogtreecommitdiff
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-04-25 21:23:26 +0200
committerAntoine Pitrou <solipsis@pitrou.net>2011-04-25 21:23:26 +0200
commiteec60603a89eabf8945a0928b5b105f6e923d1ea (patch)
treef352568f03f9012e1225289033d0782e60677749 /Makefile.pre.in
parentf645451d78f046c4df47ed420f7c38948f81eeb0 (diff)
parent72562d065e51a62023f585037e6d5eb4ccb71784 (diff)
downloadcpython-git-eec60603a89eabf8945a0928b5b105f6e923d1ea.tar.gz
Issue #10914: Add a minimal embedding test to test_capi.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 6a206c2afd..7912368ff1 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -394,7 +394,7 @@ LIBRARY_OBJS= \
# Default target
all: build_all
-build_all: $(BUILDPYTHON) oldsharedmods sharedmods gdbhooks
+build_all: $(BUILDPYTHON) oldsharedmods sharedmods gdbhooks Modules/_testembed
# Compile a binary with gcc profile guided optimization.
profile-opt:
@@ -539,6 +539,9 @@ Modules/Setup: $(srcdir)/Modules/Setup.dist
echo "-----------------------------------------------"; \
fi
+Modules/_testembed: Modules/_testembed.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY)
+ $(LINKCC) $(PY_LDFLAGS) $(LINKFORSHARED) -o $@ Modules/_testembed.o $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
+
############################################################################
# Special rules for object files