mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
Add targets to make building loop' and
import' easier. Useful for
debugging memory leaks and the like.
This commit is contained in:
parent
30dbd1429a
commit
e98626d93f
1 changed files with 5 additions and 2 deletions
|
@ -28,13 +28,16 @@ MODLIBS=
|
||||||
ALLLIBS= $(LIBPYTHON) $(MODLIBS) $(LIBS) $(SYSLIBS)
|
ALLLIBS= $(LIBPYTHON) $(MODLIBS) $(LIBS) $(SYSLIBS)
|
||||||
|
|
||||||
# Build the demo application
|
# Build the demo application
|
||||||
all: demo
|
all: demo loop import
|
||||||
demo: demo.o
|
demo: demo.o
|
||||||
$(CC) $(LDFLAGS) demo.o $(ALLLIBS) -o demo
|
$(CC) $(LDFLAGS) demo.o $(ALLLIBS) -o demo
|
||||||
|
|
||||||
loop: loop.o
|
loop: loop.o
|
||||||
$(CC) $(LDFLAGS) loop.o $(ALLLIBS) -o loop
|
$(CC) $(LDFLAGS) loop.o $(ALLLIBS) -o loop
|
||||||
|
|
||||||
|
import: import.o
|
||||||
|
$(CC) $(LDFLAGS) import.o $(ALLLIBS) -o import
|
||||||
|
|
||||||
# Administrative targets
|
# Administrative targets
|
||||||
|
|
||||||
test: demo
|
test: demo
|
||||||
|
@ -48,4 +51,4 @@ clean:
|
||||||
-rm -f *.o core
|
-rm -f *.o core
|
||||||
|
|
||||||
clobber: clean
|
clobber: clean
|
||||||
-rm -f *~ @* '#'* demo loop
|
-rm -f *~ @* '#'* demo loop import
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue