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
7 # XXX Top of the build tree and source tree
16 INCLUDES
= -I
$(srcdir)/Include
-I
$(blddir
)
17 CFLAGS
= $(OPT
) $(INCLUDES
)
20 LIBPYTHON
= $(blddir
)/libpython
$(VERSION
).a
22 # XXX edit LIBS (in particular) to match $(blddir)/Modules/Makefile
23 LIBS
= -lsocket
-lnsl
-ldl
-lreadline
-ltermcap
26 ALLLIBS
= $(LIBPYTHON
) $(MODLIBS
) $(LIBS
) $(SYSLIBS
)
28 # Build the demo application
31 $(CC
) demo.o
$(ALLLIBS
) -o demo
33 # Administrative targets
42 -rm -f
*~ @
* '#'* demo