+ cleaned up directories
[qpalma.git] / ParaParser / Makefile
1 PROJ=ParaParser
2
3 #CXXFLAGS=-Wall -Wshadow -std=c++98 -O3 -ggdb -fPIC -I/usr/include/python2.5
4 CXXFLAGS=-Wall -Wshadow -std=c++98 -O3 -fPIC -I/usr/include/python2.5
5
6 SRCS= ParaParser.cpp
7
8 OBJS = $(SRCS:%.cpp=%.o)
9
10 all: $(OBJS)
11 @ echo "Building ParaParser module"
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}" && echo "Creation of ParaParser module was successful!"
16
17 clean:
18 rm *.o *.so *.cxx ${PROJ}.py ${PROJ}.pyc
19