diff options
author | lloyd <[email protected]> | 2006-08-23 03:43:48 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-08-23 03:43:48 +0000 |
commit | f92f569b49d5df1b79390ff90e0083ea2a1e7907 (patch) | |
tree | ee4a09c9cb7de0d013ae3bd24428201f597ec3e2 /misc | |
parent | 1fcecf212e177b1f6901ae1178ccc46fdd914b0b (diff) |
Move all .o files into build/
Don't require that libboost_python exist inside the build directory anymore
Diffstat (limited to 'misc')
-rw-r--r-- | misc/python/Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/misc/python/Makefile b/misc/python/Makefile index 4d09ad9ac..d37e646e9 100644 --- a/misc/python/Makefile +++ b/misc/python/Makefile @@ -12,19 +12,19 @@ SHARED_CFLAGS = $(LANG_FLAGS) $(OPT_FLAGS) $(PYTHON_INC) BOOST_CFLAGS = $(PYTHON_DEF) $(SHARED_CFLAGS) WRAP_SRC = $(wildcard src/*) -WRAP_OBJS = $(patsubst src/%.cpp,%.o,$(WRAP_SRC)) +WRAP_OBJS = $(patsubst src/%.cpp,build/%.o,$(WRAP_SRC)) all: botan/_botan.so -%.o: src/%.cpp +build/%.o: src/%.cpp dirs $(CXX) $(SHARED_CFLAGS) $(WRAPPER_CFLAGS) -c $< -o $@ -botan/_botan.so: $(WRAP_OBJS) build/libboost_python.so +botan/_botan.so: $(WRAP_OBJS) $(CXX) -shared -o $@ $(shell botan-config --libs) -L$(PYTHON_ROOT) $(WRAP_OBJS) -Lbuild/ -lboost_python -Wl,-rpath-link,. -Wl,-soname,$@ dirs: - mkdir -p build build/boost build/botan botan + mkdir -p build botan clean: - rm -rf build/ + rm -rf build rm -f botan/*.so botan/*.pyc |