b03775a464dde569af1042ebfb3aff2a1be0858f
[qpalma.git] / ParaParser / Makefile
1 PROJ=ParaParser
2
3 #CXXFLAGS=-O3 -fPIC
4 #CXXFLAGS=-O3 -fPIC -pg -fprofile-arcs
5 CXXFLAGS=-Wall -O3 -ggdb -fPIC -I/usr/include/python2.5
6
7 SRCS= ParaParser.cpp
8
9 OBJS = $(SRCS:%.cpp=%.o)
10
11 all: $(OBJS)
12 swig -c++ -python ${PROJ}.i
13 g++ $(CXXFLAGS) -I/usr/include/python2.5 -c ${PROJ}_wrap.cxx -o ${PROJ}_wrap.o
14 g++ $(CXXFLAGS) -shared -lpython2.5 $(OBJS) ${PROJ}_wrap.o -o _${PROJ}.so
15 python -c "import ${PROJ}"
16
17 clean:
18 rm *.o *.so *.cxx ${PROJ}.py ${PROJ}.pyc
19