aboutsummaryrefslogtreecommitdiffstats
path: root/misc/python/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'misc/python/Makefile')
-rw-r--r--misc/python/Makefile16
1 files changed, 5 insertions, 11 deletions
diff --git a/misc/python/Makefile b/misc/python/Makefile
index dec00a632..4d09ad9ac 100644
--- a/misc/python/Makefile
+++ b/misc/python/Makefile
@@ -1,11 +1,10 @@
CXX = g++
-LANG_FLAGS = -fPIC -Wall -W -ftemplate-depth-255
+LANG_FLAGS = -fPIC -Wall -Wno-unused -ftemplate-depth-255
OPT_FLAGS = -g -Os
-PYTHON_ROOT = /usr/lib/python2.3/config
-PYTHON_INC = -I/usr/include/python2.3
+PYTHON_ROOT = /usr/lib/python2.4/config
+PYTHON_INC = -I/usr/include/python2.4
PYTHON_DEF = -DBOOST_PYTHON_DYNAMIC_LIB -DBOOST_PYTHON_SOURCE
-BOOST_ROOT = /usr/local/src/boost
WRAPPER_CFLAGS = $(shell botan-config --cflags)
SHARED_CFLAGS = $(LANG_FLAGS) $(OPT_FLAGS) $(PYTHON_INC)
@@ -13,16 +12,11 @@ SHARED_CFLAGS = $(LANG_FLAGS) $(OPT_FLAGS) $(PYTHON_INC)
BOOST_CFLAGS = $(PYTHON_DEF) $(SHARED_CFLAGS)
WRAP_SRC = $(wildcard src/*)
-WRAP_OBJS = $(patsubst src/%.cpp,build/botan/%.o,$(WRAP_SRC))
+WRAP_OBJS = $(patsubst src/%.cpp,%.o,$(WRAP_SRC))
all: botan/_botan.so
-include boost.deps
-
-build/libboost_python.so: $(BOOST_OBJS)
- $(CXX) -fPIC -shared -o $@ $(BOOST_DEF) -L$(PYTHON_ROOT) $(PYTHON_INC) -Wl,-soname,libboost_python.so $^
-
-build/botan/%.o: src/%.cpp
+%.o: src/%.cpp
$(CXX) $(SHARED_CFLAGS) $(WRAPPER_CFLAGS) -c $< -o $@
botan/_botan.so: $(WRAP_OBJS) build/libboost_python.so