SWIG=/usr/local/bin/swig CC=gcc -g PYTHON_INCLUDES=-I/usr/include/python1.5 LIBNET_INCLUDES=-I/usr/include/libnet CFLAGS=`libnet-config --defines` LIBNET_LIB=/usr/lib/libnet.a OBJS= libnet.o exception.o error.o interface.o all: libnetcmodule.so libnetcmodule.so: libnet_wrap.o $(OBJS) $(CC) -shared libnet_wrap.o $(OBJS) $(LIBNET_LIB) -o $@ .c.o: $(CC) $(CFLAGS) $(PYTHON_INCLUDES) $(LIBNET_INCLUDES) -c $< libnet_wrap.c: libnet.i constants.i $(SWIG) -python libnet.i # $(SWIG) -python -shadow libnet.i clean: rm -f *.o *.pyc libnet_wrap.* libnetcmodule.so core