Staging
v0.5.1
swh:1:snp:635f4099902912592851108bcac178ff574f7c5f
Raw File
Tip revision: d39f5f64538edd6c690fe635926063fb7cac853b authored by cvs2svn on 10 April 1995, 12:32:31 UTC
This commit was manufactured by cvs2svn to create tag 'release12'.
Tip revision: d39f5f6
Makefile
# Makefile for embedded Python use demo

# Top of the build tree and source tree
blddir=		../..
srcdir=		../..

# Compiler flags
OPT=		-g
INCLUDES=	-I$(srcdir)/Include -I$(blddir)
DEFINES=	-DHAVE_CONFIG_H
CFLAGS=		$(OPT) $(DEFINES) $(INCLUDES)

# Libraries (must be in this order!)
MYLIBS=		$(blddir)/Modules/libModules.a \
		$(blddir)/Python/libPython.a \
		$(blddir)/Objects/libObjects.a \
		$(blddir)/Parser/libParser.a

# XXX edit MODLIBS, LIBS and SYSLIBS to match $(blddir)/Modules/Makefile
MODLIBS=	
LIBS=		
SYSLIBS=	-lm
ALLLIBS=	$(MYLIBS) $(MODLIBS) $(LIBS) $(SYSLIBS)

# Build the demo application
all:		demo
demo:		demo.o config.o
		$(CC) demo.o config.o $(ALLLIBS) -o demo

# Build config.o, suppressing the main() function
config.o:	$(blddir)/Modules/config.c
		$(CC) $(CFLAGS) -DNO_MAIN -c $(blddir)/Modules/config.c

# Administrative targets

test:		demo
		./demo

clean:
		-rm -f *.o core

clobber:	clean
		-rm -f *~ @* '#'* demo
back to top