MODULES= coroutinemodule.so sendfilemodule.so OBJS= coroutinemodule.o sendfilemodule.o INCLUDES= -I/usr/local/include/python1.5 -I/usr/local/include # the location of the coro archive: COROLIB= /usr/local/lib/libcoro.a OPTS= -g -Wall -O6 #OPTS= -g -Wall CC= gcc LD= ld RM= rm -f all: ${OBJS} ${MODULES} clean: ${RM} ${OBJS} ${MODULES} coroutinemodule.so: coroutinemodule.o ${LD} coroutinemodule.o -shared -o coroutinemodule.so \ --whole-archive ${COROLIB} sendfilemodule.so: sendfilemodule.o ${LD} sendfilemodule.o -shared -o sendfilemodule.so coroutinemodule.o: coroutinemodule.c ${CC} ${INCLUDES} ${OPTS} -c coroutinemodule.c sendfilemodule.o: sendfilemodule.c ${CC} ${INCLUDES} ${OPTS} -c sendfilemodule.c