# Makefile for TNC
# $Jeannot: Makefile,v 1.14 2004/04/02 20:40:21 js Exp $

all: example

example: example.o tnc.o
	$(CC) $(CFLAGS) -o example example.o tnc.o -lm

test: example
	time ./example

# Python targets
moduleTNC.so: moduleTNC.c tnc.c
	python setup.py build_ext --inplace

test-py: moduleTNC.so
	python tnc.py

clean:
	rm -f example *.o *.so *.pyc
	rm -rf build
