
PYLIB=$(shell python-config --libs)
PYCPP=$(shell python-config --cflags)
OPTS=-DNDEBUG -g -fwrapv -O2 -Wall
PROGRAMS=main 

all: $(PROGRAMS)

main: main.o
	g++ main.o `python-config --libs` $(LIBS) $(PYLIB) -o main
main.o: main.cxx
	g++ main.cxx -c `python-config --cflags` $(PYCPP) $(OPTS)
clean:
	rm -f $(PROGRAMS) *.o *.pyc core
