Added 'list_only' option (and modified 'run()' to respect it).
[python/dscho.git] / Demo / embed / Makefile
blob898a7912f5e2f98b0b678e311a91f467057aa7e7
1 # Makefile for embedded Python use demo.
2 # (This version tailored for CNRI and Solaris; edit lines marked with XXX.)
4 # XXX The compiler you are using
5 CC= gcc
7 # XXX Top of the build tree and source tree
8 blddir= ../..
9 srcdir= ../..
11 # Python version
12 VERSION= 1.5
14 # Compiler flags
15 OPT= -g
16 INCLUDES= -I$(srcdir)/Include -I$(blddir)
17 CFLAGS= $(OPT) $(INCLUDES)
19 # The Python library
20 LIBPYTHON= $(blddir)/libpython$(VERSION).a
22 # XXX edit LIBS (in particular) to match $(blddir)/Modules/Makefile
23 LIBS= -lsocket -lnsl -ldl -lreadline -ltermcap
24 SYSLIBS= -lm
25 MODLIBS=
26 ALLLIBS= $(LIBPYTHON) $(MODLIBS) $(LIBS) $(SYSLIBS)
28 # Build the demo application
29 all: demo
30 demo: demo.o
31 $(CC) demo.o $(ALLLIBS) -o demo
33 # Administrative targets
35 test: demo
36 ./demo
38 clean:
39 -rm -f *.o core
41 clobber: clean
42 -rm -f *~ @* '#'* demo